Interface AccessEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AccessEntry.Builder,
,AccessEntry> SdkBuilder<AccessEntry.Builder,
,AccessEntry> SdkPojo
- Enclosing class:
AccessEntry
-
Method Summary
Modifier and TypeMethodDescriptionaccessEntryArn
(String accessEntryArn) The ARN of the access entry.clusterName
(String clusterName) The name of your cluster.The Unix epoch timestamp at object creation.kubernetesGroups
(String... kubernetesGroups) Aname
that you've specified in a KubernetesRoleBinding
orClusterRoleBinding
object so that Kubernetes authorizes theprincipalARN
access to cluster objects.kubernetesGroups
(Collection<String> kubernetesGroups) Aname
that you've specified in a KubernetesRoleBinding
orClusterRoleBinding
object so that Kubernetes authorizes theprincipalARN
access to cluster objects.modifiedAt
(Instant modifiedAt) The Unix epoch timestamp for the last modification to the object.principalArn
(String principalArn) The ARN of the IAM principal for the access entry.Metadata that assists with categorization and organization.The type of the access entry.Thename
of 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, 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 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
roleID
oruserID
(you can see this with the Security Token ServiceGetCallerIdentity
API) is different for the recreated IAM principal than it was for the original IAM principal. Even though you don't see the IAM principal'sroleID
oruserID
for 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, theroleID
oruserID
(you can see this with the Security Token ServiceGetCallerIdentity
API) is different for the recreated IAM principal than it was for the original IAM principal. Even though you don't see the IAM principal'sroleID
oruserID
for 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
A
name
that you've specified in a KubernetesRoleBinding
orClusterRoleBinding
object so that Kubernetes authorizes theprincipalARN
access to cluster objects.- Parameters:
kubernetesGroups
- Aname
that you've specified in a KubernetesRoleBinding
orClusterRoleBinding
object so that Kubernetes authorizes theprincipalARN
access to cluster objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kubernetesGroups
A
name
that you've specified in a KubernetesRoleBinding
orClusterRoleBinding
object so that Kubernetes authorizes theprincipalARN
access to cluster objects.- Parameters:
kubernetesGroups
- Aname
that you've specified in a KubernetesRoleBinding
orClusterRoleBinding
object so that Kubernetes authorizes theprincipalARN
access to cluster objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
The
name
of a user that can authenticate to your cluster.- Parameters:
username
- Thename
of a user that can authenticate to your cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-