Interface EksConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EksConfiguration.Builder,,EksConfiguration> SdkBuilder<EksConfiguration.Builder,,EksConfiguration> SdkPojo
- Enclosing class:
EksConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault EksConfiguration.BuilderaccessEntry(Consumer<EksAccessEntry.Builder> accessEntry) The Batch-managed Amazon EKS access entry for the compute environment.accessEntry(EksAccessEntry accessEntry) The Batch-managed Amazon EKS access entry for the compute environment.eksClusterArn(String eksClusterArn) The Amazon Resource Name (ARN) of the Amazon EKS cluster.kubernetesNamespace(String kubernetesNamespace) The namespace of the Amazon EKS cluster.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
eksClusterArn
The Amazon Resource Name (ARN) of the Amazon EKS cluster. An example is
arn:aws:eks:us-east-1:123456789012:cluster/ClusterForBatch.- Parameters:
eksClusterArn- The Amazon Resource Name (ARN) of the Amazon EKS cluster. An example isarn:aws:eks:us-east-1:123456789012:cluster/ClusterForBatch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kubernetesNamespace
The namespace of the Amazon EKS cluster. 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]([-a-z0-9]*[a-z0-9])?$. For more information, see Namespaces in the Kubernetes documentation.- Parameters:
kubernetesNamespace- The namespace of the Amazon EKS cluster. 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 todefault, can't start with "kube-," and must match this regular expression:^[a-z0-9]([-a-z0-9]*[a-z0-9])?$. For more information, see Namespaces in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessEntry
The Batch-managed Amazon EKS access entry for the compute environment. Set
desiredStateto declare whether Batch manages an access entry on the cluster. In aDescribeComputeEnvironmentsresponse,desiredStateis the value that Batch recorded for the compute environment andstatusis the observed state of the access entry on the cluster. To change the access entry on an existing compute environment, useEksConfigurationUpdate.accessEntry.Whether the entry is provisioned on the cluster depends on the cluster's
authenticationModeand thedesiredStaterecorded for each Batch compute environment targeting the cluster. For more information, see Amazon EKS access entry authentication in the Batch User Guide.If you don't specify this field, Batch doesn't record a
desiredStatefor the compute environment andDescribeComputeEnvironmentsdoesn't return one. For the purpose of provisioning the access entry, Batch behaves as it does forINHERIT_FROM_CLUSTER.- Parameters:
accessEntry- The Batch-managed Amazon EKS access entry for the compute environment. SetdesiredStateto declare whether Batch manages an access entry on the cluster. In aDescribeComputeEnvironmentsresponse,desiredStateis the value that Batch recorded for the compute environment andstatusis the observed state of the access entry on the cluster. To change the access entry on an existing compute environment, useEksConfigurationUpdate.accessEntry.Whether the entry is provisioned on the cluster depends on the cluster's
authenticationModeand thedesiredStaterecorded for each Batch compute environment targeting the cluster. For more information, see Amazon EKS access entry authentication in the Batch User Guide.If you don't specify this field, Batch doesn't record a
desiredStatefor the compute environment andDescribeComputeEnvironmentsdoesn't return one. For the purpose of provisioning the access entry, Batch behaves as it does forINHERIT_FROM_CLUSTER.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessEntry
The Batch-managed Amazon EKS access entry for the compute environment. Set
desiredStateto declare whether Batch manages an access entry on the cluster. In aDescribeComputeEnvironmentsresponse,desiredStateis the value that Batch recorded for the compute environment andstatusis the observed state of the access entry on the cluster. To change the access entry on an existing compute environment, useEksConfigurationUpdate.accessEntry.Whether the entry is provisioned on the cluster depends on the cluster's
authenticationModeand thedesiredStaterecorded for each Batch compute environment targeting the cluster. For more information, see Amazon EKS access entry authentication in the Batch User Guide.If you don't specify this field, Batch doesn't record a
This is a convenience method that creates an instance of thedesiredStatefor the compute environment andDescribeComputeEnvironmentsdoesn't return one. For the purpose of provisioning the access entry, Batch behaves as it does forINHERIT_FROM_CLUSTER.EksAccessEntry.Builderavoiding the need to create one manually viaEksAccessEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessEntry(EksAccessEntry).- Parameters:
accessEntry- a consumer that will call methods onEksAccessEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-