Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Gets information about an import job started with the StartImport
operation.
Synopsis
- getImport :: Text -> GetImport
- data GetImport
- giImportId :: Lens' GetImport Text
- getImportResponse :: Int -> GetImportResponse
- data GetImportResponse
- girsFailureReason :: Lens' GetImportResponse [Text]
- girsResourceType :: Lens' GetImportResponse (Maybe ResourceType)
- girsImportId :: Lens' GetImportResponse (Maybe Text)
- girsCreatedDate :: Lens' GetImportResponse (Maybe UTCTime)
- girsName :: Lens' GetImportResponse (Maybe Text)
- girsMergeStrategy :: Lens' GetImportResponse (Maybe MergeStrategy)
- girsImportStatus :: Lens' GetImportResponse (Maybe ImportStatus)
- girsResponseStatus :: Lens' GetImportResponse Int
Creating a Request
Creates a value of GetImport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giImportId
- The identifier of the import job information to return.
See: getImport
smart constructor.
Instances
Request Lenses
Destructuring the Response
Creates a value of GetImportResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
girsFailureReason
- A string that describes why an import job failed to complete.girsResourceType
- The type of resource imported.girsImportId
- The identifier for the specific import job.girsCreatedDate
- A timestamp for the date and time that the import job was created.girsName
- The name given to the import job.girsMergeStrategy
- The action taken when there was a conflict between an existing resource and a resource in the import file.girsImportStatus
- The status of the import job. If the status isFAILED
, you can get the reason for the failure from thefailureReason
field.girsResponseStatus
- -- | The response status code.
data GetImportResponse Source #
See: getImportResponse
smart constructor.
Instances
Response Lenses
girsFailureReason :: Lens' GetImportResponse [Text] Source #
A string that describes why an import job failed to complete.
girsResourceType :: Lens' GetImportResponse (Maybe ResourceType) Source #
The type of resource imported.
girsImportId :: Lens' GetImportResponse (Maybe Text) Source #
The identifier for the specific import job.
girsCreatedDate :: Lens' GetImportResponse (Maybe UTCTime) Source #
A timestamp for the date and time that the import job was created.
girsMergeStrategy :: Lens' GetImportResponse (Maybe MergeStrategy) Source #
The action taken when there was a conflict between an existing resource and a resource in the import file.
girsImportStatus :: 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.
girsResponseStatus :: Lens' GetImportResponse Int Source #
- - | The response status code.