1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateUserProfile`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`iam_user_arn(impl Into<String>)`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::iam_user_arn) / [`set_iam_user_arn(Option<String>)`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::set_iam_user_arn):<br>required: **true**<br><p>The user's IAM ARN; this can also be a federated user's ARN.</p><br>
    ///   - [`ssh_username(impl Into<String>)`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::ssh_username) / [`set_ssh_username(Option<String>)`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::set_ssh_username):<br>required: **false**<br><p>The user's SSH user name. The allowable characters are \[a-z\], \[A-Z\], \[0-9\], '-', and '_'. If the specified name includes other punctuation marks, OpsWorks Stacks removes them. For example, my.name is changed to myname. If you do not specify an SSH user name, OpsWorks Stacks generates one from the IAM user name.</p><br>
    ///   - [`ssh_public_key(impl Into<String>)`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::ssh_public_key) / [`set_ssh_public_key(Option<String>)`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::set_ssh_public_key):<br>required: **false**<br><p>The user's public SSH key.</p><br>
    ///   - [`allow_self_management(bool)`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::allow_self_management) / [`set_allow_self_management(Option<bool>)`](crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::set_allow_self_management):<br>required: **false**<br><p>Whether users can specify their own SSH public key through the My Settings page. For more information, see <a href="https://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html">Setting an IAM User's Public SSH Key</a>.</p><br>
    /// - On success, responds with [`CreateUserProfileOutput`](crate::operation::create_user_profile::CreateUserProfileOutput) with field(s):
    ///   - [`iam_user_arn(Option<String>)`](crate::operation::create_user_profile::CreateUserProfileOutput::iam_user_arn): <p>The user's IAM ARN.</p>
    /// - On failure, responds with [`SdkError<CreateUserProfileError>`](crate::operation::create_user_profile::CreateUserProfileError)
    pub fn create_user_profile(&self) -> crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder {
        crate::operation::create_user_profile::builders::CreateUserProfileFluentBuilder::new(self.handle.clone())
    }
}