public static final class ServiceAccount.Builder
extends java.lang.Object
ServiceAccount
.Modifier and Type | Method and Description |
---|---|
ServiceAccount.Builder |
annotations(java.util.Map<java.lang.String,java.lang.String> annotations)
Additional annotations of the service account.
|
ServiceAccount |
build() |
ServiceAccount.Builder |
cluster(ICluster cluster)
The cluster to apply the patch to.
|
static ServiceAccount.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
ServiceAccount.Builder |
labels(java.util.Map<java.lang.String,java.lang.String> labels)
Additional labels of the service account.
|
ServiceAccount.Builder |
name(java.lang.String name)
The name of the service account.
|
ServiceAccount.Builder |
namespace(java.lang.String namespace)
The namespace of the service account.
|
public static ServiceAccount.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.ServiceAccount.Builder
.public ServiceAccount.Builder annotations(java.util.Map<java.lang.String,java.lang.String> annotations)
Default: - no additional annotations
annotations
- Additional annotations of the service account. This parameter is required.this
public ServiceAccount.Builder labels(java.util.Map<java.lang.String,java.lang.String> labels)
Default: - no additional labels
labels
- Additional labels of the service account. This parameter is required.this
public ServiceAccount.Builder name(java.lang.String name)
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.
name
- The name of the service account. This parameter is required.this
public ServiceAccount.Builder namespace(java.lang.String namespace)
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"
namespace
- The namespace of the service account. This parameter is required.this
public ServiceAccount.Builder cluster(ICluster cluster)
cluster
- The cluster to apply the patch to. This parameter is required.this
public ServiceAccount build()