@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PodIdentityAssociation extends Object implements Serializable, Cloneable, StructuredPojo
Amazon EKS Pod Identity associations provide the ability to manage credentials for your applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon EC2 instances.
Constructor and Description |
---|
PodIdentityAssociation() |
Modifier and Type | Method and Description |
---|---|
PodIdentityAssociation |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
PodIdentityAssociation |
clearTagsEntries()
Removes all the entries added into Tags.
|
PodIdentityAssociation |
clone() |
boolean |
equals(Object obj) |
String |
getAssociationArn()
The Amazon Resource Name (ARN) of the association.
|
String |
getAssociationId()
The ID of the association.
|
String |
getClusterName()
The name of the cluster that the association is in.
|
Date |
getCreatedAt()
The timestamp that the association was created at.
|
Date |
getModifiedAt()
The most recent timestamp that the association was modified at
|
String |
getNamespace()
The name of the Kubernetes namespace inside the cluster to create the association in.
|
String |
getOwnerArn()
If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
|
String |
getServiceAccount()
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
|
Map<String,String> |
getTags()
Metadata that assists with categorization and organization.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssociationArn(String associationArn)
The Amazon Resource Name (ARN) of the association.
|
void |
setAssociationId(String associationId)
The ID of the association.
|
void |
setClusterName(String clusterName)
The name of the cluster that the association is in.
|
void |
setCreatedAt(Date createdAt)
The timestamp that the association was created at.
|
void |
setModifiedAt(Date modifiedAt)
The most recent timestamp that the association was modified at
|
void |
setNamespace(String namespace)
The name of the Kubernetes namespace inside the cluster to create the association in.
|
void |
setOwnerArn(String ownerArn)
If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
|
void |
setServiceAccount(String serviceAccount)
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
|
void |
setTags(Map<String,String> tags)
Metadata that assists with categorization and organization.
|
String |
toString()
Returns a string representation of this object.
|
PodIdentityAssociation |
withAssociationArn(String associationArn)
The Amazon Resource Name (ARN) of the association.
|
PodIdentityAssociation |
withAssociationId(String associationId)
The ID of the association.
|
PodIdentityAssociation |
withClusterName(String clusterName)
The name of the cluster that the association is in.
|
PodIdentityAssociation |
withCreatedAt(Date createdAt)
The timestamp that the association was created at.
|
PodIdentityAssociation |
withModifiedAt(Date modifiedAt)
The most recent timestamp that the association was modified at
|
PodIdentityAssociation |
withNamespace(String namespace)
The name of the Kubernetes namespace inside the cluster to create the association in.
|
PodIdentityAssociation |
withOwnerArn(String ownerArn)
If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
|
PodIdentityAssociation |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
|
PodIdentityAssociation |
withServiceAccount(String serviceAccount)
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
|
PodIdentityAssociation |
withTags(Map<String,String> tags)
Metadata that assists with categorization and organization.
|
public void setClusterName(String clusterName)
The name of the cluster that the association is in.
clusterName
- The name of the cluster that the association is in.public String getClusterName()
The name of the cluster that the association is in.
public PodIdentityAssociation withClusterName(String clusterName)
The name of the cluster that the association is in.
clusterName
- The name of the cluster that the association is in.public void setNamespace(String namespace)
The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the pods that use the service account must be in this namespace.
namespace
- The name of the Kubernetes namespace inside the cluster to create the association in. The service account
and the pods that use the service account must be in this namespace.public String getNamespace()
The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the pods that use the service account must be in this namespace.
public PodIdentityAssociation withNamespace(String namespace)
The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the pods that use the service account must be in this namespace.
namespace
- The name of the Kubernetes namespace inside the cluster to create the association in. The service account
and the pods that use the service account must be in this namespace.public void setServiceAccount(String serviceAccount)
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
serviceAccount
- The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.public String getServiceAccount()
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
public PodIdentityAssociation withServiceAccount(String serviceAccount)
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
serviceAccount
- The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity agent manages credentials to assume this role for applications in the containers in the pods that use this service account.
roleArn
- The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity
agent manages credentials to assume this role for applications in the containers in the pods that use this
service account.public String getRoleArn()
The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity agent manages credentials to assume this role for applications in the containers in the pods that use this service account.
public PodIdentityAssociation withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity agent manages credentials to assume this role for applications in the containers in the pods that use this service account.
roleArn
- The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity
agent manages credentials to assume this role for applications in the containers in the pods that use this
service account.public void setAssociationArn(String associationArn)
The Amazon Resource Name (ARN) of the association.
associationArn
- The Amazon Resource Name (ARN) of the association.public String getAssociationArn()
The Amazon Resource Name (ARN) of the association.
public PodIdentityAssociation withAssociationArn(String associationArn)
The Amazon Resource Name (ARN) of the association.
associationArn
- The Amazon Resource Name (ARN) of the association.public void setAssociationId(String associationId)
The ID of the association.
associationId
- The ID of the association.public String getAssociationId()
The ID of the association.
public PodIdentityAssociation withAssociationId(String associationId)
The ID of the association.
associationId
- The ID of the association.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.
The following basic restrictions apply to tags:
Maximum number of tags per resource – 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length – 128 Unicode characters in UTF-8
Maximum value length – 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
The following basic restrictions apply to tags:
Maximum number of tags per resource – 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length – 128 Unicode characters in UTF-8
Maximum value length – 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a
prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete
tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource
limit.
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.
The following basic restrictions apply to tags:
Maximum number of tags per resource – 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length – 128 Unicode characters in UTF-8
Maximum value length – 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
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.
The following basic restrictions apply to tags:
Maximum number of tags per resource – 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length – 128 Unicode characters in UTF-8
Maximum value length – 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix
for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag
keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
public PodIdentityAssociation 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.
The following basic restrictions apply to tags:
Maximum number of tags per resource – 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length – 128 Unicode characters in UTF-8
Maximum value length – 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
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.
The following basic restrictions apply to tags:
Maximum number of tags per resource – 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length – 128 Unicode characters in UTF-8
Maximum value length – 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix
for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag
keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
public PodIdentityAssociation addTagsEntry(String key, String value)
public PodIdentityAssociation clearTagsEntries()
public void setCreatedAt(Date createdAt)
The timestamp that the association was created at.
createdAt
- The timestamp that the association was created at.public Date getCreatedAt()
The timestamp that the association was created at.
public PodIdentityAssociation withCreatedAt(Date createdAt)
The timestamp that the association was created at.
createdAt
- The timestamp that the association was created at.public void setModifiedAt(Date modifiedAt)
The most recent timestamp that the association was modified at
modifiedAt
- The most recent timestamp that the association was modified atpublic Date getModifiedAt()
The most recent timestamp that the association was modified at
public PodIdentityAssociation withModifiedAt(Date modifiedAt)
The most recent timestamp that the association was modified at
modifiedAt
- The most recent timestamp that the association was modified atpublic void setOwnerArn(String ownerArn)
If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
ownerArn
- If defined, the Pod Identity Association is owned by an Amazon EKS Addon.public String getOwnerArn()
If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
public PodIdentityAssociation withOwnerArn(String ownerArn)
If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
ownerArn
- If defined, the Pod Identity Association is owned by an Amazon EKS Addon.public String toString()
toString
in class Object
Object.toString()
public PodIdentityAssociation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.