8000 AWS::MWAA Adding for managed airflow by adam133 · Pull Request #1858 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AWS::MWAA Adding for managed airflow #1858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ Currently supported AWS resource types
- `AWS::MediaLive`_
- `AWS::MediaStore`_
- `AWS::MSK`_
- `AWS::MWAA`_
- `AWS::Neptune`_
- `AWS::NetworkManager`_
- `AWS::OpsWorks`_
Expand Down Expand Up @@ -478,6 +479,7 @@ See `LICENSE`_ for the troposphere full license text.
.. _`AWS::MediaLive`: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_MediaLive.html
.. _`AWS::MediaStore`: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_MediaStore.html
.. _`AWS::MSK`: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_MSK.html
.. _`AWS::MWAA`: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_MWAA.html
.. _`AWS::Neptune`: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Neptune.html
.. _`AWS::NetworkManager`: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_NetworkManager.html
.. _`AWS::OpsWorks`: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_OpsWorks.html
Expand Down
73 changes: 73 additions & 0 deletions troposphere/mwaa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright (c) 2012-2018, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.

from . import AWSObject, AWSProperty, Tags
from .validators import boolean, integer


class UpdateError(AWSProperty):
props = {
'ErrorCode': (str, False),
'ErrorMessage': (str, False),
}


class LastUpdate(AWSProperty):
props = {
'CreatedAt': (str, False),
'Error': (UpdateError, False),
'Status': (str, False),
}


class ModuleLoggingConfiguration(AWSProperty):
props = {
'CloudWatchLogGroupArn': (str, False),
'Enabled': (boolean, False),
'LogLevel': (str, False),
}


class LoggingConfiguration(AWSProperty):
props = {
'DagProcessingLogs': (ModuleLoggingConfiguration, False),
'SchedulerLogs': (ModuleLoggingConfiguration, False),
'TaskLogs': (ModuleLoggingConfiguration, False),
'WebserverLogs': (ModuleLoggingConfiguration, False),
'WorkerLogs': (ModuleLoggingConfiguration, False),
}


class NetworkConfiguration(AWSProperty):
props = {
'SecurityGroupIds': (list, True),
'SubnetIds': (list, True),
}


class Environment(AWSObject):
resource_type = "AWS::MWAA::Environment"

props = {
'AirflowConfigurationOptions': (str, False),
'AirflowVersion': (str, False),
'DagS3Path': (str, True),
'EnvironmentClass': (str, False),
'ExecutionRoleArn': (str, True),
'KmsKey': (str, False),
'LoggingConfiguration': (LoggingConfiguration, False),
'MaxWorkers': (integer, False),
'NetworkConfiguration': (NetworkConfiguration, True),
'PluginsS3ObjectVersion': (str, False),
'PluginsS3Path': (str, False),
'RequirementsS3ObjectVersion': (str, False),
'RequirementsS3Path': (str, False),
'SourceBucketArn': (str, True),
'WebserverAccessMode': (str, False),
'WebserverUrl': (str, False),
'WeeklyMaintenanceWindowStart': (str, False),
'Name': (str, True),
'Tags': (Tags, False),
}
0