Struct aws_sdk_iot::input::UpdateAuthorizerInput
source · #[non_exhaustive]pub struct UpdateAuthorizerInput { /* private fields */ }
Implementations§
source§impl UpdateAuthorizerInput
impl UpdateAuthorizerInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateAuthorizer, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateAuthorizer, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateAuthorizer
>
Examples found in repository?
src/client.rs (line 25112)
25098 25099 25100 25101 25102 25103 25104 25105 25106 25107 25108 25109 25110 25111 25112 25113 25114 25115 25116 25117 25118 25119 25120 25121 25122 25123 25124 25125 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 25136 25137 25138 25139 25140
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateAuthorizer,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateAuthorizerError>,
> {
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::UpdateAuthorizerOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateAuthorizerError>,
> {
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 UpdateAuthorizerInput
.
source§impl UpdateAuthorizerInput
impl UpdateAuthorizerInput
The authorizer name.
The ARN of the authorizer's Lambda function.
sourcepub fn token_key_name(&self) -> Option<&str>
pub fn token_key_name(&self) -> Option<&str>
The key used to extract the token from the HTTP headers.
sourcepub fn token_signing_public_keys(&self) -> Option<&HashMap<String, String>>
pub fn token_signing_public_keys(&self) -> Option<&HashMap<String, String>>
The public keys used to verify the token signature.
sourcepub fn status(&self) -> Option<&AuthorizerStatus>
pub fn status(&self) -> Option<&AuthorizerStatus>
The status of the update authorizer request.
sourcepub fn enable_caching_for_http(&self) -> Option<bool>
pub fn enable_caching_for_http(&self) -> Option<bool>
When true
, the result from the authorizer’s Lambda function is cached for the time specified in refreshAfterInSeconds
. The cached result is used while the device reuses the same HTTP connection.
Trait Implementations§
source§impl Clone for UpdateAuthorizerInput
impl Clone for UpdateAuthorizerInput
source§fn clone(&self) -> UpdateAuthorizerInput
fn clone(&self) -> UpdateAuthorizerInput
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