Interface ServiceAccountOptions

All Superinterfaces:
All Known Subinterfaces:
All Known Implementing Classes:
ServiceAccountOptions.Jsii$Proxy, ServiceAccountProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:29.672Z") @Stability(Stable) public interface ServiceAccountOptions extends
Options for ServiceAccount.


 Cluster cluster;
 // add service account with annotations and labels
 ServiceAccount serviceAccount = cluster.addServiceAccount("MyServiceAccount", ServiceAccountOptions.builder()
                 "", "false"))
                 "some-label", "with-some-value"))
  • Method Details

    • getAnnotations

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

      Default: - no additional annotations

    • getLabels

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

      Default: - no additional labels

    • getName

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

      The name of a ServiceAccount object must be a valid DNS subdomain name.

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

    • getNamespace

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

      All namespace names must be valid RFC 1123 DNS labels.

      Default: "default"

    • builder

      @Stability(Stable) static ServiceAccountOptions.Builder builder()
      a ServiceAccountOptions.Builder of ServiceAccountOptions