Class: AWSCDK::S3::Mixins::BucketPolicyStatements
- Inherits:
-
Mixin
- Object
- Mixin
- AWSCDK::S3::Mixins::BucketPolicyStatements
- Defined in:
- s3/mixins/bucket_policy_statements.rb
Overview
Adds statements to a bucket policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#apply_to(policy) ⇒ void
Applies the mixin functionality to the target construct.
-
#initialize(statements) ⇒ BucketPolicyStatements
constructor
A new instance of BucketPolicyStatements.
-
#supports(construct) ⇒ Boolean
Determines whether this mixin can be applied to the given construct.
Constructor Details
#initialize(statements) ⇒ BucketPolicyStatements
Returns a new instance of BucketPolicyStatements.
9 10 11 12 |
# File 's3/mixins/bucket_policy_statements.rb', line 9 def initialize(statements) Jsii::Type.check_type(statements, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pYW0uUG9saWN5U3RhdGVtZW50In0sImtpbmQiOiJhcnJheSJ9fQ==")), "statements") Jsii::Object.instance_method(:initialize).bind(self).call(statements) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
14 15 16 17 18 19 |
# File 's3/mixins/bucket_policy_statements.rb', line 14 def self.jsii_overridable_methods { :apply_to => { kind: :method, name: "applyTo", is_optional: false }, :supports => { kind: :method, name: "supports", is_optional: false }, } end |
Instance Method Details
#apply_to(policy) ⇒ void
This method returns an undefined value.
Applies the mixin functionality to the target construct.
25 26 27 28 |
# File 's3/mixins/bucket_policy_statements.rb', line 25 def apply_to(policy) Jsii::Type.check_type(policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "policy") jsii_call_method("applyTo", [policy]) end |
#supports(construct) ⇒ Boolean
Determines whether this mixin can be applied to the given construct.
34 35 36 37 |
# File 's3/mixins/bucket_policy_statements.rb', line 34 def supports(construct) Jsii::Type.check_type(construct, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "construct") jsii_call_method("supports", [construct]) end |