Class: AWSCDK::FMS::CfnNotificationChannelProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FMS::CfnNotificationChannelProps
- Defined in:
- fms/cfn_notification_channel_props.rb
Overview
Properties for defining a CfnNotificationChannel.
Instance Attribute Summary collapse
-
#sns_role_name ⇒ String
readonly
The Amazon Resource Name (ARN) of the IAM role that allows Amazon to record AWS Firewall Manager activity.
-
#sns_topic_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the SNS topic that collects notifications from AWS Firewall Manager .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(sns_role_name:, sns_topic_arn:) ⇒ CfnNotificationChannelProps
constructor
A new instance of CfnNotificationChannelProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(sns_role_name:, sns_topic_arn:) ⇒ CfnNotificationChannelProps
Returns a new instance of CfnNotificationChannelProps.
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_name ⇒ String (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_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |