1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetRandomPassword`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`password_length(i64)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::password_length) / [`set_password_length(Option<i64>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::set_password_length):<br>required: **false**<br><p>The length of the password. If you don't include this parameter, the default length is 32 characters.</p><br>
    ///   - [`exclude_characters(impl Into<String>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::exclude_characters) / [`set_exclude_characters(Option<String>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::set_exclude_characters):<br>required: **false**<br><p>A string of the characters that you don't want in the password.</p><br>
    ///   - [`exclude_numbers(bool)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::exclude_numbers) / [`set_exclude_numbers(Option<bool>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::set_exclude_numbers):<br>required: **false**<br><p>Specifies whether to exclude numbers from the password. If you don't include this switch, the password can contain numbers.</p><br>
    ///   - [`exclude_punctuation(bool)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::exclude_punctuation) / [`set_exclude_punctuation(Option<bool>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::set_exclude_punctuation):<br>required: **false**<br><p>Specifies whether to exclude the following punctuation characters from the password: <code>! " # $ % &amp; ' ( ) * + , - . / : ; &lt; = &gt; ? @ [ \ ] ^ _ ` { | } ~</code>. If you don't include this switch, the password can contain punctuation.</p><br>
    ///   - [`exclude_uppercase(bool)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::exclude_uppercase) / [`set_exclude_uppercase(Option<bool>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::set_exclude_uppercase):<br>required: **false**<br><p>Specifies whether to exclude uppercase letters from the password. If you don't include this switch, the password can contain uppercase letters.</p><br>
    ///   - [`exclude_lowercase(bool)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::exclude_lowercase) / [`set_exclude_lowercase(Option<bool>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::set_exclude_lowercase):<br>required: **false**<br><p>Specifies whether to exclude lowercase letters from the password. If you don't include this switch, the password can contain lowercase letters.</p><br>
    ///   - [`include_space(bool)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::include_space) / [`set_include_space(Option<bool>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::set_include_space):<br>required: **false**<br><p>Specifies whether to include the space character. If you include this switch, the password can contain space characters.</p><br>
    ///   - [`require_each_included_type(bool)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::require_each_included_type) / [`set_require_each_included_type(Option<bool>)`](crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::set_require_each_included_type):<br>required: **false**<br><p>Specifies whether to include at least one upper and lowercase letter, one number, and one punctuation. If you don't include this switch, the password contains at least one of every character type.</p><br>
    /// - On success, responds with [`GetRandomPasswordOutput`](crate::operation::get_random_password::GetRandomPasswordOutput) with field(s):
    ///   - [`random_password(Option<String>)`](crate::operation::get_random_password::GetRandomPasswordOutput::random_password): <p>A string with the password.</p>
    /// - On failure, responds with [`SdkError<GetRandomPasswordError>`](crate::operation::get_random_password::GetRandomPasswordError)
    pub fn get_random_password(&self) -> crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder {
        crate::operation::get_random_password::builders::GetRandomPasswordFluentBuilder::new(self.handle.clone())
    }
}