Interface TemplateLinkedPolicyDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TemplateLinkedPolicyDefinition.Builder,
,TemplateLinkedPolicyDefinition> SdkBuilder<TemplateLinkedPolicyDefinition.Builder,
,TemplateLinkedPolicyDefinition> SdkPojo
- Enclosing class:
TemplateLinkedPolicyDefinition
-
Method Summary
Modifier and TypeMethodDescriptionpolicyTemplateId
(String policyTemplateId) The unique identifier of the policy template used to create this policy.principal
(Consumer<EntityIdentifier.Builder> principal) The principal associated with this template-linked policy.principal
(EntityIdentifier principal) The principal associated with this template-linked policy.resource
(Consumer<EntityIdentifier.Builder> resource) The resource associated with this template-linked policy.resource
(EntityIdentifier resource) The resource associated with this template-linked policy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
policyTemplateId
The unique identifier of the policy template used to create this policy.
- Parameters:
policyTemplateId
- The unique identifier of the policy template used to create this policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default TemplateLinkedPolicyDefinition.Builder principal(Consumer<EntityIdentifier.Builder> principal) The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the
This is a convenience method that creates an instance of the?principal
placeholder in the policy template when it evaluates an authorization request.EntityIdentifier.Builder
avoiding the need to create one manually viaEntityIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(EntityIdentifier)
.- Parameters:
principal
- a consumer that will call methods onEntityIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
resource
default TemplateLinkedPolicyDefinition.Builder resource(Consumer<EntityIdentifier.Builder> resource) The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the
This is a convenience method that creates an instance of the?resource
placeholder in the policy template when it evaluates an authorization request.EntityIdentifier.Builder
avoiding the need to create one manually viaEntityIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(EntityIdentifier)
.- Parameters:
resource
- a consumer that will call methods onEntityIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-