Class: AWSCDK::BillingConductor::CfnBillingGroup::AccountGroupingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
billing_conductor/cfn_billing_group.rb

Overview

The set of accounts that will be under the billing group.

The set of accounts resemble the linked accounts in a consolidated billing family.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auto_associate: nil, linked_account_ids: nil, responsibility_transfer_arn: nil) ⇒ AccountGroupingProperty

Returns a new instance of AccountGroupingProperty.

Parameters:

  • auto_associate (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies if this billing group will automatically associate newly added AWS accounts that join your consolidated billing family.

  • linked_account_ids (Array<String>, nil) (defaults to: nil)

    The account IDs that make up the billing group.

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

    The Amazon Resource Name (ARN) that identifies the transfer relationship owned by the Bill Transfer account (caller account).



630
631
632
633
634
635
636
637
# File 'billing_conductor/cfn_billing_group.rb', line 630

def initialize(auto_associate: nil, linked_account_ids: nil, responsibility_transfer_arn: nil)
  @auto_associate = auto_associate
  Jsii::Type.check_type(@auto_associate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "autoAssociate") unless @auto_associate.nil?
  @linked_account_ids = 
  Jsii::Type.check_type(@linked_account_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "linkedAccountIds") unless @linked_account_ids.nil?
  @responsibility_transfer_arn = responsibility_transfer_arn
  Jsii::Type.check_type(@responsibility_transfer_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "responsibilityTransferArn") unless @responsibility_transfer_arn.nil?
end

Instance Attribute Details

#auto_associateBoolean, ... (readonly)

Specifies if this billing group will automatically associate newly added AWS accounts that join your consolidated billing family.



643
644
645
# File 'billing_conductor/cfn_billing_group.rb', line 643

def auto_associate
  @auto_associate
end

#linked_account_idsArray<String>? (readonly)

The account IDs that make up the billing group.

Account IDs must be a part of the consolidated billing family, and not associated with another billing group.



650
651
652
# File 'billing_conductor/cfn_billing_group.rb', line 650

def 
  @linked_account_ids
end

#responsibility_transfer_arnString? (readonly)

The Amazon Resource Name (ARN) that identifies the transfer relationship owned by the Bill Transfer account (caller account).

When specified, the PrimaryAccountId is no longer required.



657
658
659
# File 'billing_conductor/cfn_billing_group.rb', line 657

def responsibility_transfer_arn
  @responsibility_transfer_arn
end

Class Method Details

.jsii_propertiesObject



659
660
661
662
663
664
665
# File 'billing_conductor/cfn_billing_group.rb', line 659

def self.jsii_properties
  {
    :auto_associate => "autoAssociate",
    :linked_account_ids => "linkedAccountIds",
    :responsibility_transfer_arn => "responsibilityTransferArn",
  }
end

Instance Method Details

#to_jsiiObject



667
668
669
670
671
672
673
674
675
# File 'billing_conductor/cfn_billing_group.rb', line 667

def to_jsii
  result = {}
  result.merge!({
    "autoAssociate" => @auto_associate,
    "linkedAccountIds" => @linked_account_ids,
    "responsibilityTransferArn" => @responsibility_transfer_arn,
  })
  result.compact
end