openapi: 3.0.0 info: version: '2020-07-01' x-release: v4 title: AmazonMWAA description: '
This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see What is Amazon MWAA?.
Endpoints
api.airflow.{region}.amazonaws.com - This endpoint is used for environment management.
env.airflow.{region}.amazonaws.com - This endpoint is used to operate the Airflow environment.
ops.airflow.{region}.amazonaws.com - This endpoint is used to push environment metrics that track environment health.
Regions
For a list of regions that Amazon MWAA supports, see Region availability in the Amazon MWAA User Guide.
' x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: mwaa x-aws-signingName: airflow x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/mwaa-2020-07-01.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/airflow/' servers: - url: 'http://airflow.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The AmazonMWAA multi-region endpoint - url: 'https://airflow.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The AmazonMWAA multi-region endpoint - url: 'http://airflow.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The AmazonMWAA endpoint for China (Beijing) and China (Ningxia) - url: 'https://airflow.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The AmazonMWAA endpoint for China (Beijing) and China (Ningxia) x-hasEquivalentPaths: true paths: '/clitoken/{Name}': post: operationId: CreateCliToken description: 'Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/CreateCliTokenResponse' '480': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' parameters: - name: Name in: path required: true description: 'The name of the Amazon MWAA environment. For example,MyMWAAEnvironment.'
schema:
type: string
pattern: '^[a-zA-Z][0-9a-zA-Z-_]*$'
minLength: 1
maxLength: 80
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
'/environments/{Name}':
put:
operationId: CreateEnvironment
description: Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/CreateEnvironmentOutput'
'480':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'481':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: Name
in: path
required: true
description: 'The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.'
schema:
type: string
pattern: '^[a-zA-Z][0-9a-zA-Z-_]*$'
minLength: 1
maxLength: 80
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- DagS3Path
- ExecutionRoleArn
- NetworkConfiguration
- SourceBucketArn
properties:
AirflowConfigurationOptions:
description: 'A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see Apache Airflow configuration options.'
type: object
additionalProperties:
$ref: '#/components/schemas/ConfigValue'
AirflowVersion:
description: 'The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, and 2.5.1. For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).'
type: string
pattern: '^[0-9a-z.]+$'
minLength: 1
maxLength: 32
DagS3Path:
description: 'The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. For more information, see Adding or updating DAGs.'
type: string
pattern: .*
minLength: 1
maxLength: 1024
EnvironmentClass:
description: 'The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. For more information, see Amazon MWAA environment class.'
type: string
minLength: 1
maxLength: 1024
ExecutionRoleArn:
description: 'The Amazon Resource Name (ARN) of the execution role for your environment. An execution role is an Amazon Web Services Identity and Access Management (IAM) role that grants MWAA permission to access Amazon Web Services services and resources used by your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, see Amazon MWAA Execution role.'
type: string
pattern: '^arn:aws(-[a-z]+)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$'
minLength: 1
maxLength: 1224
KmsKey:
description: 'The Amazon Web Services Key Management Service (KMS) key to encrypt the data in your environment. You can use an Amazon Web Services owned CMK, or a Customer managed CMK (advanced). For more information, see Create an Amazon MWAA environment.'
type: string
pattern: '^(((arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\d:\d+:)?key\/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|(arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\d:\d+:)?alias/.+)$'
minLength: 1
maxLength: 1224
LoggingConfiguration:
description: Defines the Apache Airflow log types to send to CloudWatch Logs.
type: object
properties:
DagProcessingLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow DAG processing logs to CloudWatch Logs.
SchedulerLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow scheduler logs to CloudWatch Logs.
TaskLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow task logs to CloudWatch Logs.
WebserverLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow web server logs to CloudWatch Logs.
WorkerLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow worker logs to CloudWatch Logs.
MaxWorkers:
description: 'The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. For example, 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in MinWorkers.'
type: integer
minimum: 1
MinWorkers:
description: 'The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the MinWorkers field. For example, 2.'
type: integer
minimum: 1
NetworkConfiguration:
description: 'Describes the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.'
type: object
properties:
SecurityGroupIds:
allOf:
- $ref: '#/components/schemas/SecurityGroupList'
- description: 'A list of security group IDs. For more information, see Security in your VPC on Amazon MWAA.'
SubnetIds:
allOf:
- $ref: '#/components/schemas/SubnetList'
- description: 'A list of subnet IDs. For more information, see About networking on Amazon MWAA.'
PluginsS3ObjectVersion:
description: 'The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a plugins.zip file is updated. For more information, see How S3 Versioning works.'
type: string
minLength: 1
maxLength: 1024
PluginsS3Path:
description: 'The relative path to the plugins.zip file on your Amazon S3 bucket. For example, plugins.zip. If specified, then the plugins.zip version is required. For more information, see Installing custom plugins.'
type: string
pattern: .*
minLength: 1
maxLength: 1024
RequirementsS3ObjectVersion:
description: 'The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a requirements.txt file is updated. For more information, see How S3 Versioning works.'
type: string
minLength: 1
maxLength: 1024
RequirementsS3Path:
description: 'The relative path to the requirements.txt file on your Amazon S3 bucket. For example, requirements.txt. If specified, then a version is required. For more information, see Installing Python dependencies.'
type: string
pattern: .*
minLength: 1
maxLength: 1024
Schedulers:
description: 'The number of Apache Airflow schedulers to run in your environment. Valid values:
v2 - Accepts between 2 to 5. Defaults to 2.
v1 - Accepts 1.
arn:aws:s3:::my-airflow-bucket-unique-name. For more information, see Create an Amazon S3 bucket for Amazon MWAA.'
type: string
pattern: '^arn:aws(-[a-z]+)?:s3:::[a-z0-9.\-]+$'
minLength: 1
maxLength: 1224
StartupScriptS3ObjectVersion:
description: 'The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example:
3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo
For more information, see Using a startup script.
' type: string minLength: 1 maxLength: 1024 StartupScriptS3Path: description: 'The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh.
Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see Using a startup script.
' type: string pattern: .* minLength: 1 maxLength: 1024 Tags: description: 'The key-value tag pairs you want to associate to your environment. For example,"Environment": "Staging". For more information, see Tagging Amazon Web Services resources.'
type: object
minProperties: 1
maxProperties: 50
additionalProperties:
$ref: '#/components/schemas/TagValue'
WebserverAccessMode:
description: 'The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.'
type: string
enum:
- PRIVATE_ONLY
- PUBLIC_ONLY
WeeklyMaintenanceWindowStart:
description: 'The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only.'
type: string
pattern: '(MON|TUE|WED|THU|FRI|SAT|SUN):([01]\d|2[0-3]):(00|30)'
minLength: 1
maxLength: 9
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
delete:
operationId: DeleteEnvironment
description: Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteEnvironmentOutput'
'480':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'481':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'482':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: Name
in: path
required: true
description: 'The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.'
schema:
type: string
pattern: '^[a-zA-Z][0-9a-zA-Z-_]*$'
minLength: 1
maxLength: 80
get:
operationId: GetEnvironment
description: Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetEnvironmentOutput'
'480':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'481':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'482':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: Name
in: path
required: true
description: 'The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.'
schema:
type: string
pattern: '^[a-zA-Z][0-9a-zA-Z-_]*$'
minLength: 1
maxLength: 80
patch:
operationId: UpdateEnvironment
description: Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateEnvironmentOutput'
'480':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'481':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'482':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: Name
in: path
required: true
description: 'The name of your Amazon MWAA environment. For example, MyMWAAEnvironment.'
schema:
type: string
pattern: '^[a-zA-Z][0-9a-zA-Z-_]*$'
minLength: 1
maxLength: 80
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
AirflowConfigurationOptions:
description: 'A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see Apache Airflow configuration options.'
type: object
additionalProperties:
$ref: '#/components/schemas/ConfigValue'
AirflowVersion:
description: 'The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.
Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.
Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, and 2.5.1.
dags. For more information, see Adding or updating DAGs.'
type: string
pattern: .*
minLength: 1
maxLength: 1024
EnvironmentClass:
description: 'The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. For more information, see Amazon MWAA environment class.'
type: string
minLength: 1
maxLength: 1024
ExecutionRoleArn:
description: 'The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, see Amazon MWAA Execution role.'
type: string
pattern: '^arn:aws(-[a-z]+)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$'
minLength: 1
maxLength: 1224
LoggingConfiguration:
description: Defines the Apache Airflow log types to send to CloudWatch Logs.
type: object
properties:
DagProcessingLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow DAG processing logs to CloudWatch Logs.
SchedulerLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow scheduler logs to CloudWatch Logs.
TaskLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow task logs to CloudWatch Logs.
WebserverLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow web server logs to CloudWatch Logs.
WorkerLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow worker logs to CloudWatch Logs.
MaxWorkers:
description: 'The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. For example, 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in MinWorkers.'
type: integer
minimum: 1
MinWorkers:
description: 'The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the MinWorkers field. For example, 2.'
type: integer
minimum: 1
NetworkConfiguration:
description: 'Defines the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.'
type: object
properties:
SecurityGroupIds:
allOf:
- $ref: '#/components/schemas/SecurityGroupList'
- description: 'A list of security group IDs. A security group must be attached to the same VPC as the subnets. For more information, see Security in your VPC on Amazon MWAA.'
PluginsS3ObjectVersion:
description: 'The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a plugins.zip file is updated. For more information, see How S3 Versioning works.'
type: string
minLength: 1
maxLength: 1024
PluginsS3Path:
description: 'The relative path to the plugins.zip file on your Amazon S3 bucket. For example, plugins.zip. If specified, then the plugins.zip version is required. For more information, see Installing custom plugins.'
type: string
pattern: .*
minLength: 1
maxLength: 1024
RequirementsS3ObjectVersion:
description: 'The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a requirements.txt file is updated. For more information, see How S3 Versioning works.'
type: string
minLength: 1
maxLength: 1024
RequirementsS3Path:
description: 'The relative path to the requirements.txt file on your Amazon S3 bucket. For example, requirements.txt. If specified, then a file version is required. For more information, see Installing Python dependencies.'
type: string
pattern: .*
minLength: 1
maxLength: 1024
Schedulers:
description: The number of Apache Airflow schedulers to run in your Amazon MWAA environment.
type: integer
maximum: 5
SourceBucketArn:
description: 'The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. For more information, see Create an Amazon S3 bucket for Amazon MWAA.'
type: string
pattern: '^arn:aws(-[a-z]+)?:s3:::[a-z0-9.\-]+$'
minLength: 1
maxLength: 1224
StartupScriptS3ObjectVersion:
description: 'The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example:
3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo
For more information, see Using a startup script.
' type: string minLength: 1 maxLength: 1024 StartupScriptS3Path: description: 'The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh.
Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see Using a startup script.
' type: string pattern: .* minLength: 1 maxLength: 1024 WebserverAccessMode: description: 'The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.' type: string enum: - PRIVATE_ONLY - PUBLIC_ONLY WeeklyMaintenanceWindowStart: description: 'The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format:DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only.'
type: string
pattern: '(MON|TUE|WED|THU|FRI|SAT|SUN):([01]\d|2[0-3]):(00|30)'
minLength: 1
maxLength: 9
'/webtoken/{Name}':
post:
operationId: CreateWebLoginToken
description: 'Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web login token.'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWebLoginTokenResponse'
'480':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'481':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'482':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'483':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: Name
in: path
required: true
description: 'The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.'
schema:
type: string
pattern: '^[a-zA-Z][0-9a-zA-Z-_]*$'
minLength: 1
maxLength: 80
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
/environments:
get:
operationId: ListEnvironments
description: Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListEnvironmentsOutput'
'480':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'481':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: MaxResults
in: query
required: false
description: 'The maximum number of results to retrieve per page. For example, 5 environments per page.'
schema:
type: integer
minimum: 1
maximum: 25
- name: NextToken
in: query
required: false
description: Retrieves the next page of the results.
schema:
type: string
minLength: 0
maxLength: 2048
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
'/tags/{ResourceArn}':
get:
operationId: ListTagsForResource
description: 'Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, "Environment": "Staging". '
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListTagsForResourceOutput'
'480':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'481':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'482':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: ResourceArn
in: path
required: true
description: 'The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment.'
schema:
type: string
pattern: '^arn:aws(-[a-z]+)?:airflow:[a-z0-9\-]+:\d{12}:environment/\w+'
minLength: 1
maxLength: 1224
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
post:
operationId: TagResource
description: 'Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. '
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TagResourceOutput'
'480':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'481':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'482':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: ResourceArn
in: path
required: true
description: 'The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment.'
schema:
type: string
pattern: '^arn:aws(-[a-z]+)?:airflow:[a-z0-9\-]+:\d{12}:environment/\w+'
minLength: 1
maxLength: 1224
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- Tags
properties:
Tags:
description: 'The key-value tag pairs you want to associate to your environment. For example, "Environment": "Staging". For more information, see Tagging Amazon Web Services resources.'
type: object
minProperties: 1
maxProperties: 50
additionalProperties:
$ref: '#/components/schemas/TagValue'
'/metrics/environments/{EnvironmentName}':
post:
operationId: PublishMetrics
description: ' Internal only. Publishes environment health metrics to Amazon CloudWatch.'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/PublishMetricsOutput'
'480':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'481':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: EnvironmentName
in: path
required: true
description: ' Internal only. The name of the environment.'
schema:
type: string
pattern: '^[a-zA-Z][0-9a-zA-Z-_]*$'
minLength: 1
maxLength: 80
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- MetricData
properties:
MetricData:
description: ' Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.'
type: array
items:
$ref: '#/components/schemas/MetricDatum'
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
'/tags/{ResourceArn}#tagKeys':
delete:
operationId: UntagResource
description: 'Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, "Environment": "Staging".'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UntagResourceOutput'
'480':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'481':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'482':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
parameters:
- name: ResourceArn
in: path
required: true
description: 'The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment.'
schema:
type: string
pattern: '^arn:aws(-[a-z]+)?:airflow:[a-z0-9\-]+:\d{12}:environment/\w+'
minLength: 1
maxLength: 1224
- name: tagKeys
in: query
required: true
description: 'The key-value tag pair you want to remove. For example, "Environment": "Staging". '
schema:
type: array
items:
$ref: '#/components/schemas/TagKey'
minItems: 0
maxItems: 50
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
components:
parameters:
X-Amz-Content-Sha256:
name: X-Amz-Content-Sha256
in: header
schema:
type: string
required: false
X-Amz-Date:
name: X-Amz-Date
in: header
schema:
type: string
required: false
X-Amz-Algorithm:
name: X-Amz-Algorithm
in: header
schema:
type: string
required: false
X-Amz-Credential:
name: X-Amz-Credential
in: header
schema:
type: string
required: false
X-Amz-Security-Token:
name: X-Amz-Security-Token
in: header
schema:
type: string
required: false
X-Amz-Signature:
name: X-Amz-Signature
in: header
schema:
type: string
required: false
X-Amz-SignedHeaders:
name: X-Amz-SignedHeaders
in: header
schema:
type: string
required: false
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
description: Amazon Signature authorization v4
x-amazon-apigateway-authtype: awsSigv4
schemas:
CreateCliTokenResponse:
type: object
properties:
CliToken:
allOf:
- $ref: '#/components/schemas/Token'
- description: An Airflow CLI login token.
WebServerHostname:
allOf:
- $ref: '#/components/schemas/Hostname'
- description: The Airflow web server hostname for the environment.
ResourceNotFoundException: {}
CreateEnvironmentOutput:
type: object
properties:
Arn:
allOf:
- $ref: '#/components/schemas/EnvironmentArn'
- description: The Amazon Resource Name (ARN) returned in the response for the environment.
ConfigValue:
type: string
pattern: '^[ -~]+$'
minLength: 1
maxLength: 65536
format: password
ModuleLoggingConfigurationInput:
type: object
required:
- Enabled
- LogLevel
properties:
Enabled:
allOf:
- $ref: '#/components/schemas/LoggingEnabled'
- description: Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs).
LogLevel:
allOf:
- $ref: '#/components/schemas/LoggingLevel'
- description: Defines the Apache Airflow log level (e.g. INFO) to send to CloudWatch Logs.
description: Enables the Apache Airflow log type (e.g. DagProcessingLogs) and defines the log level to send to CloudWatch Logs (e.g. INFO).
SecurityGroupList:
type: array
items:
$ref: '#/components/schemas/SecurityGroupId'
minItems: 1
maxItems: 5
SubnetList:
type: array
items:
$ref: '#/components/schemas/SubnetId'
minItems: 2
maxItems: 2
TagValue:
type: string
pattern: '^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$'
minLength: 1
maxLength: 256
ValidationException: {}
InternalServerException: {}
CreateWebLoginTokenResponse:
type: object
properties:
WebServerHostname:
allOf:
- $ref: '#/components/schemas/Hostname'
- description: The Airflow web server hostname for the environment.
WebToken:
allOf:
- $ref: '#/components/schemas/Token'
- description: An Airflow web server login token.
AccessDeniedException: {}
DeleteEnvironmentOutput:
type: object
properties: {}
GetEnvironmentOutput:
type: object
properties:
Environment:
allOf:
- $ref: '#/components/schemas/Environment'
- description: An object containing all available details about the environment.
ListEnvironmentsOutput:
type: object
required:
- Environments
properties:
Environments:
allOf:
- $ref: '#/components/schemas/EnvironmentList'
- description: Returns a list of Amazon MWAA environments.
NextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: Retrieves the next page of the results.
ListTagsForResourceOutput:
type: object
properties:
Tags:
allOf:
- $ref: '#/components/schemas/TagMap'
- description: 'The key-value tag pairs associated to your environment. For more information, see Tagging Amazon Web Services resources.'
PublishMetricsOutput:
type: object
properties: {}
MetricDatum:
type: object
required:
- MetricName
- Timestamp
properties:
Dimensions:
allOf:
- $ref: '#/components/schemas/Dimensions'
- description: ' Internal only. The dimensions associated with the metric.'
MetricName:
allOf:
- $ref: '#/components/schemas/String'
- description: ' Internal only. The name of the metric.'
StatisticValues:
allOf:
- $ref: '#/components/schemas/StatisticSet'
- description: ' Internal only. The statistical values for the metric.'
Timestamp:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: ' Internal only. The time the metric data was received.'
Unit:
allOf:
- $ref: '#/components/schemas/Unit'
- description: ' Internal only. The unit used to store the metric.'
Value:
allOf:
- $ref: '#/components/schemas/Double'
- description: ' Internal only. The value for the metric.'
description: ' Internal only. Collects Apache Airflow metrics. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.'
TagResourceOutput:
type: object
properties: {}
UntagResourceOutput:
type: object
properties: {}
TagKey:
type: string
pattern: '^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$'
minLength: 1
maxLength: 128
UpdateEnvironmentOutput:
type: object
properties:
Arn:
allOf:
- $ref: '#/components/schemas/EnvironmentArn'
- description: 'The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment.'
AirflowConfigurationOptions:
type: object
additionalProperties:
$ref: '#/components/schemas/ConfigValue'
AirflowVersion:
type: string
pattern: '^[0-9a-z.]+$'
minLength: 1
maxLength: 32
CloudWatchLogGroupArn:
type: string
pattern: '^arn:aws(-[a-z]+)?:logs:[a-z0-9\-]+:\d{12}:log-group:\w+'
minLength: 1
maxLength: 1224
ConfigKey:
type: string
pattern: '^[a-z]+([a-z0-9._]*[a-z0-9_]+)?$'
minLength: 1
maxLength: 64
EnvironmentName:
type: string
pattern: '^[a-zA-Z][0-9a-zA-Z-_]*$'
minLength: 1
maxLength: 80
CreateCliTokenRequest:
type: object
title: CreateCliTokenRequest
properties: {}
Token:
type: string
format: password
Hostname:
type: string
pattern: '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$'
minLength: 1
maxLength: 255
RelativePath:
type: string
pattern: .*
minLength: 1
maxLength: 1024
EnvironmentClass:
type: string
minLength: 1
maxLength: 1024
IamRoleArn:
type: string
pattern: '^arn:aws(-[a-z]+)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$'
minLength: 1
maxLength: 1224
KmsKey:
type: string
pattern: '^(((arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\d:\d+:)?key\/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|(arn:aws(-[a-z]+)?:kms:[a-z]{2}-[a-z]+-\d:\d+:)?alias/.+)$'
minLength: 1
maxLength: 1224
LoggingConfigurationInput:
type: object
properties:
DagProcessingLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow DAG processing logs to CloudWatch Logs.
SchedulerLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow scheduler logs to CloudWatch Logs.
TaskLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow task logs to CloudWatch Logs.
WebserverLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow web server logs to CloudWatch Logs.
WorkerLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfigurationInput'
- description: Publishes Airflow worker logs to CloudWatch Logs.
description: Defines the Apache Airflow log types to send to CloudWatch Logs.
MaxWorkers:
type: integer
minimum: 1
MinWorkers:
type: integer
minimum: 1
NetworkConfiguration:
type: object
properties:
SecurityGroupIds:
allOf:
- $ref: '#/components/schemas/SecurityGroupList'
- description: 'A list of security group IDs. For more information, see Security in your VPC on Amazon MWAA.'
SubnetIds:
allOf:
- $ref: '#/components/schemas/SubnetList'
- description: 'A list of subnet IDs. For more information, see About networking on Amazon MWAA.'
description: 'Describes the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.'
S3ObjectVersion:
type: string
minLength: 1
maxLength: 1024
Schedulers:
type: integer
maximum: 5
S3BucketArn:
type: string
pattern: '^arn:aws(-[a-z]+)?:s3:::[a-z0-9.\-]+$'
minLength: 1
maxLength: 1224
TagMap:
type: object
minProperties: 1
maxProperties: 50
additionalProperties:
$ref: '#/components/schemas/TagValue'
WebserverAccessMode:
type: string
enum:
- PRIVATE_ONLY
- PUBLIC_ONLY
WeeklyMaintenanceWindowStart:
type: string
pattern: '(MON|TUE|WED|THU|FRI|SAT|SUN):([01]\d|2[0-3]):(00|30)'
minLength: 1
maxLength: 9
CreateEnvironmentInput:
type: object
required:
- DagS3Path
- ExecutionRoleArn
- NetworkConfiguration
- SourceBucketArn
title: CreateEnvironmentInput
properties:
AirflowConfigurationOptions:
allOf:
- $ref: '#/components/schemas/AirflowConfigurationOptions'
- description: 'A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see Apache Airflow configuration options.'
AirflowVersion:
allOf:
- $ref: '#/components/schemas/AirflowVersion'
- description: 'The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, and 2.5.1. For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).'
DagS3Path:
allOf:
- $ref: '#/components/schemas/RelativePath'
- description: 'The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. For more information, see Adding or updating DAGs.'
EnvironmentClass:
allOf:
- $ref: '#/components/schemas/EnvironmentClass'
- description: 'The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. For more information, see Amazon MWAA environment class.'
ExecutionRoleArn:
allOf:
- $ref: '#/components/schemas/IamRoleArn'
- description: 'The Amazon Resource Name (ARN) of the execution role for your environment. An execution role is an Amazon Web Services Identity and Access Management (IAM) role that grants MWAA permission to access Amazon Web Services services and resources used by your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, see Amazon MWAA Execution role.'
KmsKey:
allOf:
- $ref: '#/components/schemas/KmsKey'
- description: 'The Amazon Web Services Key Management Service (KMS) key to encrypt the data in your environment. You can use an Amazon Web Services owned CMK, or a Customer managed CMK (advanced). For more information, see Create an Amazon MWAA environment.'
LoggingConfiguration:
allOf:
- $ref: '#/components/schemas/LoggingConfigurationInput'
- description: Defines the Apache Airflow logs to send to CloudWatch Logs.
MaxWorkers:
allOf:
- $ref: '#/components/schemas/MaxWorkers'
- description: 'The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. For example, 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in MinWorkers.'
MinWorkers:
allOf:
- $ref: '#/components/schemas/MinWorkers'
- description: 'The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the MinWorkers field. For example, 2.'
NetworkConfiguration:
allOf:
- $ref: '#/components/schemas/NetworkConfiguration'
- description: 'The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.'
PluginsS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: 'The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a plugins.zip file is updated. For more information, see How S3 Versioning works.'
PluginsS3Path:
allOf:
- $ref: '#/components/schemas/RelativePath'
- description: 'The relative path to the plugins.zip file on your Amazon S3 bucket. For example, plugins.zip. If specified, then the plugins.zip version is required. For more information, see Installing custom plugins.'
RequirementsS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: 'The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a requirements.txt file is updated. For more information, see How S3 Versioning works.'
RequirementsS3Path:
allOf:
- $ref: '#/components/schemas/RelativePath'
- description: 'The relative path to the requirements.txt file on your Amazon S3 bucket. For example, requirements.txt. If specified, then a version is required. For more information, see Installing Python dependencies.'
Schedulers:
allOf:
- $ref: '#/components/schemas/Schedulers'
- description: 'The number of Apache Airflow schedulers to run in your environment. Valid values:
v2 - Accepts between 2 to 5. Defaults to 2.
v1 - Accepts 1.
arn:aws:s3:::my-airflow-bucket-unique-name. For more information, see Create an Amazon S3 bucket for Amazon MWAA.'
StartupScriptS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: 'The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example:
3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo
For more information, see Using a startup script.
' StartupScriptS3Path: allOf: - $ref: '#/components/schemas/RelativePath' - description: 'The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh.
Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see Using a startup script.
' Tags: allOf: - $ref: '#/components/schemas/TagMap' - description: 'The key-value tag pairs you want to associate to your environment. For example,"Environment": "Staging". For more information, see Tagging Amazon Web Services resources.'
WebserverAccessMode:
allOf:
- $ref: '#/components/schemas/WebserverAccessMode'
- description: 'The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.'
WeeklyMaintenanceWindowStart:
allOf:
- $ref: '#/components/schemas/WeeklyMaintenanceWindowStart'
- description: 'The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only.'
description: 'This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.'
EnvironmentArn:
type: string
pattern: '^arn:aws(-[a-z]+)?:airflow:[a-z0-9\-]+:\d{12}:environment/\w+'
minLength: 1
maxLength: 1224
CreateWebLoginTokenRequest:
type: object
title: CreateWebLoginTokenRequest
properties: {}
CreatedAt:
type: string
format: date-time
DeleteEnvironmentInput:
type: object
title: DeleteEnvironmentInput
properties: {}
String:
type: string
Dimension:
type: object
required:
- Name
- Value
properties:
Name:
allOf:
- $ref: '#/components/schemas/String'
- description: ' Internal only. The name of the dimension.'
Value:
allOf:
- $ref: '#/components/schemas/String'
- description: ' Internal only. The value of the dimension.'
description: ' Internal only. Represents the dimensions of a metric. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.'
Dimensions:
type: array
items:
$ref: '#/components/schemas/Dimension'
Double:
type: number
format: double
LastUpdate:
type: object
properties:
CreatedAt:
allOf:
- $ref: '#/components/schemas/UpdateCreatedAt'
- description: The day and time of the last update on the environment.
Error:
allOf:
- $ref: '#/components/schemas/UpdateError'
- description: The error that was encountered during the last update of the environment.
Source:
allOf:
- $ref: '#/components/schemas/UpdateSource'
- description: 'The source of the last update to the environment. Includes internal processes by Amazon MWAA, such as an environment maintenance update.'
Status:
allOf:
- $ref: '#/components/schemas/UpdateStatus'
- description: The status of the last update on the environment.
description: 'Describes the status of the last update on the environment, and any errors that were encountered.'
LoggingConfiguration:
type: object
properties:
DagProcessingLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfiguration'
- description: The Airflow DAG processing logs published to CloudWatch Logs and the log level.
SchedulerLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfiguration'
- description: The Airflow scheduler logs published to CloudWatch Logs and the log level.
TaskLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfiguration'
- description: The Airflow task logs published to CloudWatch Logs and the log level.
WebserverLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfiguration'
- description: The Airflow web server logs published to CloudWatch Logs and the log level.
WorkerLogs:
allOf:
- $ref: '#/components/schemas/ModuleLoggingConfiguration'
- description: The Airflow worker logs published to CloudWatch Logs and the log level.
description: Describes the Apache Airflow log types that are published to CloudWatch Logs.
EnvironmentStatus:
type: string
enum:
- CREATING
- CREATE_FAILED
- AVAILABLE
- UPDATING
- DELETING
- DELETED
- UNAVAILABLE
- UPDATE_FAILED
- ROLLING_BACK
- CREATING_SNAPSHOT
WebserverUrl:
type: string
pattern: '^https://.+$'
minLength: 1
maxLength: 256
Environment:
type: object
properties:
AirflowConfigurationOptions:
allOf:
- $ref: '#/components/schemas/AirflowConfigurationOptions'
- description: 'A list of key-value pairs containing the Apache Airflow configuration options attached to your environment. For more information, see Apache Airflow configuration options.'
AirflowVersion:
allOf:
- $ref: '#/components/schemas/AirflowVersion'
- description: 'The Apache Airflow version on your environment. Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, and 2.5.1.'
Arn:
allOf:
- $ref: '#/components/schemas/EnvironmentArn'
- description: The Amazon Resource Name (ARN) of the Amazon MWAA environment.
CreatedAt:
allOf:
- $ref: '#/components/schemas/CreatedAt'
- description: The day and time the environment was created.
DagS3Path:
allOf:
- $ref: '#/components/schemas/RelativePath'
- description: 'The relative path to the DAGs folder in your Amazon S3 bucket. For example, s3://mwaa-environment/dags. For more information, see Adding or updating DAGs.'
EnvironmentClass:
allOf:
- $ref: '#/components/schemas/EnvironmentClass'
- description: 'The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. For more information, see Amazon MWAA environment class.'
ExecutionRoleArn:
allOf:
- $ref: '#/components/schemas/IamRoleArn'
- description: 'The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, see Amazon MWAA Execution role.'
KmsKey:
allOf:
- $ref: '#/components/schemas/KmsKey'
- description: The Amazon Web Services Key Management Service (KMS) encryption key used to encrypt the data in your environment.
LastUpdate:
allOf:
- $ref: '#/components/schemas/LastUpdate'
- description: The status of the last update on the environment.
LoggingConfiguration:
allOf:
- $ref: '#/components/schemas/LoggingConfiguration'
- description: The Apache Airflow logs published to CloudWatch Logs.
MaxWorkers:
allOf:
- $ref: '#/components/schemas/MaxWorkers'
- description: 'The maximum number of workers that run in your environment. For example, 20.'
MinWorkers:
allOf:
- $ref: '#/components/schemas/MinWorkers'
- description: 'The minimum number of workers that run in your environment. For example, 2.'
Name:
allOf:
- $ref: '#/components/schemas/EnvironmentName'
- description: 'The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.'
NetworkConfiguration:
allOf:
- $ref: '#/components/schemas/NetworkConfiguration'
- description: 'Describes the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.'
PluginsS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: 'The version of the plugins.zip file in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file.
Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example:
3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo
For more information, see Installing custom plugins.
' PluginsS3Path: allOf: - $ref: '#/components/schemas/RelativePath' - description: 'The relative path to the file in your Amazon S3 bucket. For example,s3://mwaa-environment/plugins.zip. For more information, see Installing custom plugins.'
RequirementsS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: 'The version of the requirements.txt file on your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file.
Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example:
3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo
For more information, see Installing Python dependencies.
' RequirementsS3Path: allOf: - $ref: '#/components/schemas/RelativePath' - description: 'The relative path to therequirements.txt file in your Amazon S3 bucket. For example, s3://mwaa-environment/requirements.txt. For more information, see Installing Python dependencies.'
Schedulers:
allOf:
- $ref: '#/components/schemas/Schedulers'
- description: The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
ServiceRoleArn:
allOf:
- $ref: '#/components/schemas/IamRoleArn'
- description: 'The Amazon Resource Name (ARN) for the service-linked role of the environment. For more information, see Amazon MWAA Service-linked role.'
SourceBucketArn:
allOf:
- $ref: '#/components/schemas/S3BucketArn'
- description: 'The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. For more information, see Create an Amazon S3 bucket for Amazon MWAA.'
StartupScriptS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/String'
- description: 'The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file.
Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example:
3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo
For more information, see Using a startup script.
' StartupScriptS3Path: allOf: - $ref: '#/components/schemas/String' - description: 'The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh.
Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see Using a startup script.
' Status: allOf: - $ref: '#/components/schemas/EnvironmentStatus' - description: 'The status of the Amazon MWAA environment. Valid values:
CREATING - Indicates the request to create the environment is in progress.
CREATING_SNAPSHOT - Indicates the request to update environment details, or upgrade the environment version, is in progress and Amazon MWAA is creating a storage volume snapshot of the Amazon RDS database cluster associated with the environment. A database snapshot is a backup created at a specific point in time. Amazon MWAA uses snapshots to recover environment metadata if the process to update or upgrade an environment fails.
CREATE_FAILED - Indicates the request to create the environment failed, and the environment could not be created.
AVAILABLE - Indicates the request was successful and the environment is ready to use.
UPDATING - Indicates the request to update the environment is in progress.
ROLLING_BACK - Indicates the request to update environment details, or upgrade the environment version, failed and Amazon MWAA is restoring the environment using the latest storage volume snapshot.
DELETING - Indicates the request to delete the environment is in progress.
DELETED - Indicates the request to delete the environment is complete, and the environment has been deleted.
UNAVAILABLE - Indicates the request failed, but the environment was unable to rollback and is not in a stable state.
UPDATE_FAILED - Indicates the request to update the environment failed, and the environment has rolled back successfully and is ready to use.
We recommend reviewing our troubleshooting guide for a list of common errors and their solutions. For more information, see Amazon MWAA troubleshooting.
' Tags: allOf: - $ref: '#/components/schemas/TagMap' - description: 'The key-value tag pairs associated to your environment. For example,"Environment": "Staging". For more information, see Tagging Amazon Web Services resources.'
WebserverAccessMode:
allOf:
- $ref: '#/components/schemas/WebserverAccessMode'
- description: 'The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.'
WebserverUrl:
allOf:
- $ref: '#/components/schemas/WebserverUrl'
- description: 'The Apache Airflow Web server host name for the Amazon MWAA environment. For more information, see Accessing the Apache Airflow UI.'
WeeklyMaintenanceWindowStart:
allOf:
- $ref: '#/components/schemas/WeeklyMaintenanceWindowStart'
- description: 'The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time that weekly maintenance updates are scheduled. For example: TUE:03:30.'
description: Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
EnvironmentList:
type: array
items:
$ref: '#/components/schemas/EnvironmentName'
ErrorCode:
type: string
ErrorMessage:
type: string
pattern: ^.+$
minLength: 1
maxLength: 1024
GetEnvironmentInput:
type: object
title: GetEnvironmentInput
properties: {}
Integer:
type: integer
UpdateCreatedAt:
type: string
format: date-time
UpdateError:
type: object
properties:
ErrorCode:
allOf:
- $ref: '#/components/schemas/ErrorCode'
- description: The error code that corresponds to the error with the last update.
ErrorMessage:
allOf:
- $ref: '#/components/schemas/ErrorMessage'
- description: The error message that corresponds to the error code.
description: Describes the error(s) encountered with the last update of the environment.
UpdateSource:
type: string
pattern: ^.+$
minLength: 1
maxLength: 256
UpdateStatus:
type: string
enum:
- SUCCESS
- PENDING
- FAILED
ListEnvironmentsInputMaxResultsInteger:
type: integer
minimum: 1
maximum: 25
NextToken:
type: string
minLength: 0
maxLength: 2048
ListEnvironmentsInput:
type: object
title: ListEnvironmentsInput
properties: {}
ListTagsForResourceInput:
type: object
title: ListTagsForResourceInput
properties: {}
ModuleLoggingConfiguration:
type: object
properties:
CloudWatchLogGroupArn:
allOf:
- $ref: '#/components/schemas/CloudWatchLogGroupArn'
- description: 'The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache Airflow log type (e.g. DagProcessingLogs) is published. For example, arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.'
Enabled:
allOf:
- $ref: '#/components/schemas/LoggingEnabled'
- description: Indicates whether the Apache Airflow log type (e.g. DagProcessingLogs) is enabled.
LogLevel:
allOf:
- $ref: '#/components/schemas/LoggingLevel'
- description: 'The Apache Airflow log level for the log type (e.g. DagProcessingLogs). '
description: Describes the Apache Airflow log details for the log type (e.g. DagProcessingLogs).
LoggingEnabled:
type: boolean
LoggingLevel:
type: string
enum:
- CRITICAL
- ERROR
- WARNING
- INFO
- DEBUG
MetricData:
type: array
items:
$ref: '#/components/schemas/MetricDatum'
StatisticSet:
type: object
properties:
Maximum:
allOf:
- $ref: '#/components/schemas/Double'
- description: ' Internal only. The maximum value of the sample set.'
Minimum:
allOf:
- $ref: '#/components/schemas/Double'
- description: ' Internal only. The minimum value of the sample set.'
SampleCount:
allOf:
- $ref: '#/components/schemas/Integer'
- description: ' Internal only. The number of samples used for the statistic set.'
Sum:
allOf:
- $ref: '#/components/schemas/Double'
- description: ' Internal only. The sum of values for the sample set.'
description: ' Internal only. Represents a set of statistics that describe a specific metric. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.'
Timestamp:
type: string
format: date-time
Unit:
type: string
enum:
- Seconds
- Microseconds
- Milliseconds
- Bytes
- Kilobytes
- Megabytes
- Gigabytes
- Terabytes
- Bits
- Kilobits
- Megabits
- Gigabits
- Terabits
- Percent
- Count
- Bytes/Second
- Kilobytes/Second
- Megabytes/Second
- Gigabytes/Second
- Terabytes/Second
- Bits/Second
- Kilobits/Second
- Megabits/Second
- Gigabits/Second
- Terabits/Second
- Count/Second
- None
PublishMetricsInput:
type: object
required:
- MetricData
title: PublishMetricsInput
properties:
MetricData:
allOf:
- $ref: '#/components/schemas/MetricData'
- description: ' Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.'
SecurityGroupId:
type: string
pattern: '^sg-[a-zA-Z0-9\-._]+$'
minLength: 1
maxLength: 1024
SubnetId:
type: string
pattern: '^subnet-[a-zA-Z0-9\-._]+$'
minLength: 1
maxLength: 1024
TagKeyList:
type: array
items:
$ref: '#/components/schemas/TagKey'
minItems: 0
maxItems: 50
TagResourceInput:
type: object
required:
- Tags
title: TagResourceInput
properties:
Tags:
allOf:
- $ref: '#/components/schemas/TagMap'
- description: 'The key-value tag pairs you want to associate to your environment. For example, "Environment": "Staging". For more information, see Tagging Amazon Web Services resources.'
UntagResourceInput:
type: object
title: UntagResourceInput
properties: {}
UpdateNetworkConfigurationInput:
type: object
required:
- SecurityGroupIds
properties:
SecurityGroupIds:
allOf:
- $ref: '#/components/schemas/SecurityGroupList'
- description: 'A list of security group IDs. A security group must be attached to the same VPC as the subnets. For more information, see Security in your VPC on Amazon MWAA.'
description: 'Defines the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.'
UpdateEnvironmentInput:
type: object
title: UpdateEnvironmentInput
properties:
AirflowConfigurationOptions:
allOf:
- $ref: '#/components/schemas/AirflowConfigurationOptions'
- description: 'A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see Apache Airflow configuration options.'
AirflowVersion:
allOf:
- $ref: '#/components/schemas/AirflowVersion'
- description: 'The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.
Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.
Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, and 2.5.1.
dags. For more information, see Adding or updating DAGs.'
EnvironmentClass:
allOf:
- $ref: '#/components/schemas/EnvironmentClass'
- description: 'The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. For more information, see Amazon MWAA environment class.'
ExecutionRoleArn:
allOf:
- $ref: '#/components/schemas/IamRoleArn'
- description: 'The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, see Amazon MWAA Execution role.'
LoggingConfiguration:
allOf:
- $ref: '#/components/schemas/LoggingConfigurationInput'
- description: The Apache Airflow log types to send to CloudWatch Logs.
MaxWorkers:
allOf:
- $ref: '#/components/schemas/MaxWorkers'
- description: 'The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. For example, 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in MinWorkers.'
MinWorkers:
allOf:
- $ref: '#/components/schemas/MinWorkers'
- description: 'The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the MinWorkers field. For example, 2.'
NetworkConfiguration:
allOf:
- $ref: '#/components/schemas/UpdateNetworkConfigurationInput'
- description: 'The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.'
PluginsS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: 'The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a plugins.zip file is updated. For more information, see How S3 Versioning works.'
PluginsS3Path:
allOf:
- $ref: '#/components/schemas/RelativePath'
- description: 'The relative path to the plugins.zip file on your Amazon S3 bucket. For example, plugins.zip. If specified, then the plugins.zip version is required. For more information, see Installing custom plugins.'
RequirementsS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: 'The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a requirements.txt file is updated. For more information, see How S3 Versioning works.'
RequirementsS3Path:
allOf:
- $ref: '#/components/schemas/RelativePath'
- description: 'The relative path to the requirements.txt file on your Amazon S3 bucket. For example, requirements.txt. If specified, then a file version is required. For more information, see Installing Python dependencies.'
Schedulers:
allOf:
- $ref: '#/components/schemas/Schedulers'
- description: The number of Apache Airflow schedulers to run in your Amazon MWAA environment.
SourceBucketArn:
allOf:
- $ref: '#/components/schemas/S3BucketArn'
- description: 'The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. For more information, see Create an Amazon S3 bucket for Amazon MWAA.'
StartupScriptS3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: 'The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example:
3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo
For more information, see Using a startup script.
' StartupScriptS3Path: allOf: - $ref: '#/components/schemas/RelativePath' - description: 'The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh.
Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see Using a startup script.
' WebserverAccessMode: allOf: - $ref: '#/components/schemas/WebserverAccessMode' - description: 'The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.' WeeklyMaintenanceWindowStart: allOf: - $ref: '#/components/schemas/WeeklyMaintenanceWindowStart' - description: 'The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format:DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only.'
security:
- hmac: []