Struct aws_sdk_iot::input::TestInvokeAuthorizerInput
source · #[non_exhaustive]pub struct TestInvokeAuthorizerInput { /* private fields */ }
Implementations§
source§impl TestInvokeAuthorizerInput
impl TestInvokeAuthorizerInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestInvokeAuthorizer, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestInvokeAuthorizer, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<TestInvokeAuthorizer
>
Examples found in repository?
src/client.rs (line 24522)
24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 24518 24519 24520 24521 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 24535 24536 24537 24538 24539 24540 24541 24542 24543 24544 24545 24546 24547 24548 24549 24550
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::TestInvokeAuthorizer,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::TestInvokeAuthorizerError>,
> {
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::TestInvokeAuthorizerOutput,
aws_smithy_http::result::SdkError<crate::error::TestInvokeAuthorizerError>,
> {
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 TestInvokeAuthorizerInput
.
source§impl TestInvokeAuthorizerInput
impl TestInvokeAuthorizerInput
The custom authorizer name.
sourcepub fn token_signature(&self) -> Option<&str>
pub fn token_signature(&self) -> Option<&str>
The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
sourcepub fn http_context(&self) -> Option<&HttpContext>
pub fn http_context(&self) -> Option<&HttpContext>
Specifies a test HTTP authorization request.
sourcepub fn mqtt_context(&self) -> Option<&MqttContext>
pub fn mqtt_context(&self) -> Option<&MqttContext>
Specifies a test MQTT authorization request.
sourcepub fn tls_context(&self) -> Option<&TlsContext>
pub fn tls_context(&self) -> Option<&TlsContext>
Specifies a test TLS authorization request.
Trait Implementations§
source§impl Clone for TestInvokeAuthorizerInput
impl Clone for TestInvokeAuthorizerInput
source§fn clone(&self) -> TestInvokeAuthorizerInput
fn clone(&self) -> TestInvokeAuthorizerInput
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