Class: AWSCDK::DevOpsGuru::CfnNotificationChannel::SNSChannelConfigProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic_arn: nil) ⇒ SNSChannelConfigProperty

Returns a new instance of SNSChannelConfigProperty.

Parameters:

  • topic_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.



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



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_jsiiObject



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