Interface ServiceAccountOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
ServiceAccountProps
All Known Implementing Classes:
ServiceAccountOptions.Jsii$Proxy, ServiceAccountProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-12T17:54:26.895Z") @Stability(Experimental) public interface ServiceAccountOptions extends software.amazon.jsii.JsiiSerializable
(experimental) Options for ServiceAccount.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.eks.v2.alpha.*;
 ServiceAccountOptions serviceAccountOptions = ServiceAccountOptions.builder()
         .annotations(Map.of(
                 "annotationsKey", "annotations"))
         .identityType(IdentityType.IRSA)
         .labels(Map.of(
                 "labelsKey", "labels"))
         .name("name")
         .namespace("namespace")
         .build();
 
  • Method Details

    • getAnnotations

      @Stability(Experimental) @Nullable default Map<String,String> getAnnotations()
      (experimental) Additional annotations of the service account.

      Default: - no additional annotations

    • getIdentityType

      @Stability(Experimental) @Nullable default IdentityType getIdentityType()
      (experimental) The identity type to use for the service account.

      Default: IdentityType.IRSA

    • getLabels

      @Stability(Experimental) @Nullable default Map<String,String> getLabels()
      (experimental) Additional labels of the service account.

      Default: - no additional labels

    • getName

      @Stability(Experimental) @Nullable default String getName()
      (experimental) The name of the service account.

      The name of a ServiceAccount object must be a valid DNS subdomain name. https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

      Default: - If no name is given, it will use the id of the resource.

    • getNamespace

      @Stability(Experimental) @Nullable default String getNamespace()
      (experimental) The namespace of the service account.

      All namespace names must be valid RFC 1123 DNS labels. https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#namespaces-and-dns

      Default: "default"

    • builder

      @Stability(Experimental) static ServiceAccountOptions.Builder builder()
      Returns:
      a ServiceAccountOptions.Builder of ServiceAccountOptions