Class EnvironmentArgs


  • public final class EnvironmentArgs
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • airflowConfigurationOptions

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> airflowConfigurationOptions()
        Returns:
        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.
      • airflowVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> airflowVersion()
        Returns:
        Airflow version of your environment, will be set by default to the latest version that MWAA supports.
      • dagS3Path

        public com.pulumi.core.Output<java.lang.String> dagS3Path()
        Returns:
        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).
      • endpointManagement

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> endpointManagement()
        Returns:
        Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to `SERVICE`, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set to `CUSTOMER`, you must create, and manage, the VPC endpoints for your VPC. Defaults to `SERVICE` if not set.
      • environmentClass

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> environmentClass()
        Returns:
        Environment class for the cluster. Possible options are `mw1.micro`, `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.
      • executionRoleArn

        public com.pulumi.core.Output<java.lang.String> executionRoleArn()
        Returns:
        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.
      • kmsKey

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> kmsKey()
        Returns:
        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.
      • loggingConfiguration

        public java.util.Optional<com.pulumi.core.Output<EnvironmentLoggingConfigurationArgs>> loggingConfiguration()
        Returns:
        Apache Airflow logs you want to send to Amazon CloudWatch Logs. See `loggingConfiguration` Block for details.
      • maxWebservers

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> maxWebservers()
        Returns:
        Maximum number of web servers that you want to run in your environment. Value need to be between `2` and `5` if `environmentClass` is not `mw1.micro`, `1` otherwise.
      • maxWorkers

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> maxWorkers()
        Returns:
        Maximum number of workers that can be automatically scaled up. Value need to be between `1` and `25`. Will be `10` by default.
      • minWebservers

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> minWebservers()
        Returns:
        Minimum number of web servers that you want to run in your environment. Value need to be between `2` and `5` if `environmentClass` is not `mw1.micro`, `1` otherwise.
      • minWorkers

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> minWorkers()
        Returns:
        Minimum number of workers that you want to run in your environment. Will be `1` by default.
      • name

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
        Returns:
        Name of the Apache Airflow Environment.
      • networkConfiguration

        public com.pulumi.core.Output<EnvironmentNetworkConfigurationArgs> networkConfiguration()
        Returns:
        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 `networkConfiguration` Block for details.
      • pluginsS3ObjectVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> pluginsS3ObjectVersion()
        Returns:
        Version of the plugins.zip file you want to use.
      • pluginsS3Path

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> pluginsS3Path()
        Returns:
        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](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html).
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • requirementsS3ObjectVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> requirementsS3ObjectVersion()
        Returns:
        Version of the requirements.txt file you want to use.
      • requirementsS3Path

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> requirementsS3Path()
        Returns:
        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](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html).
      • schedulers

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> schedulers()
        Returns:
        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`.
      • sourceBucketArn

        public com.pulumi.core.Output<java.lang.String> sourceBucketArn()
        Returns:
        ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
      • startupScriptS3ObjectVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> startupScriptS3ObjectVersion()
        Returns:
        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.
      • startupScriptS3Path

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> startupScriptS3Path()
        Returns:
        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.
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of resource tags to associate with the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • webserverAccessMode

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> webserverAccessMode()
        Returns:
        Whether the webserver should be accessible over the internet or via your specified VPC. Possible options: `PRIVATE_ONLY` (default), `PUBLIC_ONLY` and `PUBLIC_AND_PRIVATE`.
      • weeklyMaintenanceWindowStart

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> weeklyMaintenanceWindowStart()
        Returns:
        Start date for the weekly maintenance window.
      • workerReplacementStrategy

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> workerReplacementStrategy()
        Returns:
        Worker replacement strategy. Valid values: `FORCED`, `GRACEFUL`.