Skip to content
v2.275.0

TemplateLinkedPolicyDefinitionProperty Struct ​

A structure that describes a policy created by instantiating a policy template.

You can't directly update a template-linked policy. You must update the associated policy template instead.

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 templateLinkedPolicyDefinitionProperty: verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty = {
  policyTemplateId: 'policyTemplateId',

  // the properties below are optional
  principal: {
    entityId: 'entityId',
    entityType: 'entityType',
  },
  resource: {
    entityId: 'entityId',
    entityType: 'entityType',
  },
};

Properties ​

policyTemplateIdstringpolicy_template_idstrpolicyTemplateIdStringPolicyTemplateIdstringPolicyTemplateId*stringrequired#
The unique identifier of the policy template used to create this policy.
principaloptionalIResolvable | CfnPolicy.EntityIdentifierPropertyprincipaloptionaltyping.Union[IResolvable, EntityIdentifierProperty]principaloptionalIResolvablePrincipaloptionalIResolvablePrincipaloptionalinterface{}#
The principal associated with this template-linked policy.

Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.

resourceoptionalIResolvable | CfnPolicy.EntityIdentifierPropertyresourceoptionaltyping.Union[IResolvable, EntityIdentifierProperty]resourceoptionalIResolvableResourceoptionalIResolvableResourceoptionalinterface{}#
The resource associated with this template-linked policy.

Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.