Class: AWSCDK::IoT::CfnMitigationAction::PublishFindingToSNSParamsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic_arn:) ⇒ PublishFindingToSNSParamsProperty

Returns a new instance of PublishFindingToSNSParamsProperty.

Parameters:

  • topic_arn (String)

    The ARN of the topic to which you want to publish the findings.



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_arnString (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_propertiesObject



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_jsiiObject



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