1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateServiceSpecificCredential`](crate::operation::create_service_specific_credential::builders::CreateServiceSpecificCredentialFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`user_name(impl Into<String>)`](crate::operation::create_service_specific_credential::builders::CreateServiceSpecificCredentialFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::create_service_specific_credential::builders::CreateServiceSpecificCredentialFluentBuilder::set_user_name):<br>required: **true**<br><p>The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service.</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>
    ///   - [`service_name(impl Into<String>)`](crate::operation::create_service_specific_credential::builders::CreateServiceSpecificCredentialFluentBuilder::service_name) / [`set_service_name(Option<String>)`](crate::operation::create_service_specific_credential::builders::CreateServiceSpecificCredentialFluentBuilder::set_service_name):<br>required: **true**<br><p>The name of the Amazon Web Services service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.</p><br>
    /// - On success, responds with [`CreateServiceSpecificCredentialOutput`](crate::operation::create_service_specific_credential::CreateServiceSpecificCredentialOutput) with field(s):
    ///   - [`service_specific_credential(Option<ServiceSpecificCredential>)`](crate::operation::create_service_specific_credential::CreateServiceSpecificCredentialOutput::service_specific_credential): <p>A structure that contains information about the newly created service-specific credential.</p> <important>   <p>This is the only time that the password for this credential set is available. It cannot be recovered later. Instead, you must reset the password with <code>ResetServiceSpecificCredential</code>.</p>  </important>
    /// - On failure, responds with [`SdkError<CreateServiceSpecificCredentialError>`](crate::operation::create_service_specific_credential::CreateServiceSpecificCredentialError)
    pub fn create_service_specific_credential(
        &self,
    ) -> crate::operation::create_service_specific_credential::builders::CreateServiceSpecificCredentialFluentBuilder {
        crate::operation::create_service_specific_credential::builders::CreateServiceSpecificCredentialFluentBuilder::new(self.handle.clone())
    }
}