# CfnAgentProfilePolicyProps

Properties for defining a `CfnAgentProfilePolicy`.

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

- Source: Generated at build time
- Type last changed: v2.277.0 · 13 Nov 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_wellarchitected as wellarchitected } from 'aws-cdk-lib';
const cfnAgentProfilePolicyProps: wellarchitected.CfnAgentProfilePolicyProps = {
  policy: 'policy',
  profileArn: 'profileArn',
};
```

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_wellarchitected as wellarchitected

cfn_agent_profile_policy_props = wellarchitected.CfnAgentProfilePolicyProps(
    policy="policy",
    profile_arn="profileArn"
)
```

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

CfnAgentProfilePolicyProps cfnAgentProfilePolicyProps = CfnAgentProfilePolicyProps.builder()
        .policy("policy")
        .profileArn("profileArn")
        .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.WellArchitected;

var cfnAgentProfilePolicyProps = new CfnAgentProfilePolicyProps {
    Policy = "policy",
    ProfileArn = "profileArn"
};
```

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"

cfnAgentProfilePolicyProps := &CfnAgentProfilePolicyProps{
	Policy: jsii.String("policy"),
	ProfileArn: jsii.String("profileArn"),
}
```

## Properties

- `policy`: string (required) — The IAM resource-based policy document as a JSON string.

  Allow-only statements, no negation condition operators, maximum 51200 characters.

- `profileArn`: string (required) — The Amazon Resource Name (ARN) of the parent Agent Profile the policy is attached to.

  Pass `!GetAtt` (or `!Ref`) of the parent AWS::WellArchitected::AgentProfile to flow its ARN here. Also serves as the primary identifier of this policy attachment.
