# CfnResourcePolicyProps

Properties for defining a `CfnResourcePolicy`.

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

- Source: Generated at build time
- Type last changed: v2.214.0 · 2 Sep 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_aps as aps } from 'aws-cdk-lib';
const cfnResourcePolicyProps: aps.CfnResourcePolicyProps = {
  policyDocument: 'policyDocument',
  workspaceArn: 'workspaceArn',
};
```

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_aps as aps

cfn_resource_policy_props = aps.CfnResourcePolicyProps(
    policy_document="policyDocument",
    workspace_arn="workspaceArn"
)
```

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

CfnResourcePolicyProps cfnResourcePolicyProps = CfnResourcePolicyProps.builder()
        .policyDocument("policyDocument")
        .workspaceArn("workspaceArn")
        .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.APS;

var cfnResourcePolicyProps = new CfnResourcePolicyProps {
    PolicyDocument = "policyDocument",
    WorkspaceArn = "workspaceArn"
};
```

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"

cfnResourcePolicyProps := &CfnResourcePolicyProps{
	PolicyDocument: jsii.String("policyDocument"),
	WorkspaceArn: jsii.String("workspaceArn"),
}
```

## Properties

- `policyDocument`: string (required) — The JSON to use as the Resource-based Policy.

- `workspaceArn`: string (required) — An ARN identifying a Workspace.
