Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_failureReason :: Lens' GetImportResponse (Maybe [Text])
- getImportResponse_resourceType :: Lens' GetImportResponse (Maybe ResourceType)
- getImportResponse_importId :: Lens' GetImportResponse (Maybe Text)
- getImportResponse_createdDate :: Lens' GetImportResponse (Maybe UTCTime)
- getImportResponse_name :: Lens' GetImportResponse (Maybe Text)
- getImportResponse_mergeStrategy :: Lens' GetImportResponse (Maybe MergeStrategy)
- getImportResponse_importStatus :: Lens' GetImportResponse (Maybe ImportStatus)
- getImportResponse_httpStatus :: Lens' GetImportResponse Int
Creating a Request
See: newGetImport
smart constructor.
Instances
Eq GetImport Source # | |
Read GetImport Source # | |
Show GetImport Source # | |
Generic GetImport Source # | |
NFData GetImport Source # | |
Defined in Amazonka.LexModels.GetImport | |
Hashable GetImport Source # | |
Defined in Amazonka.LexModels.GetImport | |
AWSRequest GetImport Source # | |
Defined in Amazonka.LexModels.GetImport type AWSResponse GetImport # request :: GetImport -> Request GetImport # response :: MonadResource m => Logger -> Service -> Proxy GetImport -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetImport))) # | |
ToHeaders GetImport Source # | |
Defined in Amazonka.LexModels.GetImport | |
ToPath GetImport Source # | |
Defined in Amazonka.LexModels.GetImport toPath :: GetImport -> ByteString # | |
ToQuery GetImport Source # | |
Defined in Amazonka.LexModels.GetImport toQuery :: GetImport -> QueryString # | |
type Rep GetImport Source # | |
Defined in Amazonka.LexModels.GetImport | |
type AWSResponse GetImport Source # | |
Defined in Amazonka.LexModels.GetImport |
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:
$sel:importId: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.
GetImportResponse' | |
|
Instances
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:
$sel:failureReason:GetImportResponse'
, getImportResponse_failureReason
- A string that describes why an import job failed to complete.
$sel:resourceType:GetImportResponse'
, getImportResponse_resourceType
- The type of resource imported.
$sel:importId:GetImport'
, getImportResponse_importId
- The identifier for the specific import job.
$sel:createdDate:GetImportResponse'
, getImportResponse_createdDate
- A timestamp for the date and time that the import job was created.
$sel:name:GetImportResponse'
, getImportResponse_name
- The name given to the import job.
$sel:mergeStrategy:GetImportResponse'
, getImportResponse_mergeStrategy
- The action taken when there was a conflict between an existing resource
and a resource in the import file.
$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:httpStatus:GetImportResponse'
, getImportResponse_httpStatus
- The response's http status code.
Response Lenses
getImportResponse_failureReason :: Lens' GetImportResponse (Maybe [Text]) Source #
A string that describes why an import job failed to complete.
getImportResponse_resourceType :: Lens' GetImportResponse (Maybe ResourceType) Source #
The type of resource imported.
getImportResponse_importId :: Lens' GetImportResponse (Maybe Text) Source #
The identifier for the specific import job.
getImportResponse_createdDate :: Lens' GetImportResponse (Maybe UTCTime) Source #
A timestamp for the date and time that the import job was created.
getImportResponse_name :: Lens' GetImportResponse (Maybe Text) Source #
The name given to the import job.
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_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_httpStatus :: Lens' GetImportResponse Int Source #
The response's http status code.