Struct aws_sdk_ssm::input::GetParameterInput
source · #[non_exhaustive]pub struct GetParameterInput { /* private fields */ }
Implementations§
source§impl GetParameterInput
impl GetParameterInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetParameter, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetParameter, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetParameter
>
Examples found in repository?
src/client.rs (line 11439)
11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetParameter,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetParameterError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetParameterOutput,
aws_smithy_http::result::SdkError<crate::error::GetParameterError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetParameterInput
.
source§impl GetParameterInput
impl GetParameterInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the parameter you want to query.
To query by parameter label, use "Name": "name:label"
. To query by parameter version, use "Name": "name:version"
.
sourcepub fn with_decryption(&self) -> Option<bool>
pub fn with_decryption(&self) -> Option<bool>
Return decrypted values for secure string parameters. This flag is ignored for String
and StringList
parameter types.
Trait Implementations§
source§impl Clone for GetParameterInput
impl Clone for GetParameterInput
source§fn clone(&self) -> GetParameterInput
fn clone(&self) -> GetParameterInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more