aws_sdk_iam/client/
delete_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 [`DeleteAccessKey`](crate::operation::delete_access_key::builders::DeleteAccessKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_name(impl Into<String>)`](crate::operation::delete_access_key::builders::DeleteAccessKeyFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::delete_access_key::builders::DeleteAccessKeyFluentBuilder::set_user_name):<br>required: **false**<br><p>The name of the user whose access key pair you want to delete.</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    ///   - [`access_key_id(impl Into<String>)`](crate::operation::delete_access_key::builders::DeleteAccessKeyFluentBuilder::access_key_id) / [`set_access_key_id(Option<String>)`](crate::operation::delete_access_key::builders::DeleteAccessKeyFluentBuilder::set_access_key_id):<br>required: **true**<br><p>The access key ID for the access key ID and secret access key you want to delete.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters that can consist of any upper or lowercased letter or digit.</p><br>
8    /// - On success, responds with [`DeleteAccessKeyOutput`](crate::operation::delete_access_key::DeleteAccessKeyOutput)
9    /// - On failure, responds with [`SdkError<DeleteAccessKeyError>`](crate::operation::delete_access_key::DeleteAccessKeyError)
10    pub fn delete_access_key(&self) -> crate::operation::delete_access_key::builders::DeleteAccessKeyFluentBuilder {
11        crate::operation::delete_access_key::builders::DeleteAccessKeyFluentBuilder::new(self.handle.clone())
12    }
13}