Class: AWSCDK::Budgets::CfnBudget::SubscriberProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudget::SubscriberProperty
- 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_typeofEMAIL - An
addressofexample@example.com
Instance Attribute Summary collapse
-
#address ⇒ String
readonly
The address that AWS sends budget notifications to, either an SNS topic or an email.
-
#subscription_type ⇒ String
readonly
The type of notification that AWS sends to a subscriber.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address:, subscription_type:) ⇒ SubscriberProperty
constructor
A new instance of SubscriberProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(address:, subscription_type:) ⇒ SubscriberProperty
Returns a new instance of SubscriberProperty.
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
#address ⇒ String (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_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |