Class: AWSCDK::BillingConductor::CfnBillingGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BillingConductor::CfnBillingGroupProps
- Defined in:
- billing_conductor/cfn_billing_group_props.rb
Overview
Properties for defining a CfnBillingGroup.
Instance Attribute Summary collapse
-
#account_grouping ⇒ AWSCDK::IResolvable, AWSCDK::BillingConductor::CfnBillingGroup::AccountGroupingProperty
readonly
The set of accounts that will be under the billing group.
-
#computation_preference ⇒ AWSCDK::IResolvable, AWSCDK::BillingConductor::CfnBillingGroup::ComputationPreferenceProperty
readonly
The preferences and settings that will be used to compute the AWS charges for a billing group.
-
#description ⇒ String?
readonly
The description of the billing group.
-
#name ⇒ String
readonly
The billing group's name.
-
#primary_account_id ⇒ String?
readonly
The account ID that serves as the main account in a billing group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A map that contains tag keys and tag values that are attached to a billing group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_grouping:, computation_preference:, name:, description: nil, primary_account_id: nil, tags: nil) ⇒ CfnBillingGroupProps
constructor
A new instance of CfnBillingGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_grouping:, computation_preference:, name:, description: nil, primary_account_id: nil, tags: nil) ⇒ CfnBillingGroupProps
Returns a new instance of CfnBillingGroupProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 15 def initialize(account_grouping:, computation_preference:, name:, description: nil, primary_account_id: nil, tags: nil) @account_grouping = account_grouping.is_a?(Hash) ? ::AWSCDK::BillingConductor::CfnBillingGroup::AccountGroupingProperty.new(**account_grouping.transform_keys(&:to_sym)) : account_grouping Jsii::Type.check_type(@account_grouping, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iaWxsaW5nY29uZHVjdG9yLkNmbkJpbGxpbmdHcm91cC5BY2NvdW50R3JvdXBpbmdQcm9wZXJ0eSJ9XX19")), "accountGrouping") @computation_preference = computation_preference.is_a?(Hash) ? ::AWSCDK::BillingConductor::CfnBillingGroup::ComputationPreferenceProperty.new(**computation_preference.transform_keys(&:to_sym)) : computation_preference Jsii::Type.check_type(@computation_preference, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iaWxsaW5nY29uZHVjdG9yLkNmbkJpbGxpbmdHcm91cC5Db21wdXRhdGlvblByZWZlcmVuY2VQcm9wZXJ0eSJ9XX19")), "computationPreference") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @primary_account_id = primary_account_id Jsii::Type.check_type(@primary_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "primaryAccountId") unless @primary_account_id.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#account_grouping ⇒ AWSCDK::IResolvable, AWSCDK::BillingConductor::CfnBillingGroup::AccountGroupingProperty (readonly)
The set of accounts that will be under the billing group.
The set of accounts resemble the linked accounts in a consolidated billing family.
36 37 38 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 36 def account_grouping @account_grouping end |
#computation_preference ⇒ AWSCDK::IResolvable, AWSCDK::BillingConductor::CfnBillingGroup::ComputationPreferenceProperty (readonly)
The preferences and settings that will be used to compute the AWS charges for a billing group.
41 42 43 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 41 def computation_preference @computation_preference end |
#description ⇒ String? (readonly)
The description of the billing group.
51 52 53 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 51 def description @description end |
#name ⇒ String (readonly)
The billing group's name.
46 47 48 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 46 def name @name end |
#primary_account_id ⇒ String? (readonly)
The account ID that serves as the main account in a billing group.
56 57 58 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 56 def primary_account_id @primary_account_id end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A map that contains tag keys and tag values that are attached to a billing group.
61 62 63 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 61 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 63 def self.jsii_properties { :account_grouping => "accountGrouping", :computation_preference => "computationPreference", :name => "name", :description => "description", :primary_account_id => "primaryAccountId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'billing_conductor/cfn_billing_group_props.rb', line 74 def to_jsii result = {} result.merge!({ "accountGrouping" => @account_grouping, "computationPreference" => @computation_preference, "name" => @name, "description" => @description, "primaryAccountId" => @primary_account_id, "tags" => @tags, }) result.compact end |