@Stability(value=Stable) public static final class CfnEnvironmentProps.Builder extends Object implements software.amazon.jsii.Builder<CfnEnvironmentProps>
CfnEnvironmentProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnEnvironmentProps.Builder name(String name)
CfnEnvironmentProps.getName()name - The name of your Amazon MWAA environment. This parameter is required.this@Stability(value=Stable) public CfnEnvironmentProps.Builder airflowConfigurationOptions(Object airflowConfigurationOptions)
CfnEnvironmentProps.getAirflowConfigurationOptions()airflowConfigurationOptions - A list of key-value pairs containing the Airflow configuration options for your environment.
For example, core.default_timezone: utc . To learn more, see Apache Airflow configuration options .this@Stability(value=Stable) public CfnEnvironmentProps.Builder airflowVersion(String airflowVersion)
CfnEnvironmentProps.getAirflowVersion()airflowVersion - The version of Apache Airflow to use for the environment.
If no value is specified, defaults to the latest version. Valid values: 2.0.2 , 1.10.12 .this@Stability(value=Stable) public CfnEnvironmentProps.Builder dagS3Path(String dagS3Path)
CfnEnvironmentProps.getDagS3Path()dagS3Path - The relative path to the DAGs folder on your Amazon S3 bucket.
For example, dags . To learn more, see Adding or updating DAGs .this@Stability(value=Stable) public CfnEnvironmentProps.Builder environmentClass(String environmentClass)
CfnEnvironmentProps.getEnvironmentClass()environmentClass - The environment class type.
Valid values: mw1.small , mw1.medium , mw1.large . To learn more, see Amazon MWAA environment class .this@Stability(value=Stable) public CfnEnvironmentProps.Builder executionRoleArn(String executionRoleArn)
CfnEnvironmentProps.getExecutionRoleArn()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 .this@Stability(value=Stable) public CfnEnvironmentProps.Builder kmsKey(String kmsKey)
CfnEnvironmentProps.getKmsKey()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 customer-managed KMS key (advanced).this@Stability(value=Stable) public CfnEnvironmentProps.Builder loggingConfiguration(CfnEnvironment.LoggingConfigurationProperty loggingConfiguration)
CfnEnvironmentProps.getLoggingConfiguration()loggingConfiguration - The Apache Airflow logs being sent to CloudWatch Logs: `DagProcessingLogs` , `SchedulerLogs` , `TaskLogs` , `WebserverLogs` , `WorkerLogs` .this@Stability(value=Stable) public CfnEnvironmentProps.Builder loggingConfiguration(IResolvable loggingConfiguration)
CfnEnvironmentProps.getLoggingConfiguration()loggingConfiguration - The Apache Airflow logs being sent to CloudWatch Logs: `DagProcessingLogs` , `SchedulerLogs` , `TaskLogs` , `WebserverLogs` , `WorkerLogs` .this@Stability(value=Stable) public CfnEnvironmentProps.Builder maxWorkers(Number maxWorkers)
CfnEnvironmentProps.getMaxWorkers()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 .this@Stability(value=Stable) public CfnEnvironmentProps.Builder minWorkers(Number minWorkers)
CfnEnvironmentProps.getMinWorkers()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 .this@Stability(value=Stable) public CfnEnvironmentProps.Builder networkConfiguration(CfnEnvironment.NetworkConfigurationProperty networkConfiguration)
CfnEnvironmentProps.getNetworkConfiguration()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@Stability(value=Stable) public CfnEnvironmentProps.Builder networkConfiguration(IResolvable networkConfiguration)
CfnEnvironmentProps.getNetworkConfiguration()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@Stability(value=Stable) public CfnEnvironmentProps.Builder pluginsS3ObjectVersion(String pluginsS3ObjectVersion)
CfnEnvironmentProps.getPluginsS3ObjectVersion()pluginsS3ObjectVersion - The version of the plugins.zip file on your Amazon S3 bucket. To learn more, see [Installing custom plugins](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html) .this@Stability(value=Stable) public CfnEnvironmentProps.Builder pluginsS3Path(String pluginsS3Path)
CfnEnvironmentProps.getPluginsS3Path()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](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html) .this@Stability(value=Stable) public CfnEnvironmentProps.Builder requirementsS3ObjectVersion(String requirementsS3ObjectVersion)
CfnEnvironmentProps.getRequirementsS3ObjectVersion()requirementsS3ObjectVersion - The version of the requirements.txt file on your Amazon S3 bucket. To learn more, see [Installing Python dependencies](https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html) .this@Stability(value=Stable) public CfnEnvironmentProps.Builder requirementsS3Path(String requirementsS3Path)
CfnEnvironmentProps.getRequirementsS3Path()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](https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html) .this@Stability(value=Stable) public CfnEnvironmentProps.Builder schedulers(Number schedulers)
CfnEnvironmentProps.getSchedulers()schedulers - The number of schedulers that you want to run in your environment. Valid values:.
this@Stability(value=Stable) public CfnEnvironmentProps.Builder sourceBucketArn(String sourceBucketArn)
CfnEnvironmentProps.getSourceBucketArn()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 .this@Stability(value=Stable) public CfnEnvironmentProps.Builder tags(Object tags)
CfnEnvironmentProps.getTags()tags - The key-value tag pairs associated to your environment.
For example, "Environment": "Staging" . To learn more, see Tagging .this@Stability(value=Stable) public CfnEnvironmentProps.Builder webserverAccessMode(String webserverAccessMode)
CfnEnvironmentProps.getWebserverAccessMode()webserverAccessMode - The Apache Airflow *Web server* access mode.
To learn more, see Apache Airflow access modes . Valid values: PRIVATE_ONLY or PUBLIC_ONLY .this@Stability(value=Stable) public CfnEnvironmentProps.Builder weeklyMaintenanceWindowStart(String weeklyMaintenanceWindowStart)
CfnEnvironmentProps.getWeeklyMaintenanceWindowStart()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:
this@Stability(value=Stable) public CfnEnvironmentProps build()
build in interface software.amazon.jsii.Builder<CfnEnvironmentProps>CfnEnvironmentPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.