cloud_former 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_former.rb +3 -4
- data/lib/cloud_former/resource_properties/s3/lambda_notification_configuration.rb +9 -0
- data/lib/cloud_former/resource_properties/s3/notification_configuration.rb +12 -6
- data/lib/cloud_former/resource_properties/s3/queue_notification_configuration.rb +9 -0
- data/lib/cloud_former/resource_properties/s3/{topic_configuration.rb → topic_notification_configuration.rb} +1 -1
- data/lib/cloud_former/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a781b40e8d72080ba034eafdcaa08006cfb5d41b
|
4
|
+
data.tar.gz: 6a3d52056ed810f39cb33d56994d0f64e4ac496d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4a7be71b98faffc3e17511d254b867257082c58444d76321e109034d35ce6ae8539b1779b1502edf2cafd95562fbc7402a9bbaa87ed31821ead6a1114ac9f73
|
7
|
+
data.tar.gz: 48f172dfeb8597685143de7eceabeef830eb80739cc9db00438a46c8e717e5e6f2703f2b5927b7945e6844e05dbd39a8648f8f9806458304ae23bc9d557bc92f
|
data/lib/cloud_former.rb
CHANGED
@@ -215,14 +215,13 @@ module CloudFormer
|
|
215
215
|
autoload :Bucket, 'cloud_former/resources/s3/bucket'
|
216
216
|
autoload :CorsConfiguration, 'cloud_former/resource_properties/s3/cors_configuration'
|
217
217
|
autoload :CorsRule, 'cloud_former/resource_properties/s3/cors_rule'
|
218
|
-
autoload :
|
218
|
+
autoload :LambdaNotificationConfiguration, 'cloud_former/resource_properties/s3/lambda_configuration'
|
219
219
|
autoload :LifecycleConfiguration, 'cloud_former/resource_properties/s3/lifecycle_configuration'
|
220
220
|
autoload :LifecycleRule, 'cloud_former/resource_properties/s3/lifecycle_rule'
|
221
221
|
autoload :LifecycleRuleTransition, 'cloud_former/resource_properties/s3/lifecycle_rule_transition'
|
222
222
|
autoload :LoggingConfiguration, 'cloud_former/resource_properties/s3/logging_configuration'
|
223
|
-
autoload :
|
224
|
-
autoload :
|
225
|
-
autoload :TopicConfiguration, 'cloud_former/resource_properties/s3/topic_configuration'
|
223
|
+
autoload :QueueNotificationConfiguration, 'cloud_former/resource_properties/s3/queue_configuration'
|
224
|
+
autoload :TopicNotificationConfiguration, 'cloud_former/resource_properties/s3/topic_configuration'
|
226
225
|
autoload :VersioningConfiguration, 'cloud_former/resource_properties/s3/versioning_configuration'
|
227
226
|
autoload :WebsiteConfiguration, 'cloud_former/resource_properties/s3/website_configuration'
|
228
227
|
autoload(
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html
|
2
|
+
module CloudFormer
|
3
|
+
module S3
|
4
|
+
class LambdaNotificationConfiguration < ResourceProperty
|
5
|
+
aws_attribute :event, type: String
|
6
|
+
aws_attribute :topic, type: String
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -2,18 +2,24 @@
|
|
2
2
|
module CloudFormer
|
3
3
|
module S3
|
4
4
|
class NotificationConfiguration < ResourceProperty
|
5
|
-
aws_attribute
|
5
|
+
aws_attribute(
|
6
|
+
:lambda_configurations,
|
6
7
|
embed: true,
|
7
8
|
list: true,
|
8
|
-
type:
|
9
|
-
|
9
|
+
type: LambdaNotificationConfiguration,
|
10
|
+
)
|
11
|
+
aws_attribute(
|
12
|
+
:queue_configurations,
|
10
13
|
embed: true,
|
11
14
|
list: true,
|
12
|
-
type:
|
13
|
-
|
15
|
+
type: QueueNotificationConfiguration,
|
16
|
+
)
|
17
|
+
aws_attribute(
|
18
|
+
:topic_configurations,
|
14
19
|
embed: true,
|
15
20
|
list: true,
|
16
|
-
type:
|
21
|
+
type: TopicNotificationConfiguration,
|
22
|
+
)
|
17
23
|
end
|
18
24
|
end
|
19
25
|
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html
|
2
|
+
module CloudFormer
|
3
|
+
module S3
|
4
|
+
class QueueNotificationConfiguration < ResourceProperty
|
5
|
+
aws_attribute :event, type: String
|
6
|
+
aws_attribute :queue, type: String
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html
|
2
2
|
module CloudFormer
|
3
3
|
module S3
|
4
|
-
class
|
4
|
+
class TopicNotificationConfiguration < ResourceProperty
|
5
5
|
aws_attribute :event, type: String
|
6
6
|
aws_attribute :topic, type: String
|
7
7
|
end
|
data/lib/cloud_former/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud_former
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aubrey Holland
|
@@ -169,12 +169,14 @@ files:
|
|
169
169
|
- lib/cloud_former/resource_properties/route53/hosted_zone_vpc.rb
|
170
170
|
- lib/cloud_former/resource_properties/s3/cors_configuration.rb
|
171
171
|
- lib/cloud_former/resource_properties/s3/cors_rule.rb
|
172
|
+
- lib/cloud_former/resource_properties/s3/lambda_notification_configuration.rb
|
172
173
|
- lib/cloud_former/resource_properties/s3/lifecycle_configuration.rb
|
173
174
|
- lib/cloud_former/resource_properties/s3/lifecycle_rule.rb
|
174
175
|
- lib/cloud_former/resource_properties/s3/lifecycle_rule_transition.rb
|
175
176
|
- lib/cloud_former/resource_properties/s3/logging_configuration.rb
|
176
177
|
- lib/cloud_former/resource_properties/s3/notification_configuration.rb
|
177
|
-
- lib/cloud_former/resource_properties/s3/
|
178
|
+
- lib/cloud_former/resource_properties/s3/queue_notification_configuration.rb
|
179
|
+
- lib/cloud_former/resource_properties/s3/topic_notification_configuration.rb
|
178
180
|
- lib/cloud_former/resource_properties/s3/versioning_configuration.rb
|
179
181
|
- lib/cloud_former/resource_properties/s3/website_configuration.rb
|
180
182
|
- lib/cloud_former/resource_properties/s3/website_configuration_redirect_all_requests_to.rb
|