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 theAccessPolicythat you're associating.principalArn(String principalArn) The Amazon Resource Name (ARN) of the IAM user or role for theAccessEntrythat you're associating the access policy to.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.eks.model.EksRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
AccessEntrythat you're associating the access policy to.- Parameters:
principalArn- The Amazon Resource Name (ARN) of the IAM user or role for theAccessEntrythat 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
AccessPolicythat you're associating. For a list of ARNs, useListAccessPolicies.- Parameters:
policyArn- The ARN of theAccessPolicythat 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.Builderavoiding the need to create one manually viaAccessScope.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-