Class: AWSCDK::FMS::CfnNotificationChannelProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fms/cfn_notification_channel_props.rb

Overview

Properties for defining a CfnNotificationChannel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sns_role_name:, sns_topic_arn:) ⇒ CfnNotificationChannelProps

Returns a new instance of CfnNotificationChannelProps.

Parameters:

  • sns_role_name (String)

    The Amazon Resource Name (ARN) of the IAM role that allows Amazon to record AWS Firewall Manager activity.

  • sns_topic_arn (String)

    The Amazon Resource Name (ARN) of the SNS topic that collects notifications from AWS Firewall Manager .



11
12
13
14
15
16
# File 'fms/cfn_notification_channel_props.rb', line 11

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

Instance Attribute Details

#sns_role_nameString (readonly)

The Amazon Resource Name (ARN) of the IAM role that allows Amazon to record AWS Firewall Manager activity.



22
23
24
# File 'fms/cfn_notification_channel_props.rb', line 22

def sns_role_name
  @sns_role_name
end

#sns_topic_arnString (readonly)

The Amazon Resource Name (ARN) of the SNS topic that collects notifications from AWS Firewall Manager .



27
28
29
# File 'fms/cfn_notification_channel_props.rb', line 27

def sns_topic_arn
  @sns_topic_arn
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'fms/cfn_notification_channel_props.rb', line 29

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

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'fms/cfn_notification_channel_props.rb', line 36

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