Skip to content
v2.278.0

CfnBillingGroupProps Struct ​

Properties for defining a CfnBillingGroup.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_billingconductor as billingconductor } from 'aws-cdk-lib';
const cfnBillingGroupProps: billingconductor.CfnBillingGroupProps = {
  accountGrouping: {
    autoAssociate: false,
    linkedAccountIds: ['linkedAccountIds'],
    responsibilityTransferArn: 'responsibilityTransferArn',
  },
  computationPreference: {
    pricingPlanArn: 'pricingPlanArn',
  },
  name: 'name',

  // the properties below are optional
  description: 'description',
  primaryAccountId: 'primaryAccountId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_billingconductor as billingconductor

cfn_billing_group_props = billingconductor.CfnBillingGroupProps(
    account_grouping=billingconductor.CfnBillingGroup.AccountGroupingProperty(
        auto_associate=False,
        linked_account_ids=["linkedAccountIds"],
        responsibility_transfer_arn="responsibilityTransferArn"
    ),
    computation_preference=billingconductor.CfnBillingGroup.ComputationPreferenceProperty(
        pricing_plan_arn="pricingPlanArn"
    ),
    name="name",

    # the properties below are optional
    description="description",
    primary_account_id="primaryAccountId",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.billingconductor.*;

CfnBillingGroupProps cfnBillingGroupProps = CfnBillingGroupProps.builder()
        .accountGrouping(AccountGroupingProperty.builder()
                .autoAssociate(false)
                .linkedAccountIds(List.of("linkedAccountIds"))
                .responsibilityTransferArn("responsibilityTransferArn")
                .build())
        .computationPreference(ComputationPreferenceProperty.builder()
                .pricingPlanArn("pricingPlanArn")
                .build())
        .name("name")

        // the properties below are optional
        .description("description")
        .primaryAccountId("primaryAccountId")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BillingConductor;

var cfnBillingGroupProps = new CfnBillingGroupProps {
    AccountGrouping = new AccountGroupingProperty {
        AutoAssociate = false,
        LinkedAccountIds = new [] { "linkedAccountIds" },
        ResponsibilityTransferArn = "responsibilityTransferArn"
    },
    ComputationPreference = new ComputationPreferenceProperty {
        PricingPlanArn = "pricingPlanArn"
    },
    Name = "name",

    // the properties below are optional
    Description = "description",
    PrimaryAccountId = "primaryAccountId",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnBillingGroupProps := &CfnBillingGroupProps{
	AccountGrouping: &AccountGroupingProperty{
		AutoAssociate: jsii.Boolean(false),
		LinkedAccountIds: []*string{
			jsii.String("linkedAccountIds"),
		},
		ResponsibilityTransferArn: jsii.String("responsibilityTransferArn"),
	},
	ComputationPreference: &ComputationPreferenceProperty{
		PricingPlanArn: jsii.String("pricingPlanArn"),
	},
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	PrimaryAccountId: jsii.String("primaryAccountId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

accountGroupingIResolvable | CfnBillingGroup.AccountGroupingPropertyaccount_groupingtyping.Union[IResolvable, AccountGroupingProperty]accountGroupingIResolvableAccountGroupingIResolvableAccountGroupinginterface{} required #
The set of accounts that will be under the billing group.

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

computationPreferenceIResolvable | CfnBillingGroup.ComputationPreferencePropertycomputation_preferencetyping.Union[IResolvable, ComputationPreferenceProperty]computationPreferenceIResolvableComputationPreferenceIResolvableComputationPreferenceinterface{} required #
The preferences and settings that will be used to compute the AWS charges for a billing group.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the billing group.
namestringnamestrnameStringNamestringName*string required #
The billing group's name.
primaryAccountIdoptionalstringprimary_account_idoptionalstrprimaryAccountIdoptionalStringPrimaryAccountIdoptionalstringPrimaryAccountIdoptional*string #
The account ID that serves as the main account in a billing group.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A map that contains tag keys and tag values that are attached to a billing group.