Struct aws_sdk_batch::model::eks_pod_properties::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for EksPodProperties
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 build(self) -> EksPodProperties
pub fn build(self) -> EksPodProperties
Consumes the builder and constructs a EksPodProperties
.