aws_sdk_iam/client/
reset_service_specific_credential.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 [`ResetServiceSpecificCredential`](crate::operation::reset_service_specific_credential::builders::ResetServiceSpecificCredentialFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_name(impl Into<String>)`](crate::operation::reset_service_specific_credential::builders::ResetServiceSpecificCredentialFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::reset_service_specific_credential::builders::ResetServiceSpecificCredentialFluentBuilder::set_user_name):<br>required: **false**<br><p>The name of the IAM user associated with the service-specific credential. If this value is not specified, then the operation assumes the user whose credentials are used to call the operation.</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    ///   - [`service_specific_credential_id(impl Into<String>)`](crate::operation::reset_service_specific_credential::builders::ResetServiceSpecificCredentialFluentBuilder::service_specific_credential_id) / [`set_service_specific_credential_id(Option<String>)`](crate::operation::reset_service_specific_credential::builders::ResetServiceSpecificCredentialFluentBuilder::set_service_specific_credential_id):<br>required: **true**<br><p>The unique identifier of the service-specific credential.</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 [`ResetServiceSpecificCredentialOutput`](crate::operation::reset_service_specific_credential::ResetServiceSpecificCredentialOutput) with field(s):
9    ///   - [`service_specific_credential(Option<ServiceSpecificCredential>)`](crate::operation::reset_service_specific_credential::ResetServiceSpecificCredentialOutput::service_specific_credential): <p>A structure with details about the updated service-specific credential, including the new password.</p><important>  <p>This is the <b>only</b> time that you can access the password. You cannot recover the password later, but you can reset it again.</p> </important>
10    /// - On failure, responds with [`SdkError<ResetServiceSpecificCredentialError>`](crate::operation::reset_service_specific_credential::ResetServiceSpecificCredentialError)
11    pub fn reset_service_specific_credential(
12        &self,
13    ) -> crate::operation::reset_service_specific_credential::builders::ResetServiceSpecificCredentialFluentBuilder {
14        crate::operation::reset_service_specific_credential::builders::ResetServiceSpecificCredentialFluentBuilder::new(self.handle.clone())
15    }
16}