interface PolicyDefinitionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.VerifiedPermissions.CfnPolicyPropsMixin.PolicyDefinitionProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsverifiedpermissions#CfnPolicyPropsMixin_PolicyDefinitionProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.verifiedpermissions.CfnPolicyPropsMixin.PolicyDefinitionProperty |
Python | aws_cdk.cfn_property_mixins.aws_verifiedpermissions.CfnPolicyPropsMixin.PolicyDefinitionProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_verifiedpermissions » CfnPolicyPropsMixin » PolicyDefinitionProperty |
A structure that defines a Cedar policy.
It includes the policy type, a description, and a policy body. This is a top level data type used to create a policy.
This data type is used as a request parameter for the CreatePolicy operation. This structure must always have either an Static or a TemplateLinked element.
Example
// 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/cfn-property-mixins';
const policyDefinitionProperty: verifiedpermissions.CfnPolicyPropsMixin.PolicyDefinitionProperty = {
static: {
description: 'description',
statement: 'statement',
},
templateLinked: {
policyTemplateId: 'policyTemplateId',
principal: {
entityId: 'entityId',
entityType: 'entityType',
},
resource: {
entityId: 'entityId',
entityType: 'entityType',
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| static? | IResolvable | Static | A structure that describes a static policy. |
| template | IResolvable | Template | A structure that describes a policy that was instantiated from a template. |
static?
Type:
IResolvable | Static
(optional)
A structure that describes a static policy.
An static policy doesn't use a template or allow placeholders for entities.
templateLinked?
Type:
IResolvable | Template
(optional)
A structure that describes a policy that was instantiated from a template.
The template can specify placeholders for principal and resource . When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use for the instantiated policy.

.NET
Go
Java
Python
TypeScript