stop_import
(**kwargs)¶Stops a specified import.
See also: AWS API Documentation
Request Syntax
response = client.stop_import(
ImportId='string'
)
[REQUIRED]
The ID of the import.
{
'ImportId': 'string',
'ImportSource': {
'S3': {
'S3LocationUri': 'string',
'S3BucketRegion': 'string',
'S3BucketAccessRoleArn': 'string'
}
},
'Destinations': [
'string',
],
'ImportStatus': 'INITIALIZING'|'IN_PROGRESS'|'FAILED'|'STOPPED'|'COMPLETED',
'CreatedTimestamp': datetime(2015, 1, 1),
'UpdatedTimestamp': datetime(2015, 1, 1),
'StartEventTime': datetime(2015, 1, 1),
'EndEventTime': datetime(2015, 1, 1),
'ImportStatistics': {
'PrefixesFound': 123,
'PrefixesCompleted': 123,
'FilesCompleted': 123,
'EventsCompleted': 123,
'FailedEntries': 123
}
}
Response Structure
The ID for the import.
The source S3 bucket for the import.
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.
The ARN of the destination event data store.
The status of the import.
The timestamp of the import's creation.
The timestamp of the import's last update.
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.
Returns information on the stopped 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