Skip to main content

aws_sdk_route53profiles/client/
create_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 [`CreateProfile`](crate::operation::create_profile::builders::CreateProfileFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_name):<br>required: **true**<br><p>A name for the Profile.</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_client_token):<br>required: **true**<br><p><code>ClientToken</code> is an idempotency token that ensures a call to <code>CreateProfile</code> completes only once. You choose the value to pass. For example, an issue might prevent you from getting a response from <code>CreateProfile</code>. In this case, safely retry your call to <code>CreateProfile</code> by using the same <code>CreateProfile</code> parameter value.</p><br>
8    ///   - [`tags(Tag)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_tags):<br>required: **false**<br><p>A list of the tag keys and values that you want to associate with the Route 53 Profile.</p><br>
9    /// - On success, responds with [`CreateProfileOutput`](crate::operation::create_profile::CreateProfileOutput) with field(s):
10    ///   - [`profile(Option<Profile>)`](crate::operation::create_profile::CreateProfileOutput::profile): <p>The Profile that you just created.</p>
11    /// - On failure, responds with [`SdkError<CreateProfileError>`](crate::operation::create_profile::CreateProfileError)
12    pub fn create_profile(&self) -> crate::operation::create_profile::builders::CreateProfileFluentBuilder {
13        crate::operation::create_profile::builders::CreateProfileFluentBuilder::new(self.handle.clone())
14    }
15}