# CfnBillingGroupProps

Properties for defining a `CfnBillingGroup`.

Used as props by: [CfnBillingGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_billingconductor.CfnBillingGroup.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `accountGrouping`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBillingGroup.AccountGroupingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_billingconductor.CfnBillingGroup.AccountGroupingProperty.html) (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.

- `computationPreference`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBillingGroup.ComputationPreferenceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_billingconductor.CfnBillingGroup.ComputationPreferenceProperty.html) (required) — The preferences and settings that will be used to compute the AWS charges for a billing group.

- `description`: string — The description of the billing group.

- `name`: string (required) — The billing group's name.

- `primaryAccountId`: string — The account ID that serves as the main account in a billing group.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A map that contains tag keys and tag values that are attached to a billing group.
