Documentation ¶
Index ¶
- func CfnEnvironment_CFN_RESOURCE_TYPE_NAME() *string
- func CfnEnvironment_IsCfnElement(x interface{}) *bool
- func CfnEnvironment_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnEnvironment_IsConstruct(x interface{}) *bool
- func NewCfnEnvironment_Override(c CfnEnvironment, scope awscdk.Construct, id *string, ...)
- type CfnEnvironment
- type CfnEnvironmentProps
- type CfnEnvironment_LoggingConfigurationProperty
- type CfnEnvironment_ModuleLoggingConfigurationProperty
- type CfnEnvironment_NetworkConfigurationProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnEnvironment_CFN_RESOURCE_TYPE_NAME ¶
func CfnEnvironment_CFN_RESOURCE_TYPE_NAME() *string
func CfnEnvironment_IsCfnElement ¶
func CfnEnvironment_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnEnvironment_IsCfnResource ¶
func CfnEnvironment_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnEnvironment_IsConstruct ¶
func CfnEnvironment_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func NewCfnEnvironment_Override ¶
func NewCfnEnvironment_Override(c CfnEnvironment, scope awscdk.Construct, id *string, props *CfnEnvironmentProps)
Create a new `AWS::MWAA::Environment`.
Types ¶
type CfnEnvironment ¶
type CfnEnvironment interface { awscdk.CfnResource awscdk.IInspectable AirflowConfigurationOptions() interface{} SetAirflowConfigurationOptions(val interface{}) AirflowVersion() *string SetAirflowVersion(val *string) AttrArn() *string AttrLoggingConfigurationDagProcessingLogsCloudWatchLogGroupArn() *string AttrLoggingConfigurationSchedulerLogsCloudWatchLogGroupArn() *string AttrLoggingConfigurationTaskLogsCloudWatchLogGroupArn() *string AttrLoggingConfigurationWebserverLogsCloudWatchLogGroupArn() *string AttrLoggingConfigurationWorkerLogsCloudWatchLogGroupArn() *string AttrWebserverUrl() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string DagS3Path() *string SetDagS3Path(val *string) EnvironmentClass() *string SetEnvironmentClass(val *string) ExecutionRoleArn() *string SetExecutionRoleArn(val *string) KmsKey() *string SetKmsKey(val *string) LoggingConfiguration() interface{} SetLoggingConfiguration(val interface{}) LogicalId() *string MaxWorkers() *float64 SetMaxWorkers(val *float64) MinWorkers() *float64 SetMinWorkers(val *float64) Name() *string SetName(val *string) NetworkConfiguration() interface{} SetNetworkConfiguration(val interface{}) Node() awscdk.ConstructNode PluginsS3ObjectVersion() *string SetPluginsS3ObjectVersion(val *string) PluginsS3Path() *string SetPluginsS3Path(val *string) Ref() *string RequirementsS3ObjectVersion() *string SetRequirementsS3ObjectVersion(val *string) RequirementsS3Path() *string SetRequirementsS3Path(val *string) Schedulers() *float64 SetSchedulers(val *float64) SourceBucketArn() *string SetSourceBucketArn(val *string) Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} WebserverAccessMode() *string SetWebserverAccessMode(val *string) WeeklyMaintenanceWindowStart() *string SetWeeklyMaintenanceWindowStart(val *string) AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string OverrideLogicalId(newLogicalId *string) Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::MWAA::Environment`.
The `AWS::MWAA::Environment` resource creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
TODO: EXAMPLE
func NewCfnEnvironment ¶
func NewCfnEnvironment(scope awscdk.Construct, id *string, props *CfnEnvironmentProps) CfnEnvironment
Create a new `AWS::MWAA::Environment`.
type CfnEnvironmentProps ¶
type CfnEnvironmentProps struct { // The name of your Amazon MWAA environment. Name *string `json:"name" yaml:"name"` // 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](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html) . AirflowConfigurationOptions interface{} `json:"airflowConfigurationOptions" yaml:"airflowConfigurationOptions"` // 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` . AirflowVersion *string `json:"airflowVersion" yaml:"airflowVersion"` // The relative path to the DAGs folder on your Amazon S3 bucket. // // For example, `dags` . To learn more, see [Adding or updating DAGs](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html) . DagS3Path *string `json:"dagS3Path" yaml:"dagS3Path"` // The environment class type. // // Valid values: `mw1.small` , `mw1.medium` , `mw1.large` . To learn more, see [Amazon MWAA environment class](https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html) . EnvironmentClass *string `json:"environmentClass" yaml:"environmentClass"` // 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](https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html) . ExecutionRoleArn *string `json:"executionRoleArn" yaml:"executionRoleArn"` // 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). KmsKey *string `json:"kmsKey" yaml:"kmsKey"` // The Apache Airflow logs being sent to CloudWatch Logs: `DagProcessingLogs` , `SchedulerLogs` , `TaskLogs` , `WebserverLogs` , `WorkerLogs` . LoggingConfiguration interface{} `json:"loggingConfiguration" yaml:"loggingConfiguration"` // 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` . MaxWorkers *float64 `json:"maxWorkers" yaml:"maxWorkers"` // 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` . MinWorkers *float64 `json:"minWorkers" yaml:"minWorkers"` // 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](https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html) . NetworkConfiguration interface{} `json:"networkConfiguration" yaml:"networkConfiguration"` // 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) . PluginsS3ObjectVersion *string `json:"pluginsS3ObjectVersion" yaml:"pluginsS3ObjectVersion"` // 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) . PluginsS3Path *string `json:"pluginsS3Path" yaml:"pluginsS3Path"` // 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) . RequirementsS3ObjectVersion *string `json:"requirementsS3ObjectVersion" yaml:"requirementsS3ObjectVersion"` // 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) . RequirementsS3Path *string `json:"requirementsS3Path" yaml:"requirementsS3Path"` // The number of schedulers that you want to run in your environment. Valid values:. // // - *v2.0.2* - Accepts between 2 to 5. Defaults to 2. // - *v1.10.12* - Accepts 1. Schedulers *float64 `json:"schedulers" yaml:"schedulers"` // 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](https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html) . SourceBucketArn *string `json:"sourceBucketArn" yaml:"sourceBucketArn"` // The key-value tag pairs associated to your environment. // // For example, `"Environment": "Staging"` . To learn more, see [Tagging](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . Tags interface{} `json:"tags" yaml:"tags"` // The Apache Airflow *Web server* access mode. // // To learn more, see [Apache Airflow access modes](https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html) . Valid values: `PRIVATE_ONLY` or `PUBLIC_ONLY` . WebserverAccessMode *string `json:"webserverAccessMode" yaml:"webserverAccessMode"` // 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) WeeklyMaintenanceWindowStart *string `json:"weeklyMaintenanceWindowStart" yaml:"weeklyMaintenanceWindowStart"` }
Properties for defining a `CfnEnvironment`.
TODO: EXAMPLE
type CfnEnvironment_LoggingConfigurationProperty ¶
type CfnEnvironment_LoggingConfigurationProperty struct { // Defines the processing logs sent to CloudWatch Logs and the logging level to send. DagProcessingLogs interface{} `json:"dagProcessingLogs" yaml:"dagProcessingLogs"` // Defines the scheduler logs sent to CloudWatch Logs and the logging level to send. SchedulerLogs interface{} `json:"schedulerLogs" yaml:"schedulerLogs"` // Defines the task logs sent to CloudWatch Logs and the logging level to send. TaskLogs interface{} `json:"taskLogs" yaml:"taskLogs"` // Defines the web server logs sent to CloudWatch Logs and the logging level to send. WebserverLogs interface{} `json:"webserverLogs" yaml:"webserverLogs"` // Defines the worker logs sent to CloudWatch Logs and the logging level to send. WorkerLogs interface{} `json:"workerLogs" yaml:"workerLogs"` }
The type of Apache Airflow logs to send to CloudWatch Logs.
TODO: EXAMPLE
type CfnEnvironment_ModuleLoggingConfigurationProperty ¶
type CfnEnvironment_ModuleLoggingConfigurationProperty struct { // The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled. // // > `CloudWatchLogGroupArn` is available only as a return value, accessible when specified as an attribute in the [`Fn:GetAtt`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#aws-resource-mwaa-environment-return-values) intrinsic function. Any value you provide for `CloudWatchLogGroupArn` is discarded by Amazon MWAA. CloudWatchLogGroupArn *string `json:"cloudWatchLogGroupArn" yaml:"cloudWatchLogGroupArn"` // Indicates whether to enable the Apache Airflow log type (e.g. `DagProcessingLogs` ) in CloudWatch Logs. Enabled interface{} `json:"enabled" yaml:"enabled"` // Defines the Apache Airflow logs to send for the log type (e.g. `DagProcessingLogs` ) to CloudWatch Logs. Valid values: `CRITICAL` , `ERROR` , `WARNING` , `INFO` . LogLevel *string `json:"logLevel" yaml:"logLevel"` }
Defines the type of logs to send for the Apache Airflow log type (e.g. `DagProcessingLogs` ).
TODO: EXAMPLE
type CfnEnvironment_NetworkConfigurationProperty ¶
type CfnEnvironment_NetworkConfigurationProperty struct { // A list of one or more security group IDs. // // Accepts up to 5 security group IDs. A security group must be attached to the same VPC as the subnets. To learn more, see [Security in your VPC on Amazon MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/vpc-security.html) . SecurityGroupIds *[]*string `json:"securityGroupIds" yaml:"securityGroupIds"` // A list of subnet IDs. // // *Required* to create an environment. Must be private subnets in two different availability zones. A subnet must be attached to the same VPC as the security group. To learn more, see [About networking on Amazon MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html) . SubnetIds *[]*string `json:"subnetIds" yaml:"subnetIds"` }
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](https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html) .
TODO: EXAMPLE