diff --git a/clients/client-mwaa/src/commands/CreateEnvironmentCommand.ts b/clients/client-mwaa/src/commands/CreateEnvironmentCommand.ts index 0ca9ca70ab16..6e471ccb4f39 100644 --- a/clients/client-mwaa/src/commands/CreateEnvironmentCommand.ts +++ b/clients/client-mwaa/src/commands/CreateEnvironmentCommand.ts @@ -103,6 +103,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentOutput, * WebserverAccessMode: "STRING_VALUE", * MinWorkers: Number("int"), * Schedulers: Number("int"), + * EndpointManagement: "STRING_VALUE", * }; * const command = new CreateEnvironmentCommand(input); * const response = await client.send(command); diff --git a/clients/client-mwaa/src/commands/GetEnvironmentCommand.ts b/clients/client-mwaa/src/commands/GetEnvironmentCommand.ts index 20088e00fe29..edbe597f1f19 100644 --- a/clients/client-mwaa/src/commands/GetEnvironmentCommand.ts +++ b/clients/client-mwaa/src/commands/GetEnvironmentCommand.ts @@ -124,6 +124,10 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentOutput, __Met * // WebserverAccessMode: "STRING_VALUE", * // MinWorkers: Number("int"), * // Schedulers: Number("int"), + * // WebserverVpcEndpointService: "STRING_VALUE", + * // DatabaseVpcEndpointService: "STRING_VALUE", + * // CeleryExecutorQueue: "STRING_VALUE", + * // EndpointManagement: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-mwaa/src/models/models_0.ts b/clients/client-mwaa/src/models/models_0.ts index 93a8f5497007..81733070fe48 100644 --- a/clients/client-mwaa/src/models/models_0.ts +++ b/clients/client-mwaa/src/models/models_0.ts @@ -73,6 +73,20 @@ export class ResourceNotFoundException extends __BaseException { } } +/** + * @public + * @enum + */ +export const EndpointManagement = { + CUSTOMER: "CUSTOMER", + SERVICE: "SERVICE", +} as const; + +/** + * @public + */ +export type EndpointManagement = (typeof EndpointManagement)[keyof typeof EndpointManagement]; + /** * @public * @enum @@ -291,7 +305,8 @@ export interface CreateEnvironmentInput { * @public *
The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. * For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).
- *Valid values: 1.10.12
, 2.0.2
, 2.2.2
, 2.4.3
, 2.5.1
, 2.6.3
, 2.7.2
.
Valid values: 1.10.12
, 2.0.2
, 2.2.2
, 2.4.3
, 2.5.1
, 2.6.3
, 2.7.2
+ *
The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
+ *Defines the access mode for the Apache Airflow web server. For more information, see Apache Airflow access modes.
*/ WebserverAccessMode?: WebserverAccessMode; @@ -338,6 +353,15 @@ export interface CreateEnvironmentInput { * */ Schedulers?: number; + + /** + * @public + *Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to SERVICE
, Amazon MWAA will create and manage the required VPC endpoints in
+ * your VPC. If set to CUSTOMER
, you must create, and manage, the VPC endpoints for your VPC. If you choose to create an environment in a shared VPC, you must set this value to CUSTOMER
.
+ * In a shared VPC deployment, the environment will remain in PENDING
status until you create the VPC endpoints. If you do not take action to
+ * create the endpoints within 72 hours, the status will change to CREATE_FAILED
. You can delete the failed environment and create a new one.
The status of the Amazon MWAA environment. Valid values:
+ *The status of the Amazon MWAA environment.
+ *Valid values:
*@@ -626,6 +652,11 @@ export interface Environment { *
+ * PENDING
- Indicates the request was successful, but the process to create the environment is paused until you create the required
+ * VPC endpoints in your VPC. After you create the VPC endpoints, the process resumes.
* UPDATING
- Indicates the request to update the environment is in progress.
The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
+ *The Apache Airflow web server access mode. For more information, see Apache Airflow access modes.
*/ WebserverAccessMode?: WebserverAccessMode; @@ -840,6 +871,32 @@ export interface Environment { *The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
*/ Schedulers?: number; + + /** + * @public + *The VPC endpoint for the environment's web server.
+ */ + WebserverVpcEndpointService?: string; + + /** + * @public + *The VPC endpoint for the environment's Amazon RDS database.
+ */ + DatabaseVpcEndpointService?: string; + + /** + * @public + *The queue ARN for the environment's Celery Executor. Amazon MWAA uses a Celery Executor + * to distribute tasks across multiple workers. When you create an environment in a shared VPC, you must provide access to the Celery Executor queue from your VPC.
+ */ + CeleryExecutorQueue?: string; + + /** + * @public + *Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to SERVICE
, Amazon MWAA will create and manage the required VPC endpoints in
+ * your VPC. If set to CUSTOMER
, you must create, and manage, the VPC endpoints in your VPC.
The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version.\n For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).
\nValid values: 1.10.12
, 2.0.2
, 2.2.2
, 2.4.3
, 2.5.1
, 2.6.3
, 2.7.2
.
The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version.\n For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).
\nValid values: 1.10.12
, 2.0.2
, 2.2.2
, 2.4.3
, 2.5.1
, 2.6.3
, 2.7.2
\n
The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
" + "smithy.api#documentation": "Defines the access mode for the Apache Airflow web server. For more information, see Apache Airflow access modes.
" } }, "MinWorkers": { @@ -1152,6 +1162,12 @@ "traits": { "smithy.api#documentation": "The number of Apache Airflow schedulers to run in your environment. Valid values:
\nv2 - Accepts between 2 to 5. Defaults to 2.
\nv1 - Accepts 1.
\nDefines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to SERVICE
, Amazon MWAA will create and manage the required VPC endpoints in\n your VPC. If set to CUSTOMER
, you must create, and manage, the VPC endpoints for your VPC. If you choose to create an environment in a shared VPC, you must set this value to CUSTOMER
.\n In a shared VPC deployment, the environment will remain in PENDING
status until you create the VPC endpoints. If you do not take action to\n create the endpoints within 72 hours, the status will change to CREATE_FAILED
. You can delete the failed environment and create a new one.
The status of the Amazon MWAA environment. Valid values:
\n\n CREATING
- Indicates the request to create the environment is in progress.
\n 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\n 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\n an environment fails.
\n CREATE_FAILED
- Indicates the request to create the environment failed, and the environment could not be created.
\n AVAILABLE
- Indicates the request was successful and the environment is ready to use.
\n UPDATING
- Indicates the request to update the environment is in progress.
\n 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.
\n DELETING
- Indicates the request to delete the environment is in progress.
\n DELETED
- Indicates the request to delete the environment is complete, and the environment has been deleted.
\n UNAVAILABLE
- Indicates the request failed, but the environment was unable to rollback and is not in a stable state.
\n 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.
" + "smithy.api#documentation": "The status of the Amazon MWAA environment.
\nValid values:
\n\n CREATING
- Indicates the request to create the environment is in progress.
\n 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\n 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\n an environment fails.
\n CREATE_FAILED
- Indicates the request to create the environment failed, and the environment could not be created.
\n AVAILABLE
- Indicates the request was successful and the environment is ready to use.
\n PENDING
- Indicates the request was successful, but the process to create the environment is paused until you create the required\n VPC endpoints in your VPC. After you create the VPC endpoints, the process resumes.
\n UPDATING
- Indicates the request to update the environment is in progress.
\n 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.
\n DELETING
- Indicates the request to delete the environment is in progress.
\n DELETED
- Indicates the request to delete the environment is complete, and the environment has been deleted.
\n UNAVAILABLE
- Indicates the request failed, but the environment was unable to rollback and is not in a stable state.
\n 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.
" } }, "Arn": { @@ -1478,7 +1509,7 @@ "WebserverAccessMode": { "target": "com.amazonaws.mwaa#WebserverAccessMode", "traits": { - "smithy.api#documentation": "The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
" + "smithy.api#documentation": "The Apache Airflow web server access mode. For more information, see Apache Airflow access modes.
" } }, "MinWorkers": { @@ -1492,6 +1523,30 @@ "traits": { "smithy.api#documentation": "The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
" } + }, + "WebserverVpcEndpointService": { + "target": "com.amazonaws.mwaa#VpcEndpointServiceName", + "traits": { + "smithy.api#documentation": "The VPC endpoint for the environment's web server.
" + } + }, + "DatabaseVpcEndpointService": { + "target": "com.amazonaws.mwaa#VpcEndpointServiceName", + "traits": { + "smithy.api#documentation": "The VPC endpoint for the environment's Amazon RDS database.
" + } + }, + "CeleryExecutorQueue": { + "target": "com.amazonaws.mwaa#CeleryExecutorQueue", + "traits": { + "smithy.api#documentation": "The queue ARN for the environment's Celery Executor. Amazon MWAA uses a Celery Executor\n to distribute tasks across multiple workers. When you create an environment in a shared VPC, you must provide access to the Celery Executor queue from your VPC.
" + } + }, + "EndpointManagement": { + "target": "com.amazonaws.mwaa#EndpointManagement", + "traits": { + "smithy.api#documentation": "Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to SERVICE
, Amazon MWAA will create and manage the required VPC endpoints in\n your VPC. If set to CUSTOMER
, you must create, and manage, the VPC endpoints in your VPC.