Class: AWSCDK::LookoutMetrics::CfnAlert::SNSConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAlert::SNSConfigurationProperty
- Defined in:
- lookout_metrics/cfn_alert.rb
Overview
Contains information about the SNS topic to which you want to send your alerts and the IAM role that has access to that topic.
Instance Attribute Summary collapse
-
#role_arn ⇒ String
readonly
The ARN of the IAM role that has access to the target SNS topic.
-
#sns_topic_arn ⇒ String
readonly
The ARN of the target SNS topic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn:, sns_topic_arn:) ⇒ SNSConfigurationProperty
constructor
A new instance of SNSConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn:, sns_topic_arn:) ⇒ SNSConfigurationProperty
Returns a new instance of SNSConfigurationProperty.
653 654 655 656 657 658 |
# File 'lookout_metrics/cfn_alert.rb', line 653 def initialize(role_arn:, sns_topic_arn:) @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @sns_topic_arn = sns_topic_arn Jsii::Type.check_type(@sns_topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "snsTopicArn") end |
Instance Attribute Details
#role_arn ⇒ String (readonly)
The ARN of the IAM role that has access to the target SNS topic.
664 665 666 |
# File 'lookout_metrics/cfn_alert.rb', line 664 def role_arn @role_arn end |
#sns_topic_arn ⇒ String (readonly)
The ARN of the target SNS topic.
669 670 671 |
# File 'lookout_metrics/cfn_alert.rb', line 669 def sns_topic_arn @sns_topic_arn end |
Class Method Details
.jsii_properties ⇒ Object
671 672 673 674 675 676 |
# File 'lookout_metrics/cfn_alert.rb', line 671 def self.jsii_properties { :role_arn => "roleArn", :sns_topic_arn => "snsTopicArn", } end |
Instance Method Details
#to_jsii ⇒ Object
678 679 680 681 682 683 684 685 |
# File 'lookout_metrics/cfn_alert.rb', line 678 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, "snsTopicArn" => @sns_topic_arn, }) result.compact end |