pub struct CreateAccessKeyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateAccessKey
.
Creates a new Amazon Web Services secret access key and corresponding Amazon Web Services access key ID for the specified user. The default status for new keys is Active
.
If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials. This is true even if the Amazon Web Services account has no associated users.
For information about quotas on the number of keys you can create, see IAM and STS quotas in the IAM User Guide.
To ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.
Implementations§
source§impl CreateAccessKeyFluentBuilder
impl CreateAccessKeyFluentBuilder
sourcepub fn as_input(&self) -> &CreateAccessKeyInputBuilder
pub fn as_input(&self) -> &CreateAccessKeyInputBuilder
Access the CreateAccessKey as a reference.
sourcepub async fn send(
self
) -> Result<CreateAccessKeyOutput, SdkError<CreateAccessKeyError, HttpResponse>>
pub async fn send( self ) -> Result<CreateAccessKeyOutput, SdkError<CreateAccessKeyError, 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<CreateAccessKeyOutput, CreateAccessKeyError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateAccessKeyOutput, CreateAccessKeyError, 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 that the new key will belong to.
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 that the new key will belong to.
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 that the new key will belong to.
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: _+=,.@-
Trait Implementations§
source§impl Clone for CreateAccessKeyFluentBuilder
impl Clone for CreateAccessKeyFluentBuilder
source§fn clone(&self) -> CreateAccessKeyFluentBuilder
fn clone(&self) -> CreateAccessKeyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more