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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AssociateAccessPolicyRequest.BuilderaccessScope(Consumer<AccessScope.Builder> accessScope)The scope for theAccessPolicy.AssociateAccessPolicyRequest.BuilderaccessScope(AccessScope accessScope)The scope for theAccessPolicy.AssociateAccessPolicyRequest.BuilderclusterName(String clusterName)The name of your cluster.AssociateAccessPolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AssociateAccessPolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)AssociateAccessPolicyRequest.BuilderpolicyArn(String policyArn)The ARN of theAccessPolicythat you're associating.AssociateAccessPolicyRequest.BuilderprincipalArn(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
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 Detail
-
clusterName
AssociateAccessPolicyRequest.Builder clusterName(String 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
AssociateAccessPolicyRequest.Builder principalArn(String 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
AssociateAccessPolicyRequest.Builder policyArn(String 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
AssociateAccessPolicyRequest.Builder accessScope(AccessScope 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
default AssociateAccessPolicyRequest.Builder accessScope(Consumer<AccessScope.Builder> 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:
accessScope(AccessScope)
-
overrideConfiguration
AssociateAccessPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AssociateAccessPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-