Struct aws_sdk_eks::operation::create_fargate_profile::builders::CreateFargateProfileInputBuilder
source · #[non_exhaustive]pub struct CreateFargateProfileInputBuilder { /* private fields */ }Expand description
A builder for CreateFargateProfileInput.
Implementations§
source§impl CreateFargateProfileInputBuilder
impl CreateFargateProfileInputBuilder
sourcepub fn fargate_profile_name(self, input: impl Into<String>) -> Self
pub fn fargate_profile_name(self, input: impl Into<String>) -> Self
The name of the Fargate profile.
This field is required.sourcepub fn set_fargate_profile_name(self, input: Option<String>) -> Self
pub fn set_fargate_profile_name(self, input: Option<String>) -> Self
The name of the Fargate profile.
sourcepub fn get_fargate_profile_name(&self) -> &Option<String>
pub fn get_fargate_profile_name(&self) -> &Option<String>
The name of the Fargate profile.
sourcepub fn cluster_name(self, input: impl Into<String>) -> Self
pub fn cluster_name(self, input: impl Into<String>) -> Self
The name of the Amazon EKS cluster to apply the Fargate profile to.
This field is required.sourcepub fn set_cluster_name(self, input: Option<String>) -> Self
pub fn set_cluster_name(self, input: Option<String>) -> Self
The name of the Amazon EKS cluster to apply the Fargate profile to.
sourcepub fn get_cluster_name(&self) -> &Option<String>
pub fn get_cluster_name(&self) -> &Option<String>
The name of the Amazon EKS cluster to apply the Fargate profile to.
sourcepub fn pod_execution_role_arn(self, input: impl Into<String>) -> Self
pub fn pod_execution_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile. The pod execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, see Pod Execution Role in the Amazon EKS User Guide.
This field is required.sourcepub fn set_pod_execution_role_arn(self, input: Option<String>) -> Self
pub fn set_pod_execution_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile. The pod execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, see Pod Execution Role in the Amazon EKS User Guide.
sourcepub fn get_pod_execution_role_arn(&self) -> &Option<String>
pub fn get_pod_execution_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile. The pod execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, see Pod Execution Role in the Amazon EKS User Guide.
sourcepub fn subnets(self, input: impl Into<String>) -> Self
pub fn subnets(self, input: impl Into<String>) -> Self
Appends an item to subnets.
To override the contents of this collection use set_subnets.
The IDs of subnets to launch your pods into. At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
sourcepub fn set_subnets(self, input: Option<Vec<String>>) -> Self
pub fn set_subnets(self, input: Option<Vec<String>>) -> Self
The IDs of subnets to launch your pods into. At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
sourcepub fn get_subnets(&self) -> &Option<Vec<String>>
pub fn get_subnets(&self) -> &Option<Vec<String>>
The IDs of subnets to launch your pods into. At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
sourcepub fn selectors(self, input: FargateProfileSelector) -> Self
pub fn selectors(self, input: FargateProfileSelector) -> Self
Appends an item to selectors.
To override the contents of this collection use set_selectors.
The selectors to match for pods to use this Fargate profile. Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile.
sourcepub fn set_selectors(self, input: Option<Vec<FargateProfileSelector>>) -> Self
pub fn set_selectors(self, input: Option<Vec<FargateProfileSelector>>) -> Self
The selectors to match for pods to use this Fargate profile. Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile.
sourcepub fn get_selectors(&self) -> &Option<Vec<FargateProfileSelector>>
pub fn get_selectors(&self) -> &Option<Vec<FargateProfileSelector>>
The selectors to match for pods to use this Fargate profile. Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The metadata to apply to the Fargate profile to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources associated with the Fargate profile, such as the pods that are scheduled with it.
The metadata to apply to the Fargate profile to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources associated with the Fargate profile, such as the pods that are scheduled with it.
The metadata to apply to the Fargate profile to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources associated with the Fargate profile, such as the pods that are scheduled with it.
sourcepub fn build(self) -> Result<CreateFargateProfileInput, BuildError>
pub fn build(self) -> Result<CreateFargateProfileInput, BuildError>
Consumes the builder and constructs a CreateFargateProfileInput.
source§impl CreateFargateProfileInputBuilder
impl CreateFargateProfileInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateFargateProfileOutput, SdkError<CreateFargateProfileError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateFargateProfileOutput, SdkError<CreateFargateProfileError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateFargateProfileInputBuilder
impl Clone for CreateFargateProfileInputBuilder
source§fn clone(&self) -> CreateFargateProfileInputBuilder
fn clone(&self) -> CreateFargateProfileInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateFargateProfileInputBuilder
impl Default for CreateFargateProfileInputBuilder
source§fn default() -> CreateFargateProfileInputBuilder
fn default() -> CreateFargateProfileInputBuilder
source§impl PartialEq for CreateFargateProfileInputBuilder
impl PartialEq for CreateFargateProfileInputBuilder
source§fn eq(&self, other: &CreateFargateProfileInputBuilder) -> bool
fn eq(&self, other: &CreateFargateProfileInputBuilder) -> bool
self and other values to be equal, and is used
by ==.