Class: AWSCDK::DevOpsGuru::CfnNotificationChannel::SNSChannelConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsGuru::CfnNotificationChannel::SNSChannelConfigProperty
- Defined in:
- dev_ops_guru/cfn_notification_channel.rb
Overview
Contains the Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for Amazon SNS topics .
If you use an Amazon SNS topic that is encrypted by an AWS Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for AWS KMS–encrypted Amazon SNS topics .
Instance Attribute Summary collapse
-
#topic_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(topic_arn: nil) ⇒ SNSChannelConfigProperty
constructor
A new instance of SNSChannelConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(topic_arn: nil) ⇒ SNSChannelConfigProperty
Returns a new instance of SNSChannelConfigProperty.
611 612 613 614 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 611 def initialize(topic_arn: nil) @topic_arn = topic_arn Jsii::Type.check_type(@topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "topicArn") unless @topic_arn.nil? end |
Instance Attribute Details
#topic_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
620 621 622 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 620 def topic_arn @topic_arn end |
Class Method Details
.jsii_properties ⇒ Object
622 623 624 625 626 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 622 def self.jsii_properties { :topic_arn => "topicArn", } end |
Instance Method Details
#to_jsii ⇒ Object
628 629 630 631 632 633 634 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 628 def to_jsii result = {} result.merge!({ "topicArn" => @topic_arn, }) result.compact end |