@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessEntry extends Object implements Serializable, Cloneable, StructuredPojo
An access entry allows an IAM principal (user or role) to access your cluster. Access entries can replace the need to
maintain the aws-auth
ConfigMap
for authentication. For more information about access
entries, see Access entries in the
Amazon EKS User Guide.
Constructor and Description |
---|
AccessEntry() |
Modifier and Type | Method and Description |
---|---|
AccessEntry |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
AccessEntry |
clearTagsEntries()
Removes all the entries added into Tags.
|
AccessEntry |
clone() |
boolean |
equals(Object obj) |
String |
getAccessEntryArn()
The ARN of the access entry.
|
String |
getClusterName()
The name of your cluster.
|
Date |
getCreatedAt()
The Unix epoch timestamp at object creation.
|
List<String> |
getKubernetesGroups()
A
name that you've specified in a Kubernetes RoleBinding or
ClusterRoleBinding object so that Kubernetes authorizes the principalARN access to
cluster objects. |
Date |
getModifiedAt()
The Unix epoch timestamp for the last modification to the object.
|
String |
getPrincipalArn()
The ARN of the IAM principal for the access entry.
|
Map<String,String> |
getTags()
Metadata that assists with categorization and organization.
|
String |
getType()
The type of the access entry.
|
String |
getUsername()
The
name of a user that can authenticate to your cluster. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessEntryArn(String accessEntryArn)
The ARN of the access entry.
|
void |
setClusterName(String clusterName)
The name of your cluster.
|
void |
setCreatedAt(Date createdAt)
The Unix epoch timestamp at object creation.
|
void |
setKubernetesGroups(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. |
void |
setModifiedAt(Date modifiedAt)
The Unix epoch timestamp for the last modification to the object.
|
void |
setPrincipalArn(String principalArn)
The ARN of the IAM principal for the access entry.
|
void |
setTags(Map<String,String> tags)
Metadata that assists with categorization and organization.
|
void |
setType(String type)
The type of the access entry.
|
void |
setUsername(String username)
The
name of a user that can authenticate to your cluster. |
String |
toString()
Returns a string representation of this object.
|
AccessEntry |
withAccessEntryArn(String accessEntryArn)
The ARN of the access entry.
|
AccessEntry |
withClusterName(String clusterName)
The name of your cluster.
|
AccessEntry |
withCreatedAt(Date createdAt)
The Unix epoch timestamp at object creation.
|
AccessEntry |
withKubernetesGroups(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. |
AccessEntry |
withKubernetesGroups(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. |
AccessEntry |
withModifiedAt(Date modifiedAt)
The Unix epoch timestamp for the last modification to the object.
|
AccessEntry |
withPrincipalArn(String principalArn)
The ARN of the IAM principal for the access entry.
|
AccessEntry |
withTags(Map<String,String> tags)
Metadata that assists with categorization and organization.
|
AccessEntry |
withType(String type)
The type of the access entry.
|
AccessEntry |
withUsername(String username)
The
name of a user that can authenticate to your cluster. |
public void setClusterName(String clusterName)
The name of your cluster.
clusterName
- The name of your cluster.public String getClusterName()
The name of your cluster.
public AccessEntry withClusterName(String clusterName)
The name of your cluster.
clusterName
- The name of your cluster.public void setPrincipalArn(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.
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.public String getPrincipalArn()
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.
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.public AccessEntry withPrincipalArn(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.
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.public List<String> getKubernetesGroups()
A name
that you've specified in a Kubernetes RoleBinding
or
ClusterRoleBinding
object so that Kubernetes authorizes the principalARN
access to
cluster objects.
name
that you've specified in a Kubernetes RoleBinding
or
ClusterRoleBinding
object so that Kubernetes authorizes the principalARN
access
to cluster objects.public void setKubernetesGroups(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.
kubernetesGroups
- A name
that you've specified in a Kubernetes RoleBinding
or
ClusterRoleBinding
object so that Kubernetes authorizes the principalARN
access
to cluster objects.public AccessEntry withKubernetesGroups(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.
NOTE: This method appends the values to the existing list (if any). Use
setKubernetesGroups(java.util.Collection)
or withKubernetesGroups(java.util.Collection)
if you
want to override the existing values.
kubernetesGroups
- A name
that you've specified in a Kubernetes RoleBinding
or
ClusterRoleBinding
object so that Kubernetes authorizes the principalARN
access
to cluster objects.public AccessEntry withKubernetesGroups(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.
kubernetesGroups
- A name
that you've specified in a Kubernetes RoleBinding
or
ClusterRoleBinding
object so that Kubernetes authorizes the principalARN
access
to cluster objects.public void setAccessEntryArn(String accessEntryArn)
The ARN of the access entry.
accessEntryArn
- The ARN of the access entry.public String getAccessEntryArn()
The ARN of the access entry.
public AccessEntry withAccessEntryArn(String accessEntryArn)
The ARN of the access entry.
accessEntryArn
- The ARN of the access entry.public void setCreatedAt(Date createdAt)
The Unix epoch timestamp at object creation.
createdAt
- The Unix epoch timestamp at object creation.public Date getCreatedAt()
The Unix epoch timestamp at object creation.
public AccessEntry withCreatedAt(Date createdAt)
The Unix epoch timestamp at object creation.
createdAt
- The Unix epoch timestamp at object creation.public void setModifiedAt(Date modifiedAt)
The Unix epoch timestamp for the last modification to the object.
modifiedAt
- The Unix epoch timestamp for the last modification to the object.public Date getModifiedAt()
The Unix epoch timestamp for the last modification to the object.
public AccessEntry withModifiedAt(Date modifiedAt)
The Unix epoch timestamp for the last modification to the object.
modifiedAt
- The Unix epoch timestamp for the last modification to the object.public Map<String,String> getTags()
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.
public void setTags(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.
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.public AccessEntry withTags(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.
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.public AccessEntry addTagsEntry(String key, String value)
public AccessEntry clearTagsEntries()
public void setUsername(String username)
The name
of a user that can authenticate to your cluster.
username
- The name
of a user that can authenticate to your cluster.public String getUsername()
The name
of a user that can authenticate to your cluster.
name
of a user that can authenticate to your cluster.public AccessEntry withUsername(String username)
The name
of a user that can authenticate to your cluster.
username
- The name
of a user that can authenticate to your cluster.public void setType(String type)
The type of the access entry.
type
- The type of the access entry.public String getType()
The type of the access entry.
public AccessEntry withType(String type)
The type of the access entry.
type
- The type of the access entry.public String toString()
toString
in class Object
Object.toString()
public AccessEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.