Sha256: 7bd5bb8702f14eb14ad0fb0e128fc7773ce7fa8beae007cc205970e6dbd6454c
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
require_relative '../resource' module Convection module Model class Template class Resource ## # AWS::S3::BucketPolicy ## class S3BucketPolicy < Resource def initialize(*args) super type 'AWS::S3::BucketPolicy' end def bucket(value) property('Bucket', value) end def policy_document(value) property('PolicyDocument', value) end end end end end module DSL ## Add DSL method to template namespace module Template def s3_bucket_policy(name, &block) r = Model::Template::Resource::S3BucketPolicy.new(name, self) r.instance_exec(&block) if block resources[name] = r end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
convection-0.0.1 | lib/convection/model/template/resource/aws_s3_bucket_policy.rb |