Interface TemplateLinkedPolicyDefinition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TemplateLinkedPolicyDefinition.Builder,TemplateLinkedPolicyDefinition>,SdkBuilder<TemplateLinkedPolicyDefinition.Builder,TemplateLinkedPolicyDefinition>,SdkPojo
- Enclosing class:
- TemplateLinkedPolicyDefinition
public static interface TemplateLinkedPolicyDefinition.Builder extends SdkPojo, CopyableBuilder<TemplateLinkedPolicyDefinition.Builder,TemplateLinkedPolicyDefinition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TemplateLinkedPolicyDefinition.BuilderpolicyTemplateId(String policyTemplateId)The unique identifier of the policy template used to create this policy.default TemplateLinkedPolicyDefinition.Builderprincipal(Consumer<EntityIdentifier.Builder> principal)The principal associated with this template-linked policy.TemplateLinkedPolicyDefinition.Builderprincipal(EntityIdentifier principal)The principal associated with this template-linked policy.default TemplateLinkedPolicyDefinition.Builderresource(Consumer<EntityIdentifier.Builder> resource)The resource associated with this template-linked policy.TemplateLinkedPolicyDefinition.Builderresource(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 Detail
-
policyTemplateId
TemplateLinkedPolicyDefinition.Builder policyTemplateId(String 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
TemplateLinkedPolicyDefinition.Builder principal(EntityIdentifier principal)
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.- Parameters:
principal- 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:
- 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?principalplaceholder in the policy template when it evaluates an authorization request.EntityIdentifier.Builderavoiding the need to create one manually viaEntityIdentifier.builder().When the
Consumercompletes,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:
principal(EntityIdentifier)
-
resource
TemplateLinkedPolicyDefinition.Builder resource(EntityIdentifier resource)
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.- Parameters:
resource- 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:
- 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?resourceplaceholder in the policy template when it evaluates an authorization request.EntityIdentifier.Builderavoiding the need to create one manually viaEntityIdentifier.builder().When the
Consumercompletes,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:
resource(EntityIdentifier)
-
-