libZSservicesZSamazonka-mwaaZSamazonka-mwaa
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MwAA.CreateEnvironment

Description

Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

Synopsis

Creating a Request

data CreateEnvironment Source #

This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.

See: newCreateEnvironment smart constructor.

Constructors

CreateEnvironment' 

Fields

Instances

Instances details
Eq CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Show CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Generic CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Associated Types

type Rep CreateEnvironment :: Type -> Type #

NFData CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Methods

rnf :: CreateEnvironment -> () #

Hashable CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

ToJSON CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

AWSRequest CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Associated Types

type AWSResponse CreateEnvironment #

ToHeaders CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

ToPath CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

ToQuery CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

type Rep CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

type Rep CreateEnvironment = D1 ('MetaData "CreateEnvironment" "Amazonka.MwAA.CreateEnvironment" "libZSservicesZSamazonka-mwaaZSamazonka-mwaa" 'False) (C1 ('MetaCons "CreateEnvironment'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "schedulers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "minWorkers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "pluginsS3Path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "webserverAccessMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe WebserverAccessMode)) :*: S1 ('MetaSel ('Just "airflowVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "kmsKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "weeklyMaintenanceWindowStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "requirementsS3ObjectVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "pluginsS3ObjectVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "airflowConfigurationOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text Text)))))))) :*: (((S1 ('MetaSel ('Just "loggingConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingConfigurationInput)) :*: S1 ('MetaSel ('Just "environmentClass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "requirementsS3Path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxWorkers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))) :*: ((S1 ('MetaSel ('Just "dagS3Path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "executionRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "networkConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NetworkConfiguration) :*: S1 ('MetaSel ('Just "sourceBucketArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))
type AWSResponse CreateEnvironment Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

newCreateEnvironment Source #

Create a value of CreateEnvironment with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:schedulers:CreateEnvironment', createEnvironment_schedulers - The number of Apache Airflow schedulers to run in your environment.

$sel:minWorkers:CreateEnvironment', createEnvironment_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.

$sel:pluginsS3Path:CreateEnvironment', createEnvironment_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. To learn more, see Installing custom plugins.

$sel:webserverAccessMode:CreateEnvironment', createEnvironment_webserverAccessMode - The Apache Airflow Web server access mode. To learn more, see Apache Airflow access modes.

$sel:airflowVersion:CreateEnvironment', createEnvironment_airflowVersion - The Apache Airflow version for your environment. For example, v1.10.12. If no value is specified, defaults to the latest version. Valid values: v1.10.12.

$sel:kmsKey:CreateEnvironment', createEnvironment_kmsKey - The AWS Key Management Service (KMS) key to encrypt the data in your environment. You can use an AWS owned CMK, or a Customer managed CMK (advanced). To learn more, see Get started with Amazon Managed Workflows for Apache Airflow.

$sel:weeklyMaintenanceWindowStart:CreateEnvironment', createEnvironment_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:

  • MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\d|2[0-3]):(00|30)

$sel:requirementsS3ObjectVersion:CreateEnvironment', createEnvironment_requirementsS3ObjectVersion - The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a requirements.txt file is updated. To learn more, see How S3 Versioning works.

$sel:pluginsS3ObjectVersion:CreateEnvironment', createEnvironment_pluginsS3ObjectVersion - The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip file is updated. To learn more, see How S3 Versioning works.

$sel:airflowConfigurationOptions:CreateEnvironment', createEnvironment_airflowConfigurationOptions - A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. To learn more, see Apache Airflow configuration options.

$sel:loggingConfiguration:CreateEnvironment', createEnvironment_loggingConfiguration - Defines the Apache Airflow logs to send to CloudWatch Logs: DagProcessingLogs, SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs.

$sel:environmentClass:CreateEnvironment', createEnvironment_environmentClass - The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. To learn more, see Amazon MWAA environment class.

$sel:tags:CreateEnvironment', createEnvironment_tags - The key-value tag pairs you want to associate to your environment. For example, "Environment": "Staging". To learn more, see Tagging AWS resources.

$sel:requirementsS3Path:CreateEnvironment', createEnvironment_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. To learn more, see Installing Python dependencies.

$sel:maxWorkers:CreateEnvironment', createEnvironment_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.

$sel:dagS3Path:CreateEnvironment', createEnvironment_dagS3Path - The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn more, see Adding or updating DAGs.

$sel:executionRoleArn:CreateEnvironment', createEnvironment_executionRoleArn - The Amazon Resource Name (ARN) of the execution role for your environment. An execution role is an AWS Identity and Access Management (IAM) role that grants MWAA permission to access AWS services and resources used by your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To learn more, see Amazon MWAA Execution role.

$sel:name:CreateEnvironment', createEnvironment_name - The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.

$sel:networkConfiguration:CreateEnvironment', createEnvironment_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.

$sel:sourceBucketArn:CreateEnvironment', createEnvironment_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.

Request Lenses

createEnvironment_schedulers :: Lens' CreateEnvironment (Maybe Int) Source #

The number of Apache Airflow schedulers to run in your environment.

createEnvironment_minWorkers :: Lens' CreateEnvironment (Maybe Natural) Source #

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.

createEnvironment_pluginsS3Path :: Lens' CreateEnvironment (Maybe Text) Source #

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. To learn more, see Installing custom plugins.

createEnvironment_airflowVersion :: Lens' CreateEnvironment (Maybe Text) Source #

The Apache Airflow version for your environment. For example, v1.10.12. If no value is specified, defaults to the latest version. Valid values: v1.10.12.

createEnvironment_kmsKey :: Lens' CreateEnvironment (Maybe Text) Source #

The AWS Key Management Service (KMS) key to encrypt the data in your environment. You can use an AWS owned CMK, or a Customer managed CMK (advanced). To learn more, see Get started with Amazon Managed Workflows for Apache Airflow.

createEnvironment_weeklyMaintenanceWindowStart :: Lens' CreateEnvironment (Maybe Text) Source #

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:

  • MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\d|2[0-3]):(00|30)

createEnvironment_requirementsS3ObjectVersion :: Lens' CreateEnvironment (Maybe Text) Source #

The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a requirements.txt file is updated. To learn more, see How S3 Versioning works.

createEnvironment_pluginsS3ObjectVersion :: Lens' CreateEnvironment (Maybe Text) Source #

The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip file is updated. To learn more, see How S3 Versioning works.

createEnvironment_airflowConfigurationOptions :: Lens' CreateEnvironment (Maybe (HashMap Text Text)) Source #

A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. To learn more, see Apache Airflow configuration options.

createEnvironment_loggingConfiguration :: Lens' CreateEnvironment (Maybe LoggingConfigurationInput) Source #

Defines the Apache Airflow logs to send to CloudWatch Logs: DagProcessingLogs, SchedulerLogs, TaskLogs, WebserverLogs, WorkerLogs.

createEnvironment_environmentClass :: Lens' CreateEnvironment (Maybe Text) Source #

The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. To learn more, see Amazon MWAA environment class.

createEnvironment_tags :: Lens' CreateEnvironment (Maybe (HashMap Text Text)) Source #

The key-value tag pairs you want to associate to your environment. For example, "Environment": "Staging". To learn more, see Tagging AWS resources.

createEnvironment_requirementsS3Path :: Lens' CreateEnvironment (Maybe Text) Source #

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. To learn more, see Installing Python dependencies.

createEnvironment_maxWorkers :: Lens' CreateEnvironment (Maybe Natural) Source #

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.

createEnvironment_dagS3Path :: Lens' CreateEnvironment Text Source #

The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. To learn more, see Adding or updating DAGs.

createEnvironment_executionRoleArn :: Lens' CreateEnvironment Text Source #

The Amazon Resource Name (ARN) of the execution role for your environment. An execution role is an AWS Identity and Access Management (IAM) role that grants MWAA permission to access AWS services and resources used by your environment. For example, arn:aws:iam::123456789:role/my-execution-role. To learn more, see Amazon MWAA Execution role.

createEnvironment_name :: Lens' CreateEnvironment Text Source #

The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.

createEnvironment_networkConfiguration :: Lens' CreateEnvironment NetworkConfiguration Source #

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.

createEnvironment_sourceBucketArn :: Lens' CreateEnvironment Text Source #

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.

Destructuring the Response

data CreateEnvironmentResponse Source #

See: newCreateEnvironmentResponse smart constructor.

Constructors

CreateEnvironmentResponse' 

Fields

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) returned in the response for the environment.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Read CreateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Show CreateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Generic CreateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

Associated Types

type Rep CreateEnvironmentResponse :: Type -> Type #

NFData CreateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

type Rep CreateEnvironmentResponse Source # 
Instance details

Defined in Amazonka.MwAA.CreateEnvironment

type Rep CreateEnvironmentResponse = D1 ('MetaData "CreateEnvironmentResponse" "Amazonka.MwAA.CreateEnvironment" "libZSservicesZSamazonka-mwaaZSamazonka-mwaa" 'False) (C1 ('MetaCons "CreateEnvironmentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateEnvironmentResponse Source #

Create a value of CreateEnvironmentResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:arn:CreateEnvironmentResponse', createEnvironmentResponse_arn - The Amazon Resource Name (ARN) returned in the response for the environment.

$sel:httpStatus:CreateEnvironmentResponse', createEnvironmentResponse_httpStatus - The response's http status code.

Response Lenses

createEnvironmentResponse_arn :: Lens' CreateEnvironmentResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) returned in the response for the environment.