#[non_exhaustive]pub struct GetSecretValueOutput {
pub arn: Option<String>,
pub name: Option<String>,
pub version_id: Option<String>,
pub secret_binary: Option<Blob>,
pub secret_string: Option<String>,
pub version_stages: Option<Vec<String>>,
pub created_date: Option<DateTime>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.arn: Option<String>
The ARN of the secret.
name: Option<String>
The friendly name of the secret.
version_id: Option<String>
The unique identifier of this version of the secret.
secret_binary: Option<Blob>
The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte array. The response parameter represents the binary data as a base64-encoded string.
If the secret was created by using the Secrets Manager console, or if the secret value was originally provided as a string, then this field is omitted. The secret value appears in SecretString
instead.
secret_string: Option<String>
The decrypted secret value, if the secret value was originally provided as a string or through the Secrets Manager console.
If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs.
version_stages: Option<Vec<String>>
A list of all of the staging labels currently attached to this version of the secret.
created_date: Option<DateTime>
The date and time that this version of the secret was created. If you don't specify which version in VersionId
or VersionStage
, then Secrets Manager uses the AWSCURRENT
version.
Implementations§
source§impl GetSecretValueOutput
impl GetSecretValueOutput
sourcepub fn version_id(&self) -> Option<&str>
pub fn version_id(&self) -> Option<&str>
The unique identifier of this version of the secret.
sourcepub fn secret_binary(&self) -> Option<&Blob>
pub fn secret_binary(&self) -> Option<&Blob>
The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte array. The response parameter represents the binary data as a base64-encoded string.
If the secret was created by using the Secrets Manager console, or if the secret value was originally provided as a string, then this field is omitted. The secret value appears in SecretString
instead.
sourcepub fn secret_string(&self) -> Option<&str>
pub fn secret_string(&self) -> Option<&str>
The decrypted secret value, if the secret value was originally provided as a string or through the Secrets Manager console.
If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs.
sourcepub fn version_stages(&self) -> &[String]
pub fn version_stages(&self) -> &[String]
A list of all of the staging labels currently attached to this version of the secret.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .version_stages.is_none()
.
sourcepub fn created_date(&self) -> Option<&DateTime>
pub fn created_date(&self) -> Option<&DateTime>
The date and time that this version of the secret was created. If you don't specify which version in VersionId
or VersionStage
, then Secrets Manager uses the AWSCURRENT
version.
source§impl GetSecretValueOutput
impl GetSecretValueOutput
sourcepub fn builder() -> GetSecretValueOutputBuilder
pub fn builder() -> GetSecretValueOutputBuilder
Creates a new builder-style object to manufacture GetSecretValueOutput
.
Trait Implementations§
source§impl Clone for GetSecretValueOutput
impl Clone for GetSecretValueOutput
source§fn clone(&self) -> GetSecretValueOutput
fn clone(&self) -> GetSecretValueOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSecretValueOutput
impl Debug for GetSecretValueOutput
source§impl PartialEq for GetSecretValueOutput
impl PartialEq for GetSecretValueOutput
source§fn eq(&self, other: &GetSecretValueOutput) -> bool
fn eq(&self, other: &GetSecretValueOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetSecretValueOutput
impl RequestId for GetSecretValueOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.