Class: AWSCDK::BCMPricingCalculator::CfnBillScenarioProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bcm_pricing_calculator/cfn_bill_scenario_props.rb

Overview

Properties for defining a CfnBillScenario.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cost_category_group_sharing_preference_arn: nil, expires_at: nil, group_sharing_preference: nil, name: nil, tags: nil) ⇒ CfnBillScenarioProps

Returns a new instance of CfnBillScenarioProps.

Parameters:

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

    The ARN of the cost category group sharing preference.

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

    The timestamp when the bill scenario expires.

  • group_sharing_preference (String, nil) (defaults to: nil)
  • name (String, nil) (defaults to: nil)

    The name of the bill scenario.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 14

def initialize(cost_category_group_sharing_preference_arn: nil, expires_at: nil, group_sharing_preference: nil, name: nil, tags: nil)
  @cost_category_group_sharing_preference_arn = cost_category_group_sharing_preference_arn
  Jsii::Type.check_type(@cost_category_group_sharing_preference_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "costCategoryGroupSharingPreferenceArn") unless @cost_category_group_sharing_preference_arn.nil?
  @expires_at = expires_at
  Jsii::Type.check_type(@expires_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expiresAt") unless @expires_at.nil?
  @group_sharing_preference = group_sharing_preference
  Jsii::Type.check_type(@group_sharing_preference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupSharingPreference") unless @group_sharing_preference.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#cost_category_group_sharing_preference_arnString? (readonly)

The ARN of the cost category group sharing preference.



31
32
33
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 31

def cost_category_group_sharing_preference_arn
  @cost_category_group_sharing_preference_arn
end

#expires_atString? (readonly)

The timestamp when the bill scenario expires.



36
37
38
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 36

def expires_at
  @expires_at
end

#group_sharing_preferenceString? (readonly)



39
40
41
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 39

def group_sharing_preference
  @group_sharing_preference
end

#nameString? (readonly)

The name of the bill scenario.



44
45
46
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 44

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

An array of key-value pairs to apply to this resource.



49
50
51
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 49

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



51
52
53
54
55
56
57
58
59
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 51

def self.jsii_properties
  {
    :cost_category_group_sharing_preference_arn => "costCategoryGroupSharingPreferenceArn",
    :expires_at => "expiresAt",
    :group_sharing_preference => "groupSharingPreference",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



61
62
63
64
65
66
67
68
69
70
71
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 61

def to_jsii
  result = {}
  result.merge!({
    "costCategoryGroupSharingPreferenceArn" => @cost_category_group_sharing_preference_arn,
    "expiresAt" => @expires_at,
    "groupSharingPreference" => @group_sharing_preference,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end