# ResourcePolicyReference

A reference to a ResourcePolicy resource.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as interfaces_lambda } from 'aws-cdk-lib/interfaces';
const resourcePolicyReference: interfaces_lambda.ResourcePolicyReference = {
  resourceArn: 'resourceArn',
};
```

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_lambda as interfaces_lambda

resource_policy_reference = interfaces_lambda.ResourcePolicyReference(
    resource_arn="resourceArn"
)
```

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

ResourcePolicyReference resourcePolicyReference = ResourcePolicyReference.builder()
        .resourceArn("resourceArn")
        .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.Lambda;

var resourcePolicyReference = new ResourcePolicyReference {
    ResourceArn = "resourceArn"
};
```

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"

resourcePolicyReference := &ResourcePolicyReference{
	ResourceArn: jsii.String("resourceArn"),
}
```

## Properties

- `resourceArn`: string (required) — The ResourceArn of the ResourcePolicy resource.
