Class UpdateEnvironmentRequest
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<UpdateEnvironmentRequest.Builder,
UpdateEnvironmentRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionA list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment.final String
The Apache Airflow version for your environment.builder()
final String
The relative path to the DAGs folder on your Amazon S3 bucket.final String
The environment class type.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest
.final boolean
For responses, this returns true if the service returned a value for the AirflowConfigurationOptions property.final int
hashCode()
The Apache Airflow log types to send to CloudWatch Logs.final Integer
The maximum number of web servers that you want to run in your environment.final Integer
The maximum number of workers that you want to run in your environment.final Integer
The minimum number of web servers that you want to run in your environment.final Integer
The minimum number of workers that you want to run in your environment.final String
name()
The name of your Amazon MWAA environment.The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment.final String
The version of the plugins.zip file on your Amazon S3 bucket.final String
The relative path to theplugins.zip
file on your Amazon S3 bucket.final String
The version of the requirements.txt file on your Amazon S3 bucket.final String
The relative path to therequirements.txt
file on your Amazon S3 bucket.final Integer
The number of Apache Airflow schedulers to run in your Amazon MWAA environment.static Class
<? extends UpdateEnvironmentRequest.Builder> final String
The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored.final String
The version of the startup shell script in your Amazon S3 bucket.final String
The relative path to the startup shell script in your Amazon S3 bucket.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final WebserverAccessMode
The Apache Airflow Web server access mode.final String
The Apache Airflow Web server access mode.final String
The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format:DAY:HH:MM
.The worker replacement strategy to use when updating the environment.final String
The worker replacement strategy to use when updating the environment.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The name of your Amazon MWAA environment. For example,
MyMWAAEnvironment
.- Returns:
- The name of your Amazon MWAA environment. For example,
MyMWAAEnvironment
.
-
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.- Returns:
- 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.
-
hasAirflowConfigurationOptions
public final boolean hasAirflowConfigurationOptions()For responses, this returns true if the service returned a value for the AirflowConfigurationOptions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
airflowConfigurationOptions
A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see Apache Airflow configuration options.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAirflowConfigurationOptions()
method.- Returns:
- A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see Apache Airflow configuration options.
-
airflowVersion
The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.
Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.
Valid values:
1.10.12
,2.0.2
,2.2.2
,2.4.3
,2.5.1
,2.6.3
,2.7.2
,2.8.1
,2.9.2
,2.10.1
, and2.10.3
.- Returns:
- The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of
Apache Airflow supported by Amazon MWAA.
Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.
Valid values:
1.10.12
,2.0.2
,2.2.2
,2.4.3
,2.5.1
,2.6.3
,2.7.2
,2.8.1
,2.9.2
,2.10.1
, and2.10.3
.
-
dagS3Path
The relative path to the DAGs folder on your Amazon S3 bucket. For example,
dags
. For more information, see Adding or updating DAGs.- Returns:
- The relative path to the DAGs folder on your Amazon S3 bucket. For example,
dags
. For more information, see Adding or updating DAGs.
-
environmentClass
The environment class type. Valid values:
mw1.micro
,mw1.small
,mw1.medium
,mw1.large
,mw1.xlarge
, andmw1.2xlarge
. For more information, see Amazon MWAA environment class.- Returns:
- The environment class type. Valid values:
mw1.micro
,mw1.small
,mw1.medium
,mw1.large
,mw1.xlarge
, andmw1.2xlarge
. For more information, see Amazon MWAA environment class.
-
loggingConfiguration
The Apache Airflow log types to send to CloudWatch Logs.
- Returns:
- The Apache Airflow log types to send to CloudWatch Logs.
-
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 inMinWorkers
.- Returns:
- 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 inMinWorkers
.
-
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 theMinWorkers
field. For example,2
.- Returns:
- 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 theMinWorkers
field. For example,2
.
-
maxWebservers
The maximum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for
MaxWebservers
when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will increase the number of web servers up to the number set inMaxWebserers
. As TPS rates decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set inMinxWebserers
.Valid values: For environments larger than mw1.micro, accepts values from
2
to5
. Defaults to2
for all environment sizes except mw1.micro, which defaults to1
.- Returns:
- The maximum number of web servers that you want to run in your environment. Amazon MWAA scales the number
of Apache Airflow web servers up to the number you specify for
MaxWebservers
when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will increase the number of web servers up to the number set inMaxWebserers
. As TPS rates decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set inMinxWebserers
.Valid values: For environments larger than mw1.micro, accepts values from
2
to5
. Defaults to2
for all environment sizes except mw1.micro, which defaults to1
.
-
minWebservers
The minimum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for
MaxWebservers
when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set inMinxWebserers
.Valid values: For environments larger than mw1.micro, accepts values from
2
to5
. Defaults to2
for all environment sizes except mw1.micro, which defaults to1
.- Returns:
- The minimum number of web servers that you want to run in your environment. Amazon MWAA scales the number
of Apache Airflow web servers up to the number you specify for
MaxWebservers
when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set inMinxWebserers
.Valid values: For environments larger than mw1.micro, accepts values from
2
to5
. Defaults to2
for all environment sizes except mw1.micro, which defaults to1
.
-
workerReplacementStrategy
The worker replacement strategy to use when updating the environment.
You can select one of the following strategies:
-
Forced - Stops and replaces Apache Airflow workers without waiting for tasks to complete before an update.
-
Graceful - Allows Apache Airflow workers to complete running tasks for up to 12 hours during an update before they're stopped and replaced.
If the service returns an enum value that is not available in the current SDK version,
workerReplacementStrategy
will returnWorkerReplacementStrategy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromworkerReplacementStrategyAsString()
.- Returns:
- The worker replacement strategy to use when updating the environment.
You can select one of the following strategies:
-
Forced - Stops and replaces Apache Airflow workers without waiting for tasks to complete before an update.
-
Graceful - Allows Apache Airflow workers to complete running tasks for up to 12 hours during an update before they're stopped and replaced.
-
- See Also:
-
-
workerReplacementStrategyAsString
The worker replacement strategy to use when updating the environment.
You can select one of the following strategies:
-
Forced - Stops and replaces Apache Airflow workers without waiting for tasks to complete before an update.
-
Graceful - Allows Apache Airflow workers to complete running tasks for up to 12 hours during an update before they're stopped and replaced.
If the service returns an enum value that is not available in the current SDK version,
workerReplacementStrategy
will returnWorkerReplacementStrategy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromworkerReplacementStrategyAsString()
.- Returns:
- The worker replacement strategy to use when updating the environment.
You can select one of the following strategies:
-
Forced - Stops and replaces Apache Airflow workers without waiting for tasks to complete before an update.
-
Graceful - Allows Apache Airflow workers to complete running tasks for up to 12 hours during an update before they're stopped and replaced.
-
- See Also:
-
-
networkConfiguration
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.
- Returns:
- 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.
-
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. For more information, see Installing custom plugins.- Returns:
- 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. For more information, see Installing custom plugins.
-
pluginsS3ObjectVersion
The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a
plugins.zip
file is updated. For more information, see How S3 Versioning works.- Returns:
- The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a
plugins.zip
file is updated. For more information, see How S3 Versioning works.
-
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. For more information, see Installing Python dependencies.- Returns:
- 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. For more information, see Installing Python dependencies.
-
requirementsS3ObjectVersion
The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a
requirements.txt
file is updated. For more information, see How S3 Versioning works.- Returns:
- The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a
requirements.txt
file is updated. For more information, see How S3 Versioning works.
-
schedulers
The number of Apache Airflow schedulers to run in your Amazon MWAA environment.
- Returns:
- The number of Apache Airflow schedulers to run in your Amazon MWAA 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
. For more information, see Create an Amazon S3 bucket for Amazon MWAA.- Returns:
- 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.
-
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.
- Returns:
- 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.
-
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 every time you update the script.
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.
- Returns:
- 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 every time you update the script.
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.
-
webserverAccessMode
The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
If the service returns an enum value that is not available in the current SDK version,
webserverAccessMode
will returnWebserverAccessMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromwebserverAccessModeAsString()
.- Returns:
- The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
- See Also:
-
webserverAccessModeAsString
The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
If the service returns an enum value that is not available in the current SDK version,
webserverAccessMode
will returnWebserverAccessMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromwebserverAccessModeAsString()
.- Returns:
- The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
- See Also:
-
weeklyMaintenanceWindowStart
The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time 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.- Returns:
- The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time 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.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<UpdateEnvironmentRequest.Builder,
UpdateEnvironmentRequest> - Specified by:
toBuilder
in classMwaaRequest
- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classAwsRequest
-
equals
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequest
Used to retrieve the value of a field from any class that extendsSdkRequest
. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)
method will again be available.- Overrides:
getValueForField
in classSdkRequest
- Parameters:
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-