get_import
(**kwargs)¶Returns information about a specific import.
See also: AWS API Documentation
Request Syntax
response = client.get_import(
ImportId='string'
)
[REQUIRED]
The ID for the import.
{
'ImportId': 'string',
'Destinations': [
'string',
],
'ImportSource': {
'S3': {
'S3LocationUri': 'string',
'S3BucketRegion': 'string',
'S3BucketAccessRoleArn': 'string'
}
},
'StartEventTime': datetime(2015, 1, 1),
'EndEventTime': datetime(2015, 1, 1),
'ImportStatus': 'INITIALIZING'|'IN_PROGRESS'|'FAILED'|'STOPPED'|'COMPLETED',
'CreatedTimestamp': datetime(2015, 1, 1),
'UpdatedTimestamp': datetime(2015, 1, 1),
'ImportStatistics': {
'PrefixesFound': 123,
'PrefixesCompleted': 123,
'FilesCompleted': 123,
'EventsCompleted': 123,
'FailedEntries': 123
}
}
Response Structure
The ID of the import.
The ARN of the destination event data store.
The source S3 bucket.
The source S3 bucket.
The URI for the source S3 bucket.
The region associated with the source S3 bucket.
The IAM ARN role used to access the source S3 bucket.
Used with EndEventTime
to bound a StartImport
request, and limit imported trail events to only those events logged within a specified time period.
Used with StartEventTime
to bound a StartImport
request, and limit imported trail events to only those events logged within a specified time period.
The status of the import.
The timestamp of the import's creation.
The timestamp of when the import was updated.
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.
The number of S3 prefixes found for the import.
The number of S3 prefixes that completed import.
The number of log files that completed import.
The number of trail events imported into the event data store.
The number of failed entries.
Exceptions
CloudTrail.Client.exceptions.ImportNotFoundException
CloudTrail.Client.exceptions.InvalidParameterException
CloudTrail.Client.exceptions.OperationNotPermittedException
CloudTrail.Client.exceptions.UnsupportedOperationException