@Generated(value="software.amazon.awssdk:codegen") public final class CreateEnvironmentRequest extends MwaaRequest implements ToCopyableBuilder<CreateEnvironmentRequest.Builder,CreateEnvironmentRequest>
This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateEnvironmentRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
airflowConfigurationOptions()
The Apache Airflow configuration setting you want to override in your environment.
|
String |
airflowVersion()
The Apache Airflow version you want to use for your environment.
|
static CreateEnvironmentRequest.Builder |
builder() |
String |
dagS3Path()
The relative path to the DAG folder on your Amazon S3 storage bucket.
|
String |
environmentClass()
The environment class you want to use for your environment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
executionRoleArn()
The Amazon Resource Name (ARN) of the execution role for your environment.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAirflowConfigurationOptions()
Returns true if the AirflowConfigurationOptions property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
kmsKey()
The AWS Key Management Service (KMS) key to encrypt and decrypt the data in your environment.
|
LoggingConfigurationInput |
loggingConfiguration()
The Apache Airflow logs you want to send to Amazon CloudWatch Logs.
|
Integer |
maxWorkers()
The maximum number of workers that you want to run in your environment.
|
String |
name()
The name of your MWAA environment.
|
NetworkConfiguration |
networkConfiguration()
The VPC networking components you want to use for your environment.
|
String |
pluginsS3ObjectVersion()
The
plugins.zip file version you want to use. |
String |
pluginsS3Path()
The relative path to the
plugins.zip file on your Amazon S3 storage bucket. |
String |
requirementsS3ObjectVersion()
The
requirements.txt file version you want to use. |
String |
requirementsS3Path()
The relative path to the
requirements.txt file on your Amazon S3 storage bucket. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateEnvironmentRequest.Builder> |
serializableBuilderClass() |
String |
sourceBucketArn()
The Amazon Resource Name (ARN) of your Amazon S3 storage bucket.
|
Map<String,String> |
tags()
The metadata tags you want to attach to your environment.
|
CreateEnvironmentRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
WebserverAccessMode |
webserverAccessMode()
The networking access of your Apache Airflow web server.
|
String |
webserverAccessModeAsString()
The networking access of your Apache Airflow web server.
|
String |
weeklyMaintenanceWindowStart()
The day and time you want MWAA to start weekly maintenance updates on your environment.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasAirflowConfigurationOptions()
public final Map<String,String> airflowConfigurationOptions()
The Apache Airflow configuration setting you want to override in your environment. For more information, see Environment configuration.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAirflowConfigurationOptions() to see if a value was sent in this field.
public final String airflowVersion()
The Apache Airflow version you want to use for your environment.
public final String 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.
dags. For
more information, see Importing DAGs on
Amazon MWAA.public final String environmentClass()
The environment class you want to use for your environment. The environment class determines the size of the containers and database used for your Apache Airflow services.
public final 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. For more information, see
Managing access to Amazon Managed
Workflows for Apache Airflow.
arn:aws:iam::123456789:role/my-execution-role. For more information, see Managing access to Amazon
Managed Workflows for Apache Airflow.public final String kmsKey()
The AWS Key Management Service (KMS) key to encrypt and decrypt the data in your environment. You can use an AWS KMS key managed by MWAA, or a custom KMS key (advanced). For more information, see Customer master keys (CMKs) in the AWS KMS developer guide.
public final LoggingConfigurationInput loggingConfiguration()
The Apache Airflow logs you want to send to Amazon CloudWatch Logs.
public final Integer maxWorkers()
The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers and the Fargate containers that run your tasks up to the number you specify in this field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra containers leaving the one worker that is included with your environment.
public final String name()
The name of your MWAA environment.
public final NetworkConfiguration networkConfiguration()
The VPC networking components you want to use for your environment. At least two private subnet identifiers and one VPC security group identifier are required to create an environment. For more information, see Creating the VPC network for a MWAA environment.
public final String pluginsS3ObjectVersion()
The plugins.zip file version you want to use.
plugins.zip file version you want to use.public final String 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.
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.public final String requirementsS3ObjectVersion()
The requirements.txt file version you want to use.
requirements.txt file version you want to use.public final String 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.
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.public final String sourceBucketArn()
The Amazon Resource Name (ARN) of your Amazon S3 storage bucket. For example,
arn:aws:s3:::airflow-mybucketname.
arn:aws:s3:::airflow-mybucketname.public final boolean hasTags()
public final Map<String,String> tags()
The metadata tags you want to attach to your environment. For more information, see Tagging AWS resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final WebserverAccessMode webserverAccessMode()
The networking access of your Apache Airflow web server. A public network allows your Airflow UI to be accessed over the Internet by users granted access in your IAM policy. A private network limits access of your Airflow UI to users within your VPC. For more information, see Creating the VPC network for a MWAA environment.
If the service returns an enum value that is not available in the current SDK version,
webserverAccessMode will return WebserverAccessMode.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from webserverAccessModeAsString().
WebserverAccessModepublic final String webserverAccessModeAsString()
The networking access of your Apache Airflow web server. A public network allows your Airflow UI to be accessed over the Internet by users granted access in your IAM policy. A private network limits access of your Airflow UI to users within your VPC. For more information, see Creating the VPC network for a MWAA environment.
If the service returns an enum value that is not available in the current SDK version,
webserverAccessMode will return WebserverAccessMode.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from webserverAccessModeAsString().
WebserverAccessModepublic final String weeklyMaintenanceWindowStart()
The day and time you want MWAA to start weekly maintenance updates on your environment.
public CreateEnvironmentRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateEnvironmentRequest.Builder,CreateEnvironmentRequest>toBuilder in class MwaaRequestpublic static CreateEnvironmentRequest.Builder builder()
public static Class<? extends CreateEnvironmentRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.