Struct aws_sdk_apigatewayv2::input::GetAuthorizerInput
source · #[non_exhaustive]pub struct GetAuthorizerInput { /* private fields */ }Implementations§
source§impl GetAuthorizerInput
impl GetAuthorizerInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetAuthorizer, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetAuthorizer, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetAuthorizer>
Examples found in repository?
src/client.rs (line 5453)
5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetAuthorizer,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetAuthorizerError>,
> {
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::GetAuthorizerOutput,
aws_smithy_http::result::SdkError<crate::error::GetAuthorizerError>,
> {
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 GetAuthorizerInput.
Trait Implementations§
source§impl Clone for GetAuthorizerInput
impl Clone for GetAuthorizerInput
source§fn clone(&self) -> GetAuthorizerInput
fn clone(&self) -> GetAuthorizerInput
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