EnvironmentState constructor
- Input<
Map< ? airflowConfigurationOptions,String, String> ?> - Input<
String?> ? airflowVersion, - Input<
String?> ? arn, - Input<
String?> ? createdAt, - Input<
String?> ? dagS3Path, - Input<
String?> ? databaseVpcEndpointService, - Input<
String?> ? endpointManagement, - Input<
String?> ? environmentClass, - Input<
String?> ? executionRoleArn, - Input<
String?> ? kmsKey, - Input<
List< ? lastUpdateds,EnvironmentLastUpdated> ?> - Input<
EnvironmentLoggingConfiguration?> ? loggingConfiguration, - Input<
int?> ? maxWebservers, - Input<
int?> ? maxWorkers, - Input<
int?> ? minWebservers, - Input<
int?> ? minWorkers, - Input<
String?> ? name, - Input<
EnvironmentNetworkConfiguration?> ? networkConfiguration, - Input<
String?> ? pluginsS3ObjectVersion, - Input<
String?> ? pluginsS3Path, - Input<
String?> ? region, - Input<
String?> ? requirementsS3ObjectVersion, - Input<
String?> ? requirementsS3Path, - Input<
int?> ? schedulers, - Input<
String?> ? serviceRoleArn, - Input<
String?> ? sourceBucketArn, - Input<
String?> ? startupScriptS3ObjectVersion, - Input<
String?> ? startupScriptS3Path, - Input<
String?> ? status, - Input<
Map< ? tags,String, String> ?> - Input<
Map< ? tagsAll,String, String> ?> - Input<
String?> ? webserverAccessMode, - Input<
String?> ? webserverUrl, - Input<
String?> ? webserverVpcEndpointService, - Input<
String?> ? weeklyMaintenanceWindowStart, - Input<
String?> ? workerReplacementStrategy,
Creates a new EnvironmentState.
airflowConfigurationOptions The airflowConfigurationOptions parameter specifies airflow override options. Check the Official documentation for all possible configuration options.
airflowVersion Airflow version of your environment, will be set by default to the latest version that MWAA supports.
arn The ARN of the MWAA Environment
createdAt The Created At date of the MWAA Environment
dagS3Path The relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
databaseVpcEndpointService The VPC endpoint for the environment's Amazon RDS database
endpointManagement Defines whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. 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. Defaults to SERVICE if not set.
environmentClass Environment class for the cluster. Possible options are mw1.micro, mw1.small, mw1.medium, mw1.large. Will be set by default to mw1.small. Please check the AWS Pricing for more information about the environment classes.
executionRoleArn ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
kmsKey ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key aws/airflow by default. Please check the Official Documentation for more information.
lastUpdateds Optional.
loggingConfiguration The Apache Airflow logs you want to send to Amazon CloudWatch Logs. See loggingConfiguration Block for details.
maxWebservers The maximum number of web servers that you want to run in your environment. Value need to be between 2 and 5 if environmentClass is not mw1.micro, 1 otherwise.
maxWorkers The maximum number of workers that can be automatically scaled up. Value need to be between 1 and 25. Will be 10 by default.
minWebservers The minimum number of web servers that you want to run in your environment. Value need to be between 2 and 5 if environmentClass is not mw1.micro, 1 otherwise.
minWorkers The minimum number of workers that you want to run in your environment. Will be 1 by default.
name The name of the Apache Airflow Environment
networkConfiguration Specifies the network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See networkConfiguration Block for details.
pluginsS3ObjectVersion The plugins.zip file version you want to use.
pluginsS3Path The relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
requirementsS3ObjectVersion The requirements.txt file version you want to use.
requirementsS3Path The relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
schedulers The number of schedulers that you want to run in your environment. v2.0.2 and above accepts 2 - 5, default 2. v1.10.12 accepts 1.
serviceRoleArn The Service Role ARN of the Amazon MWAA Environment
sourceBucketArn ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
startupScriptS3ObjectVersion The version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
startupScriptS3Path The relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
status The status of the Amazon MWAA Environment
tags A map of resource tags to associate with the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
webserverAccessMode Specifies whether the webserver should be accessible over the internet or via your specified VPC. Possible options: PRIVATE_ONLY (default), PUBLIC_ONLY and PUBLIC_AND_PRIVATE.
webserverUrl The webserver URL of the MWAA Environment
webserverVpcEndpointService The VPC endpoint for the environment's web server
weeklyMaintenanceWindowStart Specifies the start date for the weekly maintenance window.
workerReplacementStrategy Worker replacement strategy. Valid values: FORCED, GRACEFUL.
Implementation
const EnvironmentState({
this.airflowConfigurationOptions,
this.airflowVersion,
this.arn,
this.createdAt,
this.dagS3Path,
this.databaseVpcEndpointService,
this.endpointManagement,
this.environmentClass,
this.executionRoleArn,
this.kmsKey,
this.lastUpdateds,
this.loggingConfiguration,
this.maxWebservers,
this.maxWorkers,
this.minWebservers,
this.minWorkers,
this.name,
this.networkConfiguration,
this.pluginsS3ObjectVersion,
this.pluginsS3Path,
this.region,
this.requirementsS3ObjectVersion,
this.requirementsS3Path,
this.schedulers,
this.serviceRoleArn,
this.sourceBucketArn,
this.startupScriptS3ObjectVersion,
this.startupScriptS3Path,
this.status,
this.tags,
this.tagsAll,
this.webserverAccessMode,
this.webserverUrl,
this.webserverVpcEndpointService,
this.weeklyMaintenanceWindowStart,
this.workerReplacementStrategy,
});