aws_sdk_wellarchitected/client/
create_profile.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateProfile`](crate::operation::create_profile::builders::CreateProfileFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`profile_name(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::profile_name) / [`set_profile_name(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_profile_name):<br>required: **true**<br><p>Name of the profile.</p><br>
    ///   - [`profile_description(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::profile_description) / [`set_profile_description(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_profile_description):<br>required: **true**<br><p>The profile description.</p><br>
    ///   - [`profile_questions(ProfileQuestionUpdate)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::profile_questions) / [`set_profile_questions(Option<Vec::<ProfileQuestionUpdate>>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_profile_questions):<br>required: **true**<br><p>The profile questions.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_client_request_token):<br>required: **true**<br><p>A unique case-sensitive string used to ensure that this request is idempotent (executes only once).</p> <p>You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.</p><important>  <p>This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.</p> </important><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_profile::builders::CreateProfileFluentBuilder::set_tags):<br>required: **false**<br><p>The tags assigned to the profile.</p><br>
    /// - On success, responds with [`CreateProfileOutput`](crate::operation::create_profile::CreateProfileOutput) with field(s):
    ///   - [`profile_arn(Option<String>)`](crate::operation::create_profile::CreateProfileOutput::profile_arn): <p>The profile ARN.</p>
    ///   - [`profile_version(Option<String>)`](crate::operation::create_profile::CreateProfileOutput::profile_version): <p>Version of the profile.</p>
    /// - On failure, responds with [`SdkError<CreateProfileError>`](crate::operation::create_profile::CreateProfileError)
    pub fn create_profile(&self) -> crate::operation::create_profile::builders::CreateProfileFluentBuilder {
        crate::operation::create_profile::builders::CreateProfileFluentBuilder::new(self.handle.clone())
    }
}