@Generated(value="software.amazon.awssdk:codegen") public final class Environment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Environment.Builder,Environment>
The Amazon Managed Workflows for Apache Airflow (MWAA) environment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Environment.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
airflowConfigurationOptions()
A list of key-value pairs containing the Apache Airflow configuration options attached to your environment.
|
String |
airflowVersion()
The Apache Airflow version on your environment.
|
String |
arn()
The Amazon Resource Name (ARN) of the Amazon MWAA environment.
|
static Environment.Builder |
builder() |
Instant |
createdAt()
The day and time the environment was created.
|
String |
dagS3Path()
The relative path to the DAGs folder on your Amazon S3 bucket.
|
String |
environmentClass()
The environment class type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
executionRoleArn()
The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access AWS resources in 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 Key Management Service (KMS) encryption key used to encrypt the data in your environment.
|
LastUpdate |
lastUpdate()
Returns the value of the LastUpdate property for this object.
|
LoggingConfiguration |
loggingConfiguration()
The Apache Airflow logs being sent to CloudWatch Logs:
DagProcessingLogs, SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs. |
Integer |
maxWorkers()
The maximum number of workers that run in your environment.
|
Integer |
minWorkers()
The minimum number of workers that run in your environment.
|
String |
name()
The name of the Amazon MWAA environment.
|
NetworkConfiguration |
networkConfiguration()
Returns the value of the NetworkConfiguration property for this object.
|
String |
pluginsS3ObjectVersion()
The version of the plugins.zip file on your Amazon S3 bucket.
|
String |
pluginsS3Path()
The relative path to the
plugins.zip file on your Amazon S3 bucket. |
String |
requirementsS3ObjectVersion()
The version of the requirements.txt file on your Amazon S3 bucket.
|
String |
requirementsS3Path()
The relative path to the
requirements.txt file on your Amazon S3 bucket. |
Integer |
schedulers()
The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Environment.Builder> |
serializableBuilderClass() |
String |
serviceRoleArn()
The Amazon Resource Name (ARN) for the service-linked role of the environment.
|
String |
sourceBucketArn()
The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored.
|
EnvironmentStatus |
status()
The status of the Amazon MWAA environment.
|
String |
statusAsString()
The status of the Amazon MWAA environment.
|
Map<String,String> |
tags()
The key-value tag pairs associated to your environment.
|
Environment.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
WebserverAccessMode |
webserverAccessMode()
The Apache Airflow Web server access mode.
|
String |
webserverAccessModeAsString()
The Apache Airflow Web server access mode.
|
String |
webserverUrl()
The Apache Airflow Web server host name for the Amazon MWAA environment.
|
String |
weeklyMaintenanceWindowStart()
The day and time of the week that weekly maintenance updates are scheduled.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasAirflowConfigurationOptions()
public final Map<String,String> 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.
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 on your environment. For example, v1.10.12.
v1.10.12.public final String arn()
The Amazon Resource Name (ARN) of the Amazon MWAA environment.
public final Instant createdAt()
The day and time the environment was created.
public final 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.
dags. To learn
more, see Adding
or updating DAGs.public final String environmentClass()
The environment class type. Valid values: mw1.small, mw1.medium, mw1.large
. To learn more, see Amazon
MWAA environment class.
mw1.small, mw1.medium,
mw1.large. To learn more, see Amazon MWAA environment
class.public final String 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.
arn:aws:iam::123456789:role/my-execution-role. To learn more,
see Amazon MWAA
Execution role.public final String kmsKey()
The Key Management Service (KMS) encryption key used to encrypt the data in your environment.
public final LastUpdate lastUpdate()
public final LoggingConfiguration loggingConfiguration()
The Apache Airflow logs being sent to CloudWatch Logs: DagProcessingLogs, SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs.
DagProcessingLogs,
SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs.public final Integer maxWorkers()
The maximum number of workers that run in your environment. For example, 20.
20.public final Integer minWorkers()
The minimum number of workers that run in your environment. For example, 2.
2.public final String name()
The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.
MyMWAAEnvironment.public final NetworkConfiguration networkConfiguration()
public final String pluginsS3ObjectVersion()
The version of the plugins.zip file on your Amazon S3 bucket. To learn more, see Installing custom plugins.
public final String 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.
plugins.zip file on your Amazon S3 bucket. For example,
plugins.zip. To learn more, see Installing
custom plugins.public final String requirementsS3ObjectVersion()
The version of the requirements.txt file on your Amazon S3 bucket. To learn more, see Installing Python dependencies.
public final String 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.
requirements.txt file on your Amazon S3 bucket. For example,
requirements.txt. To learn more, see Installing Python
dependencies.public final Integer schedulers()
The number of Apache Airflow schedulers that run in your Amazon MWAA environment.
public final String serviceRoleArn()
The Amazon Resource Name (ARN) for the service-linked role of the environment. To learn more, see Amazon MWAA Service-linked role.
public final 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.
arn:aws:s3:::my-airflow-bucket-unique-name. To learn more, see Create an Amazon S3 bucket
for Amazon MWAA.public final 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. To learn more, see Amazon MWAA troubleshooting.
If the service returns an enum value that is not available in the current SDK version, status will
return EnvironmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
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.
EnvironmentStatuspublic final String statusAsString()
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.
If the service returns an enum value that is not available in the current SDK version, status will
return EnvironmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
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.
EnvironmentStatuspublic final boolean hasTags()
public final Map<String,String> tags()
The key-value tag pairs associated to your environment. For example, "Environment": "Staging". To
learn more, 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.
"Environment": "Staging". To learn more, see Tagging AWS resources.public final WebserverAccessMode webserverAccessMode()
The Apache Airflow Web server access mode. To learn more, see Apache Airflow access modes.
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 Apache Airflow Web server access mode. To learn more, see Apache Airflow access modes.
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 webserverUrl()
The Apache Airflow Web server host name for the Amazon MWAA environment. To learn more, see Accessing the Apache Airflow UI.
public final String weeklyMaintenanceWindowStart()
The day and time of the week that weekly maintenance updates are scheduled. For example: TUE:03:30.
TUE:03:30.public Environment.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Environment.Builder,Environment>public static Environment.Builder builder()
public static Class<? extends Environment.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.