Struct aws_sdk_batch::types::builders::EksPodPropertiesBuilder
source · #[non_exhaustive]pub struct EksPodPropertiesBuilder { /* private fields */ }
Expand description
A builder for EksPodProperties
.
Implementations§
source§impl EksPodPropertiesBuilder
impl EksPodPropertiesBuilder
sourcepub fn service_account_name(self, input: impl Into<String>) -> Self
pub fn service_account_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_service_account_name(self, input: Option<String>) -> Self
pub fn set_service_account_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_service_account_name(&self) -> &Option<String>
pub fn get_service_account_name(&self) -> &Option<String>
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.
sourcepub fn host_network(self, input: bool) -> Self
pub fn host_network(self, input: bool) -> Self
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to false
enables 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.
sourcepub fn set_host_network(self, input: Option<bool>) -> Self
pub fn set_host_network(self, input: Option<bool>) -> Self
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to false
enables 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.
sourcepub fn get_host_network(&self) -> &Option<bool>
pub fn get_host_network(&self) -> &Option<bool>
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to false
enables 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.
sourcepub fn dns_policy(self, input: impl Into<String>) -> Self
pub fn dns_policy(self, input: impl Into<String>) -> Self
The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. ClusterFirst
indicates 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
sourcepub fn set_dns_policy(self, input: Option<String>) -> Self
pub fn set_dns_policy(self, input: Option<String>) -> Self
The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. ClusterFirst
indicates 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
sourcepub fn get_dns_policy(&self) -> &Option<String>
pub fn get_dns_policy(&self) -> &Option<String>
The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. ClusterFirst
indicates 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
sourcepub fn containers(self, input: EksContainer) -> Self
pub fn containers(self, input: EksContainer) -> Self
Appends an item to containers
.
To override the contents of this collection use set_containers
.
The properties of the container that's used on the Amazon EKS pod.
sourcepub fn set_containers(self, input: Option<Vec<EksContainer>>) -> Self
pub fn set_containers(self, input: Option<Vec<EksContainer>>) -> Self
The properties of the container that's used on the Amazon EKS pod.
sourcepub fn get_containers(&self) -> &Option<Vec<EksContainer>>
pub fn get_containers(&self) -> &Option<Vec<EksContainer>>
The properties of the container that's used on the Amazon EKS pod.
sourcepub fn volumes(self, input: EksVolume) -> Self
pub fn volumes(self, input: EksVolume) -> Self
Appends an item to volumes
.
To override the contents of this collection use set_volumes
.
Specifies the volumes for a job definition that uses Amazon EKS resources.
sourcepub fn set_volumes(self, input: Option<Vec<EksVolume>>) -> Self
pub fn set_volumes(self, input: Option<Vec<EksVolume>>) -> Self
Specifies the volumes for a job definition that uses Amazon EKS resources.
sourcepub fn get_volumes(&self) -> &Option<Vec<EksVolume>>
pub fn get_volumes(&self) -> &Option<Vec<EksVolume>>
Specifies the volumes for a job definition that uses Amazon EKS resources.
sourcepub fn metadata(self, input: EksMetadata) -> Self
pub fn metadata(self, input: EksMetadata) -> Self
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
sourcepub fn set_metadata(self, input: Option<EksMetadata>) -> Self
pub fn set_metadata(self, input: Option<EksMetadata>) -> Self
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
sourcepub fn get_metadata(&self) -> &Option<EksMetadata>
pub fn get_metadata(&self) -> &Option<EksMetadata>
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
sourcepub fn build(self) -> EksPodProperties
pub fn build(self) -> EksPodProperties
Consumes the builder and constructs a EksPodProperties
.
Trait Implementations§
source§impl Clone for EksPodPropertiesBuilder
impl Clone for EksPodPropertiesBuilder
source§fn clone(&self) -> EksPodPropertiesBuilder
fn clone(&self) -> EksPodPropertiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EksPodPropertiesBuilder
impl Debug for EksPodPropertiesBuilder
source§impl Default for EksPodPropertiesBuilder
impl Default for EksPodPropertiesBuilder
source§fn default() -> EksPodPropertiesBuilder
fn default() -> EksPodPropertiesBuilder
source§impl PartialEq<EksPodPropertiesBuilder> for EksPodPropertiesBuilder
impl PartialEq<EksPodPropertiesBuilder> for EksPodPropertiesBuilder
source§fn eq(&self, other: &EksPodPropertiesBuilder) -> bool
fn eq(&self, other: &EksPodPropertiesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.