1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAccessKey`](crate::operation::create_access_key::builders::CreateAccessKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`user_name(impl Into<String>)`](crate::operation::create_access_key::builders::CreateAccessKeyFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::create_access_key::builders::CreateAccessKeyFluentBuilder::set_user_name):<br>required: **false**<br><p>The name of the IAM user that the new key will belong to.</p>  <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
    /// - On success, responds with [`CreateAccessKeyOutput`](crate::operation::create_access_key::CreateAccessKeyOutput) with field(s):
    ///   - [`access_key(Option<AccessKey>)`](crate::operation::create_access_key::CreateAccessKeyOutput::access_key): <p>A structure with details about the access key.</p>
    /// - On failure, responds with [`SdkError<CreateAccessKeyError>`](crate::operation::create_access_key::CreateAccessKeyError)
    pub fn create_access_key(&self) -> crate::operation::create_access_key::builders::CreateAccessKeyFluentBuilder {
        crate::operation::create_access_key::builders::CreateAccessKeyFluentBuilder::new(self.handle.clone())
    }
}