Class: AWSCDK::Interfaces::AWSLex::ResourcePolicyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSLex::ResourcePolicyReference
- Defined in:
- interfaces/aws_lex/resource_policy_reference.rb
Overview
A reference to a ResourcePolicy resource.
Instance Attribute Summary collapse
-
#resource_policy_id ⇒ String
readonly
The Id of the ResourcePolicy resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_policy_id:) ⇒ ResourcePolicyReference
constructor
A new instance of ResourcePolicyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_policy_id:) ⇒ ResourcePolicyReference
Returns a new instance of ResourcePolicyReference.
8 9 10 11 |
# File 'interfaces/aws_lex/resource_policy_reference.rb', line 8 def initialize(resource_policy_id:) @resource_policy_id = resource_policy_id Jsii::Type.check_type(@resource_policy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourcePolicyId") end |
Instance Attribute Details
#resource_policy_id ⇒ String (readonly)
The Id of the ResourcePolicy resource.
16 17 18 |
# File 'interfaces/aws_lex/resource_policy_reference.rb', line 16 def resource_policy_id @resource_policy_id end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/aws_lex/resource_policy_reference.rb', line 18 def self.jsii_properties { :resource_policy_id => "resourcePolicyId", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/aws_lex/resource_policy_reference.rb', line 24 def to_jsii result = {} result.merge!({ "resourcePolicyId" => @resource_policy_id, }) result.compact end |