@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-27T16:28:05.566Z")
public interface ServiceAccountOptions
Example:
Cluster cluster; // add service account with annotations and labels ServiceAccount serviceAccount = cluster.addServiceAccount("MyServiceAccount", ServiceAccountOptions.builder() .annotations(Map.of( "eks.amazonaws.com/sts-regional-endpoints", "false")) .labels(Map.of( "some-label", "with-some-value")) .build());
Modifier and Type | Interface and Description |
---|---|
static class |
ServiceAccountOptions.Builder
A builder for
ServiceAccountOptions |
static class |
ServiceAccountOptions.Jsii$Proxy
An implementation for
ServiceAccountOptions |
Modifier and Type | Method and Description |
---|---|
static ServiceAccountOptions.Builder |
builder() |
default java.util.Map<java.lang.String,java.lang.String> |
getAnnotations()
Additional annotations of the service account.
|
default java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Additional labels of the service account.
|
default java.lang.String |
getName()
The name of the service account.
|
default java.lang.String |
getNamespace()
The namespace of the service account.
|
default java.util.Map<java.lang.String,java.lang.String> getAnnotations()
Default: - no additional annotations
default java.util.Map<java.lang.String,java.lang.String> getLabels()
Default: - no additional labels
default java.lang.String getName()
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.
default java.lang.String getNamespace()
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"
static ServiceAccountOptions.Builder builder()
ServiceAccountOptions.Builder
of ServiceAccountOptions