Skip to content

Typed dictionaries

Index > CloudTrail > Typed dictionaries

Auto-generated documentation for CloudTrail type annotations stubs module mypy-boto3-cloudtrail.

TagTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import TagTypeDef

def get_value() -> TagTypeDef:
    return {
        "Key": ...,
    }
Definition
class TagTypeDef(TypedDict):
    Key: str,
    Value: NotRequired[str],

AdvancedFieldSelectorTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import AdvancedFieldSelectorTypeDef

def get_value() -> AdvancedFieldSelectorTypeDef:
    return {
        "Field": ...,
    }
Definition
class AdvancedFieldSelectorTypeDef(TypedDict):
    Field: str,
    Equals: NotRequired[Sequence[str]],
    StartsWith: NotRequired[Sequence[str]],
    EndsWith: NotRequired[Sequence[str]],
    NotEquals: NotRequired[Sequence[str]],
    NotStartsWith: NotRequired[Sequence[str]],
    NotEndsWith: NotRequired[Sequence[str]],

CancelQueryRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import CancelQueryRequestRequestTypeDef

def get_value() -> CancelQueryRequestRequestTypeDef:
    return {
        "EventDataStore": ...,
        "QueryId": ...,
    }
Definition
class CancelQueryRequestRequestTypeDef(TypedDict):
    EventDataStore: str,
    QueryId: str,

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

ChannelTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ChannelTypeDef

def get_value() -> ChannelTypeDef:
    return {
        "ChannelArn": ...,
    }
Definition
class ChannelTypeDef(TypedDict):
    ChannelArn: NotRequired[str],
    Name: NotRequired[str],

DataResourceTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import DataResourceTypeDef

def get_value() -> DataResourceTypeDef:
    return {
        "Type": ...,
    }
Definition
class DataResourceTypeDef(TypedDict):
    Type: NotRequired[str],
    Values: NotRequired[List[str]],

DeleteEventDataStoreRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import DeleteEventDataStoreRequestRequestTypeDef

def get_value() -> DeleteEventDataStoreRequestRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
Definition
class DeleteEventDataStoreRequestRequestTypeDef(TypedDict):
    EventDataStore: str,

DeleteTrailRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import DeleteTrailRequestRequestTypeDef

def get_value() -> DeleteTrailRequestRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class DeleteTrailRequestRequestTypeDef(TypedDict):
    Name: str,

DescribeQueryRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import DescribeQueryRequestRequestTypeDef

def get_value() -> DescribeQueryRequestRequestTypeDef:
    return {
        "EventDataStore": ...,
        "QueryId": ...,
    }
Definition
class DescribeQueryRequestRequestTypeDef(TypedDict):
    EventDataStore: str,
    QueryId: str,

QueryStatisticsForDescribeQueryTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import QueryStatisticsForDescribeQueryTypeDef

def get_value() -> QueryStatisticsForDescribeQueryTypeDef:
    return {
        "EventsMatched": ...,
    }
Definition
class QueryStatisticsForDescribeQueryTypeDef(TypedDict):
    EventsMatched: NotRequired[int],
    EventsScanned: NotRequired[int],
    BytesScanned: NotRequired[int],
    ExecutionTimeInMillis: NotRequired[int],
    CreationTime: NotRequired[datetime],

DescribeTrailsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import DescribeTrailsRequestRequestTypeDef

def get_value() -> DescribeTrailsRequestRequestTypeDef:
    return {
        "trailNameList": ...,
    }
Definition
class DescribeTrailsRequestRequestTypeDef(TypedDict):
    trailNameList: NotRequired[Sequence[str]],
    includeShadowTrails: NotRequired[bool],

TrailTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import TrailTypeDef

def get_value() -> TrailTypeDef:
    return {
        "Name": ...,
    }
Definition
class TrailTypeDef(TypedDict):
    Name: NotRequired[str],
    S3BucketName: NotRequired[str],
    S3KeyPrefix: NotRequired[str],
    SnsTopicName: NotRequired[str],
    SnsTopicARN: NotRequired[str],
    IncludeGlobalServiceEvents: NotRequired[bool],
    IsMultiRegionTrail: NotRequired[bool],
    HomeRegion: NotRequired[str],
    TrailARN: NotRequired[str],
    LogFileValidationEnabled: NotRequired[bool],
    CloudWatchLogsLogGroupArn: NotRequired[str],
    CloudWatchLogsRoleArn: NotRequired[str],
    KmsKeyId: NotRequired[str],
    HasCustomEventSelectors: NotRequired[bool],
    HasInsightSelectors: NotRequired[bool],
    IsOrganizationTrail: NotRequired[bool],

DestinationTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import DestinationTypeDef

def get_value() -> DestinationTypeDef:
    return {
        "Type": ...,
        "Location": ...,
    }
Definition
class DestinationTypeDef(TypedDict):
    Type: DestinationTypeType,  # (1)
    Location: str,
  1. See DestinationTypeType

ResourceTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ResourceTypeDef

def get_value() -> ResourceTypeDef:
    return {
        "ResourceType": ...,
    }
Definition
class ResourceTypeDef(TypedDict):
    ResourceType: NotRequired[str],
    ResourceName: NotRequired[str],

GetChannelRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetChannelRequestRequestTypeDef

def get_value() -> GetChannelRequestRequestTypeDef:
    return {
        "Channel": ...,
    }
Definition
class GetChannelRequestRequestTypeDef(TypedDict):
    Channel: str,

GetEventDataStoreRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetEventDataStoreRequestRequestTypeDef

def get_value() -> GetEventDataStoreRequestRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
Definition
class GetEventDataStoreRequestRequestTypeDef(TypedDict):
    EventDataStore: str,

GetEventSelectorsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetEventSelectorsRequestRequestTypeDef

def get_value() -> GetEventSelectorsRequestRequestTypeDef:
    return {
        "TrailName": ...,
    }
Definition
class GetEventSelectorsRequestRequestTypeDef(TypedDict):
    TrailName: str,

GetImportRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetImportRequestRequestTypeDef

def get_value() -> GetImportRequestRequestTypeDef:
    return {
        "ImportId": ...,
    }
Definition
class GetImportRequestRequestTypeDef(TypedDict):
    ImportId: str,

ImportStatisticsTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ImportStatisticsTypeDef

def get_value() -> ImportStatisticsTypeDef:
    return {
        "PrefixesFound": ...,
    }
Definition
class ImportStatisticsTypeDef(TypedDict):
    PrefixesFound: NotRequired[int],
    PrefixesCompleted: NotRequired[int],
    FilesCompleted: NotRequired[int],
    EventsCompleted: NotRequired[int],
    FailedEntries: NotRequired[int],

GetInsightSelectorsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetInsightSelectorsRequestRequestTypeDef

def get_value() -> GetInsightSelectorsRequestRequestTypeDef:
    return {
        "TrailName": ...,
    }
Definition
class GetInsightSelectorsRequestRequestTypeDef(TypedDict):
    TrailName: str,

InsightSelectorTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import InsightSelectorTypeDef

def get_value() -> InsightSelectorTypeDef:
    return {
        "InsightType": ...,
    }
Definition
class InsightSelectorTypeDef(TypedDict):
    InsightType: NotRequired[InsightTypeType],  # (1)
  1. See InsightTypeType

GetQueryResultsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetQueryResultsRequestRequestTypeDef

def get_value() -> GetQueryResultsRequestRequestTypeDef:
    return {
        "EventDataStore": ...,
        "QueryId": ...,
    }
Definition
class GetQueryResultsRequestRequestTypeDef(TypedDict):
    EventDataStore: str,
    QueryId: str,
    NextToken: NotRequired[str],
    MaxQueryResults: NotRequired[int],

QueryStatisticsTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import QueryStatisticsTypeDef

def get_value() -> QueryStatisticsTypeDef:
    return {
        "ResultsCount": ...,
    }
Definition
class QueryStatisticsTypeDef(TypedDict):
    ResultsCount: NotRequired[int],
    TotalResultsCount: NotRequired[int],
    BytesScanned: NotRequired[int],

GetTrailRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetTrailRequestRequestTypeDef

def get_value() -> GetTrailRequestRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class GetTrailRequestRequestTypeDef(TypedDict):
    Name: str,

GetTrailStatusRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetTrailStatusRequestRequestTypeDef

def get_value() -> GetTrailStatusRequestRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class GetTrailStatusRequestRequestTypeDef(TypedDict):
    Name: str,

ImportFailureListItemTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ImportFailureListItemTypeDef

def get_value() -> ImportFailureListItemTypeDef:
    return {
        "Location": ...,
    }
Definition
class ImportFailureListItemTypeDef(TypedDict):
    Location: NotRequired[str],
    Status: NotRequired[ImportFailureStatusType],  # (1)
    ErrorType: NotRequired[str],
    ErrorMessage: NotRequired[str],
    LastUpdatedTime: NotRequired[datetime],
  1. See ImportFailureStatusType

S3ImportSourceTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import S3ImportSourceTypeDef

def get_value() -> S3ImportSourceTypeDef:
    return {
        "S3LocationUri": ...,
        "S3BucketRegion": ...,
        "S3BucketAccessRoleArn": ...,
    }
Definition
class S3ImportSourceTypeDef(TypedDict):
    S3LocationUri: str,
    S3BucketRegion: str,
    S3BucketAccessRoleArn: str,

ImportsListItemTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ImportsListItemTypeDef

def get_value() -> ImportsListItemTypeDef:
    return {
        "ImportId": ...,
    }
Definition
class ImportsListItemTypeDef(TypedDict):
    ImportId: NotRequired[str],
    ImportStatus: NotRequired[ImportStatusType],  # (1)
    Destinations: NotRequired[List[str]],
    CreatedTimestamp: NotRequired[datetime],
    UpdatedTimestamp: NotRequired[datetime],
  1. See ImportStatusType

ListChannelsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListChannelsRequestRequestTypeDef

def get_value() -> ListChannelsRequestRequestTypeDef:
    return {
        "MaxResults": ...,
    }
Definition
class ListChannelsRequestRequestTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

ListEventDataStoresRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListEventDataStoresRequestRequestTypeDef

def get_value() -> ListEventDataStoresRequestRequestTypeDef:
    return {
        "NextToken": ...,
    }
Definition
class ListEventDataStoresRequestRequestTypeDef(TypedDict):
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

PaginatorConfigTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
Definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListImportFailuresRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListImportFailuresRequestRequestTypeDef

def get_value() -> ListImportFailuresRequestRequestTypeDef:
    return {
        "ImportId": ...,
    }
Definition
class ListImportFailuresRequestRequestTypeDef(TypedDict):
    ImportId: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

ListImportsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListImportsRequestRequestTypeDef

def get_value() -> ListImportsRequestRequestTypeDef:
    return {
        "MaxResults": ...,
    }
Definition
class ListImportsRequestRequestTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    Destination: NotRequired[str],
    ImportStatus: NotRequired[ImportStatusType],  # (1)
    NextToken: NotRequired[str],
  1. See ImportStatusType

ListPublicKeysRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListPublicKeysRequestRequestTypeDef

def get_value() -> ListPublicKeysRequestRequestTypeDef:
    return {
        "StartTime": ...,
    }
Definition
class ListPublicKeysRequestRequestTypeDef(TypedDict):
    StartTime: NotRequired[Union[datetime, str]],
    EndTime: NotRequired[Union[datetime, str]],
    NextToken: NotRequired[str],

PublicKeyTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import PublicKeyTypeDef

def get_value() -> PublicKeyTypeDef:
    return {
        "Value": ...,
    }
Definition
class PublicKeyTypeDef(TypedDict):
    Value: NotRequired[bytes],
    ValidityStartTime: NotRequired[datetime],
    ValidityEndTime: NotRequired[datetime],
    Fingerprint: NotRequired[str],

ListQueriesRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListQueriesRequestRequestTypeDef

def get_value() -> ListQueriesRequestRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
Definition
class ListQueriesRequestRequestTypeDef(TypedDict):
    EventDataStore: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
    StartTime: NotRequired[Union[datetime, str]],
    EndTime: NotRequired[Union[datetime, str]],
    QueryStatus: NotRequired[QueryStatusType],  # (1)
  1. See QueryStatusType

QueryTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import QueryTypeDef

def get_value() -> QueryTypeDef:
    return {
        "QueryId": ...,
    }
Definition
class QueryTypeDef(TypedDict):
    QueryId: NotRequired[str],
    QueryStatus: NotRequired[QueryStatusType],  # (1)
    CreationTime: NotRequired[datetime],
  1. See QueryStatusType

ListTagsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListTagsRequestRequestTypeDef

def get_value() -> ListTagsRequestRequestTypeDef:
    return {
        "ResourceIdList": ...,
    }
Definition
class ListTagsRequestRequestTypeDef(TypedDict):
    ResourceIdList: Sequence[str],
    NextToken: NotRequired[str],

ListTrailsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListTrailsRequestRequestTypeDef

def get_value() -> ListTrailsRequestRequestTypeDef:
    return {
        "NextToken": ...,
    }
Definition
class ListTrailsRequestRequestTypeDef(TypedDict):
    NextToken: NotRequired[str],

TrailInfoTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import TrailInfoTypeDef

def get_value() -> TrailInfoTypeDef:
    return {
        "TrailARN": ...,
    }
Definition
class TrailInfoTypeDef(TypedDict):
    TrailARN: NotRequired[str],
    Name: NotRequired[str],
    HomeRegion: NotRequired[str],

LookupAttributeTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import LookupAttributeTypeDef

def get_value() -> LookupAttributeTypeDef:
    return {
        "AttributeKey": ...,
        "AttributeValue": ...,
    }
Definition
class LookupAttributeTypeDef(TypedDict):
    AttributeKey: LookupAttributeKeyType,  # (1)
    AttributeValue: str,
  1. See LookupAttributeKeyType

RestoreEventDataStoreRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import RestoreEventDataStoreRequestRequestTypeDef

def get_value() -> RestoreEventDataStoreRequestRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
Definition
class RestoreEventDataStoreRequestRequestTypeDef(TypedDict):
    EventDataStore: str,

StartLoggingRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import StartLoggingRequestRequestTypeDef

def get_value() -> StartLoggingRequestRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class StartLoggingRequestRequestTypeDef(TypedDict):
    Name: str,

StartQueryRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import StartQueryRequestRequestTypeDef

def get_value() -> StartQueryRequestRequestTypeDef:
    return {
        "QueryStatement": ...,
    }
Definition
class StartQueryRequestRequestTypeDef(TypedDict):
    QueryStatement: str,

StopImportRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import StopImportRequestRequestTypeDef

def get_value() -> StopImportRequestRequestTypeDef:
    return {
        "ImportId": ...,
    }
Definition
class StopImportRequestRequestTypeDef(TypedDict):
    ImportId: str,

StopLoggingRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import StopLoggingRequestRequestTypeDef

def get_value() -> StopLoggingRequestRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class StopLoggingRequestRequestTypeDef(TypedDict):
    Name: str,

UpdateTrailRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import UpdateTrailRequestRequestTypeDef

def get_value() -> UpdateTrailRequestRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class UpdateTrailRequestRequestTypeDef(TypedDict):
    Name: str,
    S3BucketName: NotRequired[str],
    S3KeyPrefix: NotRequired[str],
    SnsTopicName: NotRequired[str],
    IncludeGlobalServiceEvents: NotRequired[bool],
    IsMultiRegionTrail: NotRequired[bool],
    EnableLogFileValidation: NotRequired[bool],
    CloudWatchLogsLogGroupArn: NotRequired[str],
    CloudWatchLogsRoleArn: NotRequired[str],
    KmsKeyId: NotRequired[str],
    IsOrganizationTrail: NotRequired[bool],

AddTagsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import AddTagsRequestRequestTypeDef

def get_value() -> AddTagsRequestRequestTypeDef:
    return {
        "ResourceId": ...,
        "TagsList": ...,
    }
Definition
class AddTagsRequestRequestTypeDef(TypedDict):
    ResourceId: str,
    TagsList: Sequence[TagTypeDef],  # (1)
  1. See TagTypeDef

CreateTrailRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import CreateTrailRequestRequestTypeDef

def get_value() -> CreateTrailRequestRequestTypeDef:
    return {
        "Name": ...,
        "S3BucketName": ...,
    }
Definition
class CreateTrailRequestRequestTypeDef(TypedDict):
    Name: str,
    S3BucketName: str,
    S3KeyPrefix: NotRequired[str],
    SnsTopicName: NotRequired[str],
    IncludeGlobalServiceEvents: NotRequired[bool],
    IsMultiRegionTrail: NotRequired[bool],
    EnableLogFileValidation: NotRequired[bool],
    CloudWatchLogsLogGroupArn: NotRequired[str],
    CloudWatchLogsRoleArn: NotRequired[str],
    KmsKeyId: NotRequired[str],
    IsOrganizationTrail: NotRequired[bool],
    TagsList: NotRequired[Sequence[TagTypeDef]],  # (1)
  1. See TagTypeDef

RemoveTagsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import RemoveTagsRequestRequestTypeDef

def get_value() -> RemoveTagsRequestRequestTypeDef:
    return {
        "ResourceId": ...,
        "TagsList": ...,
    }
Definition
class RemoveTagsRequestRequestTypeDef(TypedDict):
    ResourceId: str,
    TagsList: Sequence[TagTypeDef],  # (1)
  1. See TagTypeDef

ResourceTagTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ResourceTagTypeDef

def get_value() -> ResourceTagTypeDef:
    return {
        "ResourceId": ...,
    }
Definition
class ResourceTagTypeDef(TypedDict):
    ResourceId: NotRequired[str],
    TagsList: NotRequired[List[TagTypeDef]],  # (1)
  1. See TagTypeDef

AdvancedEventSelectorTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import AdvancedEventSelectorTypeDef

def get_value() -> AdvancedEventSelectorTypeDef:
    return {
        "FieldSelectors": ...,
    }
Definition
class AdvancedEventSelectorTypeDef(TypedDict):
    FieldSelectors: Sequence[AdvancedFieldSelectorTypeDef],  # (1)
    Name: NotRequired[str],
  1. See AdvancedFieldSelectorTypeDef

CancelQueryResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import CancelQueryResponseTypeDef

def get_value() -> CancelQueryResponseTypeDef:
    return {
        "QueryId": ...,
        "QueryStatus": ...,
        "ResponseMetadata": ...,
    }
Definition
class CancelQueryResponseTypeDef(TypedDict):
    QueryId: str,
    QueryStatus: QueryStatusType,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See QueryStatusType
  2. See ResponseMetadataTypeDef

CreateTrailResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import CreateTrailResponseTypeDef

def get_value() -> CreateTrailResponseTypeDef:
    return {
        "Name": ...,
        "S3BucketName": ...,
        "S3KeyPrefix": ...,
        "SnsTopicName": ...,
        "SnsTopicARN": ...,
        "IncludeGlobalServiceEvents": ...,
        "IsMultiRegionTrail": ...,
        "TrailARN": ...,
        "LogFileValidationEnabled": ...,
        "CloudWatchLogsLogGroupArn": ...,
        "CloudWatchLogsRoleArn": ...,
        "KmsKeyId": ...,
        "IsOrganizationTrail": ...,
        "ResponseMetadata": ...,
    }
Definition
class CreateTrailResponseTypeDef(TypedDict):
    Name: str,
    S3BucketName: str,
    S3KeyPrefix: str,
    SnsTopicName: str,
    SnsTopicARN: str,
    IncludeGlobalServiceEvents: bool,
    IsMultiRegionTrail: bool,
    TrailARN: str,
    LogFileValidationEnabled: bool,
    CloudWatchLogsLogGroupArn: str,
    CloudWatchLogsRoleArn: str,
    KmsKeyId: str,
    IsOrganizationTrail: bool,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetTrailStatusResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetTrailStatusResponseTypeDef

def get_value() -> GetTrailStatusResponseTypeDef:
    return {
        "IsLogging": ...,
        "LatestDeliveryError": ...,
        "LatestNotificationError": ...,
        "LatestDeliveryTime": ...,
        "LatestNotificationTime": ...,
        "StartLoggingTime": ...,
        "StopLoggingTime": ...,
        "LatestCloudWatchLogsDeliveryError": ...,
        "LatestCloudWatchLogsDeliveryTime": ...,
        "LatestDigestDeliveryTime": ...,
        "LatestDigestDeliveryError": ...,
        "LatestDeliveryAttemptTime": ...,
        "LatestNotificationAttemptTime": ...,
        "LatestNotificationAttemptSucceeded": ...,
        "LatestDeliveryAttemptSucceeded": ...,
        "TimeLoggingStarted": ...,
        "TimeLoggingStopped": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetTrailStatusResponseTypeDef(TypedDict):
    IsLogging: bool,
    LatestDeliveryError: str,
    LatestNotificationError: str,
    LatestDeliveryTime: datetime,
    LatestNotificationTime: datetime,
    StartLoggingTime: datetime,
    StopLoggingTime: datetime,
    LatestCloudWatchLogsDeliveryError: str,
    LatestCloudWatchLogsDeliveryTime: datetime,
    LatestDigestDeliveryTime: datetime,
    LatestDigestDeliveryError: str,
    LatestDeliveryAttemptTime: str,
    LatestNotificationAttemptTime: str,
    LatestNotificationAttemptSucceeded: str,
    LatestDeliveryAttemptSucceeded: str,
    TimeLoggingStarted: str,
    TimeLoggingStopped: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartQueryResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import StartQueryResponseTypeDef

def get_value() -> StartQueryResponseTypeDef:
    return {
        "QueryId": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartQueryResponseTypeDef(TypedDict):
    QueryId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

UpdateTrailResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import UpdateTrailResponseTypeDef

def get_value() -> UpdateTrailResponseTypeDef:
    return {
        "Name": ...,
        "S3BucketName": ...,
        "S3KeyPrefix": ...,
        "SnsTopicName": ...,
        "SnsTopicARN": ...,
        "IncludeGlobalServiceEvents": ...,
        "IsMultiRegionTrail": ...,
        "TrailARN": ...,
        "LogFileValidationEnabled": ...,
        "CloudWatchLogsLogGroupArn": ...,
        "CloudWatchLogsRoleArn": ...,
        "KmsKeyId": ...,
        "IsOrganizationTrail": ...,
        "ResponseMetadata": ...,
    }
Definition
class UpdateTrailResponseTypeDef(TypedDict):
    Name: str,
    S3BucketName: str,
    S3KeyPrefix: str,
    SnsTopicName: str,
    SnsTopicARN: str,
    IncludeGlobalServiceEvents: bool,
    IsMultiRegionTrail: bool,
    TrailARN: str,
    LogFileValidationEnabled: bool,
    CloudWatchLogsLogGroupArn: str,
    CloudWatchLogsRoleArn: str,
    KmsKeyId: str,
    IsOrganizationTrail: bool,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListChannelsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListChannelsResponseTypeDef

def get_value() -> ListChannelsResponseTypeDef:
    return {
        "Channels": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListChannelsResponseTypeDef(TypedDict):
    Channels: List[ChannelTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ChannelTypeDef
  2. See ResponseMetadataTypeDef

EventSelectorTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import EventSelectorTypeDef

def get_value() -> EventSelectorTypeDef:
    return {
        "ReadWriteType": ...,
    }
Definition
class EventSelectorTypeDef(TypedDict):
    ReadWriteType: NotRequired[ReadWriteTypeType],  # (1)
    IncludeManagementEvents: NotRequired[bool],
    DataResources: NotRequired[List[DataResourceTypeDef]],  # (2)
    ExcludeManagementEventSources: NotRequired[List[str]],
  1. See ReadWriteTypeType
  2. See DataResourceTypeDef

DescribeQueryResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import DescribeQueryResponseTypeDef

def get_value() -> DescribeQueryResponseTypeDef:
    return {
        "QueryId": ...,
        "QueryString": ...,
        "QueryStatus": ...,
        "QueryStatistics": ...,
        "ErrorMessage": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeQueryResponseTypeDef(TypedDict):
    QueryId: str,
    QueryString: str,
    QueryStatus: QueryStatusType,  # (1)
    QueryStatistics: QueryStatisticsForDescribeQueryTypeDef,  # (2)
    ErrorMessage: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See QueryStatusType
  2. See QueryStatisticsForDescribeQueryTypeDef
  3. See ResponseMetadataTypeDef

DescribeTrailsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import DescribeTrailsResponseTypeDef

def get_value() -> DescribeTrailsResponseTypeDef:
    return {
        "trailList": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeTrailsResponseTypeDef(TypedDict):
    trailList: List[TrailTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TrailTypeDef
  2. See ResponseMetadataTypeDef

GetTrailResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetTrailResponseTypeDef

def get_value() -> GetTrailResponseTypeDef:
    return {
        "Trail": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetTrailResponseTypeDef(TypedDict):
    Trail: TrailTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TrailTypeDef
  2. See ResponseMetadataTypeDef

EventTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import EventTypeDef

def get_value() -> EventTypeDef:
    return {
        "EventId": ...,
    }
Definition
class EventTypeDef(TypedDict):
    EventId: NotRequired[str],
    EventName: NotRequired[str],
    ReadOnly: NotRequired[str],
    AccessKeyId: NotRequired[str],
    EventTime: NotRequired[datetime],
    EventSource: NotRequired[str],
    Username: NotRequired[str],
    Resources: NotRequired[List[ResourceTypeDef]],  # (1)
    CloudTrailEvent: NotRequired[str],
  1. See ResourceTypeDef

GetInsightSelectorsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetInsightSelectorsResponseTypeDef

def get_value() -> GetInsightSelectorsResponseTypeDef:
    return {
        "TrailARN": ...,
        "InsightSelectors": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetInsightSelectorsResponseTypeDef(TypedDict):
    TrailARN: str,
    InsightSelectors: List[InsightSelectorTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See InsightSelectorTypeDef
  2. See ResponseMetadataTypeDef

PutInsightSelectorsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import PutInsightSelectorsRequestRequestTypeDef

def get_value() -> PutInsightSelectorsRequestRequestTypeDef:
    return {
        "TrailName": ...,
        "InsightSelectors": ...,
    }
Definition
class PutInsightSelectorsRequestRequestTypeDef(TypedDict):
    TrailName: str,
    InsightSelectors: Sequence[InsightSelectorTypeDef],  # (1)
  1. See InsightSelectorTypeDef

PutInsightSelectorsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import PutInsightSelectorsResponseTypeDef

def get_value() -> PutInsightSelectorsResponseTypeDef:
    return {
        "TrailARN": ...,
        "InsightSelectors": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutInsightSelectorsResponseTypeDef(TypedDict):
    TrailARN: str,
    InsightSelectors: List[InsightSelectorTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See InsightSelectorTypeDef
  2. See ResponseMetadataTypeDef

GetQueryResultsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetQueryResultsResponseTypeDef

def get_value() -> GetQueryResultsResponseTypeDef:
    return {
        "QueryStatus": ...,
        "QueryStatistics": ...,
        "QueryResultRows": ...,
        "NextToken": ...,
        "ErrorMessage": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetQueryResultsResponseTypeDef(TypedDict):
    QueryStatus: QueryStatusType,  # (1)
    QueryStatistics: QueryStatisticsTypeDef,  # (2)
    QueryResultRows: List[List[Dict[str, str]]],
    NextToken: str,
    ErrorMessage: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See QueryStatusType
  2. See QueryStatisticsTypeDef
  3. See ResponseMetadataTypeDef

ListImportFailuresResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListImportFailuresResponseTypeDef

def get_value() -> ListImportFailuresResponseTypeDef:
    return {
        "Failures": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListImportFailuresResponseTypeDef(TypedDict):
    Failures: List[ImportFailureListItemTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ImportFailureListItemTypeDef
  2. See ResponseMetadataTypeDef

ImportSourceTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ImportSourceTypeDef

def get_value() -> ImportSourceTypeDef:
    return {
        "S3": ...,
    }
Definition
class ImportSourceTypeDef(TypedDict):
    S3: S3ImportSourceTypeDef,  # (1)
  1. See S3ImportSourceTypeDef

ListImportsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListImportsResponseTypeDef

def get_value() -> ListImportsResponseTypeDef:
    return {
        "Imports": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListImportsResponseTypeDef(TypedDict):
    Imports: List[ImportsListItemTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ImportsListItemTypeDef
  2. See ResponseMetadataTypeDef

ListImportFailuresRequestListImportFailuresPaginateTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListImportFailuresRequestListImportFailuresPaginateTypeDef

def get_value() -> ListImportFailuresRequestListImportFailuresPaginateTypeDef:
    return {
        "ImportId": ...,
    }
Definition
class ListImportFailuresRequestListImportFailuresPaginateTypeDef(TypedDict):
    ImportId: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListImportsRequestListImportsPaginateTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListImportsRequestListImportsPaginateTypeDef

def get_value() -> ListImportsRequestListImportsPaginateTypeDef:
    return {
        "Destination": ...,
    }
Definition
class ListImportsRequestListImportsPaginateTypeDef(TypedDict):
    Destination: NotRequired[str],
    ImportStatus: NotRequired[ImportStatusType],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See ImportStatusType
  2. See PaginatorConfigTypeDef

ListPublicKeysRequestListPublicKeysPaginateTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListPublicKeysRequestListPublicKeysPaginateTypeDef

def get_value() -> ListPublicKeysRequestListPublicKeysPaginateTypeDef:
    return {
        "StartTime": ...,
    }
Definition
class ListPublicKeysRequestListPublicKeysPaginateTypeDef(TypedDict):
    StartTime: NotRequired[Union[datetime, str]],
    EndTime: NotRequired[Union[datetime, str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListTagsRequestListTagsPaginateTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListTagsRequestListTagsPaginateTypeDef

def get_value() -> ListTagsRequestListTagsPaginateTypeDef:
    return {
        "ResourceIdList": ...,
    }
Definition
class ListTagsRequestListTagsPaginateTypeDef(TypedDict):
    ResourceIdList: Sequence[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListTrailsRequestListTrailsPaginateTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListTrailsRequestListTrailsPaginateTypeDef

def get_value() -> ListTrailsRequestListTrailsPaginateTypeDef:
    return {
        "PaginationConfig": ...,
    }
Definition
class ListTrailsRequestListTrailsPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListPublicKeysResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListPublicKeysResponseTypeDef

def get_value() -> ListPublicKeysResponseTypeDef:
    return {
        "PublicKeyList": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListPublicKeysResponseTypeDef(TypedDict):
    PublicKeyList: List[PublicKeyTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PublicKeyTypeDef
  2. See ResponseMetadataTypeDef

ListQueriesResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListQueriesResponseTypeDef

def get_value() -> ListQueriesResponseTypeDef:
    return {
        "Queries": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListQueriesResponseTypeDef(TypedDict):
    Queries: List[QueryTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See QueryTypeDef
  2. See ResponseMetadataTypeDef

ListTrailsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListTrailsResponseTypeDef

def get_value() -> ListTrailsResponseTypeDef:
    return {
        "Trails": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListTrailsResponseTypeDef(TypedDict):
    Trails: List[TrailInfoTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TrailInfoTypeDef
  2. See ResponseMetadataTypeDef

LookupEventsRequestLookupEventsPaginateTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import LookupEventsRequestLookupEventsPaginateTypeDef

def get_value() -> LookupEventsRequestLookupEventsPaginateTypeDef:
    return {
        "LookupAttributes": ...,
    }
Definition
class LookupEventsRequestLookupEventsPaginateTypeDef(TypedDict):
    LookupAttributes: NotRequired[Sequence[LookupAttributeTypeDef]],  # (1)
    StartTime: NotRequired[Union[datetime, str]],
    EndTime: NotRequired[Union[datetime, str]],
    EventCategory: NotRequired[EventCategoryType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See LookupAttributeTypeDef
  2. See EventCategoryType
  3. See PaginatorConfigTypeDef

LookupEventsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import LookupEventsRequestRequestTypeDef

def get_value() -> LookupEventsRequestRequestTypeDef:
    return {
        "LookupAttributes": ...,
    }
Definition
class LookupEventsRequestRequestTypeDef(TypedDict):
    LookupAttributes: NotRequired[Sequence[LookupAttributeTypeDef]],  # (1)
    StartTime: NotRequired[Union[datetime, str]],
    EndTime: NotRequired[Union[datetime, str]],
    EventCategory: NotRequired[EventCategoryType],  # (2)
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
  1. See LookupAttributeTypeDef
  2. See EventCategoryType

ListTagsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListTagsResponseTypeDef

def get_value() -> ListTagsResponseTypeDef:
    return {
        "ResourceTagList": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListTagsResponseTypeDef(TypedDict):
    ResourceTagList: List[ResourceTagTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ResourceTagTypeDef
  2. See ResponseMetadataTypeDef

CreateEventDataStoreRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import CreateEventDataStoreRequestRequestTypeDef

def get_value() -> CreateEventDataStoreRequestRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class CreateEventDataStoreRequestRequestTypeDef(TypedDict):
    Name: str,
    AdvancedEventSelectors: NotRequired[Sequence[AdvancedEventSelectorTypeDef]],  # (1)
    MultiRegionEnabled: NotRequired[bool],
    OrganizationEnabled: NotRequired[bool],
    RetentionPeriod: NotRequired[int],
    TerminationProtectionEnabled: NotRequired[bool],
    TagsList: NotRequired[Sequence[TagTypeDef]],  # (2)
  1. See AdvancedEventSelectorTypeDef
  2. See TagTypeDef

CreateEventDataStoreResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import CreateEventDataStoreResponseTypeDef

def get_value() -> CreateEventDataStoreResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
        "Name": ...,
        "Status": ...,
        "AdvancedEventSelectors": ...,
        "MultiRegionEnabled": ...,
        "OrganizationEnabled": ...,
        "RetentionPeriod": ...,
        "TerminationProtectionEnabled": ...,
        "TagsList": ...,
        "CreatedTimestamp": ...,
        "UpdatedTimestamp": ...,
        "ResponseMetadata": ...,
    }
Definition
class CreateEventDataStoreResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    Name: str,
    Status: EventDataStoreStatusType,  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorTypeDef],  # (2)
    MultiRegionEnabled: bool,
    OrganizationEnabled: bool,
    RetentionPeriod: int,
    TerminationProtectionEnabled: bool,
    TagsList: List[TagTypeDef],  # (3)
    CreatedTimestamp: datetime,
    UpdatedTimestamp: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See EventDataStoreStatusType
  2. See AdvancedEventSelectorTypeDef
  3. See TagTypeDef
  4. See ResponseMetadataTypeDef

EventDataStoreTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import EventDataStoreTypeDef

def get_value() -> EventDataStoreTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
Definition
class EventDataStoreTypeDef(TypedDict):
    EventDataStoreArn: NotRequired[str],
    Name: NotRequired[str],
    TerminationProtectionEnabled: NotRequired[bool],
    Status: NotRequired[EventDataStoreStatusType],  # (1)
    AdvancedEventSelectors: NotRequired[List[AdvancedEventSelectorTypeDef]],  # (2)
    MultiRegionEnabled: NotRequired[bool],
    OrganizationEnabled: NotRequired[bool],
    RetentionPeriod: NotRequired[int],
    CreatedTimestamp: NotRequired[datetime],
    UpdatedTimestamp: NotRequired[datetime],
  1. See EventDataStoreStatusType
  2. See AdvancedEventSelectorTypeDef

GetEventDataStoreResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetEventDataStoreResponseTypeDef

def get_value() -> GetEventDataStoreResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
        "Name": ...,
        "Status": ...,
        "AdvancedEventSelectors": ...,
        "MultiRegionEnabled": ...,
        "OrganizationEnabled": ...,
        "RetentionPeriod": ...,
        "TerminationProtectionEnabled": ...,
        "CreatedTimestamp": ...,
        "UpdatedTimestamp": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetEventDataStoreResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    Name: str,
    Status: EventDataStoreStatusType,  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorTypeDef],  # (2)
    MultiRegionEnabled: bool,
    OrganizationEnabled: bool,
    RetentionPeriod: int,
    TerminationProtectionEnabled: bool,
    CreatedTimestamp: datetime,
    UpdatedTimestamp: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See EventDataStoreStatusType
  2. See AdvancedEventSelectorTypeDef
  3. See ResponseMetadataTypeDef

RestoreEventDataStoreResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import RestoreEventDataStoreResponseTypeDef

def get_value() -> RestoreEventDataStoreResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
        "Name": ...,
        "Status": ...,
        "AdvancedEventSelectors": ...,
        "MultiRegionEnabled": ...,
        "OrganizationEnabled": ...,
        "RetentionPeriod": ...,
        "TerminationProtectionEnabled": ...,
        "CreatedTimestamp": ...,
        "UpdatedTimestamp": ...,
        "ResponseMetadata": ...,
    }
Definition
class RestoreEventDataStoreResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    Name: str,
    Status: EventDataStoreStatusType,  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorTypeDef],  # (2)
    MultiRegionEnabled: bool,
    OrganizationEnabled: bool,
    RetentionPeriod: int,
    TerminationProtectionEnabled: bool,
    CreatedTimestamp: datetime,
    UpdatedTimestamp: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See EventDataStoreStatusType
  2. See AdvancedEventSelectorTypeDef
  3. See ResponseMetadataTypeDef

SourceConfigTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import SourceConfigTypeDef

def get_value() -> SourceConfigTypeDef:
    return {
        "ApplyToAllRegions": ...,
    }
Definition
class SourceConfigTypeDef(TypedDict):
    ApplyToAllRegions: NotRequired[bool],
    AdvancedEventSelectors: NotRequired[List[AdvancedEventSelectorTypeDef]],  # (1)
  1. See AdvancedEventSelectorTypeDef

UpdateEventDataStoreRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import UpdateEventDataStoreRequestRequestTypeDef

def get_value() -> UpdateEventDataStoreRequestRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
Definition
class UpdateEventDataStoreRequestRequestTypeDef(TypedDict):
    EventDataStore: str,
    Name: NotRequired[str],
    AdvancedEventSelectors: NotRequired[Sequence[AdvancedEventSelectorTypeDef]],  # (1)
    MultiRegionEnabled: NotRequired[bool],
    OrganizationEnabled: NotRequired[bool],
    RetentionPeriod: NotRequired[int],
    TerminationProtectionEnabled: NotRequired[bool],
  1. See AdvancedEventSelectorTypeDef

UpdateEventDataStoreResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import UpdateEventDataStoreResponseTypeDef

def get_value() -> UpdateEventDataStoreResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
        "Name": ...,
        "Status": ...,
        "AdvancedEventSelectors": ...,
        "MultiRegionEnabled": ...,
        "OrganizationEnabled": ...,
        "RetentionPeriod": ...,
        "TerminationProtectionEnabled": ...,
        "CreatedTimestamp": ...,
        "UpdatedTimestamp": ...,
        "ResponseMetadata": ...,
    }
Definition
class UpdateEventDataStoreResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    Name: str,
    Status: EventDataStoreStatusType,  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorTypeDef],  # (2)
    MultiRegionEnabled: bool,
    OrganizationEnabled: bool,
    RetentionPeriod: int,
    TerminationProtectionEnabled: bool,
    CreatedTimestamp: datetime,
    UpdatedTimestamp: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See EventDataStoreStatusType
  2. See AdvancedEventSelectorTypeDef
  3. See ResponseMetadataTypeDef

GetEventSelectorsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetEventSelectorsResponseTypeDef

def get_value() -> GetEventSelectorsResponseTypeDef:
    return {
        "TrailARN": ...,
        "EventSelectors": ...,
        "AdvancedEventSelectors": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetEventSelectorsResponseTypeDef(TypedDict):
    TrailARN: str,
    EventSelectors: List[EventSelectorTypeDef],  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See EventSelectorTypeDef
  2. See AdvancedEventSelectorTypeDef
  3. See ResponseMetadataTypeDef

PutEventSelectorsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import PutEventSelectorsRequestRequestTypeDef

def get_value() -> PutEventSelectorsRequestRequestTypeDef:
    return {
        "TrailName": ...,
    }
Definition
class PutEventSelectorsRequestRequestTypeDef(TypedDict):
    TrailName: str,
    EventSelectors: NotRequired[Sequence[EventSelectorTypeDef]],  # (1)
    AdvancedEventSelectors: NotRequired[Sequence[AdvancedEventSelectorTypeDef]],  # (2)
  1. See EventSelectorTypeDef
  2. See AdvancedEventSelectorTypeDef

PutEventSelectorsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import PutEventSelectorsResponseTypeDef

def get_value() -> PutEventSelectorsResponseTypeDef:
    return {
        "TrailARN": ...,
        "EventSelectors": ...,
        "AdvancedEventSelectors": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutEventSelectorsResponseTypeDef(TypedDict):
    TrailARN: str,
    EventSelectors: List[EventSelectorTypeDef],  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See EventSelectorTypeDef
  2. See AdvancedEventSelectorTypeDef
  3. See ResponseMetadataTypeDef

LookupEventsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import LookupEventsResponseTypeDef

def get_value() -> LookupEventsResponseTypeDef:
    return {
        "Events": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class LookupEventsResponseTypeDef(TypedDict):
    Events: List[EventTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EventTypeDef
  2. See ResponseMetadataTypeDef

GetImportResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetImportResponseTypeDef

def get_value() -> GetImportResponseTypeDef:
    return {
        "ImportId": ...,
        "Destinations": ...,
        "ImportSource": ...,
        "StartEventTime": ...,
        "EndEventTime": ...,
        "ImportStatus": ...,
        "CreatedTimestamp": ...,
        "UpdatedTimestamp": ...,
        "ImportStatistics": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetImportResponseTypeDef(TypedDict):
    ImportId: str,
    Destinations: List[str],
    ImportSource: ImportSourceTypeDef,  # (1)
    StartEventTime: datetime,
    EndEventTime: datetime,
    ImportStatus: ImportStatusType,  # (2)
    CreatedTimestamp: datetime,
    UpdatedTimestamp: datetime,
    ImportStatistics: ImportStatisticsTypeDef,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See ImportSourceTypeDef
  2. See ImportStatusType
  3. See ImportStatisticsTypeDef
  4. See ResponseMetadataTypeDef

StartImportRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import StartImportRequestRequestTypeDef

def get_value() -> StartImportRequestRequestTypeDef:
    return {
        "Destinations": ...,
    }
Definition
class StartImportRequestRequestTypeDef(TypedDict):
    Destinations: NotRequired[Sequence[str]],
    ImportSource: NotRequired[ImportSourceTypeDef],  # (1)
    StartEventTime: NotRequired[Union[datetime, str]],
    EndEventTime: NotRequired[Union[datetime, str]],
    ImportId: NotRequired[str],
  1. See ImportSourceTypeDef

StartImportResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import StartImportResponseTypeDef

def get_value() -> StartImportResponseTypeDef:
    return {
        "ImportId": ...,
        "Destinations": ...,
        "ImportSource": ...,
        "StartEventTime": ...,
        "EndEventTime": ...,
        "ImportStatus": ...,
        "CreatedTimestamp": ...,
        "UpdatedTimestamp": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartImportResponseTypeDef(TypedDict):
    ImportId: str,
    Destinations: List[str],
    ImportSource: ImportSourceTypeDef,  # (1)
    StartEventTime: datetime,
    EndEventTime: datetime,
    ImportStatus: ImportStatusType,  # (2)
    CreatedTimestamp: datetime,
    UpdatedTimestamp: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See ImportSourceTypeDef
  2. See ImportStatusType
  3. See ResponseMetadataTypeDef

StopImportResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import StopImportResponseTypeDef

def get_value() -> StopImportResponseTypeDef:
    return {
        "ImportId": ...,
        "ImportSource": ...,
        "Destinations": ...,
        "ImportStatus": ...,
        "CreatedTimestamp": ...,
        "UpdatedTimestamp": ...,
        "StartEventTime": ...,
        "EndEventTime": ...,
        "ImportStatistics": ...,
        "ResponseMetadata": ...,
    }
Definition
class StopImportResponseTypeDef(TypedDict):
    ImportId: str,
    ImportSource: ImportSourceTypeDef,  # (1)
    Destinations: List[str],
    ImportStatus: ImportStatusType,  # (2)
    CreatedTimestamp: datetime,
    UpdatedTimestamp: datetime,
    StartEventTime: datetime,
    EndEventTime: datetime,
    ImportStatistics: ImportStatisticsTypeDef,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See ImportSourceTypeDef
  2. See ImportStatusType
  3. See ImportStatisticsTypeDef
  4. See ResponseMetadataTypeDef

ListEventDataStoresResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import ListEventDataStoresResponseTypeDef

def get_value() -> ListEventDataStoresResponseTypeDef:
    return {
        "EventDataStores": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListEventDataStoresResponseTypeDef(TypedDict):
    EventDataStores: List[EventDataStoreTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EventDataStoreTypeDef
  2. See ResponseMetadataTypeDef

GetChannelResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail.type_defs import GetChannelResponseTypeDef

def get_value() -> GetChannelResponseTypeDef:
    return {
        "ChannelArn": ...,
        "Name": ...,
        "Source": ...,
        "SourceConfig": ...,
        "Destinations": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetChannelResponseTypeDef(TypedDict):
    ChannelArn: str,
    Name: str,
    Source: str,
    SourceConfig: SourceConfigTypeDef,  # (1)
    Destinations: List[DestinationTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See SourceConfigTypeDef
  2. See DestinationTypeDef
  3. See ResponseMetadataTypeDef