Sha256: c8b241a7ef206e4579a60e472bfc114032e0ee68d7665cd505302abfaf6cff93
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
require_relative '../resource' module Convection module Model class Template class Resource ## # AWS::S3::Bucket ## class S3Bucket < Resource include Model::Mixin::Taggable type 'AWS::S3::Bucket' property :bucket_name, 'BucketName' property :access_control, 'AccessControl' property :cors_configuration, 'CorsConfiguration' property :lifecycle_configuration, 'LifecycleConfiguration' property :logging_configuration, 'LoggingConfiguration' property :notification_configuration, 'NotificationConfiguration' property :versioning_configuration, 'VersioningConfiguration' def cors_configuration(&block) config = ResourceProperty::S3CorsConfiguration.new(self) config.instance_exec(&block) if block properties['CorsConfiguration'].set(config) end def cors_configurationm(*args) warn 'DEPRECATED: "cors_configurationm" is deprecated. Please use "cors_configuration" instead. https://github.com/rapid7/convection/pull/135' cors_configuration(*args) end def render(*args) super.tap do |resource| render_tags(resource) end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems