Interface EksPodProperties.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EksPodProperties.Builder,EksPodProperties>,SdkBuilder<EksPodProperties.Builder,EksPodProperties>,SdkPojo
- Enclosing class:
- EksPodProperties
public static interface EksPodProperties.Builder extends SdkPojo, CopyableBuilder<EksPodProperties.Builder,EksPodProperties>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EksPodProperties.Buildercontainers(Collection<EksContainer> containers)The properties of the container that's used on the Amazon EKS pod.EksPodProperties.Buildercontainers(Consumer<EksContainer.Builder>... containers)The properties of the container that's used on the Amazon EKS pod.EksPodProperties.Buildercontainers(EksContainer... containers)The properties of the container that's used on the Amazon EKS pod.EksPodProperties.BuilderdnsPolicy(String dnsPolicy)The DNS policy for the pod.EksPodProperties.BuilderhostNetwork(Boolean hostNetwork)Indicates if the pod uses the hosts' network IP address.EksPodProperties.BuilderimagePullSecrets(Collection<ImagePullSecret> imagePullSecrets)References a Kubernetes secret resource.EksPodProperties.BuilderimagePullSecrets(Consumer<ImagePullSecret.Builder>... imagePullSecrets)References a Kubernetes secret resource.EksPodProperties.BuilderimagePullSecrets(ImagePullSecret... imagePullSecrets)References a Kubernetes secret resource.EksPodProperties.BuilderinitContainers(Collection<EksContainer> initContainers)These containers run before application containers, always runs to completion, and must complete successfully before the next container starts.EksPodProperties.BuilderinitContainers(Consumer<EksContainer.Builder>... initContainers)These containers run before application containers, always runs to completion, and must complete successfully before the next container starts.EksPodProperties.BuilderinitContainers(EksContainer... initContainers)These containers run before application containers, always runs to completion, and must complete successfully before the next container starts.default EksPodProperties.Buildermetadata(Consumer<EksMetadata.Builder> metadata)Metadata about the Kubernetes pod.EksPodProperties.Buildermetadata(EksMetadata metadata)Metadata about the Kubernetes pod.EksPodProperties.BuilderserviceAccountName(String serviceAccountName)The name of the service account that's used to run the pod.EksPodProperties.BuildershareProcessNamespace(Boolean shareProcessNamespace)Indicates if the processes in a container are shared, or visible, to other containers in the same pod.EksPodProperties.Buildervolumes(Collection<EksVolume> volumes)Specifies the volumes for a job definition that uses Amazon EKS resources.EksPodProperties.Buildervolumes(Consumer<EksVolume.Builder>... volumes)Specifies the volumes for a job definition that uses Amazon EKS resources.EksPodProperties.Buildervolumes(EksVolume... volumes)Specifies the volumes for a job definition that uses Amazon EKS resources.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
serviceAccountName
EksPodProperties.Builder serviceAccountName(String serviceAccountName)
The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation.
- Parameters:
serviceAccountName- The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostNetwork
EksPodProperties.Builder hostNetwork(Boolean hostNetwork)
Indicates if the pod uses the hosts' network IP address. The default value is
true. Setting this tofalseenables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation.- Parameters:
hostNetwork- Indicates if the pod uses the hosts' network IP address. The default value istrue. Setting this tofalseenables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsPolicy
EksPodProperties.Builder dnsPolicy(String dnsPolicy)
The DNS policy for the pod. The default value is
ClusterFirst. If thehostNetworkparameter is not specified, the default isClusterFirstWithHostNet.ClusterFirstindicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.Valid values:
Default|ClusterFirst|ClusterFirstWithHostNet- Parameters:
dnsPolicy- The DNS policy for the pod. The default value isClusterFirst. If thehostNetworkparameter is not specified, the default isClusterFirstWithHostNet.ClusterFirstindicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.Valid values:
Default|ClusterFirst|ClusterFirstWithHostNet- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePullSecrets
EksPodProperties.Builder imagePullSecrets(Collection<ImagePullSecret> imagePullSecrets)
References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.
ImagePullSecret$nameis required when this object is used.- Parameters:
imagePullSecrets- References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.ImagePullSecret$nameis required when this object is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePullSecrets
EksPodProperties.Builder imagePullSecrets(ImagePullSecret... imagePullSecrets)
References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.
ImagePullSecret$nameis required when this object is used.- Parameters:
imagePullSecrets- References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.ImagePullSecret$nameis required when this object is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePullSecrets
EksPodProperties.Builder imagePullSecrets(Consumer<ImagePullSecret.Builder>... imagePullSecrets)
References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry.
This is a convenience method that creates an instance of theImagePullSecret$nameis required when this object is used.ImagePullSecret.Builderavoiding the need to create one manually viaImagePullSecret.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#imagePullSecrets(List.) - Parameters:
imagePullSecrets- a consumer that will call methods onImagePullSecret.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#imagePullSecrets(java.util.Collection)
-
containers
EksPodProperties.Builder containers(Collection<EksContainer> containers)
The properties of the container that's used on the Amazon EKS pod.
This object is limited to 10 elements.
- Parameters:
containers- The properties of the container that's used on the Amazon EKS pod.This object is limited to 10 elements.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
EksPodProperties.Builder containers(EksContainer... containers)
The properties of the container that's used on the Amazon EKS pod.
This object is limited to 10 elements.
- Parameters:
containers- The properties of the container that's used on the Amazon EKS pod.This object is limited to 10 elements.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
EksPodProperties.Builder containers(Consumer<EksContainer.Builder>... containers)
The properties of the container that's used on the Amazon EKS pod.
This is a convenience method that creates an instance of theThis object is limited to 10 elements.
EksContainer.Builderavoiding the need to create one manually viaEksContainer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#containers(List.) - Parameters:
containers- a consumer that will call methods onEksContainer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#containers(java.util.Collection)
-
initContainers
EksPodProperties.Builder initContainers(Collection<EksContainer> initContainers)
These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.
This object is limited to 10 elements.
- Parameters:
initContainers- These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.This object is limited to 10 elements.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initContainers
EksPodProperties.Builder initContainers(EksContainer... initContainers)
These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.
This object is limited to 10 elements.
- Parameters:
initContainers- These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.This object is limited to 10 elements.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initContainers
EksPodProperties.Builder initContainers(Consumer<EksContainer.Builder>... initContainers)
These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation.
This is a convenience method that creates an instance of theThis object is limited to 10 elements.
EksContainer.Builderavoiding the need to create one manually viaEksContainer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#initContainers(List.) - Parameters:
initContainers- a consumer that will call methods onEksContainer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#initContainers(java.util.Collection)
-
volumes
EksPodProperties.Builder volumes(Collection<EksVolume> volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
- Parameters:
volumes- Specifies the volumes for a job definition that uses Amazon EKS resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
EksPodProperties.Builder volumes(EksVolume... volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
- Parameters:
volumes- Specifies the volumes for a job definition that uses Amazon EKS resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
EksPodProperties.Builder volumes(Consumer<EksVolume.Builder>... volumes)
Specifies the volumes for a job definition that uses Amazon EKS resources.
This is a convenience method that creates an instance of theEksVolume.Builderavoiding the need to create one manually viaEksVolume.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#volumes(List.) - Parameters:
volumes- a consumer that will call methods onEksVolume.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#volumes(java.util.Collection)
-
metadata
EksPodProperties.Builder metadata(EksMetadata metadata)
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
- Parameters:
metadata- Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default EksPodProperties.Builder metadata(Consumer<EksMetadata.Builder> metadata)
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
This is a convenience method that creates an instance of theEksMetadata.Builderavoiding the need to create one manually viaEksMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadata(EksMetadata).- Parameters:
metadata- a consumer that will call methods onEksMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metadata(EksMetadata)
-
shareProcessNamespace
EksPodProperties.Builder shareProcessNamespace(Boolean shareProcessNamespace)
Indicates if the processes in a container are shared, or visible, to other containers in the same pod. For more information, see Share Process Namespace between Containers in a Pod.
- Parameters:
shareProcessNamespace- Indicates if the processes in a container are shared, or visible, to other containers in the same pod. For more information, see Share Process Namespace between Containers in a Pod.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-