Interface AssociateAccessPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AssociateAccessPolicyRequest.Builder,
,AssociateAccessPolicyRequest> EksRequest.Builder
,SdkBuilder<AssociateAccessPolicyRequest.Builder,
,AssociateAccessPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AssociateAccessPolicyRequest
public static interface AssociateAccessPolicyRequest.Builder
extends EksRequest.Builder, SdkPojo, CopyableBuilder<AssociateAccessPolicyRequest.Builder,AssociateAccessPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionaccessScope
(Consumer<AccessScope.Builder> accessScope) The scope for theAccessPolicy
.accessScope
(AccessScope accessScope) The scope for theAccessPolicy
.clusterName
(String clusterName) The name of your cluster.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The ARN of theAccessPolicy
that you're associating.principalArn
(String principalArn) The Amazon Resource Name (ARN) of the IAM user or role for theAccessEntry
that you're associating the access policy to.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eks.model.EksRequest.Builder
build
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
-
clusterName
The name of your cluster.
- Parameters:
clusterName
- The name of your cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalArn
The Amazon Resource Name (ARN) of the IAM user or role for the
AccessEntry
that you're associating the access policy to.- Parameters:
principalArn
- The Amazon Resource Name (ARN) of the IAM user or role for theAccessEntry
that you're associating the access policy to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyArn
The ARN of the
AccessPolicy
that you're associating. For a list of ARNs, useListAccessPolicies
.- Parameters:
policyArn
- The ARN of theAccessPolicy
that you're associating. For a list of ARNs, useListAccessPolicies
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessScope
The scope for the
AccessPolicy
. You can scope access policies to an entire cluster or to specific Kubernetes namespaces.- Parameters:
accessScope
- The scope for theAccessPolicy
. You can scope access policies to an entire cluster or to specific Kubernetes namespaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessScope
The scope for the
This is a convenience method that creates an instance of theAccessPolicy
. You can scope access policies to an entire cluster or to specific Kubernetes namespaces.AccessScope.Builder
avoiding the need to create one manually viaAccessScope.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessScope(AccessScope)
.- Parameters:
accessScope
- a consumer that will call methods onAccessScope.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AssociateAccessPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AssociateAccessPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-