interface TemplateLinkedPolicyDefinitionProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.aws_verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsverifiedpermissions#CfnPolicy_TemplateLinkedPolicyDefinitionProperty |
Java | software.amazon.awscdk.services.verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty |
Python | aws_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
Name | Type | Description |
---|---|---|
policy | string | The unique identifier of the policy template used to create this policy. |
principal? | IResolvable | Entity | The principal associated with this template-linked policy. |
resource? | IResolvable | Entity | The 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
|
Entity
(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
|
Entity
(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.