Class: AWSCDK::Budgets::CfnBudget::NotificationWithSubscribersProperty

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

Overview

A notification with subscribers.

A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(notification:, subscribers:) ⇒ NotificationWithSubscribersProperty

Returns a new instance of NotificationWithSubscribersProperty.

Parameters:



1218
1219
1220
1221
1222
1223
# File 'budgets/cfn_budget.rb', line 1218

def initialize(notification:, subscribers:)
  @notification = notification.is_a?(Hash) ? ::AWSCDK::Budgets::CfnBudget::NotificationProperty.new(**notification.transform_keys(&:to_sym)) : notification
  Jsii::Type.check_type(@notification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19idWRnZXRzLkNmbkJ1ZGdldC5Ob3RpZmljYXRpb25Qcm9wZXJ0eSJ9XX19")), "notification")
  @subscribers = subscribers
  Jsii::Type.check_type(@subscribers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYnVkZ2V0cy5DZm5CdWRnZXQuU3Vic2NyaWJlclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "subscribers")
end

Instance Attribute Details

Class Method Details

.jsii_propertiesObject



1236
1237
1238
1239
1240
1241
# File 'budgets/cfn_budget.rb', line 1236

def self.jsii_properties
  {
    :notification => "notification",
    :subscribers => "subscribers",
  }
end

Instance Method Details

#to_jsiiObject



1243
1244
1245
1246
1247
1248
1249
1250
# File 'budgets/cfn_budget.rb', line 1243

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