@Stability(value=Stable) public static final class ServiceAccount.Builder extends Object implements software.amazon.jsii.Builder<ServiceAccount>
ServiceAccount.| Modifier and Type | Method and Description |
|---|---|
ServiceAccount.Builder |
annotations(Map<String,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,
String id) |
ServiceAccount.Builder |
labels(Map<String,String> labels)
Additional labels of the service account.
|
ServiceAccount.Builder |
name(String name)
The name of the service account.
|
ServiceAccount.Builder |
namespace(String namespace)
The namespace of the service account.
|
@Stability(value=Stable) public static ServiceAccount.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ServiceAccount.Builder.@Stability(value=Stable) public ServiceAccount.Builder annotations(Map<String,String> annotations)
Default: - no additional annotations
annotations - Additional annotations of the service account. This parameter is required.this@Stability(value=Stable) public ServiceAccount.Builder labels(Map<String,String> labels)
Default: - no additional labels
labels - Additional labels of the service account. This parameter is required.this@Stability(value=Stable) public ServiceAccount.Builder name(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@Stability(value=Stable) public ServiceAccount.Builder namespace(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@Stability(value=Stable) public ServiceAccount.Builder cluster(ICluster cluster)
cluster - The cluster to apply the patch to. This parameter is required.this@Stability(value=Stable) public ServiceAccount build()
build in interface software.amazon.jsii.Builder<ServiceAccount>Copyright © 2022. All rights reserved.