| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.MwAA.Types.Environment
Description
Synopsis
- data Environment = Environment' {
- serviceRoleArn :: Maybe Text
- schedulers :: Maybe Int
- status :: Maybe EnvironmentStatus
- minWorkers :: Maybe Natural
- pluginsS3Path :: Maybe Text
- webserverAccessMode :: Maybe WebserverAccessMode
- airflowVersion :: Maybe Text
- kmsKey :: Maybe Text
- arn :: Maybe Text
- createdAt :: Maybe POSIX
- weeklyMaintenanceWindowStart :: Maybe Text
- executionRoleArn :: Maybe Text
- requirementsS3ObjectVersion :: Maybe Text
- lastUpdate :: Maybe LastUpdate
- sourceBucketArn :: Maybe Text
- webserverUrl :: Maybe Text
- dagS3Path :: Maybe Text
- name :: Maybe Text
- pluginsS3ObjectVersion :: Maybe Text
- airflowConfigurationOptions :: Maybe (HashMap Text Text)
- loggingConfiguration :: Maybe LoggingConfiguration
- environmentClass :: Maybe Text
- networkConfiguration :: Maybe NetworkConfiguration
- tags :: Maybe (HashMap Text Text)
- requirementsS3Path :: Maybe Text
- maxWorkers :: Maybe Natural
- newEnvironment :: Environment
- environment_serviceRoleArn :: Lens' Environment (Maybe Text)
- environment_schedulers :: Lens' Environment (Maybe Int)
- environment_status :: Lens' Environment (Maybe EnvironmentStatus)
- environment_minWorkers :: Lens' Environment (Maybe Natural)
- environment_pluginsS3Path :: Lens' Environment (Maybe Text)
- environment_webserverAccessMode :: Lens' Environment (Maybe WebserverAccessMode)
- environment_airflowVersion :: Lens' Environment (Maybe Text)
- environment_kmsKey :: Lens' Environment (Maybe Text)
- environment_arn :: Lens' Environment (Maybe Text)
- environment_createdAt :: Lens' Environment (Maybe UTCTime)
- environment_weeklyMaintenanceWindowStart :: Lens' Environment (Maybe Text)
- environment_executionRoleArn :: Lens' Environment (Maybe Text)
- environment_requirementsS3ObjectVersion :: Lens' Environment (Maybe Text)
- environment_lastUpdate :: Lens' Environment (Maybe LastUpdate)
- environment_sourceBucketArn :: Lens' Environment (Maybe Text)
- environment_webserverUrl :: Lens' Environment (Maybe Text)
- environment_dagS3Path :: Lens' Environment (Maybe Text)
- environment_name :: Lens' Environment (Maybe Text)
- environment_pluginsS3ObjectVersion :: Lens' Environment (Maybe Text)
- environment_airflowConfigurationOptions :: Lens' Environment (Maybe (HashMap Text Text))
- environment_loggingConfiguration :: Lens' Environment (Maybe LoggingConfiguration)
- environment_environmentClass :: Lens' Environment (Maybe Text)
- environment_networkConfiguration :: Lens' Environment (Maybe NetworkConfiguration)
- environment_tags :: Lens' Environment (Maybe (HashMap Text Text))
- environment_requirementsS3Path :: Lens' Environment (Maybe Text)
- environment_maxWorkers :: Lens' Environment (Maybe Natural)
Documentation
data Environment Source #
The Amazon Managed Workflows for Apache Airflow (MWAA) environment.
See: newEnvironment smart constructor.
Constructors
| Environment' | |
Fields
| |
Instances
newEnvironment :: Environment Source #
Create a value of Environment with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:serviceRoleArn:Environment', environment_serviceRoleArn - The Amazon Resource Name (ARN) for the service-linked role of the
environment. To learn more, see
Amazon MWAA Service-linked role.
$sel:schedulers:Environment', environment_schedulers - The number of Apache Airflow schedulers that run in your Amazon MWAA
environment.
$sel:status:Environment', environment_status - The status of the Amazon MWAA environment. Valid values:
CREATING- Indicates the request to create the environment is in progress.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.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. To learn more, see Amazon MWAA troubleshooting.
$sel:minWorkers:Environment', environment_minWorkers - The minimum number of workers that run in your environment. For example,
2.
$sel:pluginsS3Path:Environment', environment_pluginsS3Path - The relative path to the plugins.zip file on your Amazon S3 bucket.
For example, plugins.zip. To learn more, see
Installing custom plugins.
$sel:webserverAccessMode:Environment', environment_webserverAccessMode - The Apache Airflow Web server access mode. To learn more, see
Apache Airflow access modes.
$sel:airflowVersion:Environment', environment_airflowVersion - The Apache Airflow version on your environment. For example, v1.10.12.
$sel:kmsKey:Environment', environment_kmsKey - The Key Management Service (KMS) encryption key used to encrypt the data
in your environment.
$sel:arn:Environment', environment_arn - The Amazon Resource Name (ARN) of the Amazon MWAA environment.
$sel:createdAt:Environment', environment_createdAt - The day and time the environment was created.
$sel:weeklyMaintenanceWindowStart:Environment', environment_weeklyMaintenanceWindowStart - The day and time of the week that weekly maintenance updates are
scheduled. For example: TUE:03:30.
$sel:executionRoleArn:Environment', environment_executionRoleArn - The Amazon Resource Name (ARN) of the execution role in IAM that allows
MWAA to access AWS resources in your environment. For example,
arn:aws:iam::123456789:role/my-execution-role. To learn more, see
Amazon MWAA Execution role.
$sel:requirementsS3ObjectVersion:Environment', environment_requirementsS3ObjectVersion - The version of the requirements.txt file on your Amazon S3 bucket. To
learn more, see
Installing Python dependencies.
$sel:lastUpdate:Environment', environment_lastUpdate - Undocumented member.
$sel:sourceBucketArn:Environment', environment_sourceBucketArn - 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. To learn more, see
Create an Amazon S3 bucket for Amazon MWAA.
$sel:webserverUrl:Environment', environment_webserverUrl - The Apache Airflow Web server host name for the Amazon MWAA
environment. To learn more, see
Accessing the Apache Airflow UI.
$sel:dagS3Path:Environment', environment_dagS3Path - The relative path to the DAGs folder on your Amazon S3 bucket. For
example, dags. To learn more, see
Adding or updating DAGs.
$sel:name:Environment', environment_name - The name of the Amazon MWAA environment. For example,
MyMWAAEnvironment.
$sel:pluginsS3ObjectVersion:Environment', environment_pluginsS3ObjectVersion - The version of the plugins.zip file on your Amazon S3 bucket. To learn
more, see
Installing custom plugins.
$sel:airflowConfigurationOptions:Environment', environment_airflowConfigurationOptions - A list of key-value pairs containing the Apache Airflow configuration
options attached to your environment. To learn more, see
Apache Airflow configuration options.
$sel:loggingConfiguration:Environment', environment_loggingConfiguration - The Apache Airflow logs being sent to CloudWatch Logs:
DagProcessingLogs, SchedulerLogs, TaskLogs, WebserverLogs,
WorkerLogs.
$sel:environmentClass:Environment', environment_environmentClass - The environment class type. Valid values: mw1.small, mw1.medium,
mw1.large. To learn more, see
Amazon MWAA environment class.
$sel:networkConfiguration:Environment', environment_networkConfiguration - Undocumented member.
$sel:tags:Environment', environment_tags - The key-value tag pairs associated to your environment. For example,
"Environment": "Staging". To learn more, see
Tagging AWS resources.
$sel:requirementsS3Path:Environment', environment_requirementsS3Path - The relative path to the requirements.txt file on your Amazon S3
bucket. For example, requirements.txt. To learn more, see
Installing Python dependencies.
$sel:maxWorkers:Environment', environment_maxWorkers - The maximum number of workers that run in your environment. For example,
20.
environment_serviceRoleArn :: Lens' Environment (Maybe Text) Source #
The Amazon Resource Name (ARN) for the service-linked role of the environment. To learn more, see Amazon MWAA Service-linked role.
environment_schedulers :: Lens' Environment (Maybe Int) Source #
The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
environment_status :: Lens' Environment (Maybe EnvironmentStatus) Source #
The status of the Amazon MWAA environment. Valid values:
CREATING- Indicates the request to create the environment is in progress.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.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. To learn more, see Amazon MWAA troubleshooting.
environment_minWorkers :: Lens' Environment (Maybe Natural) Source #
The minimum number of workers that run in your environment. For example,
2.
environment_pluginsS3Path :: Lens' Environment (Maybe Text) Source #
The relative path to the plugins.zip file on your Amazon S3 bucket.
For example, plugins.zip. To learn more, see
Installing custom plugins.
environment_webserverAccessMode :: Lens' Environment (Maybe WebserverAccessMode) Source #
The Apache Airflow Web server access mode. To learn more, see Apache Airflow access modes.
environment_airflowVersion :: Lens' Environment (Maybe Text) Source #
The Apache Airflow version on your environment. For example, v1.10.12.
environment_kmsKey :: Lens' Environment (Maybe Text) Source #
The Key Management Service (KMS) encryption key used to encrypt the data in your environment.
environment_arn :: Lens' Environment (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Amazon MWAA environment.
environment_createdAt :: Lens' Environment (Maybe UTCTime) Source #
The day and time the environment was created.
environment_weeklyMaintenanceWindowStart :: Lens' Environment (Maybe Text) Source #
The day and time of the week that weekly maintenance updates are
scheduled. For example: TUE:03:30.
environment_executionRoleArn :: Lens' Environment (Maybe Text) Source #
The Amazon Resource Name (ARN) of the execution role in IAM that allows
MWAA to access AWS resources in your environment. For example,
arn:aws:iam::123456789:role/my-execution-role. To learn more, see
Amazon MWAA Execution role.
environment_requirementsS3ObjectVersion :: Lens' Environment (Maybe Text) Source #
The version of the requirements.txt file on your Amazon S3 bucket. To learn more, see Installing Python dependencies.
environment_lastUpdate :: Lens' Environment (Maybe LastUpdate) Source #
Undocumented member.
environment_sourceBucketArn :: Lens' Environment (Maybe Text) Source #
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. To learn more, see
Create an Amazon S3 bucket for Amazon MWAA.
environment_webserverUrl :: Lens' Environment (Maybe Text) Source #
The Apache Airflow Web server host name for the Amazon MWAA environment. To learn more, see Accessing the Apache Airflow UI.
environment_dagS3Path :: Lens' Environment (Maybe Text) Source #
The relative path to the DAGs folder on your Amazon S3 bucket. For
example, dags. To learn more, see
Adding or updating DAGs.
environment_name :: Lens' Environment (Maybe Text) Source #
The name of the Amazon MWAA environment. For example,
MyMWAAEnvironment.
environment_pluginsS3ObjectVersion :: Lens' Environment (Maybe Text) Source #
The version of the plugins.zip file on your Amazon S3 bucket. To learn more, see Installing custom plugins.
environment_airflowConfigurationOptions :: Lens' Environment (Maybe (HashMap Text Text)) Source #
A list of key-value pairs containing the Apache Airflow configuration options attached to your environment. To learn more, see Apache Airflow configuration options.
environment_loggingConfiguration :: Lens' Environment (Maybe LoggingConfiguration) Source #
The Apache Airflow logs being sent to CloudWatch Logs:
DagProcessingLogs, SchedulerLogs, TaskLogs, WebserverLogs,
WorkerLogs.
environment_environmentClass :: Lens' Environment (Maybe Text) Source #
The environment class type. Valid values: mw1.small, mw1.medium,
mw1.large. To learn more, see
Amazon MWAA environment class.
environment_networkConfiguration :: Lens' Environment (Maybe NetworkConfiguration) Source #
Undocumented member.
environment_tags :: Lens' Environment (Maybe (HashMap Text Text)) Source #
The key-value tag pairs associated to your environment. For example,
"Environment": "Staging". To learn more, see
Tagging AWS resources.
environment_requirementsS3Path :: Lens' Environment (Maybe Text) Source #
The relative path to the requirements.txt file on your Amazon S3
bucket. For example, requirements.txt. To learn more, see
Installing Python dependencies.
environment_maxWorkers :: Lens' Environment (Maybe Natural) Source #
The maximum number of workers that run in your environment. For example,
20.