Class: AWSCDK::Budgets::CfnBudgetsAction::SubscriberProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
budgets/cfn_budgets_action.rb

Overview

The subscriber to a budget notification.

The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.

For example, an email subscriber has the following parameters:

  • A subscription_type of EMAIL
  • An address of example@example.com

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address:, type:) ⇒ SubscriberProperty

Returns a new instance of SubscriberProperty.

Parameters:

  • address (String)

    The address that AWS sends budget notifications to, either an SNS topic or an email.

  • type (String)

    The type of notification that AWS sends to a subscriber.



930
931
932
933
934
935
# File 'budgets/cfn_budgets_action.rb', line 930

def initialize(address:, type:)
  @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")
end

Instance Attribute Details

#addressString (readonly)

The address that AWS sends budget notifications to, either an SNS topic or an email.

When you create a subscriber, the value of Address can't contain line breaks.



943
944
945
# File 'budgets/cfn_budgets_action.rb', line 943

def address
  @address
end

#typeString (readonly)

The type of notification that AWS sends to a subscriber.



948
949
950
# File 'budgets/cfn_budgets_action.rb', line 948

def type
  @type
end

Class Method Details

.jsii_propertiesObject



950
951
952
953
954
955
# File 'budgets/cfn_budgets_action.rb', line 950

def self.jsii_properties
  {
    :address => "address",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



957
958
959
960
961
962
963
964
# File 'budgets/cfn_budgets_action.rb', line 957

def to_jsii
  result = {}
  result.merge!({
    "address" => @address,
    "type" => @type,
  })
  result.compact
end