Values.EnvironmentSourceDescribes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
type nonrec t = {name : EnvironmentName.t option;The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.
*)status : EnvironmentStatus.t option;The status of the Amazon MWAA environment. Valid values: CREATING - The request to create the environment is in progress. CREATING_SNAPSHOT - 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 - The request to create the environment failed and the environment was not created. AVAILABLE - The request was successful and the environment is ready to use. PENDING - 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 - The request to update the environment is in progress. ROLLING_BACK - 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 - The request to delete the environment is in progress. DELETED - The request to delete the environment is complete, and the environment has been deleted. UNAVAILABLE - The request failed, but the environment did not return to its previous state and is not stable. UPDATE_FAILED - The request to update the environment failed and the environment was restored to its previous state successfully and is ready to use. MAINTENANCE - The environment is undergoing maintenance. Depending on the type of work Amazon MWAA is performing, your environment might be unavailable during this process. Note that as part of the maintenance work, Amazon MWAA performs with a GRACEFUL workerReplacementStrategy . You can review our troubleshooting guide for a list of common errors and their solutions. For more information, refer to Amazon MWAA troubleshooting.
*)arn : EnvironmentArn.t option;The Amazon Resource Name (ARN) of the Amazon MWAA environment.
*)createdAt : CreatedAt.t option;The day and time the environment was created.
*)webserverUrl : WebserverUrl.t option;The Apache Airflow web server host name for the Amazon MWAA environment. For more information, refer to Accessing the Apache Airflow UI.
*)executionRoleArn : IamRoleArn.t option;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, refer to Amazon MWAA Execution role.
*)serviceRoleArn : IamRoleArn.t option;The Amazon Resource Name (ARN) for the service-linked role of the environment. For more information, refer to Amazon MWAA Service-linked role.
*)kmsKey : KmsKey.t option;The KMS encryption key used to encrypt the data in your environment.
*)airflowVersion : AirflowVersion.t option;The Apache Airflow version on your environment. Valid values: 2.7.2, 2.8.1, 2.9.2, 2.10.1, 2.10.3, 2.11.0, and 3.0.6.
*)sourceBucketArn : S3BucketArn.t option;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, refer to Create an Amazon S3 bucket for Amazon MWAA.
*)dagS3Path : RelativePath.t option;The relative path to the DAGs folder in your Amazon S3 bucket. For example, s3://mwaa-environment/dags. For more information, refer to Adding or updating DAGs.
*)pluginsS3Path : RelativePath.t option;The relative path to the file in your Amazon S3 bucket. For example, s3://mwaa-environment/plugins.zip. For more information, refer to Installing custom plugins.
*)pluginsS3ObjectVersion : S3ObjectVersion.t option;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, refer to Installing custom plugins.
*)requirementsS3Path : RelativePath.t option;The relative path to the requirements.txt file in your Amazon S3 bucket. For example, s3://mwaa-environment/requirements.txt. For more information, refer to Installing Python dependencies.
*)requirementsS3ObjectVersion : S3ObjectVersion.t option;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, refer to Installing Python dependencies.
*)startupScriptS3Path : String_.t option;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, refer to Using a startup script.
*)startupScriptS3ObjectVersion : String_.t option;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, refer to Using a startup script.
*)airflowConfigurationOptions : AirflowConfigurationOptions.t option;A list of key-value pairs containing the Apache Airflow configuration options attached to your environment. For more information, refer to Apache Airflow configuration options.
*)environmentClass : EnvironmentClass.t option;The environment class type. Valid values: mw1.micro, mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, refer to Amazon MWAA environment class.
*)maxWorkers : MaxWorkers.t option;The maximum number of workers that run in your environment. For example, 20.
*)networkConfiguration : NetworkConfiguration.t option;Describes the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, refer to About networking on Amazon MWAA.
*)loggingConfiguration : LoggingConfiguration.t option;The Apache Airflow logs published to CloudWatch Logs.
*)lastUpdate : LastUpdate.t option;The status of the last update on the environment.
*)weeklyMaintenanceWindowStart : WeeklyMaintenanceWindowStart.t option;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.
*)webserverAccessMode : WebserverAccessMode.t option;The Apache Airflow web server access mode. For more information, refer to Apache Airflow access modes.
*)minWorkers : MinWorkers.t option;The minimum number of workers that run in your environment. For example, 2.
*)schedulers : Schedulers.t option;The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
*)webserverVpcEndpointService : VpcEndpointServiceName.t option;The VPC endpoint for the environment's web server.
*)databaseVpcEndpointService : VpcEndpointServiceName.t option;The VPC endpoint for the environment's Amazon RDS database.
*)celeryExecutorQueue : CeleryExecutorQueue.t option;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.
*)endpointManagement : EndpointManagement.t option;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.
*)minWebservers : MinWebservers.t option;The minimum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers. Valid values: For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1.
*)maxWebservers : MaxWebservers.t option;The maximum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers. Valid values: For environments larger than mw1.micro, accepts values from 2 to 5. Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1.
*)}val make :
?name:??? ->
?status:??? ->
?arn:??? ->
?createdAt:??? ->
?webserverUrl:??? ->
?executionRoleArn:??? ->
?serviceRoleArn:??? ->
?kmsKey:??? ->
?airflowVersion:??? ->
?sourceBucketArn:??? ->
?dagS3Path:??? ->
?pluginsS3Path:??? ->
?pluginsS3ObjectVersion:??? ->
?requirementsS3Path:??? ->
?requirementsS3ObjectVersion:??? ->
?startupScriptS3Path:??? ->
?startupScriptS3ObjectVersion:??? ->
?airflowConfigurationOptions:??? ->
?environmentClass:??? ->
?maxWorkers:??? ->
?networkConfiguration:??? ->
?loggingConfiguration:??? ->
?lastUpdate:??? ->
?weeklyMaintenanceWindowStart:??? ->
?tags:??? ->
?webserverAccessMode:??? ->
?minWorkers:??? ->
?schedulers:??? ->
?webserverVpcEndpointService:??? ->
?databaseVpcEndpointService:??? ->
?celeryExecutorQueue:??? ->
?endpointManagement:??? ->
?minWebservers:??? ->
?maxWebservers:??? ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `Integer of MaxWorkers.t
| `Map of
([> `String of ConfigKey.t ] * [> `String of ConfigValue.t ]) list
| `String of EnvironmentName.t
| `Structure of
(string
* [> `Enum of string
| `List of [> `String of SubnetId.t ] list
| `String of UpdateSource.t
| `Structure of
(string
* [> `Boolean of LoggingEnabled.t
| `Enum of string
| `String of CloudWatchLogGroupArn.t ])
list
| `Timestamp of UpdateCreatedAt.t ])
list
| `Timestamp of CreatedAt.t ])
list ]