Skip to content

Type definitions#

Index > MWAA > Type definitions

Auto-generated documentation for MWAA type annotations stubs module mypy-boto3-mwaa.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

CreateCliTokenRequestRequestTypeDef#

# CreateCliTokenRequestRequestTypeDef definition

class CreateCliTokenRequestRequestTypeDef(TypedDict):
    Name: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

NetworkConfigurationTypeDef#

# NetworkConfigurationTypeDef definition

class NetworkConfigurationTypeDef(TypedDict):
    SubnetIds: NotRequired[Sequence[str]],
    SecurityGroupIds: NotRequired[Sequence[str]],

CreateWebLoginTokenRequestRequestTypeDef#

# CreateWebLoginTokenRequestRequestTypeDef definition

class CreateWebLoginTokenRequestRequestTypeDef(TypedDict):
    Name: str,

DeleteEnvironmentInputRequestTypeDef#

# DeleteEnvironmentInputRequestTypeDef definition

class DeleteEnvironmentInputRequestTypeDef(TypedDict):
    Name: str,

DimensionTypeDef#

# DimensionTypeDef definition

class DimensionTypeDef(TypedDict):
    Name: str,
    Value: str,

NetworkConfigurationOutputTypeDef#

# NetworkConfigurationOutputTypeDef definition

class NetworkConfigurationOutputTypeDef(TypedDict):
    SubnetIds: NotRequired[List[str]],
    SecurityGroupIds: NotRequired[List[str]],

GetEnvironmentInputRequestTypeDef#

# GetEnvironmentInputRequestTypeDef definition

class GetEnvironmentInputRequestTypeDef(TypedDict):
    Name: str,

InvokeRestApiRequestRequestTypeDef#

# InvokeRestApiRequestRequestTypeDef definition

class InvokeRestApiRequestRequestTypeDef(TypedDict):
    Name: str,
    Path: str,
    Method: RestApiMethodType,  # (1)
    QueryParameters: NotRequired[Mapping[str, Any]],
    Body: NotRequired[Mapping[str, Any]],
  1. See RestApiMethodType

UpdateErrorTypeDef#

# UpdateErrorTypeDef definition

class UpdateErrorTypeDef(TypedDict):
    ErrorCode: NotRequired[str],
    ErrorMessage: NotRequired[str],

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListEnvironmentsInputRequestTypeDef#

# ListEnvironmentsInputRequestTypeDef definition

class ListEnvironmentsInputRequestTypeDef(TypedDict):
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ListTagsForResourceInputRequestTypeDef#

# ListTagsForResourceInputRequestTypeDef definition

class ListTagsForResourceInputRequestTypeDef(TypedDict):
    ResourceArn: str,

ModuleLoggingConfigurationInputTypeDef#

# ModuleLoggingConfigurationInputTypeDef definition

class ModuleLoggingConfigurationInputTypeDef(TypedDict):
    Enabled: bool,
    LogLevel: LoggingLevelType,  # (1)
  1. See LoggingLevelType

ModuleLoggingConfigurationTypeDef#

# ModuleLoggingConfigurationTypeDef definition

class ModuleLoggingConfigurationTypeDef(TypedDict):
    Enabled: NotRequired[bool],
    LogLevel: NotRequired[LoggingLevelType],  # (1)
    CloudWatchLogGroupArn: NotRequired[str],
  1. See LoggingLevelType

StatisticSetTypeDef#

# StatisticSetTypeDef definition

class StatisticSetTypeDef(TypedDict):
    SampleCount: NotRequired[int],
    Sum: NotRequired[float],
    Minimum: NotRequired[float],
    Maximum: NotRequired[float],

TagResourceInputRequestTypeDef#

# TagResourceInputRequestTypeDef definition

class TagResourceInputRequestTypeDef(TypedDict):
    ResourceArn: str,
    Tags: Mapping[str, str],

UntagResourceInputRequestTypeDef#

# UntagResourceInputRequestTypeDef definition

class UntagResourceInputRequestTypeDef(TypedDict):
    ResourceArn: str,
    tagKeys: Sequence[str],

UpdateNetworkConfigurationInputTypeDef#

# UpdateNetworkConfigurationInputTypeDef definition

class UpdateNetworkConfigurationInputTypeDef(TypedDict):
    SecurityGroupIds: Sequence[str],

CreateCliTokenResponseTypeDef#

# CreateCliTokenResponseTypeDef definition

class CreateCliTokenResponseTypeDef(TypedDict):
    CliToken: str,
    WebServerHostname: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateEnvironmentOutputTypeDef#

# CreateEnvironmentOutputTypeDef definition

class CreateEnvironmentOutputTypeDef(TypedDict):
    Arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateWebLoginTokenResponseTypeDef#

# CreateWebLoginTokenResponseTypeDef definition

class CreateWebLoginTokenResponseTypeDef(TypedDict):
    WebToken: str,
    WebServerHostname: str,
    IamIdentity: str,
    AirflowIdentity: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

InvokeRestApiResponseTypeDef#

# InvokeRestApiResponseTypeDef definition

class InvokeRestApiResponseTypeDef(TypedDict):
    RestApiStatusCode: int,
    RestApiResponse: Dict[str, Any],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListEnvironmentsOutputTypeDef#

# ListEnvironmentsOutputTypeDef definition

class ListEnvironmentsOutputTypeDef(TypedDict):
    Environments: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    NextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

ListTagsForResourceOutputTypeDef#

# ListTagsForResourceOutputTypeDef definition

class ListTagsForResourceOutputTypeDef(TypedDict):
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

UpdateEnvironmentOutputTypeDef#

# UpdateEnvironmentOutputTypeDef definition

class UpdateEnvironmentOutputTypeDef(TypedDict):
    Arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

LastUpdateTypeDef#

# LastUpdateTypeDef definition

class LastUpdateTypeDef(TypedDict):
    Status: NotRequired[UpdateStatusType],  # (1)
    CreatedAt: NotRequired[datetime],
    Error: NotRequired[UpdateErrorTypeDef],  # (2)
    Source: NotRequired[str],
  1. See UpdateStatusType
  2. See UpdateErrorTypeDef

ListEnvironmentsInputListEnvironmentsPaginateTypeDef#

# ListEnvironmentsInputListEnvironmentsPaginateTypeDef definition

class ListEnvironmentsInputListEnvironmentsPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

LoggingConfigurationInputTypeDef#

# LoggingConfigurationInputTypeDef definition

class LoggingConfigurationInputTypeDef(TypedDict):
    DagProcessingLogs: NotRequired[ModuleLoggingConfigurationInputTypeDef],  # (1)
    SchedulerLogs: NotRequired[ModuleLoggingConfigurationInputTypeDef],  # (1)
    WebserverLogs: NotRequired[ModuleLoggingConfigurationInputTypeDef],  # (1)
    WorkerLogs: NotRequired[ModuleLoggingConfigurationInputTypeDef],  # (1)
    TaskLogs: NotRequired[ModuleLoggingConfigurationInputTypeDef],  # (1)
  1. See ModuleLoggingConfigurationInputTypeDef
  2. See ModuleLoggingConfigurationInputTypeDef
  3. See ModuleLoggingConfigurationInputTypeDef
  4. See ModuleLoggingConfigurationInputTypeDef
  5. See ModuleLoggingConfigurationInputTypeDef

LoggingConfigurationTypeDef#

# LoggingConfigurationTypeDef definition

class LoggingConfigurationTypeDef(TypedDict):
    DagProcessingLogs: NotRequired[ModuleLoggingConfigurationTypeDef],  # (1)
    SchedulerLogs: NotRequired[ModuleLoggingConfigurationTypeDef],  # (1)
    WebserverLogs: NotRequired[ModuleLoggingConfigurationTypeDef],  # (1)
    WorkerLogs: NotRequired[ModuleLoggingConfigurationTypeDef],  # (1)
    TaskLogs: NotRequired[ModuleLoggingConfigurationTypeDef],  # (1)
  1. See ModuleLoggingConfigurationTypeDef
  2. See ModuleLoggingConfigurationTypeDef
  3. See ModuleLoggingConfigurationTypeDef
  4. See ModuleLoggingConfigurationTypeDef
  5. See ModuleLoggingConfigurationTypeDef

MetricDatumTypeDef#

# MetricDatumTypeDef definition

class MetricDatumTypeDef(TypedDict):
    MetricName: str,
    Timestamp: TimestampTypeDef,
    Dimensions: NotRequired[Sequence[DimensionTypeDef]],  # (1)
    Value: NotRequired[float],
    Unit: NotRequired[UnitType],  # (2)
    StatisticValues: NotRequired[StatisticSetTypeDef],  # (3)
  1. See DimensionTypeDef
  2. See UnitType
  3. See StatisticSetTypeDef

CreateEnvironmentInputRequestTypeDef#

# CreateEnvironmentInputRequestTypeDef definition

class CreateEnvironmentInputRequestTypeDef(TypedDict):
    Name: str,
    ExecutionRoleArn: str,
    SourceBucketArn: str,
    DagS3Path: str,
    NetworkConfiguration: NetworkConfigurationTypeDef,  # (1)
    PluginsS3Path: NotRequired[str],
    PluginsS3ObjectVersion: NotRequired[str],
    RequirementsS3Path: NotRequired[str],
    RequirementsS3ObjectVersion: NotRequired[str],
    StartupScriptS3Path: NotRequired[str],
    StartupScriptS3ObjectVersion: NotRequired[str],
    AirflowConfigurationOptions: NotRequired[Mapping[str, str]],
    EnvironmentClass: NotRequired[str],
    MaxWorkers: NotRequired[int],
    KmsKey: NotRequired[str],
    AirflowVersion: NotRequired[str],
    LoggingConfiguration: NotRequired[LoggingConfigurationInputTypeDef],  # (2)
    WeeklyMaintenanceWindowStart: NotRequired[str],
    Tags: NotRequired[Mapping[str, str]],
    WebserverAccessMode: NotRequired[WebserverAccessModeType],  # (3)
    MinWorkers: NotRequired[int],
    Schedulers: NotRequired[int],
    EndpointManagement: NotRequired[EndpointManagementType],  # (4)
    MinWebservers: NotRequired[int],
    MaxWebservers: NotRequired[int],
  1. See NetworkConfigurationTypeDef
  2. See LoggingConfigurationInputTypeDef
  3. See WebserverAccessModeType
  4. See EndpointManagementType

UpdateEnvironmentInputRequestTypeDef#

# UpdateEnvironmentInputRequestTypeDef definition

class UpdateEnvironmentInputRequestTypeDef(TypedDict):
    Name: str,
    ExecutionRoleArn: NotRequired[str],
    AirflowVersion: NotRequired[str],
    SourceBucketArn: NotRequired[str],
    DagS3Path: NotRequired[str],
    PluginsS3Path: NotRequired[str],
    PluginsS3ObjectVersion: NotRequired[str],
    RequirementsS3Path: NotRequired[str],
    RequirementsS3ObjectVersion: NotRequired[str],
    StartupScriptS3Path: NotRequired[str],
    StartupScriptS3ObjectVersion: NotRequired[str],
    AirflowConfigurationOptions: NotRequired[Mapping[str, str]],
    EnvironmentClass: NotRequired[str],
    MaxWorkers: NotRequired[int],
    NetworkConfiguration: NotRequired[UpdateNetworkConfigurationInputTypeDef],  # (1)
    LoggingConfiguration: NotRequired[LoggingConfigurationInputTypeDef],  # (2)
    WeeklyMaintenanceWindowStart: NotRequired[str],
    WebserverAccessMode: NotRequired[WebserverAccessModeType],  # (3)
    MinWorkers: NotRequired[int],
    Schedulers: NotRequired[int],
    MinWebservers: NotRequired[int],
    MaxWebservers: NotRequired[int],
  1. See UpdateNetworkConfigurationInputTypeDef
  2. See LoggingConfigurationInputTypeDef
  3. See WebserverAccessModeType

EnvironmentTypeDef#

# EnvironmentTypeDef definition

class EnvironmentTypeDef(TypedDict):
    Name: NotRequired[str],
    Status: NotRequired[EnvironmentStatusType],  # (1)
    Arn: NotRequired[str],
    CreatedAt: NotRequired[datetime],
    WebserverUrl: NotRequired[str],
    ExecutionRoleArn: NotRequired[str],
    ServiceRoleArn: NotRequired[str],
    KmsKey: NotRequired[str],
    AirflowVersion: NotRequired[str],
    SourceBucketArn: NotRequired[str],
    DagS3Path: NotRequired[str],
    PluginsS3Path: NotRequired[str],
    PluginsS3ObjectVersion: NotRequired[str],
    RequirementsS3Path: NotRequired[str],
    RequirementsS3ObjectVersion: NotRequired[str],
    StartupScriptS3Path: NotRequired[str],
    StartupScriptS3ObjectVersion: NotRequired[str],
    AirflowConfigurationOptions: NotRequired[Dict[str, str]],
    EnvironmentClass: NotRequired[str],
    MaxWorkers: NotRequired[int],
    NetworkConfiguration: NotRequired[NetworkConfigurationOutputTypeDef],  # (2)
    LoggingConfiguration: NotRequired[LoggingConfigurationTypeDef],  # (3)
    LastUpdate: NotRequired[LastUpdateTypeDef],  # (4)
    WeeklyMaintenanceWindowStart: NotRequired[str],
    Tags: NotRequired[Dict[str, str]],
    WebserverAccessMode: NotRequired[WebserverAccessModeType],  # (5)
    MinWorkers: NotRequired[int],
    Schedulers: NotRequired[int],
    WebserverVpcEndpointService: NotRequired[str],
    DatabaseVpcEndpointService: NotRequired[str],
    CeleryExecutorQueue: NotRequired[str],
    EndpointManagement: NotRequired[EndpointManagementType],  # (6)
    MinWebservers: NotRequired[int],
    MaxWebservers: NotRequired[int],
  1. See EnvironmentStatusType
  2. See NetworkConfigurationOutputTypeDef
  3. See LoggingConfigurationTypeDef
  4. See LastUpdateTypeDef
  5. See WebserverAccessModeType
  6. See EndpointManagementType

PublishMetricsInputRequestTypeDef#

# PublishMetricsInputRequestTypeDef definition

class PublishMetricsInputRequestTypeDef(TypedDict):
    EnvironmentName: str,
    MetricData: Sequence[MetricDatumTypeDef],  # (1)
  1. See MetricDatumTypeDef

GetEnvironmentOutputTypeDef#

# GetEnvironmentOutputTypeDef definition

class GetEnvironmentOutputTypeDef(TypedDict):
    Environment: EnvironmentTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EnvironmentTypeDef
  2. See ResponseMetadataTypeDef