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