Struct aws_sdk_iam::operation::update_service_specific_credential::builders::UpdateServiceSpecificCredentialFluentBuilder
source · pub struct UpdateServiceSpecificCredentialFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateServiceSpecificCredential
.
Sets the status of a service-specific credential to Active
or Inactive
. Service-specific credentials that are inactive cannot be used for authentication to the service. This operation can be used to disable a user's service-specific credential as part of a credential rotation work flow.
Implementations§
source§impl UpdateServiceSpecificCredentialFluentBuilder
impl UpdateServiceSpecificCredentialFluentBuilder
sourcepub fn as_input(&self) -> &UpdateServiceSpecificCredentialInputBuilder
pub fn as_input(&self) -> &UpdateServiceSpecificCredentialInputBuilder
Access the UpdateServiceSpecificCredential as a reference.
sourcepub async fn send(
self
) -> Result<UpdateServiceSpecificCredentialOutput, SdkError<UpdateServiceSpecificCredentialError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateServiceSpecificCredentialOutput, SdkError<UpdateServiceSpecificCredentialError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateServiceSpecificCredentialOutput, UpdateServiceSpecificCredentialError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateServiceSpecificCredentialOutput, UpdateServiceSpecificCredentialError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The name of the IAM user associated with the service-specific credential. If you do not specify this value, then the operation assumes the user whose credentials are used to call the operation.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The name of the IAM user associated with the service-specific credential. If you do not specify this value, then the operation assumes the user whose credentials are used to call the operation.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The name of the IAM user associated with the service-specific credential. If you do not specify this value, then the operation assumes the user whose credentials are used to call the operation.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn service_specific_credential_id(self, input: impl Into<String>) -> Self
pub fn service_specific_credential_id(self, input: impl Into<String>) -> Self
The unique identifier of the service-specific credential.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
sourcepub fn set_service_specific_credential_id(self, input: Option<String>) -> Self
pub fn set_service_specific_credential_id(self, input: Option<String>) -> Self
The unique identifier of the service-specific credential.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
sourcepub fn get_service_specific_credential_id(&self) -> &Option<String>
pub fn get_service_specific_credential_id(&self) -> &Option<String>
The unique identifier of the service-specific credential.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
sourcepub fn status(self, input: StatusType) -> Self
pub fn status(self, input: StatusType) -> Self
The status to be assigned to the service-specific credential.
sourcepub fn set_status(self, input: Option<StatusType>) -> Self
pub fn set_status(self, input: Option<StatusType>) -> Self
The status to be assigned to the service-specific credential.
sourcepub fn get_status(&self) -> &Option<StatusType>
pub fn get_status(&self) -> &Option<StatusType>
The status to be assigned to the service-specific credential.
Trait Implementations§
source§impl Clone for UpdateServiceSpecificCredentialFluentBuilder
impl Clone for UpdateServiceSpecificCredentialFluentBuilder
source§fn clone(&self) -> UpdateServiceSpecificCredentialFluentBuilder
fn clone(&self) -> UpdateServiceSpecificCredentialFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more