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.
- Source
- Generated code
- Type last changed
- v2.93.0 · 23 Aug 2023
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.
principal?optionalIResolvable | CfnPolicy.EntityIdentifierPropertyprincipal?optionaltyping.Union[IResolvable, EntityIdentifierProperty]principal?optionalIResolvablePrincipal?optionalIResolvablePrincipal?optionalinterface{}#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.
resource?optionalIResolvable | CfnPolicy.EntityIdentifierPropertyresource?optionaltyping.Union[IResolvable, EntityIdentifierProperty]resource?optionalIResolvableResource?optionalIResolvableResource?optionalinterface{}#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.