Class: AWSCDK::SSMIncidents::CfnResponsePlan::NotificationTargetItemProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ssm_incidents/cfn_response_plan.rb

Overview

The Amazon topic that's used by to notify the incidents chat channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sns_topic_arn: nil) ⇒ NotificationTargetItemProperty

Returns a new instance of NotificationTargetItemProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the Amazon topic.



897
898
899
900
# File 'ssm_incidents/cfn_response_plan.rb', line 897

def initialize(sns_topic_arn: nil)
  @sns_topic_arn = sns_topic_arn
  Jsii::Type.check_type(@sns_topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "snsTopicArn") unless @sns_topic_arn.nil?
end

Instance Attribute Details

#sns_topic_arnString? (readonly)

The Amazon Resource Name (ARN) of the Amazon topic.



906
907
908
# File 'ssm_incidents/cfn_response_plan.rb', line 906

def sns_topic_arn
  @sns_topic_arn
end

Class Method Details

.jsii_propertiesObject



908
909
910
911
912
# File 'ssm_incidents/cfn_response_plan.rb', line 908

def self.jsii_properties
  {
    :sns_topic_arn => "snsTopicArn",
  }
end

Instance Method Details

#to_jsiiObject



914
915
916
917
918
919
920
# File 'ssm_incidents/cfn_response_plan.rb', line 914

def to_jsii
  result = {}
  result.merge!({
    "snsTopicArn" => @sns_topic_arn,
  })
  result.compact
end