aws_sdk_iam/client/
delete_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 [`DeleteServiceSpecificCredential`](crate::operation::delete_service_specific_credential::builders::DeleteServiceSpecificCredentialFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_name(impl Into<String>)`](crate::operation::delete_service_specific_credential::builders::DeleteServiceSpecificCredentialFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::delete_service_specific_credential::builders::DeleteServiceSpecificCredentialFluentBuilder::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::delete_service_specific_credential::builders::DeleteServiceSpecificCredentialFluentBuilder::service_specific_credential_id) / [`set_service_specific_credential_id(Option<String>)`](crate::operation::delete_service_specific_credential::builders::DeleteServiceSpecificCredentialFluentBuilder::set_service_specific_credential_id):<br>required: **true**<br><p>The unique identifier of the service-specific credential. You can get this value by calling <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListServiceSpecificCredentials.html">ListServiceSpecificCredentials</a>.</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 [`DeleteServiceSpecificCredentialOutput`](crate::operation::delete_service_specific_credential::DeleteServiceSpecificCredentialOutput)
9    /// - On failure, responds with [`SdkError<DeleteServiceSpecificCredentialError>`](crate::operation::delete_service_specific_credential::DeleteServiceSpecificCredentialError)
10    pub fn delete_service_specific_credential(
11        &self,
12    ) -> crate::operation::delete_service_specific_credential::builders::DeleteServiceSpecificCredentialFluentBuilder {
13        crate::operation::delete_service_specific_credential::builders::DeleteServiceSpecificCredentialFluentBuilder::new(self.handle.clone())
14    }
15}