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 |
Returns information about a specific import.
Synopsis
- data GetImport = GetImport' {}
- newGetImport :: Text -> GetImport
- getImport_importId :: Lens' GetImport Text
- data GetImportResponse = GetImportResponse' {
- createdTimestamp :: Maybe POSIX
- destinations :: Maybe (NonEmpty Text)
- endEventTime :: Maybe POSIX
- importId :: Maybe Text
- importSource :: Maybe ImportSource
- importStatistics :: Maybe ImportStatistics
- importStatus :: Maybe ImportStatus
- startEventTime :: Maybe POSIX
- updatedTimestamp :: Maybe POSIX
- httpStatus :: Int
- newGetImportResponse :: Int -> GetImportResponse
- getImportResponse_createdTimestamp :: Lens' GetImportResponse (Maybe UTCTime)
- getImportResponse_destinations :: Lens' GetImportResponse (Maybe (NonEmpty Text))
- getImportResponse_endEventTime :: Lens' GetImportResponse (Maybe UTCTime)
- getImportResponse_importId :: Lens' GetImportResponse (Maybe Text)
- getImportResponse_importSource :: Lens' GetImportResponse (Maybe ImportSource)
- getImportResponse_importStatistics :: Lens' GetImportResponse (Maybe ImportStatistics)
- getImportResponse_importStatus :: Lens' GetImportResponse (Maybe ImportStatus)
- getImportResponse_startEventTime :: Lens' GetImportResponse (Maybe UTCTime)
- getImportResponse_updatedTimestamp :: Lens' GetImportResponse (Maybe UTCTime)
- getImportResponse_httpStatus :: Lens' GetImportResponse Int
Creating a Request
See: newGetImport
smart constructor.
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 ID for the import.
Request Lenses
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:
GetImportResponse
, getImportResponse_createdTimestamp
- The timestamp of the import's creation.
GetImportResponse
, getImportResponse_destinations
- The ARN of the destination event data store.
$sel:endEventTime:GetImportResponse'
, getImportResponse_endEventTime
- Used with StartEventTime
to bound a StartImport
request, and limit
imported trail events to only those events logged within a specified
time period.
GetImport
, getImportResponse_importId
- The ID of the import.
$sel:importSource:GetImportResponse'
, getImportResponse_importSource
- The source S3 bucket.
$sel:importStatistics:GetImportResponse'
, getImportResponse_importStatistics
- Provides statistics for the import. CloudTrail does not update import
statistics in real-time. Returned values for parameters such as
EventsCompleted
may be lower than the actual value, because CloudTrail
updates statistics incrementally over the course of the import.
GetImportResponse
, getImportResponse_importStatus
- The status of the import.
$sel:startEventTime:GetImportResponse'
, getImportResponse_startEventTime
- Used with EndEventTime
to bound a StartImport
request, and limit
imported trail events to only those events logged within a specified
time period.
GetImportResponse
, getImportResponse_updatedTimestamp
- The timestamp of when the import was updated.
$sel:httpStatus:GetImportResponse'
, getImportResponse_httpStatus
- The response's http status code.
Response Lenses
getImportResponse_createdTimestamp :: Lens' GetImportResponse (Maybe UTCTime) Source #
The timestamp of the import's creation.
getImportResponse_destinations :: Lens' GetImportResponse (Maybe (NonEmpty Text)) Source #
The ARN of the destination event data store.
getImportResponse_endEventTime :: Lens' GetImportResponse (Maybe UTCTime) Source #
Used with StartEventTime
to bound a StartImport
request, and limit
imported trail events to only those events logged within a specified
time period.
getImportResponse_importId :: Lens' GetImportResponse (Maybe Text) Source #
The ID of the import.
getImportResponse_importSource :: Lens' GetImportResponse (Maybe ImportSource) Source #
The source S3 bucket.
getImportResponse_importStatistics :: Lens' GetImportResponse (Maybe ImportStatistics) Source #
Provides statistics for the import. CloudTrail does not update import
statistics in real-time. Returned values for parameters such as
EventsCompleted
may be lower than the actual value, because CloudTrail
updates statistics incrementally over the course of the import.
getImportResponse_importStatus :: Lens' GetImportResponse (Maybe ImportStatus) Source #
The status of the import.
getImportResponse_startEventTime :: Lens' GetImportResponse (Maybe UTCTime) Source #
Used with EndEventTime
to bound a StartImport
request, and limit
imported trail events to only those events logged within a specified
time period.
getImportResponse_updatedTimestamp :: Lens' GetImportResponse (Maybe UTCTime) Source #
The timestamp of when the import was updated.
getImportResponse_httpStatus :: Lens' GetImportResponse Int Source #
The response's http status code.