Struct aws_sdk_secretsmanager::client::fluent_builders::GetSecretValue [−][src]
pub struct GetSecretValue<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to GetSecretValue.
Retrieves the contents of the encrypted fields SecretString or
SecretBinary from the specified version of a secret, whichever contains
content.
Minimum permissions
To run this command, you must have the following permissions:
-
secretsmanager:GetSecretValue
-
kms:Decrypt - required only if you use a customer-managed Amazon Web Services KMS key to encrypt the secret. You do not need this permission to use the account's default Amazon Web Services managed CMK for Secrets Manager.
Related operations
-
To create a new version of the secret with different encrypted information, use PutSecretValue.
-
To retrieve the non-encrypted details for the secret, use DescribeSecret.
Implementations
impl<C, M, R> GetSecretValue<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetSecretValue<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetSecretValueOutput, SdkError<GetSecretValueError>> where
R::Policy: SmithyRetryPolicy<GetSecretValueInputOperationOutputAlias, GetSecretValueOutput, GetSecretValueError, GetSecretValueInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetSecretValueOutput, SdkError<GetSecretValueError>> where
R::Policy: SmithyRetryPolicy<GetSecretValueInputOperationOutputAlias, GetSecretValueOutput, GetSecretValueError, GetSecretValueInputOperationRetryAlias>,
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.
Specifies the secret containing the version that you want to retrieve. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
Specifies the secret containing the version that you want to retrieve. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
Specifies the unique identifier of the version of the secret that you want to retrieve. If
you specify both this parameter and VersionStage, the two parameters must refer
to the same secret version. If you don't specify either a VersionStage or
VersionId then the default is to perform the operation on the version with the
VersionStage value of AWSCURRENT.
This value is typically a UUID-type value with 32 hexadecimal digits.
Specifies the unique identifier of the version of the secret that you want to retrieve. If
you specify both this parameter and VersionStage, the two parameters must refer
to the same secret version. If you don't specify either a VersionStage or
VersionId then the default is to perform the operation on the version with the
VersionStage value of AWSCURRENT.
This value is typically a UUID-type value with 32 hexadecimal digits.
Specifies the secret version that you want to retrieve by the staging label attached to the version.
Staging labels are used to keep track of different versions during the rotation process.
If you specify both this parameter and VersionId, the two parameters must refer
to the same secret version . If you don't specify either a VersionStage or
VersionId, then the default is to perform the operation on the version with the
VersionStage value of AWSCURRENT.
Specifies the secret version that you want to retrieve by the staging label attached to the version.
Staging labels are used to keep track of different versions during the rotation process.
If you specify both this parameter and VersionId, the two parameters must refer
to the same secret version . If you don't specify either a VersionStage or
VersionId, then the default is to perform the operation on the version with the
VersionStage value of AWSCURRENT.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for GetSecretValue<C, M, R>
impl<C, M, R> Send for GetSecretValue<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetSecretValue<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetSecretValue<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for GetSecretValue<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more