CfnPolicyProps Struct
Properties for defining a CfnPolicy.
- Source
- Generated code
- Type last changed
- v2.260.0 · 16 Jun 2026
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_verifiedpermissions as verifiedpermissions } from 'aws-cdk-lib';
const cfnPolicyProps: verifiedpermissions.CfnPolicyProps = {
definition: {
static: {
statement: 'statement',
// the properties below are optional
description: 'description',
},
templateLinked: {
policyTemplateId: 'policyTemplateId',
// the properties below are optional
principal: {
entityId: 'entityId',
entityType: 'entityType',
},
resource: {
entityId: 'entityId',
entityType: 'entityType',
},
},
},
policyStoreId: 'policyStoreId',
// the properties below are optional
name: 'name',
};
Properties
definitionIResolvable | CfnPolicy.PolicyDefinitionPropertydefinitiontyping.Union[IResolvable, PolicyDefinitionProperty]definitionIResolvableDefinitionIResolvableDefinitioninterface{}required#Specifies the policy type and content to use for the new or updated policy.
The definition structure must include either a Static or a TemplateLinked element.
policyStoreIdstringpolicy_store_idstrpolicyStoreIdStringPolicyStoreIdstringPolicyStoreId*stringrequired#Specifies the `PolicyStoreId` of the policy store you want to store the policy in.