Class: AWSCDK::CleanRooms::CfnPrivacyBudgetTemplate::BudgetParameterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
clean_rooms/cfn_privacy_budget_template.rb

Overview

Individual budget parameter configuration that defines specific budget allocation settings for access budgets.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(budget:, type:, auto_refresh: nil) ⇒ BudgetParameterProperty

Returns a new instance of BudgetParameterProperty.

Parameters:

  • budget (Numeric)

    The budget allocation amount for this specific parameter.

  • type (String)

    The type of budget parameter being configured.

  • auto_refresh (String, nil) (defaults to: nil)

    Whether this individual budget parameter automatically refreshes when the budget period resets.



606
607
608
609
610
611
612
613
# File 'clean_rooms/cfn_privacy_budget_template.rb', line 606

def initialize(budget:, type:, auto_refresh: nil)
  @budget = budget
  Jsii::Type.check_type(@budget, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "budget")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @auto_refresh = auto_refresh
  Jsii::Type.check_type(@auto_refresh, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "autoRefresh") unless @auto_refresh.nil?
end

Instance Attribute Details

#auto_refreshString? (readonly)

Whether this individual budget parameter automatically refreshes when the budget period resets.



629
630
631
# File 'clean_rooms/cfn_privacy_budget_template.rb', line 629

def auto_refresh
  @auto_refresh
end

#budgetNumeric (readonly)

The budget allocation amount for this specific parameter.



619
620
621
# File 'clean_rooms/cfn_privacy_budget_template.rb', line 619

def budget
  @budget
end

#typeString (readonly)

The type of budget parameter being configured.



624
625
626
# File 'clean_rooms/cfn_privacy_budget_template.rb', line 624

def type
  @type
end

Class Method Details

.jsii_propertiesObject



631
632
633
634
635
636
637
# File 'clean_rooms/cfn_privacy_budget_template.rb', line 631

def self.jsii_properties
  {
    :budget => "budget",
    :type => "type",
    :auto_refresh => "autoRefresh",
  }
end

Instance Method Details

#to_jsiiObject



639
640
641
642
643
644
645
646
647
# File 'clean_rooms/cfn_privacy_budget_template.rb', line 639

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