Class CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicy.TemplateLinkedPolicyDefinitionProperty>
- Enclosing interface:
CfnPolicy.TemplateLinkedPolicyDefinitionProperty
@Stability(Stable)
public static final class CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicy.TemplateLinkedPolicyDefinitionProperty>
A builder for
CfnPolicy.TemplateLinkedPolicyDefinitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyTemplateId
(String policyTemplateId) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getPolicyTemplateId()
principal
(IResolvable principal) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getPrincipal()
principal
(CfnPolicy.EntityIdentifierProperty principal) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getPrincipal()
resource
(IResolvable resource) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getResource()
resource
(CfnPolicy.EntityIdentifierProperty resource) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getResource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyTemplateId
@Stability(Stable) public CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Builder policyTemplateId(String policyTemplateId) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getPolicyTemplateId()
- Parameters:
policyTemplateId
- The unique identifier of the policy template used to create this policy. This parameter is required.- Returns:
this
-
principal
@Stability(Stable) public CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Builder principal(IResolvable principal) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getPrincipal()
- Parameters:
principal
- 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.- Returns:
this
-
principal
@Stability(Stable) public CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Builder principal(CfnPolicy.EntityIdentifierProperty principal) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getPrincipal()
- Parameters:
principal
- 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.- Returns:
this
-
resource
@Stability(Stable) public CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Builder resource(IResolvable resource) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getResource()
- Parameters:
resource
- 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.- Returns:
this
-
resource
@Stability(Stable) public CfnPolicy.TemplateLinkedPolicyDefinitionProperty.Builder resource(CfnPolicy.EntityIdentifierProperty resource) Sets the value ofCfnPolicy.TemplateLinkedPolicyDefinitionProperty.getResource()
- Parameters:
resource
- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicy.TemplateLinkedPolicyDefinitionProperty>
- Returns:
- a new instance of
CfnPolicy.TemplateLinkedPolicyDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-