Class: AWSCDK::CE::CfnAnomalySubscription::SubscriberProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CE::CfnAnomalySubscription::SubscriberProperty
- Defined in:
- ce/cfn_anomaly_subscription.rb
Overview
The recipient of AnomalySubscription notifications.
Instance Attribute Summary collapse
-
#address ⇒ String
readonly
The email address or SNS Topic Amazon Resource Name (ARN), depending on the
Type. -
#status ⇒ String?
readonly
Indicates if the subscriber accepts the notifications.
-
#type ⇒ String
readonly
The notification delivery channel.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address:, type:, status: nil) ⇒ SubscriberProperty
constructor
A new instance of SubscriberProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(address:, type:, status: nil) ⇒ SubscriberProperty
Returns a new instance of SubscriberProperty.
649 650 651 652 653 654 655 656 |
# File 'ce/cfn_anomaly_subscription.rb', line 649 def initialize(address:, type:, status: nil) @address = address Jsii::Type.check_type(@address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "address") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil? end |
Instance Attribute Details
#address ⇒ String (readonly)
The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .
662 663 664 |
# File 'ce/cfn_anomaly_subscription.rb', line 662 def address @address end |
#status ⇒ String? (readonly)
Indicates if the subscriber accepts the notifications.
672 673 674 |
# File 'ce/cfn_anomaly_subscription.rb', line 672 def status @status end |
#type ⇒ String (readonly)
The notification delivery channel.
667 668 669 |
# File 'ce/cfn_anomaly_subscription.rb', line 667 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
674 675 676 677 678 679 680 |
# File 'ce/cfn_anomaly_subscription.rb', line 674 def self.jsii_properties { :address => "address", :type => "type", :status => "status", } end |
Instance Method Details
#to_jsii ⇒ Object
682 683 684 685 686 687 688 689 690 |
# File 'ce/cfn_anomaly_subscription.rb', line 682 def to_jsii result = {} result.merge!({ "address" => @address, "type" => @type, "status" => @status, }) result.compact end |