Class: AWSCDK::IoT::CfnMitigationAction::PublishFindingToSNSParamsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnMitigationAction::PublishFindingToSNSParamsProperty
- Defined in:
- io_t/cfn_mitigation_action.rb
Overview
Parameters to define a mitigation action that publishes findings to Amazon SNS.
You can implement your own custom actions in response to the Amazon SNS messages.
Instance Attribute Summary collapse
-
#topic_arn ⇒ String
readonly
The ARN of the topic to which you want to publish the findings.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(topic_arn:) ⇒ PublishFindingToSNSParamsProperty
constructor
A new instance of PublishFindingToSNSParamsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(topic_arn:) ⇒ PublishFindingToSNSParamsProperty
Returns a new instance of PublishFindingToSNSParamsProperty.
748 749 750 751 |
# File 'io_t/cfn_mitigation_action.rb', line 748 def initialize(topic_arn:) @topic_arn = topic_arn Jsii::Type.check_type(@topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "topicArn") end |
Instance Attribute Details
#topic_arn ⇒ String (readonly)
The ARN of the topic to which you want to publish the findings.
757 758 759 |
# File 'io_t/cfn_mitigation_action.rb', line 757 def topic_arn @topic_arn end |
Class Method Details
.jsii_properties ⇒ Object
759 760 761 762 763 |
# File 'io_t/cfn_mitigation_action.rb', line 759 def self.jsii_properties { :topic_arn => "topicArn", } end |
Instance Method Details
#to_jsii ⇒ Object
765 766 767 768 769 770 771 |
# File 'io_t/cfn_mitigation_action.rb', line 765 def to_jsii result = {} result.merge!({ "topicArn" => @topic_arn, }) result.compact end |