# RuleProperty

Struct · External

The `InvoiceUnitRule` object used to update invoice units.

- 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 ruleProperty: invoicing.CfnInvoiceUnit.RuleProperty = {
  linkedAccounts: ['linkedAccounts'],
};
```

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

rule_property = invoicing.CfnInvoiceUnit.RuleProperty(
    linked_accounts=["linkedAccounts"]
)
```

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

RuleProperty ruleProperty = RuleProperty.builder()
        .linkedAccounts(List.of("linkedAccounts"))
        .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 ruleProperty = new RuleProperty {
    LinkedAccounts = new [] { "linkedAccounts" }
};
```

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"

ruleProperty := &RuleProperty{
	LinkedAccounts: []*string{
		jsii.String("linkedAccounts"),
	},
}
```

## Properties

- `linkedAccounts`: string[] (required) — The list of `LINKED_ACCOUNT` IDs where charges are included within the invoice unit.
