Type definitions#
Index > CloudTrail > Type definitions
Auto-generated documentation for CloudTrail type annotations stubs module types-boto3-cloudtrail.
TimestampTypeDef#
# TimestampTypeDef Union usage example
from types_boto3_cloudtrail.type_defs import TimestampTypeDef
def get_value() -> TimestampTypeDef:
    return ...
# TimestampTypeDef definition
TimestampTypeDef = Union[
    datetime.datetime,
    str,
]AdvancedFieldSelectorUnionTypeDef#
# AdvancedFieldSelectorUnionTypeDef Union usage example
from types_boto3_cloudtrail.type_defs import AdvancedFieldSelectorUnionTypeDef
def get_value() -> AdvancedFieldSelectorUnionTypeDef:
    return ...
# AdvancedFieldSelectorUnionTypeDef definition
AdvancedFieldSelectorUnionTypeDef = Union[
    AdvancedFieldSelectorTypeDef,  # (1)
    AdvancedFieldSelectorOutputTypeDef,  # (2)
]ContextKeySelectorUnionTypeDef#
# ContextKeySelectorUnionTypeDef Union usage example
from types_boto3_cloudtrail.type_defs import ContextKeySelectorUnionTypeDef
def get_value() -> ContextKeySelectorUnionTypeDef:
    return ...
# ContextKeySelectorUnionTypeDef definition
ContextKeySelectorUnionTypeDef = Union[
    ContextKeySelectorTypeDef,  # (1)
    ContextKeySelectorOutputTypeDef,  # (2)
]DataResourceUnionTypeDef#
# DataResourceUnionTypeDef Union usage example
from types_boto3_cloudtrail.type_defs import DataResourceUnionTypeDef
def get_value() -> DataResourceUnionTypeDef:
    return ...
# DataResourceUnionTypeDef definition
DataResourceUnionTypeDef = Union[
    DataResourceTypeDef,  # (1)
    DataResourceOutputTypeDef,  # (2)
]AdvancedEventSelectorUnionTypeDef#
# AdvancedEventSelectorUnionTypeDef Union usage example
from types_boto3_cloudtrail.type_defs import AdvancedEventSelectorUnionTypeDef
def get_value() -> AdvancedEventSelectorUnionTypeDef:
    return ...
# AdvancedEventSelectorUnionTypeDef definition
AdvancedEventSelectorUnionTypeDef = Union[
    AdvancedEventSelectorTypeDef,  # (1)
    AdvancedEventSelectorOutputTypeDef,  # (2)
]EventSelectorUnionTypeDef#
# EventSelectorUnionTypeDef Union usage example
from types_boto3_cloudtrail.type_defs import EventSelectorUnionTypeDef
def get_value() -> EventSelectorUnionTypeDef:
    return ...
# EventSelectorUnionTypeDef definition
EventSelectorUnionTypeDef = Union[
    EventSelectorTypeDef,  # (1)
    EventSelectorOutputTypeDef,  # (2)
]TagTypeDef#
# TagTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import TagTypeDef
def get_value() -> TagTypeDef:
    return {
        "Key": ...,
    }
# TagTypeDef definition
class TagTypeDef(TypedDict):
    Key: str,
    Value: NotRequired[str],AdvancedFieldSelectorOutputTypeDef#
# AdvancedFieldSelectorOutputTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import AdvancedFieldSelectorOutputTypeDef
def get_value() -> AdvancedFieldSelectorOutputTypeDef:
    return {
        "Field": ...,
    }
# AdvancedFieldSelectorOutputTypeDef definition
class AdvancedFieldSelectorOutputTypeDef(TypedDict):
    Field: str,
    Equals: NotRequired[List[str]],
    StartsWith: NotRequired[List[str]],
    EndsWith: NotRequired[List[str]],
    NotEquals: NotRequired[List[str]],
    NotStartsWith: NotRequired[List[str]],
    NotEndsWith: NotRequired[List[str]],AdvancedFieldSelectorTypeDef#
# AdvancedFieldSelectorTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import AdvancedFieldSelectorTypeDef
def get_value() -> AdvancedFieldSelectorTypeDef:
    return {
        "Field": ...,
    }
# AdvancedFieldSelectorTypeDef 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]],CancelQueryRequestTypeDef#
# CancelQueryRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CancelQueryRequestTypeDef
def get_value() -> CancelQueryRequestTypeDef:
    return {
        "QueryId": ...,
    }
# CancelQueryRequestTypeDef definition
class CancelQueryRequestTypeDef(TypedDict):
    QueryId: str,
    EventDataStore: NotRequired[str],
    EventDataStoreOwnerAccountId: NotRequired[str],ResponseMetadataTypeDef#
# ResponseMetadataTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
    }
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],ChannelTypeDef#
# ChannelTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ChannelTypeDef
def get_value() -> ChannelTypeDef:
    return {
        "ChannelArn": ...,
    }
# ChannelTypeDef definition
class ChannelTypeDef(TypedDict):
    ChannelArn: NotRequired[str],
    Name: NotRequired[str],ContextKeySelectorOutputTypeDef#
# ContextKeySelectorOutputTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ContextKeySelectorOutputTypeDef
def get_value() -> ContextKeySelectorOutputTypeDef:
    return {
        "Type": ...,
    }
# ContextKeySelectorOutputTypeDef definition
class ContextKeySelectorOutputTypeDef(TypedDict):
    Type: TypeType,  # (1)
    Equals: List[str],- See TypeType
ContextKeySelectorTypeDef#
# ContextKeySelectorTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ContextKeySelectorTypeDef
def get_value() -> ContextKeySelectorTypeDef:
    return {
        "Type": ...,
    }
# ContextKeySelectorTypeDef definition
class ContextKeySelectorTypeDef(TypedDict):
    Type: TypeType,  # (1)
    Equals: Sequence[str],- See TypeType
DestinationTypeDef#
# DestinationTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DestinationTypeDef
def get_value() -> DestinationTypeDef:
    return {
        "Type": ...,
    }
# DestinationTypeDef definition
class DestinationTypeDef(TypedDict):
    Type: DestinationTypeType,  # (1)
    Location: str,RequestWidgetTypeDef#
# RequestWidgetTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import RequestWidgetTypeDef
def get_value() -> RequestWidgetTypeDef:
    return {
        "QueryStatement": ...,
    }
# RequestWidgetTypeDef definition
class RequestWidgetTypeDef(TypedDict):
    QueryStatement: str,
    ViewProperties: Mapping[str, str],
    QueryParameters: NotRequired[Sequence[str]],WidgetTypeDef#
# WidgetTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import WidgetTypeDef
def get_value() -> WidgetTypeDef:
    return {
        "QueryAlias": ...,
    }
# WidgetTypeDef definition
class WidgetTypeDef(TypedDict):
    QueryAlias: NotRequired[str],
    QueryStatement: NotRequired[str],
    QueryParameters: NotRequired[List[str]],
    ViewProperties: NotRequired[Dict[str, str]],DashboardDetailTypeDef#
# DashboardDetailTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DashboardDetailTypeDef
def get_value() -> DashboardDetailTypeDef:
    return {
        "DashboardArn": ...,
    }
# DashboardDetailTypeDef definition
class DashboardDetailTypeDef(TypedDict):
    DashboardArn: NotRequired[str],
    Type: NotRequired[DashboardTypeType],  # (1)DataResourceOutputTypeDef#
# DataResourceOutputTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DataResourceOutputTypeDef
def get_value() -> DataResourceOutputTypeDef:
    return {
        "Type": ...,
    }
# DataResourceOutputTypeDef definition
class DataResourceOutputTypeDef(TypedDict):
    Type: NotRequired[str],
    Values: NotRequired[List[str]],DataResourceTypeDef#
# DataResourceTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DataResourceTypeDef
def get_value() -> DataResourceTypeDef:
    return {
        "Type": ...,
    }
# DataResourceTypeDef definition
class DataResourceTypeDef(TypedDict):
    Type: NotRequired[str],
    Values: NotRequired[Sequence[str]],DeleteChannelRequestTypeDef#
# DeleteChannelRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DeleteChannelRequestTypeDef
def get_value() -> DeleteChannelRequestTypeDef:
    return {
        "Channel": ...,
    }
# DeleteChannelRequestTypeDef definition
class DeleteChannelRequestTypeDef(TypedDict):
    Channel: str,DeleteDashboardRequestTypeDef#
# DeleteDashboardRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DeleteDashboardRequestTypeDef
def get_value() -> DeleteDashboardRequestTypeDef:
    return {
        "DashboardId": ...,
    }
# DeleteDashboardRequestTypeDef definition
class DeleteDashboardRequestTypeDef(TypedDict):
    DashboardId: str,DeleteEventDataStoreRequestTypeDef#
# DeleteEventDataStoreRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DeleteEventDataStoreRequestTypeDef
def get_value() -> DeleteEventDataStoreRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# DeleteEventDataStoreRequestTypeDef definition
class DeleteEventDataStoreRequestTypeDef(TypedDict):
    EventDataStore: str,DeleteResourcePolicyRequestTypeDef#
# DeleteResourcePolicyRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DeleteResourcePolicyRequestTypeDef
def get_value() -> DeleteResourcePolicyRequestTypeDef:
    return {
        "ResourceArn": ...,
    }
# DeleteResourcePolicyRequestTypeDef definition
class DeleteResourcePolicyRequestTypeDef(TypedDict):
    ResourceArn: str,DeleteTrailRequestTypeDef#
# DeleteTrailRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DeleteTrailRequestTypeDef
def get_value() -> DeleteTrailRequestTypeDef:
    return {
        "Name": ...,
    }
# DeleteTrailRequestTypeDef definition
class DeleteTrailRequestTypeDef(TypedDict):
    Name: str,DeregisterOrganizationDelegatedAdminRequestTypeDef#
# DeregisterOrganizationDelegatedAdminRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DeregisterOrganizationDelegatedAdminRequestTypeDef
def get_value() -> DeregisterOrganizationDelegatedAdminRequestTypeDef:
    return {
        "DelegatedAdminAccountId": ...,
    }
# DeregisterOrganizationDelegatedAdminRequestTypeDef definition
class DeregisterOrganizationDelegatedAdminRequestTypeDef(TypedDict):
    DelegatedAdminAccountId: str,DescribeQueryRequestTypeDef#
# DescribeQueryRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DescribeQueryRequestTypeDef
def get_value() -> DescribeQueryRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# DescribeQueryRequestTypeDef definition
class DescribeQueryRequestTypeDef(TypedDict):
    EventDataStore: NotRequired[str],
    QueryId: NotRequired[str],
    QueryAlias: NotRequired[str],
    RefreshId: NotRequired[str],
    EventDataStoreOwnerAccountId: NotRequired[str],QueryStatisticsForDescribeQueryTypeDef#
# QueryStatisticsForDescribeQueryTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import QueryStatisticsForDescribeQueryTypeDef
def get_value() -> QueryStatisticsForDescribeQueryTypeDef:
    return {
        "EventsMatched": ...,
    }
# QueryStatisticsForDescribeQueryTypeDef definition
class QueryStatisticsForDescribeQueryTypeDef(TypedDict):
    EventsMatched: NotRequired[int],
    EventsScanned: NotRequired[int],
    BytesScanned: NotRequired[int],
    ExecutionTimeInMillis: NotRequired[int],
    CreationTime: NotRequired[datetime.datetime],DescribeTrailsRequestTypeDef#
# DescribeTrailsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DescribeTrailsRequestTypeDef
def get_value() -> DescribeTrailsRequestTypeDef:
    return {
        "trailNameList": ...,
    }
# DescribeTrailsRequestTypeDef definition
class DescribeTrailsRequestTypeDef(TypedDict):
    trailNameList: NotRequired[Sequence[str]],
    includeShadowTrails: NotRequired[bool],TrailTypeDef#
# TrailTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import TrailTypeDef
def get_value() -> TrailTypeDef:
    return {
        "Name": ...,
    }
# TrailTypeDef 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],DisableFederationRequestTypeDef#
# DisableFederationRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DisableFederationRequestTypeDef
def get_value() -> DisableFederationRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# DisableFederationRequestTypeDef definition
class DisableFederationRequestTypeDef(TypedDict):
    EventDataStore: str,EnableFederationRequestTypeDef#
# EnableFederationRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import EnableFederationRequestTypeDef
def get_value() -> EnableFederationRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# EnableFederationRequestTypeDef definition
class EnableFederationRequestTypeDef(TypedDict):
    EventDataStore: str,
    FederationRoleArn: str,ResourceTypeDef#
# ResourceTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ResourceTypeDef
def get_value() -> ResourceTypeDef:
    return {
        "ResourceType": ...,
    }
# ResourceTypeDef definition
class ResourceTypeDef(TypedDict):
    ResourceType: NotRequired[str],
    ResourceName: NotRequired[str],GenerateQueryRequestTypeDef#
# GenerateQueryRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GenerateQueryRequestTypeDef
def get_value() -> GenerateQueryRequestTypeDef:
    return {
        "EventDataStores": ...,
    }
# GenerateQueryRequestTypeDef definition
class GenerateQueryRequestTypeDef(TypedDict):
    EventDataStores: Sequence[str],
    Prompt: str,GetChannelRequestTypeDef#
# GetChannelRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetChannelRequestTypeDef
def get_value() -> GetChannelRequestTypeDef:
    return {
        "Channel": ...,
    }
# GetChannelRequestTypeDef definition
class GetChannelRequestTypeDef(TypedDict):
    Channel: str,IngestionStatusTypeDef#
# IngestionStatusTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import IngestionStatusTypeDef
def get_value() -> IngestionStatusTypeDef:
    return {
        "LatestIngestionSuccessTime": ...,
    }
# IngestionStatusTypeDef definition
class IngestionStatusTypeDef(TypedDict):
    LatestIngestionSuccessTime: NotRequired[datetime.datetime],
    LatestIngestionSuccessEventID: NotRequired[str],
    LatestIngestionErrorCode: NotRequired[str],
    LatestIngestionAttemptTime: NotRequired[datetime.datetime],
    LatestIngestionAttemptEventID: NotRequired[str],GetDashboardRequestTypeDef#
# GetDashboardRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetDashboardRequestTypeDef
def get_value() -> GetDashboardRequestTypeDef:
    return {
        "DashboardId": ...,
    }
# GetDashboardRequestTypeDef definition
class GetDashboardRequestTypeDef(TypedDict):
    DashboardId: str,GetEventConfigurationRequestTypeDef#
# GetEventConfigurationRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetEventConfigurationRequestTypeDef
def get_value() -> GetEventConfigurationRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# GetEventConfigurationRequestTypeDef definition
class GetEventConfigurationRequestTypeDef(TypedDict):
    EventDataStore: NotRequired[str],GetEventDataStoreRequestTypeDef#
# GetEventDataStoreRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetEventDataStoreRequestTypeDef
def get_value() -> GetEventDataStoreRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# GetEventDataStoreRequestTypeDef definition
class GetEventDataStoreRequestTypeDef(TypedDict):
    EventDataStore: str,PartitionKeyTypeDef#
# PartitionKeyTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PartitionKeyTypeDef
def get_value() -> PartitionKeyTypeDef:
    return {
        "Name": ...,
    }
# PartitionKeyTypeDef definition
class PartitionKeyTypeDef(TypedDict):
    Name: str,
    Type: str,GetEventSelectorsRequestTypeDef#
# GetEventSelectorsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetEventSelectorsRequestTypeDef
def get_value() -> GetEventSelectorsRequestTypeDef:
    return {
        "TrailName": ...,
    }
# GetEventSelectorsRequestTypeDef definition
class GetEventSelectorsRequestTypeDef(TypedDict):
    TrailName: str,GetImportRequestTypeDef#
# GetImportRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetImportRequestTypeDef
def get_value() -> GetImportRequestTypeDef:
    return {
        "ImportId": ...,
    }
# GetImportRequestTypeDef definition
class GetImportRequestTypeDef(TypedDict):
    ImportId: str,ImportStatisticsTypeDef#
# ImportStatisticsTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ImportStatisticsTypeDef
def get_value() -> ImportStatisticsTypeDef:
    return {
        "PrefixesFound": ...,
    }
# ImportStatisticsTypeDef definition
class ImportStatisticsTypeDef(TypedDict):
    PrefixesFound: NotRequired[int],
    PrefixesCompleted: NotRequired[int],
    FilesCompleted: NotRequired[int],
    EventsCompleted: NotRequired[int],
    FailedEntries: NotRequired[int],GetInsightSelectorsRequestTypeDef#
# GetInsightSelectorsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetInsightSelectorsRequestTypeDef
def get_value() -> GetInsightSelectorsRequestTypeDef:
    return {
        "TrailName": ...,
    }
# GetInsightSelectorsRequestTypeDef definition
class GetInsightSelectorsRequestTypeDef(TypedDict):
    TrailName: NotRequired[str],
    EventDataStore: NotRequired[str],InsightSelectorTypeDef#
# InsightSelectorTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import InsightSelectorTypeDef
def get_value() -> InsightSelectorTypeDef:
    return {
        "InsightType": ...,
    }
# InsightSelectorTypeDef definition
class InsightSelectorTypeDef(TypedDict):
    InsightType: NotRequired[InsightTypeType],  # (1)- See InsightTypeType
GetQueryResultsRequestTypeDef#
# GetQueryResultsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetQueryResultsRequestTypeDef
def get_value() -> GetQueryResultsRequestTypeDef:
    return {
        "QueryId": ...,
    }
# GetQueryResultsRequestTypeDef definition
class GetQueryResultsRequestTypeDef(TypedDict):
    QueryId: str,
    EventDataStore: NotRequired[str],
    NextToken: NotRequired[str],
    MaxQueryResults: NotRequired[int],
    EventDataStoreOwnerAccountId: NotRequired[str],QueryStatisticsTypeDef#
# QueryStatisticsTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import QueryStatisticsTypeDef
def get_value() -> QueryStatisticsTypeDef:
    return {
        "ResultsCount": ...,
    }
# QueryStatisticsTypeDef definition
class QueryStatisticsTypeDef(TypedDict):
    ResultsCount: NotRequired[int],
    TotalResultsCount: NotRequired[int],
    BytesScanned: NotRequired[int],GetResourcePolicyRequestTypeDef#
# GetResourcePolicyRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetResourcePolicyRequestTypeDef
def get_value() -> GetResourcePolicyRequestTypeDef:
    return {
        "ResourceArn": ...,
    }
# GetResourcePolicyRequestTypeDef definition
class GetResourcePolicyRequestTypeDef(TypedDict):
    ResourceArn: str,GetTrailRequestTypeDef#
# GetTrailRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetTrailRequestTypeDef
def get_value() -> GetTrailRequestTypeDef:
    return {
        "Name": ...,
    }
# GetTrailRequestTypeDef definition
class GetTrailRequestTypeDef(TypedDict):
    Name: str,GetTrailStatusRequestTypeDef#
# GetTrailStatusRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetTrailStatusRequestTypeDef
def get_value() -> GetTrailStatusRequestTypeDef:
    return {
        "Name": ...,
    }
# GetTrailStatusRequestTypeDef definition
class GetTrailStatusRequestTypeDef(TypedDict):
    Name: str,ImportFailureListItemTypeDef#
# ImportFailureListItemTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ImportFailureListItemTypeDef
def get_value() -> ImportFailureListItemTypeDef:
    return {
        "Location": ...,
    }
# ImportFailureListItemTypeDef definition
class ImportFailureListItemTypeDef(TypedDict):
    Location: NotRequired[str],
    Status: NotRequired[ImportFailureStatusType],  # (1)
    ErrorType: NotRequired[str],
    ErrorMessage: NotRequired[str],
    LastUpdatedTime: NotRequired[datetime.datetime],S3ImportSourceTypeDef#
# S3ImportSourceTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import S3ImportSourceTypeDef
def get_value() -> S3ImportSourceTypeDef:
    return {
        "S3LocationUri": ...,
    }
# S3ImportSourceTypeDef definition
class S3ImportSourceTypeDef(TypedDict):
    S3LocationUri: str,
    S3BucketRegion: str,
    S3BucketAccessRoleArn: str,ImportsListItemTypeDef#
# ImportsListItemTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ImportsListItemTypeDef
def get_value() -> ImportsListItemTypeDef:
    return {
        "ImportId": ...,
    }
# ImportsListItemTypeDef definition
class ImportsListItemTypeDef(TypedDict):
    ImportId: NotRequired[str],
    ImportStatus: NotRequired[ImportStatusType],  # (1)
    Destinations: NotRequired[List[str]],
    CreatedTimestamp: NotRequired[datetime.datetime],
    UpdatedTimestamp: NotRequired[datetime.datetime],- See ImportStatusType
ListChannelsRequestTypeDef#
# ListChannelsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListChannelsRequestTypeDef
def get_value() -> ListChannelsRequestTypeDef:
    return {
        "MaxResults": ...,
    }
# ListChannelsRequestTypeDef definition
class ListChannelsRequestTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],ListDashboardsRequestTypeDef#
# ListDashboardsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListDashboardsRequestTypeDef
def get_value() -> ListDashboardsRequestTypeDef:
    return {
        "NamePrefix": ...,
    }
# ListDashboardsRequestTypeDef definition
class ListDashboardsRequestTypeDef(TypedDict):
    NamePrefix: NotRequired[str],
    Type: NotRequired[DashboardTypeType],  # (1)
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],ListEventDataStoresRequestTypeDef#
# ListEventDataStoresRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListEventDataStoresRequestTypeDef
def get_value() -> ListEventDataStoresRequestTypeDef:
    return {
        "NextToken": ...,
    }
# ListEventDataStoresRequestTypeDef definition
class ListEventDataStoresRequestTypeDef(TypedDict):
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],PaginatorConfigTypeDef#
# PaginatorConfigTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PaginatorConfigTypeDef
def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],ListImportFailuresRequestTypeDef#
# ListImportFailuresRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListImportFailuresRequestTypeDef
def get_value() -> ListImportFailuresRequestTypeDef:
    return {
        "ImportId": ...,
    }
# ListImportFailuresRequestTypeDef definition
class ListImportFailuresRequestTypeDef(TypedDict):
    ImportId: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],ListImportsRequestTypeDef#
# ListImportsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListImportsRequestTypeDef
def get_value() -> ListImportsRequestTypeDef:
    return {
        "MaxResults": ...,
    }
# ListImportsRequestTypeDef definition
class ListImportsRequestTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    Destination: NotRequired[str],
    ImportStatus: NotRequired[ImportStatusType],  # (1)
    NextToken: NotRequired[str],- See ImportStatusType
PublicKeyTypeDef#
# PublicKeyTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PublicKeyTypeDef
def get_value() -> PublicKeyTypeDef:
    return {
        "Value": ...,
    }
# PublicKeyTypeDef definition
class PublicKeyTypeDef(TypedDict):
    Value: NotRequired[bytes],
    ValidityStartTime: NotRequired[datetime.datetime],
    ValidityEndTime: NotRequired[datetime.datetime],
    Fingerprint: NotRequired[str],QueryTypeDef#
# QueryTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import QueryTypeDef
def get_value() -> QueryTypeDef:
    return {
        "QueryId": ...,
    }
# QueryTypeDef definition
class QueryTypeDef(TypedDict):
    QueryId: NotRequired[str],
    QueryStatus: NotRequired[QueryStatusType],  # (1)
    CreationTime: NotRequired[datetime.datetime],- See QueryStatusType
ListTagsRequestTypeDef#
# ListTagsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListTagsRequestTypeDef
def get_value() -> ListTagsRequestTypeDef:
    return {
        "ResourceIdList": ...,
    }
# ListTagsRequestTypeDef definition
class ListTagsRequestTypeDef(TypedDict):
    ResourceIdList: Sequence[str],
    NextToken: NotRequired[str],ListTrailsRequestTypeDef#
# ListTrailsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListTrailsRequestTypeDef
def get_value() -> ListTrailsRequestTypeDef:
    return {
        "NextToken": ...,
    }
# ListTrailsRequestTypeDef definition
class ListTrailsRequestTypeDef(TypedDict):
    NextToken: NotRequired[str],TrailInfoTypeDef#
# TrailInfoTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import TrailInfoTypeDef
def get_value() -> TrailInfoTypeDef:
    return {
        "TrailARN": ...,
    }
# TrailInfoTypeDef definition
class TrailInfoTypeDef(TypedDict):
    TrailARN: NotRequired[str],
    Name: NotRequired[str],
    HomeRegion: NotRequired[str],LookupAttributeTypeDef#
# LookupAttributeTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import LookupAttributeTypeDef
def get_value() -> LookupAttributeTypeDef:
    return {
        "AttributeKey": ...,
    }
# LookupAttributeTypeDef definition
class LookupAttributeTypeDef(TypedDict):
    AttributeKey: LookupAttributeKeyType,  # (1)
    AttributeValue: str,PutResourcePolicyRequestTypeDef#
# PutResourcePolicyRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PutResourcePolicyRequestTypeDef
def get_value() -> PutResourcePolicyRequestTypeDef:
    return {
        "ResourceArn": ...,
    }
# PutResourcePolicyRequestTypeDef definition
class PutResourcePolicyRequestTypeDef(TypedDict):
    ResourceArn: str,
    ResourcePolicy: str,RefreshScheduleFrequencyTypeDef#
# RefreshScheduleFrequencyTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import RefreshScheduleFrequencyTypeDef
def get_value() -> RefreshScheduleFrequencyTypeDef:
    return {
        "Unit": ...,
    }
# RefreshScheduleFrequencyTypeDef definition
class RefreshScheduleFrequencyTypeDef(TypedDict):
    Unit: NotRequired[RefreshScheduleFrequencyUnitType],  # (1)
    Value: NotRequired[int],RegisterOrganizationDelegatedAdminRequestTypeDef#
# RegisterOrganizationDelegatedAdminRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import RegisterOrganizationDelegatedAdminRequestTypeDef
def get_value() -> RegisterOrganizationDelegatedAdminRequestTypeDef:
    return {
        "MemberAccountId": ...,
    }
# RegisterOrganizationDelegatedAdminRequestTypeDef definition
class RegisterOrganizationDelegatedAdminRequestTypeDef(TypedDict):
    MemberAccountId: str,RestoreEventDataStoreRequestTypeDef#
# RestoreEventDataStoreRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import RestoreEventDataStoreRequestTypeDef
def get_value() -> RestoreEventDataStoreRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# RestoreEventDataStoreRequestTypeDef definition
class RestoreEventDataStoreRequestTypeDef(TypedDict):
    EventDataStore: str,SearchSampleQueriesRequestTypeDef#
# SearchSampleQueriesRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import SearchSampleQueriesRequestTypeDef
def get_value() -> SearchSampleQueriesRequestTypeDef:
    return {
        "SearchPhrase": ...,
    }
# SearchSampleQueriesRequestTypeDef definition
class SearchSampleQueriesRequestTypeDef(TypedDict):
    SearchPhrase: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],SearchSampleQueriesSearchResultTypeDef#
# SearchSampleQueriesSearchResultTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import SearchSampleQueriesSearchResultTypeDef
def get_value() -> SearchSampleQueriesSearchResultTypeDef:
    return {
        "Name": ...,
    }
# SearchSampleQueriesSearchResultTypeDef definition
class SearchSampleQueriesSearchResultTypeDef(TypedDict):
    Name: NotRequired[str],
    Description: NotRequired[str],
    SQL: NotRequired[str],
    Relevance: NotRequired[float],StartDashboardRefreshRequestTypeDef#
# StartDashboardRefreshRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StartDashboardRefreshRequestTypeDef
def get_value() -> StartDashboardRefreshRequestTypeDef:
    return {
        "DashboardId": ...,
    }
# StartDashboardRefreshRequestTypeDef definition
class StartDashboardRefreshRequestTypeDef(TypedDict):
    DashboardId: str,
    QueryParameterValues: NotRequired[Mapping[str, str]],StartEventDataStoreIngestionRequestTypeDef#
# StartEventDataStoreIngestionRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StartEventDataStoreIngestionRequestTypeDef
def get_value() -> StartEventDataStoreIngestionRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# StartEventDataStoreIngestionRequestTypeDef definition
class StartEventDataStoreIngestionRequestTypeDef(TypedDict):
    EventDataStore: str,StartLoggingRequestTypeDef#
# StartLoggingRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StartLoggingRequestTypeDef
def get_value() -> StartLoggingRequestTypeDef:
    return {
        "Name": ...,
    }
# StartLoggingRequestTypeDef definition
class StartLoggingRequestTypeDef(TypedDict):
    Name: str,StartQueryRequestTypeDef#
# StartQueryRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StartQueryRequestTypeDef
def get_value() -> StartQueryRequestTypeDef:
    return {
        "QueryStatement": ...,
    }
# StartQueryRequestTypeDef definition
class StartQueryRequestTypeDef(TypedDict):
    QueryStatement: NotRequired[str],
    DeliveryS3Uri: NotRequired[str],
    QueryAlias: NotRequired[str],
    QueryParameters: NotRequired[Sequence[str]],
    EventDataStoreOwnerAccountId: NotRequired[str],StopEventDataStoreIngestionRequestTypeDef#
# StopEventDataStoreIngestionRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StopEventDataStoreIngestionRequestTypeDef
def get_value() -> StopEventDataStoreIngestionRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# StopEventDataStoreIngestionRequestTypeDef definition
class StopEventDataStoreIngestionRequestTypeDef(TypedDict):
    EventDataStore: str,StopImportRequestTypeDef#
# StopImportRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StopImportRequestTypeDef
def get_value() -> StopImportRequestTypeDef:
    return {
        "ImportId": ...,
    }
# StopImportRequestTypeDef definition
class StopImportRequestTypeDef(TypedDict):
    ImportId: str,StopLoggingRequestTypeDef#
# StopLoggingRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StopLoggingRequestTypeDef
def get_value() -> StopLoggingRequestTypeDef:
    return {
        "Name": ...,
    }
# StopLoggingRequestTypeDef definition
class StopLoggingRequestTypeDef(TypedDict):
    Name: str,UpdateTrailRequestTypeDef#
# UpdateTrailRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import UpdateTrailRequestTypeDef
def get_value() -> UpdateTrailRequestTypeDef:
    return {
        "Name": ...,
    }
# UpdateTrailRequestTypeDef definition
class UpdateTrailRequestTypeDef(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],AddTagsRequestTypeDef#
# AddTagsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import AddTagsRequestTypeDef
def get_value() -> AddTagsRequestTypeDef:
    return {
        "ResourceId": ...,
    }
# AddTagsRequestTypeDef definition
class AddTagsRequestTypeDef(TypedDict):
    ResourceId: str,
    TagsList: Sequence[TagTypeDef],  # (1)- See Sequence[TagTypeDef]
CreateTrailRequestTypeDef#
# CreateTrailRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CreateTrailRequestTypeDef
def get_value() -> CreateTrailRequestTypeDef:
    return {
        "Name": ...,
    }
# CreateTrailRequestTypeDef definition
class CreateTrailRequestTypeDef(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)- See Sequence[TagTypeDef]
RemoveTagsRequestTypeDef#
# RemoveTagsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import RemoveTagsRequestTypeDef
def get_value() -> RemoveTagsRequestTypeDef:
    return {
        "ResourceId": ...,
    }
# RemoveTagsRequestTypeDef definition
class RemoveTagsRequestTypeDef(TypedDict):
    ResourceId: str,
    TagsList: Sequence[TagTypeDef],  # (1)- See Sequence[TagTypeDef]
ResourceTagTypeDef#
# ResourceTagTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ResourceTagTypeDef
def get_value() -> ResourceTagTypeDef:
    return {
        "ResourceId": ...,
    }
# ResourceTagTypeDef definition
class ResourceTagTypeDef(TypedDict):
    ResourceId: NotRequired[str],
    TagsList: NotRequired[List[TagTypeDef]],  # (1)- See List[TagTypeDef]
AdvancedEventSelectorOutputTypeDef#
# AdvancedEventSelectorOutputTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import AdvancedEventSelectorOutputTypeDef
def get_value() -> AdvancedEventSelectorOutputTypeDef:
    return {
        "Name": ...,
    }
# AdvancedEventSelectorOutputTypeDef definition
class AdvancedEventSelectorOutputTypeDef(TypedDict):
    FieldSelectors: List[AdvancedFieldSelectorOutputTypeDef],  # (1)
    Name: NotRequired[str],- See List[AdvancedFieldSelectorOutputTypeDef]
CancelQueryResponseTypeDef#
# CancelQueryResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CancelQueryResponseTypeDef
def get_value() -> CancelQueryResponseTypeDef:
    return {
        "QueryId": ...,
    }
# CancelQueryResponseTypeDef definition
class CancelQueryResponseTypeDef(TypedDict):
    QueryId: str,
    QueryStatus: QueryStatusType,  # (1)
    EventDataStoreOwnerAccountId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)CreateTrailResponseTypeDef#
# CreateTrailResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CreateTrailResponseTypeDef
def get_value() -> CreateTrailResponseTypeDef:
    return {
        "Name": ...,
    }
# CreateTrailResponseTypeDef 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)DisableFederationResponseTypeDef#
# DisableFederationResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DisableFederationResponseTypeDef
def get_value() -> DisableFederationResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# DisableFederationResponseTypeDef definition
class DisableFederationResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    FederationStatus: FederationStatusType,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)EnableFederationResponseTypeDef#
# EnableFederationResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import EnableFederationResponseTypeDef
def get_value() -> EnableFederationResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# EnableFederationResponseTypeDef definition
class EnableFederationResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    FederationStatus: FederationStatusType,  # (1)
    FederationRoleArn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)GenerateQueryResponseTypeDef#
# GenerateQueryResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GenerateQueryResponseTypeDef
def get_value() -> GenerateQueryResponseTypeDef:
    return {
        "QueryStatement": ...,
    }
# GenerateQueryResponseTypeDef definition
class GenerateQueryResponseTypeDef(TypedDict):
    QueryStatement: str,
    QueryAlias: str,
    EventDataStoreOwnerAccountId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)GetResourcePolicyResponseTypeDef#
# GetResourcePolicyResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetResourcePolicyResponseTypeDef
def get_value() -> GetResourcePolicyResponseTypeDef:
    return {
        "ResourceArn": ...,
    }
# GetResourcePolicyResponseTypeDef definition
class GetResourcePolicyResponseTypeDef(TypedDict):
    ResourceArn: str,
    ResourcePolicy: str,
    DelegatedAdminResourcePolicy: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)GetTrailStatusResponseTypeDef#
# GetTrailStatusResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetTrailStatusResponseTypeDef
def get_value() -> GetTrailStatusResponseTypeDef:
    return {
        "IsLogging": ...,
    }
# GetTrailStatusResponseTypeDef definition
class GetTrailStatusResponseTypeDef(TypedDict):
    IsLogging: bool,
    LatestDeliveryError: str,
    LatestNotificationError: str,
    LatestDeliveryTime: datetime.datetime,
    LatestNotificationTime: datetime.datetime,
    StartLoggingTime: datetime.datetime,
    StopLoggingTime: datetime.datetime,
    LatestCloudWatchLogsDeliveryError: str,
    LatestCloudWatchLogsDeliveryTime: datetime.datetime,
    LatestDigestDeliveryTime: datetime.datetime,
    LatestDigestDeliveryError: str,
    LatestDeliveryAttemptTime: str,
    LatestNotificationAttemptTime: str,
    LatestNotificationAttemptSucceeded: str,
    LatestDeliveryAttemptSucceeded: str,
    TimeLoggingStarted: str,
    TimeLoggingStopped: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)ListInsightsMetricDataResponseTypeDef#
# ListInsightsMetricDataResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListInsightsMetricDataResponseTypeDef
def get_value() -> ListInsightsMetricDataResponseTypeDef:
    return {
        "EventSource": ...,
    }
# ListInsightsMetricDataResponseTypeDef definition
class ListInsightsMetricDataResponseTypeDef(TypedDict):
    EventSource: str,
    EventName: str,
    InsightType: InsightTypeType,  # (1)
    ErrorCode: str,
    Timestamps: List[datetime.datetime],
    Values: List[float],
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],PutResourcePolicyResponseTypeDef#
# PutResourcePolicyResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PutResourcePolicyResponseTypeDef
def get_value() -> PutResourcePolicyResponseTypeDef:
    return {
        "ResourceArn": ...,
    }
# PutResourcePolicyResponseTypeDef definition
class PutResourcePolicyResponseTypeDef(TypedDict):
    ResourceArn: str,
    ResourcePolicy: str,
    DelegatedAdminResourcePolicy: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)StartDashboardRefreshResponseTypeDef#
# StartDashboardRefreshResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StartDashboardRefreshResponseTypeDef
def get_value() -> StartDashboardRefreshResponseTypeDef:
    return {
        "RefreshId": ...,
    }
# StartDashboardRefreshResponseTypeDef definition
class StartDashboardRefreshResponseTypeDef(TypedDict):
    RefreshId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)StartQueryResponseTypeDef#
# StartQueryResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StartQueryResponseTypeDef
def get_value() -> StartQueryResponseTypeDef:
    return {
        "QueryId": ...,
    }
# StartQueryResponseTypeDef definition
class StartQueryResponseTypeDef(TypedDict):
    QueryId: str,
    EventDataStoreOwnerAccountId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)UpdateTrailResponseTypeDef#
# UpdateTrailResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import UpdateTrailResponseTypeDef
def get_value() -> UpdateTrailResponseTypeDef:
    return {
        "Name": ...,
    }
# UpdateTrailResponseTypeDef 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)ListChannelsResponseTypeDef#
# ListChannelsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListChannelsResponseTypeDef
def get_value() -> ListChannelsResponseTypeDef:
    return {
        "Channels": ...,
    }
# ListChannelsResponseTypeDef definition
class ListChannelsResponseTypeDef(TypedDict):
    Channels: List[ChannelTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[ChannelTypeDef]
- See ResponseMetadataTypeDef
GetEventConfigurationResponseTypeDef#
# GetEventConfigurationResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetEventConfigurationResponseTypeDef
def get_value() -> GetEventConfigurationResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# GetEventConfigurationResponseTypeDef definition
class GetEventConfigurationResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    MaxEventSize: MaxEventSizeType,  # (1)
    ContextKeySelectors: List[ContextKeySelectorOutputTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)- See MaxEventSizeType
- See List[ContextKeySelectorOutputTypeDef]
- See ResponseMetadataTypeDef
PutEventConfigurationResponseTypeDef#
# PutEventConfigurationResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PutEventConfigurationResponseTypeDef
def get_value() -> PutEventConfigurationResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# PutEventConfigurationResponseTypeDef definition
class PutEventConfigurationResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    MaxEventSize: MaxEventSizeType,  # (1)
    ContextKeySelectors: List[ContextKeySelectorOutputTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)- See MaxEventSizeType
- See List[ContextKeySelectorOutputTypeDef]
- See ResponseMetadataTypeDef
CreateChannelRequestTypeDef#
# CreateChannelRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CreateChannelRequestTypeDef
def get_value() -> CreateChannelRequestTypeDef:
    return {
        "Name": ...,
    }
# CreateChannelRequestTypeDef definition
class CreateChannelRequestTypeDef(TypedDict):
    Name: str,
    Source: str,
    Destinations: Sequence[DestinationTypeDef],  # (1)
    Tags: NotRequired[Sequence[TagTypeDef]],  # (2)- See Sequence[DestinationTypeDef]
- See Sequence[TagTypeDef]
CreateChannelResponseTypeDef#
# CreateChannelResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CreateChannelResponseTypeDef
def get_value() -> CreateChannelResponseTypeDef:
    return {
        "ChannelArn": ...,
    }
# CreateChannelResponseTypeDef definition
class CreateChannelResponseTypeDef(TypedDict):
    ChannelArn: str,
    Name: str,
    Source: str,
    Destinations: List[DestinationTypeDef],  # (1)
    Tags: List[TagTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)- See List[DestinationTypeDef]
- See List[TagTypeDef]
- See ResponseMetadataTypeDef
UpdateChannelRequestTypeDef#
# UpdateChannelRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import UpdateChannelRequestTypeDef
def get_value() -> UpdateChannelRequestTypeDef:
    return {
        "Channel": ...,
    }
# UpdateChannelRequestTypeDef definition
class UpdateChannelRequestTypeDef(TypedDict):
    Channel: str,
    Destinations: NotRequired[Sequence[DestinationTypeDef]],  # (1)
    Name: NotRequired[str],- See Sequence[DestinationTypeDef]
UpdateChannelResponseTypeDef#
# UpdateChannelResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import UpdateChannelResponseTypeDef
def get_value() -> UpdateChannelResponseTypeDef:
    return {
        "ChannelArn": ...,
    }
# UpdateChannelResponseTypeDef definition
class UpdateChannelResponseTypeDef(TypedDict):
    ChannelArn: str,
    Name: str,
    Source: str,
    Destinations: List[DestinationTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)- See List[DestinationTypeDef]
- See ResponseMetadataTypeDef
ListDashboardsResponseTypeDef#
# ListDashboardsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListDashboardsResponseTypeDef
def get_value() -> ListDashboardsResponseTypeDef:
    return {
        "Dashboards": ...,
    }
# ListDashboardsResponseTypeDef definition
class ListDashboardsResponseTypeDef(TypedDict):
    Dashboards: List[DashboardDetailTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[DashboardDetailTypeDef]
- See ResponseMetadataTypeDef
EventSelectorOutputTypeDef#
# EventSelectorOutputTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import EventSelectorOutputTypeDef
def get_value() -> EventSelectorOutputTypeDef:
    return {
        "ReadWriteType": ...,
    }
# EventSelectorOutputTypeDef definition
class EventSelectorOutputTypeDef(TypedDict):
    ReadWriteType: NotRequired[ReadWriteTypeType],  # (1)
    IncludeManagementEvents: NotRequired[bool],
    DataResources: NotRequired[List[DataResourceOutputTypeDef]],  # (2)
    ExcludeManagementEventSources: NotRequired[List[str]],- See ReadWriteTypeType
- See List[DataResourceOutputTypeDef]
DescribeQueryResponseTypeDef#
# DescribeQueryResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DescribeQueryResponseTypeDef
def get_value() -> DescribeQueryResponseTypeDef:
    return {
        "QueryId": ...,
    }
# DescribeQueryResponseTypeDef definition
class DescribeQueryResponseTypeDef(TypedDict):
    QueryId: str,
    QueryString: str,
    QueryStatus: QueryStatusType,  # (1)
    QueryStatistics: QueryStatisticsForDescribeQueryTypeDef,  # (2)
    ErrorMessage: str,
    DeliveryS3Uri: str,
    DeliveryStatus: DeliveryStatusType,  # (3)
    Prompt: str,
    EventDataStoreOwnerAccountId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)- See QueryStatusType
- See QueryStatisticsForDescribeQueryTypeDef
- See DeliveryStatusType
- See ResponseMetadataTypeDef
DescribeTrailsResponseTypeDef#
# DescribeTrailsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import DescribeTrailsResponseTypeDef
def get_value() -> DescribeTrailsResponseTypeDef:
    return {
        "trailList": ...,
    }
# DescribeTrailsResponseTypeDef definition
class DescribeTrailsResponseTypeDef(TypedDict):
    trailList: List[TrailTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)- See List[TrailTypeDef]
- See ResponseMetadataTypeDef
GetTrailResponseTypeDef#
# GetTrailResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetTrailResponseTypeDef
def get_value() -> GetTrailResponseTypeDef:
    return {
        "Trail": ...,
    }
# GetTrailResponseTypeDef definition
class GetTrailResponseTypeDef(TypedDict):
    Trail: TrailTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)- See TrailTypeDef
- See ResponseMetadataTypeDef
EventTypeDef#
# EventTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import EventTypeDef
def get_value() -> EventTypeDef:
    return {
        "EventId": ...,
    }
# EventTypeDef definition
class EventTypeDef(TypedDict):
    EventId: NotRequired[str],
    EventName: NotRequired[str],
    ReadOnly: NotRequired[str],
    AccessKeyId: NotRequired[str],
    EventTime: NotRequired[datetime.datetime],
    EventSource: NotRequired[str],
    Username: NotRequired[str],
    Resources: NotRequired[List[ResourceTypeDef]],  # (1)
    CloudTrailEvent: NotRequired[str],- See List[ResourceTypeDef]
GetInsightSelectorsResponseTypeDef#
# GetInsightSelectorsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetInsightSelectorsResponseTypeDef
def get_value() -> GetInsightSelectorsResponseTypeDef:
    return {
        "TrailARN": ...,
    }
# GetInsightSelectorsResponseTypeDef definition
class GetInsightSelectorsResponseTypeDef(TypedDict):
    TrailARN: str,
    InsightSelectors: List[InsightSelectorTypeDef],  # (1)
    EventDataStoreArn: str,
    InsightsDestination: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)- See List[InsightSelectorTypeDef]
- See ResponseMetadataTypeDef
PutInsightSelectorsRequestTypeDef#
# PutInsightSelectorsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PutInsightSelectorsRequestTypeDef
def get_value() -> PutInsightSelectorsRequestTypeDef:
    return {
        "InsightSelectors": ...,
    }
# PutInsightSelectorsRequestTypeDef definition
class PutInsightSelectorsRequestTypeDef(TypedDict):
    InsightSelectors: Sequence[InsightSelectorTypeDef],  # (1)
    TrailName: NotRequired[str],
    EventDataStore: NotRequired[str],
    InsightsDestination: NotRequired[str],- See Sequence[InsightSelectorTypeDef]
PutInsightSelectorsResponseTypeDef#
# PutInsightSelectorsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PutInsightSelectorsResponseTypeDef
def get_value() -> PutInsightSelectorsResponseTypeDef:
    return {
        "TrailARN": ...,
    }
# PutInsightSelectorsResponseTypeDef definition
class PutInsightSelectorsResponseTypeDef(TypedDict):
    TrailARN: str,
    InsightSelectors: List[InsightSelectorTypeDef],  # (1)
    EventDataStoreArn: str,
    InsightsDestination: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)- See List[InsightSelectorTypeDef]
- See ResponseMetadataTypeDef
GetQueryResultsResponseTypeDef#
# GetQueryResultsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetQueryResultsResponseTypeDef
def get_value() -> GetQueryResultsResponseTypeDef:
    return {
        "QueryStatus": ...,
    }
# GetQueryResultsResponseTypeDef definition
class GetQueryResultsResponseTypeDef(TypedDict):
    QueryStatus: QueryStatusType,  # (1)
    QueryStatistics: QueryStatisticsTypeDef,  # (2)
    QueryResultRows: List[List[Dict[str, str]]],
    ErrorMessage: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    NextToken: NotRequired[str],ListImportFailuresResponseTypeDef#
# ListImportFailuresResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListImportFailuresResponseTypeDef
def get_value() -> ListImportFailuresResponseTypeDef:
    return {
        "Failures": ...,
    }
# ListImportFailuresResponseTypeDef definition
class ListImportFailuresResponseTypeDef(TypedDict):
    Failures: List[ImportFailureListItemTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[ImportFailureListItemTypeDef]
- See ResponseMetadataTypeDef
ImportSourceTypeDef#
# ImportSourceTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ImportSourceTypeDef
def get_value() -> ImportSourceTypeDef:
    return {
        "S3": ...,
    }
# ImportSourceTypeDef definition
class ImportSourceTypeDef(TypedDict):
    S3: S3ImportSourceTypeDef,  # (1)ListImportsResponseTypeDef#
# ListImportsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListImportsResponseTypeDef
def get_value() -> ListImportsResponseTypeDef:
    return {
        "Imports": ...,
    }
# ListImportsResponseTypeDef definition
class ListImportsResponseTypeDef(TypedDict):
    Imports: List[ImportsListItemTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[ImportsListItemTypeDef]
- See ResponseMetadataTypeDef
ListImportFailuresRequestPaginateTypeDef#
# ListImportFailuresRequestPaginateTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListImportFailuresRequestPaginateTypeDef
def get_value() -> ListImportFailuresRequestPaginateTypeDef:
    return {
        "ImportId": ...,
    }
# ListImportFailuresRequestPaginateTypeDef definition
class ListImportFailuresRequestPaginateTypeDef(TypedDict):
    ImportId: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)ListImportsRequestPaginateTypeDef#
# ListImportsRequestPaginateTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListImportsRequestPaginateTypeDef
def get_value() -> ListImportsRequestPaginateTypeDef:
    return {
        "Destination": ...,
    }
# ListImportsRequestPaginateTypeDef definition
class ListImportsRequestPaginateTypeDef(TypedDict):
    Destination: NotRequired[str],
    ImportStatus: NotRequired[ImportStatusType],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)ListTagsRequestPaginateTypeDef#
# ListTagsRequestPaginateTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListTagsRequestPaginateTypeDef
def get_value() -> ListTagsRequestPaginateTypeDef:
    return {
        "ResourceIdList": ...,
    }
# ListTagsRequestPaginateTypeDef definition
class ListTagsRequestPaginateTypeDef(TypedDict):
    ResourceIdList: Sequence[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)ListTrailsRequestPaginateTypeDef#
# ListTrailsRequestPaginateTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListTrailsRequestPaginateTypeDef
def get_value() -> ListTrailsRequestPaginateTypeDef:
    return {
        "PaginationConfig": ...,
    }
# ListTrailsRequestPaginateTypeDef definition
class ListTrailsRequestPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)ListInsightsMetricDataRequestTypeDef#
# ListInsightsMetricDataRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListInsightsMetricDataRequestTypeDef
def get_value() -> ListInsightsMetricDataRequestTypeDef:
    return {
        "EventSource": ...,
    }
# ListInsightsMetricDataRequestTypeDef definition
class ListInsightsMetricDataRequestTypeDef(TypedDict):
    EventSource: str,
    EventName: str,
    InsightType: InsightTypeType,  # (1)
    ErrorCode: NotRequired[str],
    StartTime: NotRequired[TimestampTypeDef],
    EndTime: NotRequired[TimestampTypeDef],
    Period: NotRequired[int],
    DataType: NotRequired[InsightsMetricDataTypeType],  # (2)
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],ListPublicKeysRequestPaginateTypeDef#
# ListPublicKeysRequestPaginateTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListPublicKeysRequestPaginateTypeDef
def get_value() -> ListPublicKeysRequestPaginateTypeDef:
    return {
        "StartTime": ...,
    }
# ListPublicKeysRequestPaginateTypeDef definition
class ListPublicKeysRequestPaginateTypeDef(TypedDict):
    StartTime: NotRequired[TimestampTypeDef],
    EndTime: NotRequired[TimestampTypeDef],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)ListPublicKeysRequestTypeDef#
# ListPublicKeysRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListPublicKeysRequestTypeDef
def get_value() -> ListPublicKeysRequestTypeDef:
    return {
        "StartTime": ...,
    }
# ListPublicKeysRequestTypeDef definition
class ListPublicKeysRequestTypeDef(TypedDict):
    StartTime: NotRequired[TimestampTypeDef],
    EndTime: NotRequired[TimestampTypeDef],
    NextToken: NotRequired[str],ListQueriesRequestTypeDef#
# ListQueriesRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListQueriesRequestTypeDef
def get_value() -> ListQueriesRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# ListQueriesRequestTypeDef definition
class ListQueriesRequestTypeDef(TypedDict):
    EventDataStore: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
    StartTime: NotRequired[TimestampTypeDef],
    EndTime: NotRequired[TimestampTypeDef],
    QueryStatus: NotRequired[QueryStatusType],  # (1)- See QueryStatusType
ListPublicKeysResponseTypeDef#
# ListPublicKeysResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListPublicKeysResponseTypeDef
def get_value() -> ListPublicKeysResponseTypeDef:
    return {
        "PublicKeyList": ...,
    }
# ListPublicKeysResponseTypeDef definition
class ListPublicKeysResponseTypeDef(TypedDict):
    PublicKeyList: List[PublicKeyTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[PublicKeyTypeDef]
- See ResponseMetadataTypeDef
ListQueriesResponseTypeDef#
# ListQueriesResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListQueriesResponseTypeDef
def get_value() -> ListQueriesResponseTypeDef:
    return {
        "Queries": ...,
    }
# ListQueriesResponseTypeDef definition
class ListQueriesResponseTypeDef(TypedDict):
    Queries: List[QueryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[QueryTypeDef]
- See ResponseMetadataTypeDef
ListTrailsResponseTypeDef#
# ListTrailsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListTrailsResponseTypeDef
def get_value() -> ListTrailsResponseTypeDef:
    return {
        "Trails": ...,
    }
# ListTrailsResponseTypeDef definition
class ListTrailsResponseTypeDef(TypedDict):
    Trails: List[TrailInfoTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[TrailInfoTypeDef]
- See ResponseMetadataTypeDef
LookupEventsRequestPaginateTypeDef#
# LookupEventsRequestPaginateTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import LookupEventsRequestPaginateTypeDef
def get_value() -> LookupEventsRequestPaginateTypeDef:
    return {
        "LookupAttributes": ...,
    }
# LookupEventsRequestPaginateTypeDef definition
class LookupEventsRequestPaginateTypeDef(TypedDict):
    LookupAttributes: NotRequired[Sequence[LookupAttributeTypeDef]],  # (1)
    StartTime: NotRequired[TimestampTypeDef],
    EndTime: NotRequired[TimestampTypeDef],
    EventCategory: NotRequired[EventCategoryType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)- See Sequence[LookupAttributeTypeDef]
- See EventCategoryType
- See PaginatorConfigTypeDef
LookupEventsRequestTypeDef#
# LookupEventsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import LookupEventsRequestTypeDef
def get_value() -> LookupEventsRequestTypeDef:
    return {
        "LookupAttributes": ...,
    }
# LookupEventsRequestTypeDef definition
class LookupEventsRequestTypeDef(TypedDict):
    LookupAttributes: NotRequired[Sequence[LookupAttributeTypeDef]],  # (1)
    StartTime: NotRequired[TimestampTypeDef],
    EndTime: NotRequired[TimestampTypeDef],
    EventCategory: NotRequired[EventCategoryType],  # (2)
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],- See Sequence[LookupAttributeTypeDef]
- See EventCategoryType
RefreshScheduleTypeDef#
# RefreshScheduleTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import RefreshScheduleTypeDef
def get_value() -> RefreshScheduleTypeDef:
    return {
        "Frequency": ...,
    }
# RefreshScheduleTypeDef definition
class RefreshScheduleTypeDef(TypedDict):
    Frequency: NotRequired[RefreshScheduleFrequencyTypeDef],  # (1)
    Status: NotRequired[RefreshScheduleStatusType],  # (2)
    TimeOfDay: NotRequired[str],SearchSampleQueriesResponseTypeDef#
# SearchSampleQueriesResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import SearchSampleQueriesResponseTypeDef
def get_value() -> SearchSampleQueriesResponseTypeDef:
    return {
        "SearchResults": ...,
    }
# SearchSampleQueriesResponseTypeDef definition
class SearchSampleQueriesResponseTypeDef(TypedDict):
    SearchResults: List[SearchSampleQueriesSearchResultTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[SearchSampleQueriesSearchResultTypeDef]
- See ResponseMetadataTypeDef
ListTagsResponseTypeDef#
# ListTagsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListTagsResponseTypeDef
def get_value() -> ListTagsResponseTypeDef:
    return {
        "ResourceTagList": ...,
    }
# ListTagsResponseTypeDef definition
class ListTagsResponseTypeDef(TypedDict):
    ResourceTagList: List[ResourceTagTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[ResourceTagTypeDef]
- See ResponseMetadataTypeDef
CreateEventDataStoreResponseTypeDef#
# CreateEventDataStoreResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CreateEventDataStoreResponseTypeDef
def get_value() -> CreateEventDataStoreResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# CreateEventDataStoreResponseTypeDef definition
class CreateEventDataStoreResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    Name: str,
    Status: EventDataStoreStatusType,  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorOutputTypeDef],  # (2)
    MultiRegionEnabled: bool,
    OrganizationEnabled: bool,
    RetentionPeriod: int,
    TerminationProtectionEnabled: bool,
    TagsList: List[TagTypeDef],  # (3)
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    KmsKeyId: str,
    BillingMode: BillingModeType,  # (4)
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)- See EventDataStoreStatusType
- See List[AdvancedEventSelectorOutputTypeDef]
- See List[TagTypeDef]
- See BillingModeType
- See ResponseMetadataTypeDef
EventDataStoreTypeDef#
# EventDataStoreTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import EventDataStoreTypeDef
def get_value() -> EventDataStoreTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# EventDataStoreTypeDef definition
class EventDataStoreTypeDef(TypedDict):
    EventDataStoreArn: NotRequired[str],
    Name: NotRequired[str],
    TerminationProtectionEnabled: NotRequired[bool],
    Status: NotRequired[EventDataStoreStatusType],  # (1)
    AdvancedEventSelectors: NotRequired[List[AdvancedEventSelectorOutputTypeDef]],  # (2)
    MultiRegionEnabled: NotRequired[bool],
    OrganizationEnabled: NotRequired[bool],
    RetentionPeriod: NotRequired[int],
    CreatedTimestamp: NotRequired[datetime.datetime],
    UpdatedTimestamp: NotRequired[datetime.datetime],- See EventDataStoreStatusType
- See List[AdvancedEventSelectorOutputTypeDef]
GetEventDataStoreResponseTypeDef#
# GetEventDataStoreResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetEventDataStoreResponseTypeDef
def get_value() -> GetEventDataStoreResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# GetEventDataStoreResponseTypeDef definition
class GetEventDataStoreResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    Name: str,
    Status: EventDataStoreStatusType,  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorOutputTypeDef],  # (2)
    MultiRegionEnabled: bool,
    OrganizationEnabled: bool,
    RetentionPeriod: int,
    TerminationProtectionEnabled: bool,
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    KmsKeyId: str,
    BillingMode: BillingModeType,  # (3)
    FederationStatus: FederationStatusType,  # (4)
    FederationRoleArn: str,
    PartitionKeys: List[PartitionKeyTypeDef],  # (5)
    ResponseMetadata: ResponseMetadataTypeDef,  # (6)- See EventDataStoreStatusType
- See List[AdvancedEventSelectorOutputTypeDef]
- See BillingModeType
- See FederationStatusType
- See List[PartitionKeyTypeDef]
- See ResponseMetadataTypeDef
RestoreEventDataStoreResponseTypeDef#
# RestoreEventDataStoreResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import RestoreEventDataStoreResponseTypeDef
def get_value() -> RestoreEventDataStoreResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# RestoreEventDataStoreResponseTypeDef definition
class RestoreEventDataStoreResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    Name: str,
    Status: EventDataStoreStatusType,  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorOutputTypeDef],  # (2)
    MultiRegionEnabled: bool,
    OrganizationEnabled: bool,
    RetentionPeriod: int,
    TerminationProtectionEnabled: bool,
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    KmsKeyId: str,
    BillingMode: BillingModeType,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)- See EventDataStoreStatusType
- See List[AdvancedEventSelectorOutputTypeDef]
- See BillingModeType
- See ResponseMetadataTypeDef
SourceConfigTypeDef#
# SourceConfigTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import SourceConfigTypeDef
def get_value() -> SourceConfigTypeDef:
    return {
        "ApplyToAllRegions": ...,
    }
# SourceConfigTypeDef definition
class SourceConfigTypeDef(TypedDict):
    ApplyToAllRegions: NotRequired[bool],
    AdvancedEventSelectors: NotRequired[List[AdvancedEventSelectorOutputTypeDef]],  # (1)- See List[AdvancedEventSelectorOutputTypeDef]
UpdateEventDataStoreResponseTypeDef#
# UpdateEventDataStoreResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import UpdateEventDataStoreResponseTypeDef
def get_value() -> UpdateEventDataStoreResponseTypeDef:
    return {
        "EventDataStoreArn": ...,
    }
# UpdateEventDataStoreResponseTypeDef definition
class UpdateEventDataStoreResponseTypeDef(TypedDict):
    EventDataStoreArn: str,
    Name: str,
    Status: EventDataStoreStatusType,  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorOutputTypeDef],  # (2)
    MultiRegionEnabled: bool,
    OrganizationEnabled: bool,
    RetentionPeriod: int,
    TerminationProtectionEnabled: bool,
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    KmsKeyId: str,
    BillingMode: BillingModeType,  # (3)
    FederationStatus: FederationStatusType,  # (4)
    FederationRoleArn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)- See EventDataStoreStatusType
- See List[AdvancedEventSelectorOutputTypeDef]
- See BillingModeType
- See FederationStatusType
- See ResponseMetadataTypeDef
AdvancedEventSelectorTypeDef#
# AdvancedEventSelectorTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import AdvancedEventSelectorTypeDef
def get_value() -> AdvancedEventSelectorTypeDef:
    return {
        "Name": ...,
    }
# AdvancedEventSelectorTypeDef definition
class AdvancedEventSelectorTypeDef(TypedDict):
    FieldSelectors: Sequence[AdvancedFieldSelectorUnionTypeDef],  # (1)
    Name: NotRequired[str],- See Sequence[AdvancedFieldSelectorUnionTypeDef]
PutEventConfigurationRequestTypeDef#
# PutEventConfigurationRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PutEventConfigurationRequestTypeDef
def get_value() -> PutEventConfigurationRequestTypeDef:
    return {
        "MaxEventSize": ...,
    }
# PutEventConfigurationRequestTypeDef definition
class PutEventConfigurationRequestTypeDef(TypedDict):
    MaxEventSize: MaxEventSizeType,  # (1)
    ContextKeySelectors: Sequence[ContextKeySelectorUnionTypeDef],  # (2)
    EventDataStore: NotRequired[str],- See MaxEventSizeType
- See Sequence[ContextKeySelectorUnionTypeDef]
GetEventSelectorsResponseTypeDef#
# GetEventSelectorsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetEventSelectorsResponseTypeDef
def get_value() -> GetEventSelectorsResponseTypeDef:
    return {
        "TrailARN": ...,
    }
# GetEventSelectorsResponseTypeDef definition
class GetEventSelectorsResponseTypeDef(TypedDict):
    TrailARN: str,
    EventSelectors: List[EventSelectorOutputTypeDef],  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorOutputTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)- See List[EventSelectorOutputTypeDef]
- See List[AdvancedEventSelectorOutputTypeDef]
- See ResponseMetadataTypeDef
PutEventSelectorsResponseTypeDef#
# PutEventSelectorsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PutEventSelectorsResponseTypeDef
def get_value() -> PutEventSelectorsResponseTypeDef:
    return {
        "TrailARN": ...,
    }
# PutEventSelectorsResponseTypeDef definition
class PutEventSelectorsResponseTypeDef(TypedDict):
    TrailARN: str,
    EventSelectors: List[EventSelectorOutputTypeDef],  # (1)
    AdvancedEventSelectors: List[AdvancedEventSelectorOutputTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)- See List[EventSelectorOutputTypeDef]
- See List[AdvancedEventSelectorOutputTypeDef]
- See ResponseMetadataTypeDef
EventSelectorTypeDef#
# EventSelectorTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import EventSelectorTypeDef
def get_value() -> EventSelectorTypeDef:
    return {
        "ReadWriteType": ...,
    }
# EventSelectorTypeDef definition
class EventSelectorTypeDef(TypedDict):
    ReadWriteType: NotRequired[ReadWriteTypeType],  # (1)
    IncludeManagementEvents: NotRequired[bool],
    DataResources: NotRequired[Sequence[DataResourceUnionTypeDef]],  # (2)
    ExcludeManagementEventSources: NotRequired[Sequence[str]],- See ReadWriteTypeType
- See Sequence[DataResourceUnionTypeDef]
LookupEventsResponseTypeDef#
# LookupEventsResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import LookupEventsResponseTypeDef
def get_value() -> LookupEventsResponseTypeDef:
    return {
        "Events": ...,
    }
# LookupEventsResponseTypeDef definition
class LookupEventsResponseTypeDef(TypedDict):
    Events: List[EventTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[EventTypeDef]
- See ResponseMetadataTypeDef
GetImportResponseTypeDef#
# GetImportResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetImportResponseTypeDef
def get_value() -> GetImportResponseTypeDef:
    return {
        "ImportId": ...,
    }
# GetImportResponseTypeDef definition
class GetImportResponseTypeDef(TypedDict):
    ImportId: str,
    Destinations: List[str],
    ImportSource: ImportSourceTypeDef,  # (1)
    StartEventTime: datetime.datetime,
    EndEventTime: datetime.datetime,
    ImportStatus: ImportStatusType,  # (2)
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    ImportStatistics: ImportStatisticsTypeDef,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)- See ImportSourceTypeDef
- See ImportStatusType
- See ImportStatisticsTypeDef
- See ResponseMetadataTypeDef
StartImportRequestTypeDef#
# StartImportRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StartImportRequestTypeDef
def get_value() -> StartImportRequestTypeDef:
    return {
        "Destinations": ...,
    }
# StartImportRequestTypeDef definition
class StartImportRequestTypeDef(TypedDict):
    Destinations: NotRequired[Sequence[str]],
    ImportSource: NotRequired[ImportSourceTypeDef],  # (1)
    StartEventTime: NotRequired[TimestampTypeDef],
    EndEventTime: NotRequired[TimestampTypeDef],
    ImportId: NotRequired[str],StartImportResponseTypeDef#
# StartImportResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StartImportResponseTypeDef
def get_value() -> StartImportResponseTypeDef:
    return {
        "ImportId": ...,
    }
# StartImportResponseTypeDef definition
class StartImportResponseTypeDef(TypedDict):
    ImportId: str,
    Destinations: List[str],
    ImportSource: ImportSourceTypeDef,  # (1)
    StartEventTime: datetime.datetime,
    EndEventTime: datetime.datetime,
    ImportStatus: ImportStatusType,  # (2)
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)StopImportResponseTypeDef#
# StopImportResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import StopImportResponseTypeDef
def get_value() -> StopImportResponseTypeDef:
    return {
        "ImportId": ...,
    }
# StopImportResponseTypeDef definition
class StopImportResponseTypeDef(TypedDict):
    ImportId: str,
    ImportSource: ImportSourceTypeDef,  # (1)
    Destinations: List[str],
    ImportStatus: ImportStatusType,  # (2)
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    StartEventTime: datetime.datetime,
    EndEventTime: datetime.datetime,
    ImportStatistics: ImportStatisticsTypeDef,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)- See ImportSourceTypeDef
- See ImportStatusType
- See ImportStatisticsTypeDef
- See ResponseMetadataTypeDef
CreateDashboardRequestTypeDef#
# CreateDashboardRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CreateDashboardRequestTypeDef
def get_value() -> CreateDashboardRequestTypeDef:
    return {
        "Name": ...,
    }
# CreateDashboardRequestTypeDef definition
class CreateDashboardRequestTypeDef(TypedDict):
    Name: str,
    RefreshSchedule: NotRequired[RefreshScheduleTypeDef],  # (1)
    TagsList: NotRequired[Sequence[TagTypeDef]],  # (2)
    TerminationProtectionEnabled: NotRequired[bool],
    Widgets: NotRequired[Sequence[RequestWidgetTypeDef]],  # (3)- See RefreshScheduleTypeDef
- See Sequence[TagTypeDef]
- See Sequence[RequestWidgetTypeDef]
CreateDashboardResponseTypeDef#
# CreateDashboardResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CreateDashboardResponseTypeDef
def get_value() -> CreateDashboardResponseTypeDef:
    return {
        "DashboardArn": ...,
    }
# CreateDashboardResponseTypeDef definition
class CreateDashboardResponseTypeDef(TypedDict):
    DashboardArn: str,
    Name: str,
    Type: DashboardTypeType,  # (1)
    Widgets: List[WidgetTypeDef],  # (2)
    TagsList: List[TagTypeDef],  # (3)
    RefreshSchedule: RefreshScheduleTypeDef,  # (4)
    TerminationProtectionEnabled: bool,
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)- See DashboardTypeType
- See List[WidgetTypeDef]
- See List[TagTypeDef]
- See RefreshScheduleTypeDef
- See ResponseMetadataTypeDef
GetDashboardResponseTypeDef#
# GetDashboardResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetDashboardResponseTypeDef
def get_value() -> GetDashboardResponseTypeDef:
    return {
        "DashboardArn": ...,
    }
# GetDashboardResponseTypeDef definition
class GetDashboardResponseTypeDef(TypedDict):
    DashboardArn: str,
    Type: DashboardTypeType,  # (1)
    Status: DashboardStatusType,  # (2)
    Widgets: List[WidgetTypeDef],  # (3)
    RefreshSchedule: RefreshScheduleTypeDef,  # (4)
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    LastRefreshId: str,
    LastRefreshFailureReason: str,
    TerminationProtectionEnabled: bool,
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)- See DashboardTypeType
- See DashboardStatusType
- See List[WidgetTypeDef]
- See RefreshScheduleTypeDef
- See ResponseMetadataTypeDef
UpdateDashboardRequestTypeDef#
# UpdateDashboardRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import UpdateDashboardRequestTypeDef
def get_value() -> UpdateDashboardRequestTypeDef:
    return {
        "DashboardId": ...,
    }
# UpdateDashboardRequestTypeDef definition
class UpdateDashboardRequestTypeDef(TypedDict):
    DashboardId: str,
    Widgets: NotRequired[Sequence[RequestWidgetTypeDef]],  # (1)
    RefreshSchedule: NotRequired[RefreshScheduleTypeDef],  # (2)
    TerminationProtectionEnabled: NotRequired[bool],- See Sequence[RequestWidgetTypeDef]
- See RefreshScheduleTypeDef
UpdateDashboardResponseTypeDef#
# UpdateDashboardResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import UpdateDashboardResponseTypeDef
def get_value() -> UpdateDashboardResponseTypeDef:
    return {
        "DashboardArn": ...,
    }
# UpdateDashboardResponseTypeDef definition
class UpdateDashboardResponseTypeDef(TypedDict):
    DashboardArn: str,
    Name: str,
    Type: DashboardTypeType,  # (1)
    Widgets: List[WidgetTypeDef],  # (2)
    RefreshSchedule: RefreshScheduleTypeDef,  # (3)
    TerminationProtectionEnabled: bool,
    CreatedTimestamp: datetime.datetime,
    UpdatedTimestamp: datetime.datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)- See DashboardTypeType
- See List[WidgetTypeDef]
- See RefreshScheduleTypeDef
- See ResponseMetadataTypeDef
ListEventDataStoresResponseTypeDef#
# ListEventDataStoresResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import ListEventDataStoresResponseTypeDef
def get_value() -> ListEventDataStoresResponseTypeDef:
    return {
        "EventDataStores": ...,
    }
# ListEventDataStoresResponseTypeDef definition
class ListEventDataStoresResponseTypeDef(TypedDict):
    EventDataStores: List[EventDataStoreTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],- See List[EventDataStoreTypeDef]
- See ResponseMetadataTypeDef
GetChannelResponseTypeDef#
# GetChannelResponseTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import GetChannelResponseTypeDef
def get_value() -> GetChannelResponseTypeDef:
    return {
        "ChannelArn": ...,
    }
# GetChannelResponseTypeDef definition
class GetChannelResponseTypeDef(TypedDict):
    ChannelArn: str,
    Name: str,
    Source: str,
    SourceConfig: SourceConfigTypeDef,  # (1)
    Destinations: List[DestinationTypeDef],  # (2)
    IngestionStatus: IngestionStatusTypeDef,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)- See SourceConfigTypeDef
- See List[DestinationTypeDef]
- See IngestionStatusTypeDef
- See ResponseMetadataTypeDef
CreateEventDataStoreRequestTypeDef#
# CreateEventDataStoreRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import CreateEventDataStoreRequestTypeDef
def get_value() -> CreateEventDataStoreRequestTypeDef:
    return {
        "Name": ...,
    }
# CreateEventDataStoreRequestTypeDef definition
class CreateEventDataStoreRequestTypeDef(TypedDict):
    Name: str,
    AdvancedEventSelectors: NotRequired[Sequence[AdvancedEventSelectorUnionTypeDef]],  # (1)
    MultiRegionEnabled: NotRequired[bool],
    OrganizationEnabled: NotRequired[bool],
    RetentionPeriod: NotRequired[int],
    TerminationProtectionEnabled: NotRequired[bool],
    TagsList: NotRequired[Sequence[TagTypeDef]],  # (2)
    KmsKeyId: NotRequired[str],
    StartIngestion: NotRequired[bool],
    BillingMode: NotRequired[BillingModeType],  # (3)- See Sequence[AdvancedEventSelectorUnionTypeDef]
- See Sequence[TagTypeDef]
- See BillingModeType
UpdateEventDataStoreRequestTypeDef#
# UpdateEventDataStoreRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import UpdateEventDataStoreRequestTypeDef
def get_value() -> UpdateEventDataStoreRequestTypeDef:
    return {
        "EventDataStore": ...,
    }
# UpdateEventDataStoreRequestTypeDef definition
class UpdateEventDataStoreRequestTypeDef(TypedDict):
    EventDataStore: str,
    Name: NotRequired[str],
    AdvancedEventSelectors: NotRequired[Sequence[AdvancedEventSelectorUnionTypeDef]],  # (1)
    MultiRegionEnabled: NotRequired[bool],
    OrganizationEnabled: NotRequired[bool],
    RetentionPeriod: NotRequired[int],
    TerminationProtectionEnabled: NotRequired[bool],
    KmsKeyId: NotRequired[str],
    BillingMode: NotRequired[BillingModeType],  # (2)- See Sequence[AdvancedEventSelectorUnionTypeDef]
- See BillingModeType
PutEventSelectorsRequestTypeDef#
# PutEventSelectorsRequestTypeDef TypedDict usage example
from types_boto3_cloudtrail.type_defs import PutEventSelectorsRequestTypeDef
def get_value() -> PutEventSelectorsRequestTypeDef:
    return {
        "TrailName": ...,
    }
# PutEventSelectorsRequestTypeDef definition
class PutEventSelectorsRequestTypeDef(TypedDict):
    TrailName: str,
    EventSelectors: NotRequired[Sequence[EventSelectorUnionTypeDef]],  # (1)
    AdvancedEventSelectors: NotRequired[Sequence[AdvancedEventSelectorUnionTypeDef]],  # (2)- See Sequence[EventSelectorUnionTypeDef]
- See Sequence[AdvancedEventSelectorUnionTypeDef]