Skip to content

Typed dictionaries

Index > CloudTrailDataService > Typed dictionaries

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

AuditEventResultEntryTypeDef

Usage Example
from mypy_boto3_cloudtrail_data.type_defs import AuditEventResultEntryTypeDef

def get_value() -> AuditEventResultEntryTypeDef:
    return {
        "eventID": ...,
        "id": ...,
    }
Definition
class AuditEventResultEntryTypeDef(TypedDict):
    eventID: str,
    id: str,

AuditEventTypeDef

Usage Example
from mypy_boto3_cloudtrail_data.type_defs import AuditEventTypeDef

def get_value() -> AuditEventTypeDef:
    return {
        "eventData": ...,
        "id": ...,
    }
Definition
class AuditEventTypeDef(TypedDict):
    eventData: str,
    id: str,
    eventDataChecksum: NotRequired[str],

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_cloudtrail_data.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,

ResultErrorEntryTypeDef

Usage Example
from mypy_boto3_cloudtrail_data.type_defs import ResultErrorEntryTypeDef

def get_value() -> ResultErrorEntryTypeDef:
    return {
        "errorCode": ...,
        "errorMessage": ...,
        "id": ...,
    }
Definition
class ResultErrorEntryTypeDef(TypedDict):
    errorCode: str,
    errorMessage: str,
    id: str,

PutAuditEventsRequestRequestTypeDef

Usage Example
from mypy_boto3_cloudtrail_data.type_defs import PutAuditEventsRequestRequestTypeDef

def get_value() -> PutAuditEventsRequestRequestTypeDef:
    return {
        "auditEvents": ...,
        "channelArn": ...,
    }
Definition
class PutAuditEventsRequestRequestTypeDef(TypedDict):
    auditEvents: Sequence[AuditEventTypeDef],  # (1)
    channelArn: str,
    externalId: NotRequired[str],
  1. See AuditEventTypeDef

PutAuditEventsResponseTypeDef

Usage Example
from mypy_boto3_cloudtrail_data.type_defs import PutAuditEventsResponseTypeDef

def get_value() -> PutAuditEventsResponseTypeDef:
    return {
        "failed": ...,
        "successful": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutAuditEventsResponseTypeDef(TypedDict):
    failed: List[ResultErrorEntryTypeDef],  # (1)
    successful: List[AuditEventResultEntryTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See ResultErrorEntryTypeDef
  2. See AuditEventResultEntryTypeDef
  3. See ResponseMetadataTypeDef