# CfnInvoiceUnitProps

Struct · External

Properties for defining a `CfnInvoiceUnit`.

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

- Source: Generated at build time
- Type last changed: v2.173.0 · 12 Dec 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_invoicing as invoicing } from 'aws-cdk-lib';
const cfnInvoiceUnitProps: invoicing.CfnInvoiceUnitProps = {
  invoiceReceiver: 'invoiceReceiver',
  name: 'name',
  rule: {
    linkedAccounts: ['linkedAccounts'],
  },

  // the properties below are optional
  description: 'description',
  resourceTags: [{
    key: 'key',
    value: 'value',
  }],
  taxInheritanceDisabled: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_invoicing as invoicing

cfn_invoice_unit_props = invoicing.CfnInvoiceUnitProps(
    invoice_receiver="invoiceReceiver",
    name="name",
    rule=invoicing.CfnInvoiceUnit.RuleProperty(
        linked_accounts=["linkedAccounts"]
    ),

    # the properties below are optional
    description="description",
    resource_tags=[invoicing.CfnInvoiceUnit.ResourceTagProperty(
        key="key",
        value="value"
    )],
    tax_inheritance_disabled=False
)
```

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.invoicing.*;

CfnInvoiceUnitProps cfnInvoiceUnitProps = CfnInvoiceUnitProps.builder()
        .invoiceReceiver("invoiceReceiver")
        .name("name")
        .rule(RuleProperty.builder()
                .linkedAccounts(List.of("linkedAccounts"))
                .build())

        // the properties below are optional
        .description("description")
        .resourceTags(List.of(ResourceTagProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .taxInheritanceDisabled(false)
        .build();
```

C#:

```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.Invoicing;

var cfnInvoiceUnitProps = new CfnInvoiceUnitProps {
    InvoiceReceiver = "invoiceReceiver",
    Name = "name",
    Rule = new RuleProperty {
        LinkedAccounts = new [] { "linkedAccounts" }
    },

    // the properties below are optional
    Description = "description",
    ResourceTags = new [] { new ResourceTagProperty {
        Key = "key",
        Value = "value"
    } },
    TaxInheritanceDisabled = false
};
```

Go:

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

cfnInvoiceUnitProps := &CfnInvoiceUnitProps{
	InvoiceReceiver: jsii.String("invoiceReceiver"),
	Name: jsii.String("name"),
	Rule: &RuleProperty{
		LinkedAccounts: []*string{
			jsii.String("linkedAccounts"),
		},
	},

	// the properties below are optional
	Description: jsii.String("description"),
	ResourceTags: []ResourceTagProperty{
		&ResourceTagProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	TaxInheritanceDisabled: jsii.Boolean(false),
}
```

## Properties

- `description`: string — The assigned description for an invoice unit.

  This information can't be modified or deleted.

- `invoiceReceiver`: string (required) — The account that receives invoices related to the invoice unit.

- `name`: string (required) — A unique name that is distinctive within your AWS .

- `resourceTags`: [CfnInvoiceUnit.ResourceTagProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_invoicing.CfnInvoiceUnit.ResourceTagProperty.html)[] — The tag structure that contains a tag key and value.

- `rule`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInvoiceUnit.RuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_invoicing.CfnInvoiceUnit.RuleProperty.html) (required) — An `InvoiceUnitRule` object used the categorize invoice units.

- `taxInheritanceDisabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
