aws_sdk_eks/client/
create_fargate_profile.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateFargateProfile`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`fargate_profile_name(impl Into<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::fargate_profile_name) / [`set_fargate_profile_name(Option<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::set_fargate_profile_name):<br>required: **true**<br><p>The name of the Fargate profile.</p><br>
7    ///   - [`cluster_name(impl Into<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::cluster_name) / [`set_cluster_name(Option<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::set_cluster_name):<br>required: **true**<br><p>The name of your cluster.</p><br>
8    ///   - [`pod_execution_role_arn(impl Into<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::pod_execution_role_arn) / [`set_pod_execution_role_arn(Option<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::set_pod_execution_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the <code>Pod</code> execution role to use for a <code>Pod</code> that matches the selectors in the Fargate profile. The <code>Pod</code> 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 <a href="https://docs.aws.amazon.com/eks/latest/userguide/pod-execution-role.html"> <code>Pod</code> execution role</a> in the <i>Amazon EKS User Guide</i>.</p><br>
9    ///   - [`subnets(impl Into<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::subnets) / [`set_subnets(Option<Vec::<String>>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::set_subnets):<br>required: **false**<br><p>The IDs of subnets to launch a <code>Pod</code> into. A <code>Pod</code> running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.</p><br>
10    ///   - [`selectors(FargateProfileSelector)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::selectors) / [`set_selectors(Option<Vec::<FargateProfileSelector>>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::set_selectors):<br>required: **false**<br><p>The selectors to match for a <code>Pod</code> to use this Fargate profile. Each selector must have an associated Kubernetes <code>namespace</code>. Optionally, you can also specify <code>labels</code> for a <code>namespace</code>. You may specify up to five selectors in a Fargate profile.</p><br>
11    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
12    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::set_tags):<br>required: **false**<br><p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p><br>
13    /// - On success, responds with [`CreateFargateProfileOutput`](crate::operation::create_fargate_profile::CreateFargateProfileOutput) with field(s):
14    ///   - [`fargate_profile(Option<FargateProfile>)`](crate::operation::create_fargate_profile::CreateFargateProfileOutput::fargate_profile): <p>The full description of your new Fargate profile.</p>
15    /// - On failure, responds with [`SdkError<CreateFargateProfileError>`](crate::operation::create_fargate_profile::CreateFargateProfileError)
16    pub fn create_fargate_profile(&self) -> crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder {
17        crate::operation::create_fargate_profile::builders::CreateFargateProfileFluentBuilder::new(self.handle.clone())
18    }
19}