Struct aws_sdk_secretsmanager::operation::get_secret_value::builders::GetSecretValueInputBuilder
source · #[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)