Class: AWSCDK::CE::CfnAnomalySubscription::SubscriberProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ce/cfn_anomaly_subscription.rb

Overview

The recipient of AnomalySubscription notifications.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address:, type:, status: nil) ⇒ SubscriberProperty

Returns a new instance of SubscriberProperty.

Parameters:

  • address (String)

    The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .

  • type (String)

    The notification delivery channel.

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

    Indicates if the subscriber accepts the notifications.



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

#addressString (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

#statusString? (readonly)

Indicates if the subscriber accepts the notifications.



672
673
674
# File 'ce/cfn_anomaly_subscription.rb', line 672

def status
  @status
end

#typeString (readonly)

The notification delivery channel.



667
668
669
# File 'ce/cfn_anomaly_subscription.rb', line 667

def type
  @type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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