#[non_exhaustive]pub struct GetSecretValueInputBuilder { /* private fields */ }
Expand description
A builder for GetSecretValueInput
.
Implementations§
Source§impl GetSecretValueInputBuilder
impl GetSecretValueInputBuilder
Sourcepub fn secret_id(self, input: impl Into<String>) -> Self
pub fn secret_id(self, input: impl Into<String>) -> Self
The ARN or name of the secret to retrieve.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
This field is required.Sourcepub fn set_secret_id(self, input: Option<String>) -> Self
pub fn set_secret_id(self, input: Option<String>) -> Self
The ARN or name of the secret to retrieve.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
Sourcepub fn get_secret_id(&self) -> &Option<String>
pub fn get_secret_id(&self) -> &Option<String>
The ARN or name of the secret to retrieve.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
Sourcepub fn version_id(self, input: impl Into<String>) -> Self
pub fn version_id(self, input: impl Into<String>) -> Self
The unique identifier of the version of the secret to retrieve. If you include 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 Secrets Manager returns the AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
Sourcepub fn set_version_id(self, input: Option<String>) -> Self
pub fn set_version_id(self, input: Option<String>) -> Self
The unique identifier of the version of the secret to retrieve. If you include 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 Secrets Manager returns the AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
Sourcepub fn get_version_id(&self) -> &Option<String>
pub fn get_version_id(&self) -> &Option<String>
The unique identifier of the version of the secret to retrieve. If you include 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 Secrets Manager returns the AWSCURRENT
version.
This value is typically a UUID-type value with 32 hexadecimal digits.
Sourcepub fn version_stage(self, input: impl Into<String>) -> Self
pub fn version_stage(self, input: impl Into<String>) -> Self
The staging label of the version of the secret to retrieve.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If you include 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
, Secrets Manager returns the AWSCURRENT
version.
Sourcepub fn set_version_stage(self, input: Option<String>) -> Self
pub fn set_version_stage(self, input: Option<String>) -> Self
The staging label of the version of the secret to retrieve.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If you include 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
, Secrets Manager returns the AWSCURRENT
version.
Sourcepub fn get_version_stage(&self) -> &Option<String>
pub fn get_version_stage(&self) -> &Option<String>
The staging label of the version of the secret to retrieve.
Secrets Manager uses staging labels to keep track of different versions during the rotation process. If you include 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
, Secrets Manager returns the AWSCURRENT
version.
Sourcepub fn build(self) -> Result<GetSecretValueInput, BuildError>
pub fn build(self) -> Result<GetSecretValueInput, BuildError>
Consumes the builder and constructs a GetSecretValueInput
.
Source§impl GetSecretValueInputBuilder
impl GetSecretValueInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<GetSecretValueOutput, SdkError<GetSecretValueError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<GetSecretValueOutput, SdkError<GetSecretValueError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for GetSecretValueInputBuilder
impl Clone for GetSecretValueInputBuilder
Source§fn clone(&self) -> GetSecretValueInputBuilder
fn clone(&self) -> GetSecretValueInputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GetSecretValueInputBuilder
impl Debug for GetSecretValueInputBuilder
Source§impl Default for GetSecretValueInputBuilder
impl Default for GetSecretValueInputBuilder
Source§fn default() -> GetSecretValueInputBuilder
fn default() -> GetSecretValueInputBuilder
impl StructuralPartialEq for GetSecretValueInputBuilder
Auto Trait Implementations§
impl Freeze for GetSecretValueInputBuilder
impl RefUnwindSafe for GetSecretValueInputBuilder
impl Send for GetSecretValueInputBuilder
impl Sync for GetSecretValueInputBuilder
impl Unpin for GetSecretValueInputBuilder
impl UnwindSafe for GetSecretValueInputBuilder
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
)