Enum IdentityType
- All Implemented Interfaces:
Serializable
,Comparable<IdentityType>
,java.lang.constant.Constable
Example:
Cluster cluster; ServiceAccount.Builder.create(this, "ServiceAccount") .cluster(cluster) .name("test-sa") .namespace("default") .identityType(IdentityType.POD_IDENTITY) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the IAM Roles for Service Accounts (IRSA) identity type.Use the EKS Pod Identities identity type. -
Method Summary
Modifier and TypeMethodDescriptionstatic IdentityType
Returns the enum constant of this type with the specified name.static IdentityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IRSA
Use the IAM Roles for Service Accounts (IRSA) identity type.IRSA allows you to associate an IAM role with a Kubernetes service account. This provides a way to grant permissions to Kubernetes pods by associating an IAM role with a Kubernetes service account. The IAM role can then be used to provide AWS credentials to the pods, allowing them to access other AWS resources.
When enabled, the openIdConnectProvider of the cluster would be created when you create the ServiceAccount.
- See Also:
-
POD_IDENTITY
Use the EKS Pod Identities identity type.EKS Pod Identities provide the ability to manage credentials for your applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon EC2 instances. Instead of creating and distributing your AWS credentials to the containers or using the Amazon EC2 instance's role, you associate an IAM role with a Kubernetes service account and configure your Pods to use the service account.
When enabled, the Pod Identity Agent AddOn of the cluster would be created when you create the ServiceAccount.
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-