Skip to content
v2.277.0

CfnAgentProfilePolicyProps Struct Added in v2.277.0 ​

Properties for defining a CfnAgentProfilePolicy.

Example ​

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
# 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
// 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();
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"
};
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 ​

policystringpolicystrpolicyStringPolicystringPolicy*string required #
The IAM resource-based policy document as a JSON string.

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

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