#[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. When you retrieve a SecretBinary
using the HTTP API, the Python SDK, or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.
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. When you retrieve a SecretBinary
using the HTTP API, the Python SDK, or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.
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§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.impl StructuralPartialEq for GetSecretValueOutput
Auto Trait Implementations§
impl Freeze for GetSecretValueOutput
impl RefUnwindSafe for GetSecretValueOutput
impl Send for GetSecretValueOutput
impl Sync for GetSecretValueOutput
impl Unpin for GetSecretValueOutput
impl UnwindSafe for GetSecretValueOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)