Struct aws_sdk_iot::input::SetDefaultAuthorizerInput
source · #[non_exhaustive]pub struct SetDefaultAuthorizerInput { /* private fields */ }
Implementations§
source§impl SetDefaultAuthorizerInput
impl SetDefaultAuthorizerInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetDefaultAuthorizer, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetDefaultAuthorizer, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SetDefaultAuthorizer
>
Examples found in repository?
src/client.rs (line 23307)
23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SetDefaultAuthorizer,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SetDefaultAuthorizerError>,
> {
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::SetDefaultAuthorizerOutput,
aws_smithy_http::result::SdkError<crate::error::SetDefaultAuthorizerError>,
> {
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 SetDefaultAuthorizerInput
.
source§impl SetDefaultAuthorizerInput
impl SetDefaultAuthorizerInput
The authorizer name.
Trait Implementations§
source§impl Clone for SetDefaultAuthorizerInput
impl Clone for SetDefaultAuthorizerInput
source§fn clone(&self) -> SetDefaultAuthorizerInput
fn clone(&self) -> SetDefaultAuthorizerInput
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