8000 Add ResourceLifecycleConfig to ElasticBeanstalk by gkrizek · Pull Request #836 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add ResourceLifecycleConfig to ElasticBeanstalk #836

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 3 commits into from
Oct 7, 2017
Merged
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
33 changes: 32 additions & 1 deletion troposphere/elasticbeanstalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,37 @@
# See LICENSE file for full license.

from . import AWSObject, AWSProperty, Tags

from .validators import boolean, integer

WebServer = "WebServer"
Worker = "Worker"
WebServerType = "Standard"
WorkerType = "SQS/HTTP"


class MaxAgeRule(AWSProperty):
props = {
'DeleteSourceFromS3': (boolean, False),
'Enabled': (boolean, False),
'MaxAgeInDays': (integer, False),
}


class MaxCountRule(AWSProperty):
props = {
'DeleteSourceFromS3': (boolean, False),
'Enabled': (boolean, False),
'MaxCount': (integer, False),
}


class ApplicationVersionLifecycleConfig(AWSProperty):
props = {
'MaxAgeRule': (MaxAgeRule, False),
'MaxCountRule': (MaxCountRule, False),
}


class SourceBundle(AWSProperty):
props = {
'S3Bucket': (basestring, True),
Expand All @@ -26,6 +49,13 @@ class SourceConfiguration(AWSProperty):
}


class ApplicationResourceLifecycleConfig(AWSProperty):
props = {
'ServiceRole': (basestring, False),
'VersionLifecycleConfig': (ApplicationVersionLifecycleConfig, False),
}


class OptionSettings(AWSProperty):
props = {
'Namespace': (basestring, True),
Expand All @@ -40,6 +70,7 @@ class Application(AWSObject):
props = {
'ApplicationName': (basestring, False),
'Description': (basestring, False),
'ResourceLifecycleConfig': (ApplicationResourceLifecycleConfig, False),
}


Expand Down
0