Skip to content

Type definitions#

Index > ApiGatewayV2 > Type definitions

Auto-generated documentation for ApiGatewayV2 type annotations stubs module mypy-boto3-apigatewayv2.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

CorsUnionTypeDef#

# CorsUnionTypeDef definition

CorsUnionTypeDef = Union[
    CorsTypeDef,  # (1)
    CorsExtraOutputTypeDef,  # (2)
]
  1. See CorsTypeDef
  2. See CorsExtraOutputTypeDef

JWTConfigurationUnionTypeDef#

# JWTConfigurationUnionTypeDef definition

JWTConfigurationUnionTypeDef = Union[
    JWTConfigurationTypeDef,  # (1)
    JWTConfigurationExtraOutputTypeDef,  # (2)
]
  1. See JWTConfigurationTypeDef
  2. See JWTConfigurationExtraOutputTypeDef

DomainNameConfigurationUnionTypeDef#

# DomainNameConfigurationUnionTypeDef definition

DomainNameConfigurationUnionTypeDef = Union[
    DomainNameConfigurationTypeDef,  # (1)
    DomainNameConfigurationExtraOutputTypeDef,  # (2)
]
  1. See DomainNameConfigurationTypeDef
  2. See DomainNameConfigurationExtraOutputTypeDef

AccessLogSettingsTypeDef#

# AccessLogSettingsTypeDef definition

class AccessLogSettingsTypeDef(TypedDict):
    DestinationArn: NotRequired[str],
    Format: NotRequired[str],

ApiMappingTypeDef#

# ApiMappingTypeDef definition

class ApiMappingTypeDef(TypedDict):
    ApiId: str,
    Stage: str,
    ApiMappingId: NotRequired[str],
    ApiMappingKey: NotRequired[str],

CorsOutputTypeDef#

# CorsOutputTypeDef definition

class CorsOutputTypeDef(TypedDict):
    AllowCredentials: NotRequired[bool],
    AllowHeaders: NotRequired[List[str]],
    AllowMethods: NotRequired[List[str]],
    AllowOrigins: NotRequired[List[s