Class: AWSCDK::Budgets::CfnBudget::SubscriberProperty

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

Overview

The Subscriber property type specifies who to notify for a Billing and Cost Management budget notification.

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

For example, an email subscriber would have 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:, subscription_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.

  • subscription_type (String)

    The type of notification that AWS sends to a subscriber.



1364
1365
1366
1367
1368
1369
# File 'budgets/cfn_budget.rb', line 1364

def initialize(address:, subscription_type:)
  @address = address
  Jsii::Type.check_type(@address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "address")
  @subscription_type = subscription_type
  Jsii::Type.check_type(@subscription_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subscriptionType")
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.



1377
1378
1379
# File 'budgets/cfn_budget.rb', line 1377

def address
  @address
end

#subscription_typeString (readonly)

The type of notification that AWS sends to a subscriber.



1382
1383
1384
# File 'budgets/cfn_budget.rb', line 1382

def subscription_type
  @subscription_type
end

Class Method Details

.jsii_propertiesObject



1384
1385
1386
1387
1388
1389
# File 'budgets/cfn_budget.rb', line 1384

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

Instance Method Details

#to_jsiiObject



1391
1392
1393
1394
1395
1396
1397
1398
# File 'budgets/cfn_budget.rb', line 1391

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