interface PolicyDefinitionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.VerifiedPermissions.Mixins.CfnPolicyPropsMixin.PolicyDefinitionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsverifiedpermissions/mixins#CfnPolicyPropsMixin_PolicyDefinitionProperty |
Java | software.amazon.awscdk.mixins.preview.services.verifiedpermissions.mixins.CfnPolicyPropsMixin.PolicyDefinitionProperty |
Python | aws_cdk.mixins_preview.aws_verifiedpermissions.mixins.CfnPolicyPropsMixin.PolicyDefinitionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_verifiedpermissions » mixins » 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 { mixins as verifiedpermissions_mixins } from '@aws-cdk/mixins-preview/aws-verifiedpermissions';
const policyDefinitionProperty: verifiedpermissions_mixins.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