public static interface Environment.Builder extends SdkPojo, CopyableBuilder<Environment.Builder,Environment>
| Modifier and Type | Method and Description |
|---|---|
Environment.Builder |
airflowConfigurationOptions(Map<String,String> airflowConfigurationOptions)
A list of key-value pairs containing the Apache Airflow configuration options attached to your environment.
|
Environment.Builder |
airflowVersion(String airflowVersion)
The Apache Airflow version on your environment.
|
Environment.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the Amazon MWAA environment.
|
Environment.Builder |
createdAt(Instant createdAt)
The day and time the environment was created.
|
Environment.Builder |
dagS3Path(String dagS3Path)
The relative path to the DAGs folder in your Amazon S3 bucket.
|
Environment.Builder |
environmentClass(String environmentClass)
The environment class type.
|
Environment.Builder |
executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services
resources in your environment.
|
Environment.Builder |
kmsKey(String kmsKey)
The Amazon Web Services Key Management Service (KMS) encryption key used to encrypt the data in your
environment.
|
default Environment.Builder |
lastUpdate(Consumer<LastUpdate.Builder> lastUpdate)
The status of the last update on the environment.
|
Environment.Builder |
lastUpdate(LastUpdate lastUpdate)
The status of the last update on the environment.
|
default Environment.Builder |
loggingConfiguration(Consumer<LoggingConfiguration.Builder> loggingConfiguration)
The Apache Airflow logs published to CloudWatch Logs.
|
Environment.Builder |
loggingConfiguration(LoggingConfiguration loggingConfiguration)
The Apache Airflow logs published to CloudWatch Logs.
|
Environment.Builder |
maxWorkers(Integer maxWorkers)
The maximum number of workers that run in your environment.
|
Environment.Builder |
minWorkers(Integer minWorkers)
The minimum number of workers that run in your environment.
|
Environment.Builder |
name(String name)
The name of the Amazon MWAA environment.
|
default Environment.Builder |
networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
Describes the VPC networking components used to secure and enable network traffic between the Amazon Web
Services resources for your environment.
|
Environment.Builder |
networkConfiguration(NetworkConfiguration networkConfiguration)
Describes the VPC networking components used to secure and enable network traffic between the Amazon Web
Services resources for your environment.
|
Environment.Builder |
pluginsS3ObjectVersion(String pluginsS3ObjectVersion)
The version of the
plugins.zip file in your Amazon S3 bucket. |
Environment.Builder |
pluginsS3Path(String pluginsS3Path)
The relative path to the file in your Amazon S3 bucket.
|
Environment.Builder |
requirementsS3ObjectVersion(String requirementsS3ObjectVersion)
The version of the
requirements.txt file on your Amazon S3 bucket. |
Environment.Builder |
requirementsS3Path(String requirementsS3Path)
The relative path to the
requirements.txt file in your Amazon S3 bucket. |
Environment.Builder |
schedulers(Integer schedulers)
The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
|
Environment.Builder |
serviceRoleArn(String serviceRoleArn)
The Amazon Resource Name (ARN) for the service-linked role of the environment.
|
Environment.Builder |
sourceBucketArn(String sourceBucketArn)
The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored.
|
Environment.Builder |
startupScriptS3ObjectVersion(String startupScriptS3ObjectVersion)
The version of the startup shell script in your Amazon S3 bucket.
|
Environment.Builder |
startupScriptS3Path(String startupScriptS3Path)
The relative path to the startup shell script in your Amazon S3 bucket.
|
Environment.Builder |
status(EnvironmentStatus status)
The status of the Amazon MWAA environment.
|
Environment.Builder |
status(String status)
The status of the Amazon MWAA environment.
|
Environment.Builder |
tags(Map<String,String> tags)
The key-value tag pairs associated to your environment.
|
Environment.Builder |
webserverAccessMode(String webserverAccessMode)
The Apache Airflow Web server access mode.
|
Environment.Builder |
webserverAccessMode(WebserverAccessMode webserverAccessMode)
The Apache Airflow Web server access mode.
|
Environment.Builder |
webserverUrl(String webserverUrl)
The Apache Airflow Web server host name for the Amazon MWAA environment.
|
Environment.Builder |
weeklyMaintenanceWindowStart(String weeklyMaintenanceWindowStart)
The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time that weekly
maintenance updates are scheduled.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildEnvironment.Builder airflowConfigurationOptions(Map<String,String> airflowConfigurationOptions)
A list of key-value pairs containing the Apache Airflow configuration options attached to your environment. For more information, see Apache Airflow configuration options.
airflowConfigurationOptions - A list of key-value pairs containing the Apache Airflow configuration options attached to your
environment. For more information, see Apache Airflow
configuration options.Environment.Builder airflowVersion(String airflowVersion)
The Apache Airflow version on your environment. Valid values: 1.10.12, 2.0.2,
2.2.2, and 2.4.3.
airflowVersion - The Apache Airflow version on your environment. Valid values: 1.10.12, 2.0.2
, 2.2.2, and 2.4.3.Environment.Builder arn(String arn)
The Amazon Resource Name (ARN) of the Amazon MWAA environment.
arn - The Amazon Resource Name (ARN) of the Amazon MWAA environment.Environment.Builder createdAt(Instant createdAt)
The day and time the environment was created.
createdAt - The day and time the environment was created.Environment.Builder dagS3Path(String dagS3Path)
The relative path to the DAGs folder in your Amazon S3 bucket. For example,
s3://mwaa-environment/dags. For more information, see Adding or updating
DAGs.
dagS3Path - The relative path to the DAGs folder in your Amazon S3 bucket. For example,
s3://mwaa-environment/dags. For more information, see Adding or
updating DAGs.Environment.Builder environmentClass(String environmentClass)
The environment class type. Valid values: mw1.small, mw1.medium,
mw1.large. For more information, see Amazon MWAA environment
class.
environmentClass - The environment class type. Valid values: mw1.small, mw1.medium,
mw1.large. For more information, see Amazon MWAA
environment class.Environment.Builder executionRoleArn(String executionRoleArn)
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, see Amazon MWAA Execution
role.
executionRoleArn - 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, see Amazon MWAA Execution
role.Environment.Builder kmsKey(String kmsKey)
The Amazon Web Services Key Management Service (KMS) encryption key used to encrypt the data in your environment.
kmsKey - The Amazon Web Services Key Management Service (KMS) encryption key used to encrypt the data in your
environment.Environment.Builder lastUpdate(LastUpdate lastUpdate)
The status of the last update on the environment.
lastUpdate - The status of the last update on the environment.default Environment.Builder lastUpdate(Consumer<LastUpdate.Builder> lastUpdate)
The status of the last update on the environment.
This is a convenience method that creates an instance of theLastUpdate.Builder avoiding the need to
create one manually via LastUpdate.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to lastUpdate(LastUpdate).
lastUpdate - a consumer that will call methods on LastUpdate.BuilderlastUpdate(LastUpdate)Environment.Builder loggingConfiguration(LoggingConfiguration loggingConfiguration)
The Apache Airflow logs published to CloudWatch Logs.
loggingConfiguration - The Apache Airflow logs published to CloudWatch Logs.default Environment.Builder loggingConfiguration(Consumer<LoggingConfiguration.Builder> loggingConfiguration)
The Apache Airflow logs published to CloudWatch Logs.
This is a convenience method that creates an instance of theLoggingConfiguration.Builder avoiding
the need to create one manually via LoggingConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to loggingConfiguration(LoggingConfiguration).
loggingConfiguration - a consumer that will call methods on LoggingConfiguration.BuilderloggingConfiguration(LoggingConfiguration)Environment.Builder maxWorkers(Integer maxWorkers)
The maximum number of workers that run in your environment. For example, 20.
maxWorkers - The maximum number of workers that run in your environment. For example, 20.Environment.Builder minWorkers(Integer minWorkers)
The minimum number of workers that run in your environment. For example, 2.
minWorkers - The minimum number of workers that run in your environment. For example, 2.Environment.Builder name(String name)
The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.
name - The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.Environment.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
Describes the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.
networkConfiguration - Describes the VPC networking components used to secure and enable network traffic between the Amazon
Web Services resources for your environment. For more information, see About networking on
Amazon MWAA.default Environment.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
Describes the VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see About networking on Amazon MWAA.
This is a convenience method that creates an instance of theNetworkConfiguration.Builder avoiding
the need to create one manually via NetworkConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to networkConfiguration(NetworkConfiguration).
networkConfiguration - a consumer that will call methods on NetworkConfiguration.BuildernetworkConfiguration(NetworkConfiguration)Environment.Builder pluginsS3ObjectVersion(String pluginsS3ObjectVersion)
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, see Installing custom plugins.
pluginsS3ObjectVersion - 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, see Installing custom plugins.
Environment.Builder pluginsS3Path(String pluginsS3Path)
The relative path to the file in your Amazon S3 bucket. For example,
s3://mwaa-environment/plugins.zip. For more information, see Installing
custom plugins.
pluginsS3Path - The relative path to the file in your Amazon S3 bucket. For example,
s3://mwaa-environment/plugins.zip. For more information, see Installing custom plugins.Environment.Builder requirementsS3ObjectVersion(String requirementsS3ObjectVersion)
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, see Installing Python dependencies.
requirementsS3ObjectVersion - 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, see Installing Python dependencies.
Environment.Builder requirementsS3Path(String requirementsS3Path)
The relative path to the requirements.txt file in your Amazon S3 bucket. For example,
s3://mwaa-environment/requirements.txt. For more information, see Installing Python
dependencies.
requirementsS3Path - The relative path to the requirements.txt file in your Amazon S3 bucket. For example,
s3://mwaa-environment/requirements.txt. For more information, see Installing
Python dependencies.Environment.Builder schedulers(Integer schedulers)
The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
schedulers - The number of Apache Airflow schedulers that run in your Amazon MWAA environment.Environment.Builder serviceRoleArn(String serviceRoleArn)
The Amazon Resource Name (ARN) for the service-linked role of the environment. For more information, see Amazon MWAA Service-linked role.
serviceRoleArn - The Amazon Resource Name (ARN) for the service-linked role of the environment. For more information,
see Amazon MWAA
Service-linked role.Environment.Builder sourceBucketArn(String 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. For more information, see Create an Amazon S3 bucket for
Amazon MWAA.
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. For more information,
see Create an Amazon
S3 bucket for Amazon MWAA.Environment.Builder startupScriptS3ObjectVersion(String startupScriptS3ObjectVersion)
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, see Using a startup script.
startupScriptS3ObjectVersion - 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, see Using a startup script.
Environment.Builder startupScriptS3Path(String startupScriptS3Path)
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, see Using a startup script.
startupScriptS3Path - 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, see Using a startup script.
Environment.Builder status(String 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. For more information, see Amazon MWAA troubleshooting.
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. For more information, see Amazon MWAA troubleshooting.
EnvironmentStatus,
EnvironmentStatusEnvironment.Builder status(EnvironmentStatus 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. For more information, see Amazon MWAA troubleshooting.
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. For more information, see Amazon MWAA troubleshooting.
EnvironmentStatus,
EnvironmentStatusEnvironment.Builder tags(Map<String,String> tags)
The key-value tag pairs associated to your environment. For example, "Environment": "Staging".
For more information, see Tagging
Amazon Web Services resources.
tags - The key-value tag pairs associated to your environment. For example,
"Environment": "Staging". For more information, see Tagging Amazon Web Services
resources.Environment.Builder webserverAccessMode(String webserverAccessMode)
The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
webserverAccessMode - The Apache Airflow Web server access mode. For more information, see Apache Airflow
access modes.WebserverAccessMode,
WebserverAccessModeEnvironment.Builder webserverAccessMode(WebserverAccessMode webserverAccessMode)
The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
webserverAccessMode - The Apache Airflow Web server access mode. For more information, see Apache Airflow
access modes.WebserverAccessMode,
WebserverAccessModeEnvironment.Builder webserverUrl(String webserverUrl)
The Apache Airflow Web server host name for the Amazon MWAA environment. For more information, see Accessing the Apache Airflow UI.
webserverUrl - The Apache Airflow Web server host name for the Amazon MWAA environment. For more information,
see Accessing the
Apache Airflow UI.Environment.Builder weeklyMaintenanceWindowStart(String weeklyMaintenanceWindowStart)
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.
weeklyMaintenanceWindowStart - 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.Copyright © 2023. All rights reserved.