Class: AWSCDK::Budgets::CfnBudgetsAction::SubscriberProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudgetsAction::SubscriberProperty
- 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_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.
-
#type ⇒ String
readonly
The type of notification that AWS sends to a subscriber.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address:, type:) ⇒ SubscriberProperty
constructor
A new instance of SubscriberProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(address:, type:) ⇒ SubscriberProperty
Returns a new instance of SubscriberProperty.
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
#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.
943 944 945 |
# File 'budgets/cfn_budgets_action.rb', line 943 def address @address end |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |