interface ServiceAccountOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Eks.V2.Alpha.ServiceAccountOptions |
![]() | github.com/aws/aws-cdk-go/awscdkeks-v2alpha/v2#ServiceAccountOptions |
![]() | software.amazon.awscdk.services.eks.v2.alpha.ServiceAccountOptions |
![]() | aws_cdk.aws_eks_v2_alpha.ServiceAccountOptions |
![]() | @aws-cdk/aws-eks-v2-alpha ยป ServiceAccountOptions |
Options for ServiceAccount
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as eks_v2_alpha from '@aws-cdk/aws-eks-v2-alpha';
const serviceAccountOptions: eks_v2_alpha.ServiceAccountOptions = {
annotations: {
annotationsKey: 'annotations',
},
identityType: eks_v2_alpha.IdentityType.IRSA,
labels: {
labelsKey: 'labels',
},
name: 'name',
namespace: 'namespace',
};
Properties
Name | Type | Description |
---|---|---|
annotations? | { [string]: string } | Additional annotations of the service account. |
identity | Identity | The identity type to use for the service account. |
labels? | { [string]: string } | Additional labels of the service account. |
name? | string | The name of the service account. |
namespace? | string | The namespace of the service account. |
annotations?
Type:
{ [string]: string }
(optional, default: no additional annotations)
Additional annotations of the service account.
identityType?
Type:
Identity
(optional, default: IdentityType.IRSA)
The identity type to use for the service account.
labels?
Type:
{ [string]: string }
(optional, default: no additional labels)
Additional labels of the service account.
name?
Type:
string
(optional, default: If no name is given, it will use the id of the resource.)
The name of the service account.
The name of a ServiceAccount object must be a valid DNS subdomain name. https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
namespace?
Type:
string
(optional, default: "default")
The namespace of the service account.
All namespace names must be valid RFC 1123 DNS labels. https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#namespaces-and-dns