Struct aws_sdk_config::input::PutStoredQueryInput
source · #[non_exhaustive]pub struct PutStoredQueryInput { /* private fields */ }Implementations§
source§impl PutStoredQueryInput
impl PutStoredQueryInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutStoredQuery, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutStoredQuery, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutStoredQuery>
Examples found in repository?
src/client.rs (line 10026)
10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutStoredQuery,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutStoredQueryError>,
> {
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::PutStoredQueryOutput,
aws_smithy_http::result::SdkError<crate::error::PutStoredQueryError>,
> {
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 PutStoredQueryInput.
source§impl PutStoredQueryInput
impl PutStoredQueryInput
sourcepub fn stored_query(&self) -> Option<&StoredQuery>
pub fn stored_query(&self) -> Option<&StoredQuery>
A list of StoredQuery objects. The mandatory fields are QueryName and Expression.
When you are creating a query, you must provide a query name and an expression. When you are updating a query, you must provide a query name but updating the description is optional.
A list of Tags object.
Trait Implementations§
source§impl Clone for PutStoredQueryInput
impl Clone for PutStoredQueryInput
source§fn clone(&self) -> PutStoredQueryInput
fn clone(&self) -> PutStoredQueryInput
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