public static interface CreateEnvironmentRequest.Builder extends MwaaRequest.Builder, SdkPojo, CopyableBuilder<CreateEnvironmentRequest.Builder,CreateEnvironmentRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateEnvironmentRequest.Builder |
airflowConfigurationOptions(Map<String,String> airflowConfigurationOptions)
A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your
environment.
|
CreateEnvironmentRequest.Builder |
airflowVersion(String airflowVersion)
The Apache Airflow version for your environment.
|
CreateEnvironmentRequest.Builder |
dagS3Path(String dagS3Path)
The relative path to the DAGs folder on your Amazon S3 bucket.
|
CreateEnvironmentRequest.Builder |
environmentClass(String environmentClass)
The environment class type.
|
CreateEnvironmentRequest.Builder |
executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the execution role for your environment.
|
CreateEnvironmentRequest.Builder |
kmsKey(String kmsKey)
The AWS Key Management Service (KMS) key to encrypt the data in your environment.
|
default CreateEnvironmentRequest.Builder |
loggingConfiguration(Consumer<LoggingConfigurationInput.Builder> loggingConfiguration)
Defines the Apache Airflow logs to send to CloudWatch Logs:
DagProcessingLogs,
SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs. |
CreateEnvironmentRequest.Builder |
loggingConfiguration(LoggingConfigurationInput loggingConfiguration)
Defines the Apache Airflow logs to send to CloudWatch Logs:
DagProcessingLogs,
SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs. |
CreateEnvironmentRequest.Builder |
maxWorkers(Integer maxWorkers)
The maximum number of workers that you want to run in your environment.
|
CreateEnvironmentRequest.Builder |
minWorkers(Integer minWorkers)
The minimum number of workers that you want to run in your environment.
|
CreateEnvironmentRequest.Builder |
name(String name)
The name of the Amazon MWAA environment.
|
default CreateEnvironmentRequest.Builder |
networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The VPC networking components used to secure and enable network traffic between the AWS resources for your
environment.
|
CreateEnvironmentRequest.Builder |
networkConfiguration(NetworkConfiguration networkConfiguration)
The VPC networking components used to secure and enable network traffic between the AWS resources for your
environment.
|
CreateEnvironmentRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateEnvironmentRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateEnvironmentRequest.Builder |
pluginsS3ObjectVersion(String pluginsS3ObjectVersion)
The version of the plugins.zip file on your Amazon S3 bucket.
|
CreateEnvironmentRequest.Builder |
pluginsS3Path(String pluginsS3Path)
The relative path to the
plugins.zip file on your Amazon S3 bucket. |
CreateEnvironmentRequest.Builder |
requirementsS3ObjectVersion(String requirementsS3ObjectVersion)
The version of the requirements.txt file on your Amazon S3 bucket.
|
CreateEnvironmentRequest.Builder |
requirementsS3Path(String requirementsS3Path)
The relative path to the
requirements.txt file on your Amazon S3 bucket. |
CreateEnvironmentRequest.Builder |
schedulers(Integer schedulers)
The number of Apache Airflow schedulers to run in your environment.
|
CreateEnvironmentRequest.Builder |
sourceBucketArn(String sourceBucketArn)
The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored.
|
CreateEnvironmentRequest.Builder |
tags(Map<String,String> tags)
The key-value tag pairs you want to associate to your environment.
|
CreateEnvironmentRequest.Builder |
webserverAccessMode(String webserverAccessMode)
The Apache Airflow Web server access mode.
|
CreateEnvironmentRequest.Builder |
webserverAccessMode(WebserverAccessMode webserverAccessMode)
The Apache Airflow Web server access mode.
|
CreateEnvironmentRequest.Builder |
weeklyMaintenanceWindowStart(String weeklyMaintenanceWindowStart)
The day and time of the week to start weekly maintenance updates of your environment in the following format:
DAY:HH:MM. |
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateEnvironmentRequest.Builder airflowConfigurationOptions(Map<String,String> airflowConfigurationOptions)
A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. To learn more, see Apache Airflow configuration options.
airflowConfigurationOptions - A list of key-value pairs containing the Apache Airflow configuration options you want to attach to
your environment. To learn more, see Apache Airflow
configuration options.CreateEnvironmentRequest.Builder airflowVersion(String airflowVersion)
The Apache Airflow version for your environment. For example, v1.10.12. If no value is
specified, defaults to the latest version. Valid values: v1.10.12.
airflowVersion - The Apache Airflow version for your environment. For example, v1.10.12. If no value is
specified, defaults to the latest version. Valid values: v1.10.12.CreateEnvironmentRequest.Builder dagS3Path(String dagS3Path)
The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn more,
see Adding or
updating DAGs.
dagS3Path - The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To
learn more, see Adding or
updating DAGs.CreateEnvironmentRequest.Builder environmentClass(String environmentClass)
The environment class type. Valid values: mw1.small, mw1.medium,
mw1.large. To learn more, see Amazon MWAA environment
class.
environmentClass - The environment class type. Valid values: mw1.small, mw1.medium,
mw1.large. To learn more, see Amazon MWAA
environment class.CreateEnvironmentRequest.Builder executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the execution role for your environment. An execution role is an AWS
Identity and Access Management (IAM) role that grants MWAA permission to access AWS services and resources
used by your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To learn
more, see Amazon MWAA
Execution role.
executionRoleArn - The Amazon Resource Name (ARN) of the execution role for your environment. An execution role is an AWS
Identity and Access Management (IAM) role that grants MWAA permission to access AWS services and
resources used by your environment. For example,
arn:aws:iam::123456789:role/my-execution-role. To learn more, see Amazon MWAA Execution
role.CreateEnvironmentRequest.Builder kmsKey(String kmsKey)
The AWS Key Management Service (KMS) key to encrypt the data in your environment. You can use an AWS owned CMK, or a Customer managed CMK (advanced). To learn more, see Get started with Amazon Managed Workflows for Apache Airflow.
kmsKey - The AWS Key Management Service (KMS) key to encrypt the data in your environment. You can use an AWS
owned CMK, or a Customer managed CMK (advanced). To learn more, see Get started with Amazon
Managed Workflows for Apache Airflow.CreateEnvironmentRequest.Builder loggingConfiguration(LoggingConfigurationInput loggingConfiguration)
Defines the Apache Airflow logs to send to CloudWatch Logs: DagProcessingLogs,
SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs.
loggingConfiguration - Defines the Apache Airflow logs to send to CloudWatch Logs: DagProcessingLogs,
SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs
.default CreateEnvironmentRequest.Builder loggingConfiguration(Consumer<LoggingConfigurationInput.Builder> loggingConfiguration)
Defines the Apache Airflow logs to send to CloudWatch Logs: DagProcessingLogs,
SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs.
LoggingConfigurationInput.Builder avoiding the
need to create one manually via LoggingConfigurationInput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to loggingConfiguration(LoggingConfigurationInput).loggingConfiguration - a consumer that will call methods on LoggingConfigurationInput.BuilderloggingConfiguration(LoggingConfigurationInput)CreateEnvironmentRequest.Builder maxWorkers(Integer maxWorkers)
The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache
Airflow workers up to the number you specify in the MaxWorkers field. For example,
20. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra
workers leaving the one worker that is included with your environment, or the number you specify in
MinWorkers.
maxWorkers - The maximum number of workers that you want to run in your environment. MWAA scales the number of
Apache Airflow workers up to the number you specify in the MaxWorkers field. For example,
20. When there are no more tasks running, and no more in the queue, MWAA disposes of the
extra workers leaving the one worker that is included with your environment, or the number you specify
in MinWorkers.CreateEnvironmentRequest.Builder minWorkers(Integer minWorkers)
The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache
Airflow workers up to the number you specify in the MaxWorkers field. When there are no more
tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you
specify in the MinWorkers field. For example, 2.
minWorkers - The minimum number of workers that you want to run in your environment. MWAA scales the number of
Apache Airflow workers up to the number you specify in the MaxWorkers field. When there
are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the
worker count you specify in the MinWorkers field. For example, 2.CreateEnvironmentRequest.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.CreateEnvironmentRequest.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
The VPC networking components used to secure and enable network traffic between the AWS resources for your environment. To learn more, see About networking on Amazon MWAA.
networkConfiguration - The VPC networking components used to secure and enable network traffic between the AWS resources for
your environment. To learn more, see About networking on
Amazon MWAA.default CreateEnvironmentRequest.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The VPC networking components used to secure and enable network traffic between the AWS resources for your environment. To learn more, see About networking on Amazon MWAA.
This is a convenience 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)CreateEnvironmentRequest.Builder pluginsS3ObjectVersion(String pluginsS3ObjectVersion)
The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip file is updated. To learn more, see How S3 Versioning works.
pluginsS3ObjectVersion - The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a
plugins.zip file is updated. To learn more, see How S3
Versioning works.CreateEnvironmentRequest.Builder pluginsS3Path(String pluginsS3Path)
The relative path to the plugins.zip file on your Amazon S3 bucket. For example,
plugins.zip. If specified, then the plugins.zip version is required. To learn more, see Installing
custom plugins.
pluginsS3Path - The relative path to the plugins.zip file on your Amazon S3 bucket. For example,
plugins.zip. If specified, then the plugins.zip version is required. To learn more, see
Installing custom plugins.CreateEnvironmentRequest.Builder requirementsS3ObjectVersion(String requirementsS3ObjectVersion)
The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a requirements.txt file is updated. To learn more, see How S3 Versioning works.
requirementsS3ObjectVersion - The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each
time a requirements.txt file is updated. To learn more, see How S3
Versioning works.CreateEnvironmentRequest.Builder requirementsS3Path(String requirementsS3Path)
The relative path to the requirements.txt file on your Amazon S3 bucket. For example,
requirements.txt. If specified, then a file version is required. To learn more, see Installing Python
dependencies.
requirementsS3Path - The relative path to the requirements.txt file on your Amazon S3 bucket. For example,
requirements.txt. If specified, then a file version is required. To learn more, see Installing
Python dependencies.CreateEnvironmentRequest.Builder schedulers(Integer schedulers)
The number of Apache Airflow schedulers to run in your environment.
schedulers - The number of Apache Airflow schedulers to run in your environment.CreateEnvironmentRequest.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. To learn more, 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. To learn more, see Create an Amazon S3
bucket for Amazon MWAA.CreateEnvironmentRequest.Builder tags(Map<String,String> tags)
The key-value tag pairs you want to associate to your environment. For example,
"Environment": "Staging". To learn more, see Tagging AWS resources.
tags - The key-value tag pairs you want to associate to your environment. For example,
"Environment": "Staging". To learn more, see Tagging AWS resources.CreateEnvironmentRequest.Builder webserverAccessMode(String webserverAccessMode)
The Apache Airflow Web server access mode. To learn more, see Apache Airflow access modes.
webserverAccessMode - The Apache Airflow Web server access mode. To learn more, see Apache Airflow
access modes.WebserverAccessMode,
WebserverAccessModeCreateEnvironmentRequest.Builder webserverAccessMode(WebserverAccessMode webserverAccessMode)
The Apache Airflow Web server access mode. To learn more, see Apache Airflow access modes.
webserverAccessMode - The Apache Airflow Web server access mode. To learn more, see Apache Airflow
access modes.WebserverAccessMode,
WebserverAccessModeCreateEnvironmentRequest.Builder weeklyMaintenanceWindowStart(String weeklyMaintenanceWindowStart)
The day and time of the week to start weekly maintenance updates of your environment in the following format:
DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute
increments only. Supported input includes the following:
MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\d|2[0-3]):(00|30)
weeklyMaintenanceWindowStart - The day and time of the week to start weekly maintenance updates of your environment in the following
format: DAY:HH:MM. For example: TUE:03:30. You can specify a start time in
30 minute increments only. Supported input includes the following:
MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\d|2[0-3]):(00|30)
CreateEnvironmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateEnvironmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.