# AccountPolicyReference

A reference to a AccountPolicy resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 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_logs as interfaces_logs } from 'aws-cdk-lib/interfaces';
const accountPolicyReference: interfaces_logs.AccountPolicyReference = {
  accountId: 'accountId',
  policyName: 'policyName',
  policyType: 'policyType',
};
```

Python:

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

account_policy_reference = interfaces_logs.AccountPolicyReference(
    account_id="accountId",
    policy_name="policyName",
    policy_type="policyType"
)
```

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

AccountPolicyReference accountPolicyReference = AccountPolicyReference.builder()
        .accountId("accountId")
        .policyName("policyName")
        .policyType("policyType")
        .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.Interfaces.Logs;

var accountPolicyReference = new AccountPolicyReference {
    AccountId = "accountId",
    PolicyName = "policyName",
    PolicyType = "policyType"
};
```

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"

accountPolicyReference := &AccountPolicyReference{
	AccountId: jsii.String("accountId"),
	PolicyName: jsii.String("policyName"),
	PolicyType: jsii.String("policyType"),
}
```

## Properties

- `accountId`: string (required) — The AccountId of the AccountPolicy resource.

- `policyName`: string (required) — The PolicyName of the AccountPolicy resource.

- `policyType`: string (required) — The PolicyType of the AccountPolicy resource.
