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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPolicy.TemplateLinkedPolicyDefinitionPropertystatic final classAn 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
?principalplaceholder in the policy template when it evaluates an authorization request.Returns union: either
IResolvableorCfnPolicy.EntityIdentifierProperty- See Also:
-
getResource
The resource associated with this template-linked policy.Verified Permissions substitutes this resource for the
?resourceplaceholder in the policy template when it evaluates an authorization request.Returns union: either
IResolvableorCfnPolicy.EntityIdentifierProperty- See Also:
-
builder
-