aws_sdk_iam/client/create_access_key.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 [`CreateAccessKey`](crate::operation::create_access_key::builders::CreateAccessKeyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - On success, responds with [`CreateAccessKeyOutput`](crate::operation::create_access_key::CreateAccessKeyOutput) with field(s):
8 /// - [`access_key(Option<AccessKey>)`](crate::operation::create_access_key::CreateAccessKeyOutput::access_key): <p>A structure with details about the access key.</p>
9 /// - On failure, responds with [`SdkError<CreateAccessKeyError>`](crate::operation::create_access_key::CreateAccessKeyError)
10 pub fn create_access_key(&self) -> crate::operation::create_access_key::builders::CreateAccessKeyFluentBuilder {
11 crate::operation::create_access_key::builders::CreateAccessKeyFluentBuilder::new(self.handle.clone())
12 }
13}