Interface CfnPolicy.TemplateLinkedPolicyDefinitionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Jsii$Proxy
- Enclosing class:
CfnPolicy
@Stability(Stable)
public static interface CfnPolicy.TemplateLinkedPolicyDefinitionProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.verifiedpermissions.*; TemplateLinkedPolicyDefinitionProperty templateLinkedPolicyDefinitionProperty = TemplateLinkedPolicyDefinitionProperty.builder() .policyTemplateId("policyTemplateId") // the properties below are optional .principal(EntityIdentifierProperty.builder() .entityId("entityId") .entityType("entityType") .build()) .resource(EntityIdentifierProperty.builder() .entityId("entityId") .entityType("entityType") .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnPolicy.TemplateLinkedPolicyDefinitionProperty
static final class
An implementation forCfnPolicy.TemplateLinkedPolicyDefinitionProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyTemplateId
The unique identifier of the policy template used to create this policy.- See Also:
-
getPrincipal
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.- See Also:
-
getResource
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.- See Also:
-
builder
-