aws-cdk-lib.aws_verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty

interface TemplateLinkedPolicyDefinitionProperty

LanguageType name
.NETAmazon.CDK.aws_verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsverifiedpermissions#CfnPolicy_TemplateLinkedPolicyDefinitionProperty
Javaservices.verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty
Pythonaws_cdk.aws_verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty
TypeScript aws-cdk-lib » aws_verifiedpermissions » CfnPolicy » TemplateLinkedPolicyDefinitionProperty

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

// 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

NameTypeDescription
policyTemplateIdstringThe unique identifier of the policy template used to create this policy.
principal?IResolvable | EntityIdentifierPropertyThe principal associated with this template-linked policy.
resource?IResolvable | EntityIdentifierPropertyThe resource associated with this template-linked policy.

policyTemplateId

Type: string

The unique identifier of the policy template used to create this policy.


principal?

Type: IResolvable | EntityIdentifierProperty (optional)

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?

Type: IResolvable | EntityIdentifierProperty (optional)

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.