pub struct TestInvokeAuthorizer { /* private fields */ }
Expand description
Fluent builder constructing a request to TestInvokeAuthorizer
.
Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.
Implementations§
source§impl TestInvokeAuthorizer
impl TestInvokeAuthorizer
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<TestInvokeAuthorizer, AwsResponseRetryClassifier>, SdkError<TestInvokeAuthorizerError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<TestInvokeAuthorizer, AwsResponseRetryClassifier>, SdkError<TestInvokeAuthorizerError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<TestInvokeAuthorizerOutput, SdkError<TestInvokeAuthorizerError>>
pub async fn send(
self
) -> Result<TestInvokeAuthorizerOutput, SdkError<TestInvokeAuthorizerError>>
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, which can be set when configuring the client.
sourcepub fn rest_api_id(self, input: impl Into<String>) -> Self
pub fn rest_api_id(self, input: impl Into<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn set_rest_api_id(self, input: Option<String>) -> Self
pub fn set_rest_api_id(self, input: Option<String>) -> Self
The string identifier of the associated RestApi.
Specifies a test invoke authorizer request's Authorizer ID.
Specifies a test invoke authorizer request's Authorizer ID.
sourcepub fn headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to headers
.
To override the contents of this collection use set_headers
.
A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
sourcepub fn set_headers(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_headers(self, input: Option<HashMap<String, String>>) -> Self
A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
sourcepub fn multi_value_headers(self, k: impl Into<String>, v: Vec<String>) -> Self
pub fn multi_value_headers(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to multiValueHeaders
.
To override the contents of this collection use set_multi_value_headers
.
The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.
sourcepub fn set_multi_value_headers(
self,
input: Option<HashMap<String, Vec<String>>>
) -> Self
pub fn set_multi_value_headers(
self,
input: Option<HashMap<String, Vec<String>>>
) -> Self
The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.
sourcepub fn path_with_query_string(self, input: impl Into<String>) -> Self
pub fn path_with_query_string(self, input: impl Into<String>) -> Self
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
sourcepub fn set_path_with_query_string(self, input: Option<String>) -> Self
pub fn set_path_with_query_string(self, input: Option<String>) -> Self
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
sourcepub fn body(self, input: impl Into<String>) -> Self
pub fn body(self, input: impl Into<String>) -> Self
The simulated request body of an incoming invocation request.
sourcepub fn set_body(self, input: Option<String>) -> Self
pub fn set_body(self, input: Option<String>) -> Self
The simulated request body of an incoming invocation request.
sourcepub fn stage_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn stage_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to stageVariables
.
To override the contents of this collection use set_stage_variables
.
A key-value map of stage variables to simulate an invocation on a deployed Stage.
sourcepub fn set_stage_variables(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_stage_variables(self, input: Option<HashMap<String, String>>) -> Self
A key-value map of stage variables to simulate an invocation on a deployed Stage.
sourcepub fn additional_context(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn additional_context(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to additionalContext
.
To override the contents of this collection use set_additional_context
.
A key-value map of additional context variables.
Trait Implementations§
source§impl Clone for TestInvokeAuthorizer
impl Clone for TestInvokeAuthorizer
source§fn clone(&self) -> TestInvokeAuthorizer
fn clone(&self) -> TestInvokeAuthorizer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more