| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.LexModels.GetImport
Description
Gets information about an import job started with the StartImport
operation.
Synopsis
- data GetImport = GetImport' {}
- newGetImport :: Text -> GetImport
- getImport_importId :: Lens' GetImport Text
- data GetImportResponse = GetImportResponse' {}
- newGetImportResponse :: Int -> GetImportResponse
- getImportResponse_createdDate :: Lens' GetImportResponse (Maybe UTCTime)
- getImportResponse_failureReason :: Lens' GetImportResponse (Maybe [Text])
- getImportResponse_importId :: Lens' GetImportResponse (Maybe Text)
- getImportResponse_importStatus :: Lens' GetImportResponse (Maybe ImportStatus)
- getImportResponse_mergeStrategy :: Lens' GetImportResponse (Maybe MergeStrategy)
- getImportResponse_name :: Lens' GetImportResponse (Maybe Text)
- getImportResponse_resourceType :: Lens' GetImportResponse (Maybe ResourceType)
- getImportResponse_httpStatus :: Lens' GetImportResponse Int
Creating a Request
See: newGetImport smart constructor.
Constructors
| GetImport' | |
Instances
Create a value of GetImport with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetImport, getImport_importId - The identifier of the import job information to return.
Request Lenses
getImport_importId :: Lens' GetImport Text Source #
The identifier of the import job information to return.
Destructuring the Response
data GetImportResponse Source #
See: newGetImportResponse smart constructor.
Constructors
| GetImportResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetImportResponse |
Create a value of GetImportResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetImportResponse, getImportResponse_createdDate - A timestamp for the date and time that the import job was created.
GetImportResponse, getImportResponse_failureReason - A string that describes why an import job failed to complete.
GetImport, getImportResponse_importId - The identifier for the specific import job.
$sel:importStatus:GetImportResponse', getImportResponse_importStatus - The status of the import job. If the status is FAILED, you can get the
reason for the failure from the failureReason field.
$sel:mergeStrategy:GetImportResponse', getImportResponse_mergeStrategy - The action taken when there was a conflict between an existing resource
and a resource in the import file.
GetImportResponse, getImportResponse_name - The name given to the import job.
$sel:resourceType:GetImportResponse', getImportResponse_resourceType - The type of resource imported.
$sel:httpStatus:GetImportResponse', getImportResponse_httpStatus - The response's http status code.
Response Lenses
getImportResponse_createdDate :: Lens' GetImportResponse (Maybe UTCTime) Source #
A timestamp for the date and time that the import job was created.
getImportResponse_failureReason :: Lens' GetImportResponse (Maybe [Text]) Source #
A string that describes why an import job failed to complete.
getImportResponse_importId :: Lens' GetImportResponse (Maybe Text) Source #
The identifier for the specific import job.
getImportResponse_importStatus :: Lens' GetImportResponse (Maybe ImportStatus) Source #
The status of the import job. If the status is FAILED, you can get the
reason for the failure from the failureReason field.
getImportResponse_mergeStrategy :: Lens' GetImportResponse (Maybe MergeStrategy) Source #
The action taken when there was a conflict between an existing resource and a resource in the import file.
getImportResponse_name :: Lens' GetImportResponse (Maybe Text) Source #
The name given to the import job.
getImportResponse_resourceType :: Lens' GetImportResponse (Maybe ResourceType) Source #
The type of resource imported.
getImportResponse_httpStatus :: Lens' GetImportResponse Int Source #
The response's http status code.