Class EnvironmentState.Builder

  • Enclosing class:
    EnvironmentState

    public static final class EnvironmentState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • airflowConfigurationOptions

        public EnvironmentState.Builder airflowConfigurationOptions​(@Nullable
                                                                    com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> airflowConfigurationOptions)
        Parameters:
        airflowConfigurationOptions - The `airflow_configuration_options` parameter specifies airflow override options. Check the [Official documentation](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html#configuring-env-variables-reference) for all possible configuration options.
        Returns:
        builder
      • airflowConfigurationOptions

        public EnvironmentState.Builder airflowConfigurationOptions​(java.util.Map<java.lang.String,​java.lang.String> airflowConfigurationOptions)
        Parameters:
        airflowConfigurationOptions - The `airflow_configuration_options` parameter specifies airflow override options. Check the [Official documentation](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html#configuring-env-variables-reference) for all possible configuration options.
        Returns:
        builder
      • airflowVersion

        public EnvironmentState.Builder airflowVersion​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> airflowVersion)
        Parameters:
        airflowVersion - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
        Returns:
        builder
      • airflowVersion

        public EnvironmentState.Builder airflowVersion​(java.lang.String airflowVersion)
        Parameters:
        airflowVersion - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
        Returns:
        builder
      • arn

        public EnvironmentState.Builder arn​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - The ARN of the MWAA Environment
        Returns:
        builder
      • arn

        public EnvironmentState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - The ARN of the MWAA Environment
        Returns:
        builder
      • createdAt

        public EnvironmentState.Builder createdAt​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> createdAt)
        Parameters:
        createdAt - The Created At date of the MWAA Environment
        Returns:
        builder
      • createdAt

        public EnvironmentState.Builder createdAt​(java.lang.String createdAt)
        Parameters:
        createdAt - The Created At date of the MWAA Environment
        Returns:
        builder
      • dagS3Path

        public EnvironmentState.Builder dagS3Path​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> dagS3Path)
        Parameters:
        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](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html).
        Returns:
        builder
      • dagS3Path

        public EnvironmentState.Builder dagS3Path​(java.lang.String dagS3Path)
        Parameters:
        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](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html).
        Returns:
        builder
      • databaseVpcEndpointService

        public EnvironmentState.Builder databaseVpcEndpointService​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.String> databaseVpcEndpointService)
        Parameters:
        databaseVpcEndpointService - The VPC endpoint for the environment's Amazon RDS database * `logging_configuration[0].<LOG_CONFIGURATION_TYPE>[0].cloud_watch_log_group_arn` - Provides the ARN for the CloudWatch group where the logs will be published
        Returns:
        builder
      • databaseVpcEndpointService

        public EnvironmentState.Builder databaseVpcEndpointService​(java.lang.String databaseVpcEndpointService)
        Parameters:
        databaseVpcEndpointService - The VPC endpoint for the environment's Amazon RDS database * `logging_configuration[0].<LOG_CONFIGURATION_TYPE>[0].cloud_watch_log_group_arn` - Provides the ARN for the CloudWatch group where the logs will be published
        Returns:
        builder
      • endpointManagement

        public EnvironmentState.Builder endpointManagement​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> endpointManagement)
      • environmentClass

        public EnvironmentState.Builder environmentClass​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> environmentClass)
        Parameters:
        environmentClass - Environment class for the cluster. Possible options are `mw1.small`, `mw1.medium`, `mw1.large`. Will be set by default to `mw1.small`. Please check the [AWS Pricing](https://aws.amazon.com/de/managed-workflows-for-apache-airflow/pricing/) for more information about the environment classes.
        Returns:
        builder
      • environmentClass

        public EnvironmentState.Builder environmentClass​(java.lang.String environmentClass)
        Parameters:
        environmentClass - Environment class for the cluster. Possible options are `mw1.small`, `mw1.medium`, `mw1.large`. Will be set by default to `mw1.small`. Please check the [AWS Pricing](https://aws.amazon.com/de/managed-workflows-for-apache-airflow/pricing/) for more information about the environment classes.
        Returns:
        builder
      • executionRoleArn

        public EnvironmentState.Builder executionRoleArn​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> executionRoleArn)
        Parameters:
        executionRoleArn - The Amazon Resource Name (ARN) of the task execution role that the Amazon MWAA and its environment can assume. Check the [official AWS documentation](https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html) for the detailed role specification.
        Returns:
        builder
      • executionRoleArn

        public EnvironmentState.Builder executionRoleArn​(java.lang.String executionRoleArn)
        Parameters:
        executionRoleArn - The Amazon Resource Name (ARN) of the task execution role that the Amazon MWAA and its environment can assume. Check the [official AWS documentation](https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html) for the detailed role specification.
        Returns:
        builder
      • kmsKey

        public EnvironmentState.Builder kmsKey​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> kmsKey)
        Parameters:
        kmsKey - The Amazon Resource Name (ARN) of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key `aws/airflow` by default. Please check the [Official Documentation](https://docs.aws.amazon.com/mwaa/latest/userguide/custom-keys-certs.html) for more information.
        Returns:
        builder
      • kmsKey

        public EnvironmentState.Builder kmsKey​(java.lang.String kmsKey)
        Parameters:
        kmsKey - The Amazon Resource Name (ARN) of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key `aws/airflow` by default. Please check the [Official Documentation](https://docs.aws.amazon.com/mwaa/latest/userguide/custom-keys-certs.html) for more information.
        Returns:
        builder
      • maxWorkers

        public EnvironmentState.Builder maxWorkers​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Integer> maxWorkers)
        Parameters:
        maxWorkers - The maximum number of workers that can be automatically scaled up. Value need to be between `1` and `25`. Will be `10` by default.
        Returns:
        builder
      • maxWorkers

        public EnvironmentState.Builder maxWorkers​(java.lang.Integer maxWorkers)
        Parameters:
        maxWorkers - The maximum number of workers that can be automatically scaled up. Value need to be between `1` and `25`. Will be `10` by default.
        Returns:
        builder
      • minWorkers

        public EnvironmentState.Builder minWorkers​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Integer> minWorkers)
        Parameters:
        minWorkers - The minimum number of workers that you want to run in your environment. Will be `1` by default.
        Returns:
        builder
      • minWorkers

        public EnvironmentState.Builder minWorkers​(java.lang.Integer minWorkers)
        Parameters:
        minWorkers - The minimum number of workers that you want to run in your environment. Will be `1` by default.
        Returns:
        builder
      • name

        public EnvironmentState.Builder name​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the Apache Airflow Environment
        Returns:
        builder
      • name

        public EnvironmentState.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the Apache Airflow Environment
        Returns:
        builder
      • networkConfiguration

        public EnvironmentState.Builder networkConfiguration​(@Nullable
                                                             com.pulumi.core.Output<EnvironmentNetworkConfigurationArgs> networkConfiguration)
        Parameters:
        networkConfiguration - Specifies the network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See Network configuration below for details.
        Returns:
        builder
      • networkConfiguration

        public EnvironmentState.Builder networkConfiguration​(EnvironmentNetworkConfigurationArgs networkConfiguration)
        Parameters:
        networkConfiguration - Specifies the network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See Network configuration below for details.
        Returns:
        builder
      • pluginsS3ObjectVersion

        public EnvironmentState.Builder pluginsS3ObjectVersion​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> pluginsS3ObjectVersion)
        Parameters:
        pluginsS3ObjectVersion - The plugins.zip file version you want to use.
        Returns:
        builder
      • pluginsS3ObjectVersion

        public EnvironmentState.Builder pluginsS3ObjectVersion​(java.lang.String pluginsS3ObjectVersion)
        Parameters:
        pluginsS3ObjectVersion - The plugins.zip file version you want to use.
        Returns:
        builder
      • pluginsS3Path

        public EnvironmentState.Builder pluginsS3Path​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> pluginsS3Path)
        Parameters:
        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 plugins_s3_object_version is required. For more information, see [Importing DAGs on Amazon MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html).
        Returns:
        builder
      • pluginsS3Path

        public EnvironmentState.Builder pluginsS3Path​(java.lang.String pluginsS3Path)
        Parameters:
        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 plugins_s3_object_version is required. For more information, see [Importing DAGs on Amazon MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html).
        Returns:
        builder
      • requirementsS3ObjectVersion

        public EnvironmentState.Builder requirementsS3ObjectVersion​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.String> requirementsS3ObjectVersion)
        Parameters:
        requirementsS3ObjectVersion - The requirements.txt file version you want to use.
        Returns:
        builder
      • requirementsS3ObjectVersion

        public EnvironmentState.Builder requirementsS3ObjectVersion​(java.lang.String requirementsS3ObjectVersion)
        Parameters:
        requirementsS3ObjectVersion - The requirements.txt file version you want to use.
        Returns:
        builder
      • requirementsS3Path

        public EnvironmentState.Builder requirementsS3Path​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> requirementsS3Path)
        Parameters:
        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 requirements_s3_object_version is required. For more information, see [Importing DAGs on Amazon MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html).
        Returns:
        builder
      • requirementsS3Path

        public EnvironmentState.Builder requirementsS3Path​(java.lang.String requirementsS3Path)
        Parameters:
        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 requirements_s3_object_version is required. For more information, see [Importing DAGs on Amazon MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html).
        Returns:
        builder
      • schedulers

        public EnvironmentState.Builder schedulers​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Integer> schedulers)
        Parameters:
        schedulers - The number of schedulers that you want to run in your environment. v2.0.2 and above accepts `2` - `5`, default `2`. v1.10.12 accepts `1`.
        Returns:
        builder
      • schedulers

        public EnvironmentState.Builder schedulers​(java.lang.Integer schedulers)
        Parameters:
        schedulers - The number of schedulers that you want to run in your environment. v2.0.2 and above accepts `2` - `5`, default `2`. v1.10.12 accepts `1`.
        Returns:
        builder
      • serviceRoleArn

        public EnvironmentState.Builder serviceRoleArn​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> serviceRoleArn)
        Parameters:
        serviceRoleArn - The Service Role ARN of the Amazon MWAA Environment
        Returns:
        builder
      • serviceRoleArn

        public EnvironmentState.Builder serviceRoleArn​(java.lang.String serviceRoleArn)
        Parameters:
        serviceRoleArn - The Service Role ARN of the Amazon MWAA Environment
        Returns:
        builder
      • sourceBucketArn

        public EnvironmentState.Builder sourceBucketArn​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> sourceBucketArn)
        Parameters:
        sourceBucketArn - The Amazon Resource Name (ARN) of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
        Returns:
        builder
      • sourceBucketArn

        public EnvironmentState.Builder sourceBucketArn​(java.lang.String sourceBucketArn)
        Parameters:
        sourceBucketArn - The Amazon Resource Name (ARN) of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
        Returns:
        builder
      • startupScriptS3ObjectVersion

        public EnvironmentState.Builder startupScriptS3ObjectVersion​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.String> startupScriptS3ObjectVersion)
        Parameters:
        startupScriptS3ObjectVersion - The version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
        Returns:
        builder
      • startupScriptS3ObjectVersion

        public EnvironmentState.Builder startupScriptS3ObjectVersion​(java.lang.String startupScriptS3ObjectVersion)
        Parameters:
        startupScriptS3ObjectVersion - The version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
        Returns:
        builder
      • startupScriptS3Path

        public EnvironmentState.Builder startupScriptS3Path​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> startupScriptS3Path)
        Parameters:
        startupScriptS3Path - The relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See [Using a startup script](https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html). Supported for environment versions 2.x and later.
        Returns:
        builder
      • startupScriptS3Path

        public EnvironmentState.Builder startupScriptS3Path​(java.lang.String startupScriptS3Path)
        Parameters:
        startupScriptS3Path - The relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See [Using a startup script](https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html). Supported for environment versions 2.x and later.
        Returns:
        builder
      • status

        public EnvironmentState.Builder status​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> status)
        Parameters:
        status - The status of the Amazon MWAA Environment
        Returns:
        builder
      • status

        public EnvironmentState.Builder status​(java.lang.String status)
        Parameters:
        status - The status of the Amazon MWAA Environment
        Returns:
        builder
      • tags

        public EnvironmentState.Builder tags​(@Nullable
                                             com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - A map of resource tags to associate with the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public EnvironmentState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - A map of resource tags to associate with the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public EnvironmentState.Builder tagsAll​(@Nullable
                                                com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public EnvironmentState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • webserverAccessMode

        public EnvironmentState.Builder webserverAccessMode​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> webserverAccessMode)
        Parameters:
        webserverAccessMode - Specifies whether the webserver should be accessible over the internet or via your specified VPC. Possible options: `PRIVATE_ONLY` (default) and `PUBLIC_ONLY`.
        Returns:
        builder
      • webserverAccessMode

        public EnvironmentState.Builder webserverAccessMode​(java.lang.String webserverAccessMode)
        Parameters:
        webserverAccessMode - Specifies whether the webserver should be accessible over the internet or via your specified VPC. Possible options: `PRIVATE_ONLY` (default) and `PUBLIC_ONLY`.
        Returns:
        builder
      • webserverUrl

        public EnvironmentState.Builder webserverUrl​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> webserverUrl)
        Parameters:
        webserverUrl - The webserver URL of the MWAA Environment
        Returns:
        builder
      • webserverUrl

        public EnvironmentState.Builder webserverUrl​(java.lang.String webserverUrl)
        Parameters:
        webserverUrl - The webserver URL of the MWAA Environment
        Returns:
        builder
      • webserverVpcEndpointService

        public EnvironmentState.Builder webserverVpcEndpointService​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.String> webserverVpcEndpointService)
        Parameters:
        webserverVpcEndpointService - The VPC endpoint for the environment's web server
        Returns:
        builder
      • webserverVpcEndpointService

        public EnvironmentState.Builder webserverVpcEndpointService​(java.lang.String webserverVpcEndpointService)
        Parameters:
        webserverVpcEndpointService - The VPC endpoint for the environment's web server
        Returns:
        builder
      • weeklyMaintenanceWindowStart

        public EnvironmentState.Builder weeklyMaintenanceWindowStart​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.String> weeklyMaintenanceWindowStart)
        Parameters:
        weeklyMaintenanceWindowStart - Specifies the start date for the weekly maintenance window.
        Returns:
        builder
      • weeklyMaintenanceWindowStart

        public EnvironmentState.Builder weeklyMaintenanceWindowStart​(java.lang.String weeklyMaintenanceWindowStart)
        Parameters:
        weeklyMaintenanceWindowStart - Specifies the start date for the weekly maintenance window.
        Returns:
        builder