Interface AccessEntry.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AccessEntry.Builder,AccessEntry>,SdkBuilder<AccessEntry.Builder,AccessEntry>,SdkPojo
- Enclosing class:
- AccessEntry
public static interface AccessEntry.Builder extends SdkPojo, CopyableBuilder<AccessEntry.Builder,AccessEntry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccessEntry.BuilderaccessEntryArn(String accessEntryArn)The ARN of the access entry.AccessEntry.BuilderclusterName(String clusterName)The name of your cluster.AccessEntry.BuildercreatedAt(Instant createdAt)The Unix epoch timestamp at object creation.AccessEntry.BuilderkubernetesGroups(String... kubernetesGroups)Anamethat you've specified in a KubernetesRoleBindingorClusterRoleBindingobject so that Kubernetes authorizes theprincipalARNaccess to cluster objects.AccessEntry.BuilderkubernetesGroups(Collection<String> kubernetesGroups)Anamethat you've specified in a KubernetesRoleBindingorClusterRoleBindingobject so that Kubernetes authorizes theprincipalARNaccess to cluster objects.AccessEntry.BuildermodifiedAt(Instant modifiedAt)The Unix epoch timestamp for the last modification to the object.AccessEntry.BuilderprincipalArn(String principalArn)The ARN of the IAM principal for the access entry.AccessEntry.Buildertags(Map<String,String> tags)Metadata that assists with categorization and organization.AccessEntry.Buildertype(String type)The type of the access entry.AccessEntry.Builderusername(String username)Thenameof a user that can authenticate to your cluster.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
clusterName
AccessEntry.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
AccessEntry.Builder principalArn(String principalArn)
The ARN of the IAM principal for the access entry. If you ever delete the IAM principal with this ARN, the access entry isn't automatically deleted. We recommend that you delete the access entry with an ARN for an IAM principal that you delete. If you don't delete the access entry and ever recreate the IAM principal, even if it has the same ARN, the access entry won't work. This is because even though the ARN is the same for the recreated IAM principal, the
roleIDoruserID(you can see this with the Security Token ServiceGetCallerIdentityAPI) is different for the recreated IAM principal than it was for the original IAM principal. Even though you don't see the IAM principal'sroleIDoruserIDfor an access entry, Amazon EKS stores it with the access entry.- Parameters:
principalArn- The ARN of the IAM principal for the access entry. If you ever delete the IAM principal with this ARN, the access entry isn't automatically deleted. We recommend that you delete the access entry with an ARN for an IAM principal that you delete. If you don't delete the access entry and ever recreate the IAM principal, even if it has the same ARN, the access entry won't work. This is because even though the ARN is the same for the recreated IAM principal, theroleIDoruserID(you can see this with the Security Token ServiceGetCallerIdentityAPI) is different for the recreated IAM principal than it was for the original IAM principal. Even though you don't see the IAM principal'sroleIDoruserIDfor an access entry, Amazon EKS stores it with the access entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kubernetesGroups
AccessEntry.Builder kubernetesGroups(Collection<String> kubernetesGroups)
A
namethat you've specified in a KubernetesRoleBindingorClusterRoleBindingobject so that Kubernetes authorizes theprincipalARNaccess to cluster objects.- Parameters:
kubernetesGroups- Anamethat you've specified in a KubernetesRoleBindingorClusterRoleBindingobject so that Kubernetes authorizes theprincipalARNaccess to cluster objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kubernetesGroups
AccessEntry.Builder kubernetesGroups(String... kubernetesGroups)
A
namethat you've specified in a KubernetesRoleBindingorClusterRoleBindingobject so that Kubernetes authorizes theprincipalARNaccess to cluster objects.- Parameters:
kubernetesGroups- Anamethat you've specified in a KubernetesRoleBindingorClusterRoleBindingobject so that Kubernetes authorizes theprincipalARNaccess to cluster objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessEntryArn
AccessEntry.Builder accessEntryArn(String accessEntryArn)
The ARN of the access entry.
- Parameters:
accessEntryArn- The ARN of the access entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
AccessEntry.Builder createdAt(Instant createdAt)
The Unix epoch timestamp at object creation.
- Parameters:
createdAt- The Unix epoch timestamp at object creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modifiedAt
AccessEntry.Builder modifiedAt(Instant modifiedAt)
The Unix epoch timestamp for the last modification to the object.
- Parameters:
modifiedAt- The Unix epoch timestamp for the last modification to the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
AccessEntry.Builder tags(Map<String,String> tags)
Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.
- Parameters:
tags- Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
username
AccessEntry.Builder username(String username)
The
nameof a user that can authenticate to your cluster.- Parameters:
username- Thenameof a user that can authenticate to your cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
AccessEntry.Builder type(String type)
The type of the access entry.
- Parameters:
type- The type of the access entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-