

# Subject
<a name="API_auth_Subject"></a>

An object containing the name of the Kubernetes service account inside the cluster to associate the IAM credentials with.

## Contents
<a name="API_auth_Subject_Contents"></a>

 ** namespace **   <a name="AmazonEKS-Type-auth_Subject-namespace"></a>
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.  
Type: String  
Required: Yes

 ** serviceAccount **   <a name="AmazonEKS-Type-auth_Subject-serviceAccount"></a>
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.  
Type: String  
Required: Yes

## See Also
<a name="API_auth_Subject_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/eks-auth-2023-11-26/Subject) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/eks-auth-2023-11-26/Subject) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/eks-auth-2023-11-26/Subject) 