PolicyDefinitionProperty
Struct External
The definition structure for policies.
Encapsulates different policy formats.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const policyDefinitionProperty: bedrockagentcore.CfnPolicy.PolicyDefinitionProperty = {
cedar: {
statement: 'statement',
},
policy: {
statement: 'statement',
},
};
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_bedrockagentcore as bedrockagentcore
policy_definition_property = bedrockagentcore.CfnPolicy.PolicyDefinitionProperty(
cedar=bedrockagentcore.CfnPolicy.CedarPolicyProperty(
statement="statement"
),
policy=bedrockagentcore.CfnPolicy.PolicyStatementProperty(
statement="statement"
)
)
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.bedrockagentcore.*;
PolicyDefinitionProperty policyDefinitionProperty = PolicyDefinitionProperty.builder()
.cedar(CedarPolicyProperty.builder()
.statement("statement")
.build())
.policy(PolicyStatementProperty.builder()
.statement("statement")
.build())
.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.BedrockAgentCore;
var policyDefinitionProperty = new PolicyDefinitionProperty {
Cedar = new CedarPolicyProperty {
Statement = "statement"
},
Policy = new PolicyStatementProperty {
Statement = "statement"
}
};
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"
policyDefinitionProperty := &PolicyDefinitionProperty{
Cedar: &CedarPolicyProperty{
Statement: jsii.String("statement"),
},
Policy: &PolicyStatementProperty{
Statement: jsii.String("statement"),
},
}
Properties
cedaroptionalIResolvable | CfnPolicy.CedarPolicyPropertycedaroptionaltyping.Union[IResolvable, CedarPolicyProperty]cedaroptionalIResolvableCedaroptionalIResolvableCedaroptionalinterface{} #A Cedar policy statement within the AgentCore Policy system.
policyoptionalIResolvable | CfnPolicy.policyoptionaltyping.Union[IResolvable, PolicyStatementProperty]policyoptionalIResolvablePolicyoptionalIResolvablePolicyoptionalinterface{} #A policy statement within the AgentCore Policy system.