Class: AWSCDK::DevOpsGuru::CfnNotificationChannel::NotificationChannelConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsGuru::CfnNotificationChannel::NotificationChannelConfigProperty
- Defined in:
- dev_ops_guru/cfn_notification_channel.rb
Overview
Information about notification channels you have configured with DevOps Guru.
The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
Instance Attribute Summary collapse
-
#filters ⇒ AWSCDK::IResolvable, ...
readonly
The filter configurations for the Amazon SNS notification topic you use with DevOps Guru.
-
#sns ⇒ AWSCDK::IResolvable, ...
readonly
Information about a notification channel configured in DevOps Guru to send notifications when insights are created.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filters: nil, sns: nil) ⇒ NotificationChannelConfigProperty
constructor
A new instance of NotificationChannelConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(filters: nil, sns: nil) ⇒ NotificationChannelConfigProperty
Returns a new instance of NotificationChannelConfigProperty.
510 511 512 513 514 515 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 510 def initialize(filters: nil, sns: nil) @filters = filters.is_a?(Hash) ? ::AWSCDK::DevOpsGuru::CfnNotificationChannel::NotificationFilterConfigProperty.new(**filters.transform_keys(&:to_sym)) : filters Jsii::Type.check_type(@filters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNndXJ1LkNmbk5vdGlmaWNhdGlvbkNoYW5uZWwuTm90aWZpY2F0aW9uRmlsdGVyQ29uZmlnUHJvcGVydHkifV19fQ==")), "filters") unless @filters.nil? @sns = sns.is_a?(Hash) ? ::AWSCDK::DevOpsGuru::CfnNotificationChannel::SNSChannelConfigProperty.new(**sns.transform_keys(&:to_sym)) : sns Jsii::Type.check_type(@sns, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNndXJ1LkNmbk5vdGlmaWNhdGlvbkNoYW5uZWwuU25zQ2hhbm5lbENvbmZpZ1Byb3BlcnR5In1dfX0=")), "sns") unless @sns.nil? end |
Instance Attribute Details
#filters ⇒ AWSCDK::IResolvable, ... (readonly)
The filter configurations for the Amazon SNS notification topic you use with DevOps Guru.
If you do not provide filter configurations, the default configurations are to receive notifications for all message types of High or Medium severity.
523 524 525 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 523 def filters @filters end |
#sns ⇒ AWSCDK::IResolvable, ... (readonly)
Information about a notification channel configured in DevOps Guru to send notifications when insights are created.
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 .
532 533 534 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 532 def sns @sns end |
Class Method Details
.jsii_properties ⇒ Object
534 535 536 537 538 539 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 534 def self.jsii_properties { :filters => "filters", :sns => "sns", } end |
Instance Method Details
#to_jsii ⇒ Object
541 542 543 544 545 546 547 548 |
# File 'dev_ops_guru/cfn_notification_channel.rb', line 541 def to_jsii result = {} result.merge!({ "filters" => @filters, "sns" => @sns, }) result.compact end |