@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:46.762Z") @Stability(value=Stable) public interface ServiceAccountOptions extends software.amazon.jsii.JsiiSerializable
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 Map<String,String> |
getAnnotations()
Additional annotations of the service account.
|
default Map<String,String> |
getLabels()
Additional labels of the service account.
|
default String |
getName()
The name of the service account.
|
default String |
getNamespace()
The namespace of the service account.
|
@Stability(value=Stable) @Nullable default Map<String,String> getAnnotations()
Default: - no additional annotations
@Stability(value=Stable) @Nullable default Map<String,String> getLabels()
Default: - no additional labels
@Stability(value=Stable) @Nullable default 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.
@Stability(value=Stable) @Nullable default 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"
@Stability(value=Stable) static ServiceAccountOptions.Builder builder()
ServiceAccountOptions.Builder of ServiceAccountOptionsCopyright © 2022. All rights reserved.