EnvironmentState class

Input properties used for looking up and filtering Environment resources.

Constructors

EnvironmentState({Input<Map<String, String>?>? airflowConfigurationOptions, 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<EnvironmentLastUpdated>?>? lastUpdateds, 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<String, String>?>? tags, Input<Map<String, String>?>? tagsAll, 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.
const
EnvironmentState.fromMap(Map<String, dynamic> map)
factory

Properties

airflowConfigurationOptions → Input<Map<String, String>?>?
The airflowConfigurationOptions parameter specifies airflow override options. Check the Official documentation for all possible configuration options.
final
airflowVersion → Input<String?>?
Airflow version of your environment, will be set by default to the latest version that MWAA supports.
final
arn → Input<String?>?
The ARN of the MWAA Environment
final
createdAt → Input<String?>?
The Created At date of the MWAA Environment
final
dagS3Path → Input<String?>?
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.
final
databaseVpcEndpointService → Input<String?>?
The VPC endpoint for the environment's Amazon RDS database
final
endpointManagement → Input<String?>?
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.
final
environmentClass → Input<String?>?
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.
final
executionRoleArn → Input<String?>?
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.
final
hashCode → int
The hash code for this object.
no setterinherited
kmsKey → Input<String?>?
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.
final
lastUpdateds → Input<List<EnvironmentLastUpdated>?>?
final
loggingConfiguration → Input<EnvironmentLoggingConfiguration?>?
The Apache Airflow logs you want to send to Amazon CloudWatch Logs. See loggingConfiguration Block for details.
final
maxWebservers → Input<int?>?
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.
final
maxWorkers → Input<int?>?
The maximum number of workers that can be automatically scaled up. Value need to be between 1 and 25. Will be 10 by default.
final
minWebservers → Input<int?>?
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.
final
minWorkers → Input<int?>?
The minimum number of workers that you want to run in your environment. Will be 1 by default.
final
name → Input<String?>?
The name of the Apache Airflow Environment
final
networkConfiguration → Input<EnvironmentNetworkConfiguration?>?
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.
final
pluginsS3ObjectVersion → Input<String?>?
The plugins.zip file version you want to use.
final
pluginsS3Path → Input<String?>?
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.
final
region → Input<String?>?
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
requirementsS3ObjectVersion → Input<String?>?
The requirements.txt file version you want to use.
final
requirementsS3Path → Input<String?>?
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.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schedulers → Input<int?>?
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.
final
serviceRoleArn → Input<String?>?
The Service Role ARN of the Amazon MWAA Environment
final
sourceBucketArn → Input<String?>?
ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
final
startupScriptS3ObjectVersion → Input<String?>?
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.
final
startupScriptS3Path → Input<String?>?
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.
final
status → Input<String?>?
The status of the Amazon MWAA Environment
final
tags → Input<Map<String, String>?>?
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.
final
tagsAll → Input<Map<String, String>?>?
A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
final
webserverAccessMode → Input<String?>?
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.
final
webserverUrl → Input<String?>?
The webserver URL of the MWAA Environment
final
webserverVpcEndpointService → Input<String?>?
The VPC endpoint for the environment's web server
final
weeklyMaintenanceWindowStart → Input<String?>?
Specifies the start date for the weekly maintenance window.
final
workerReplacementStrategy → Input<String?>?
Worker replacement strategy. Valid values: FORCED, GRACEFUL.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited