Class CfnComputeEnvironment.EksConfigurationProperty
Configuration for the Amazon EKS cluster that supports the AWS Batch compute environment.
Inheritance
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EksConfigurationProperty : Object, CfnComputeEnvironment.IEksConfigurationProperty
Syntax (vb)
Public Class EksConfigurationProperty
Inherits Object
Implements CfnComputeEnvironment.IEksConfigurationProperty
Remarks
The cluster must exist before the compute environment can be created.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var eksConfigurationProperty = new EksConfigurationProperty {
EksClusterArn = "eksClusterArn",
KubernetesNamespace = "kubernetesNamespace"
};
Synopsis
Constructors
EksConfigurationProperty() |
Properties
EksClusterArn | The Amazon Resource Name (ARN) of the Amazon EKS cluster. |
KubernetesNamespace | The namespace of the Amazon EKS cluster. |
Constructors
EksConfigurationProperty()
public EksConfigurationProperty()
Properties
EksClusterArn
The Amazon Resource Name (ARN) of the Amazon EKS cluster.
public string EksClusterArn { get; set; }
Property Value
System.String
Remarks
An example is arn: aws :eks: us-east-1 : 123456789012 :cluster/ ClusterForBatch
.
KubernetesNamespace
The namespace of the Amazon EKS cluster.
public string KubernetesNamespace { get; set; }
Property Value
System.String
Remarks
AWS Batch manages pods in this namespace. The value can't left empty or null. It must be fewer than 64 characters long, can't be set to default
, can't start with " kube-
," and must match this regular expression: ^a-z0-9?$
. For more information, see Namespaces in the Kubernetes documentation.