Class: AWSCDK::SAM::CfnFunction::IAMPolicyDocumentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnFunction::IAMPolicyDocumentProperty
- Defined in:
- sam/cfn_function.rb
Overview
Instance Attribute Summary collapse
- #statement ⇒ Object readonly
- #version ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(statement:, version: nil) ⇒ IAMPolicyDocumentProperty
constructor
A new instance of IAMPolicyDocumentProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(statement:, version: nil) ⇒ IAMPolicyDocumentProperty
Returns a new instance of IAMPolicyDocumentProperty.
2195 2196 2197 2198 2199 2200 |
# File 'sam/cfn_function.rb', line 2195 def initialize(statement:, version: nil) @statement = statement Jsii::Type.check_type(@statement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "statement") @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#statement ⇒ Object (readonly)
2204 2205 2206 |
# File 'sam/cfn_function.rb', line 2204 def statement @statement end |
#version ⇒ String? (readonly)
2207 2208 2209 |
# File 'sam/cfn_function.rb', line 2207 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
2209 2210 2211 2212 2213 2214 |
# File 'sam/cfn_function.rb', line 2209 def self.jsii_properties { :statement => "statement", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
2216 2217 2218 2219 2220 2221 2222 2223 |
# File 'sam/cfn_function.rb', line 2216 def to_jsii result = {} result.merge!({ "statement" => @statement, "version" => @version, }) result.compact end |