Class: AWS::S3::BucketPolicy

Inherits:
ModelElement show all
Defined in:
lib/cfn-model/model/bucket_policy.rb

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#logical_resource_id, #metadata, #resource_type

Instance Method Summary collapse

Methods inherited from ModelElement

#==, #to_s

Constructor Details

#initialize(cfn_model) ⇒ BucketPolicy

Returns a new instance of BucketPolicy.



8
9
10
11
# File 'lib/cfn-model/model/bucket_policy.rb', line 8

def initialize(cfn_model)
  super
  @resource_type = 'AWS::S3::BucketPolicy'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ModelElement

Instance Attribute Details

#policy_documentObject

PolicyDocument - objectified policyDocument



6
7
8
# File 'lib/cfn-model/model/bucket_policy.rb', line 6

def policy_document
  @policy_document
end