#[non_exhaustive]pub struct EksPodPropertiesDetailBuilder { /* private fields */ }
Expand description
A builder for EksPodPropertiesDetail
.
Implementations§
source§impl EksPodPropertiesDetailBuilder
impl EksPodPropertiesDetailBuilder
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. If no value was specified for dnsPolicy
in the RegisterJobDefinition API operation, then no value will be returned for dnsPolicy
by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain either ClusterFirst
or ClusterFirstWithHostNet
, depending on the value of the hostNetwork
parameter. 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. If no value was specified for dnsPolicy
in the RegisterJobDefinition API operation, then no value will be returned for dnsPolicy
by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain either ClusterFirst
or ClusterFirstWithHostNet
, depending on the value of the hostNetwork
parameter. 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. If no value was specified for dnsPolicy
in the RegisterJobDefinition API operation, then no value will be returned for dnsPolicy
by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain either ClusterFirst
or ClusterFirstWithHostNet
, depending on the value of the hostNetwork
parameter. For more information, see Pod's DNS policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
sourcepub fn containers(self, input: EksContainerDetail) -> Self
pub fn containers(self, input: EksContainerDetail) -> 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<EksContainerDetail>>) -> Self
pub fn set_containers(self, input: Option<Vec<EksContainerDetail>>) -> Self
The properties of the container that's used on the Amazon EKS pod.
sourcepub fn get_containers(&self) -> &Option<Vec<EksContainerDetail>>
pub fn get_containers(&self) -> &Option<Vec<EksContainerDetail>>
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 using 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 using 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 using Amazon EKS resources.
sourcepub fn set_pod_name(self, input: Option<String>) -> Self
pub fn set_pod_name(self, input: Option<String>) -> Self
The name of the pod for this job.
sourcepub fn get_pod_name(&self) -> &Option<String>
pub fn get_pod_name(&self) -> &Option<String>
The name of the pod for this job.
sourcepub fn set_node_name(self, input: Option<String>) -> Self
pub fn set_node_name(self, input: Option<String>) -> Self
The name of the node for this job.
sourcepub fn get_node_name(&self) -> &Option<String>
pub fn get_node_name(&self) -> &Option<String>
The name of the node for this job.
sourcepub fn metadata(self, input: EksMetadata) -> Self
pub fn metadata(self, input: EksMetadata) -> Self
Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the jobID
for a job running in the 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
Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the jobID
for a job running in the 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>
Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the jobID
for a job running in the pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
sourcepub fn build(self) -> EksPodPropertiesDetail
pub fn build(self) -> EksPodPropertiesDetail
Consumes the builder and constructs a EksPodPropertiesDetail
.
Trait Implementations§
source§impl Clone for EksPodPropertiesDetailBuilder
impl Clone for EksPodPropertiesDetailBuilder
source§fn clone(&self) -> EksPodPropertiesDetailBuilder
fn clone(&self) -> EksPodPropertiesDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EksPodPropertiesDetailBuilder
impl Default for EksPodPropertiesDetailBuilder
source§fn default() -> EksPodPropertiesDetailBuilder
fn default() -> EksPodPropertiesDetailBuilder
source§impl PartialEq for EksPodPropertiesDetailBuilder
impl PartialEq for EksPodPropertiesDetailBuilder
source§fn eq(&self, other: &EksPodPropertiesDetailBuilder) -> bool
fn eq(&self, other: &EksPodPropertiesDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.