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 Details

    • 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 roleID or userID (you can see this with the Security Token Service GetCallerIdentity 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's roleID or userID 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, the roleID or userID (you can see this with the Security Token Service GetCallerIdentity 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's roleID or userID 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

      AccessEntry.Builder kubernetesGroups(Collection<String> kubernetesGroups)

      A name that you've specified in a Kubernetes RoleBinding or ClusterRoleBinding object so that Kubernetes authorizes the principalARN access to cluster objects.

      Parameters:
      kubernetesGroups - A name that you've specified in a Kubernetes RoleBinding or ClusterRoleBinding object so that Kubernetes authorizes the principalARN access 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 name that you've specified in a Kubernetes RoleBinding or ClusterRoleBinding object so that Kubernetes authorizes the principalARN access to cluster objects.

      Parameters:
      kubernetesGroups - A name that you've specified in a Kubernetes RoleBinding or ClusterRoleBinding object so that Kubernetes authorizes the principalARN access 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

      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 name of a user that can authenticate to your cluster.

      Parameters:
      username - The name 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.