Struct aws_sdk_apigateway::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder
source · pub struct TestInvokeAuthorizerFluentBuilder { /* 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 TestInvokeAuthorizerFluentBuilder
impl TestInvokeAuthorizerFluentBuilder
sourcepub fn as_input(&self) -> &TestInvokeAuthorizerInputBuilder
pub fn as_input(&self) -> &TestInvokeAuthorizerInputBuilder
Access the TestInvokeAuthorizer as a reference.
sourcepub async fn send(
self
) -> Result<TestInvokeAuthorizerOutput, SdkError<TestInvokeAuthorizerError, HttpResponse>>
pub async fn send( self ) -> Result<TestInvokeAuthorizerOutput, SdkError<TestInvokeAuthorizerError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<TestInvokeAuthorizerOutput, TestInvokeAuthorizerError, Self>
pub fn customize( self ) -> CustomizableOperation<TestInvokeAuthorizerOutput, TestInvokeAuthorizerError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
sourcepub fn get_rest_api_id(&self) -> &Option<String>
pub fn get_rest_api_id(&self) -> &Option<String>
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.
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 get_headers(&self) -> &Option<HashMap<String, String>>
pub fn get_headers(&self) -> &Option<HashMap<String, String>>
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 get_multi_value_headers(&self) -> &Option<HashMap<String, Vec<String>>>
pub fn get_multi_value_headers(&self) -> &Option<HashMap<String, Vec<String>>>
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 get_path_with_query_string(&self) -> &Option<String>
pub fn get_path_with_query_string(&self) -> &Option<String>
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 get_body(&self) -> &Option<String>
pub fn get_body(&self) -> &Option<String>
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 get_stage_variables(&self) -> &Option<HashMap<String, String>>
pub fn get_stage_variables(&self) -> &Option<HashMap<String, String>>
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 TestInvokeAuthorizerFluentBuilder
impl Clone for TestInvokeAuthorizerFluentBuilder
source§fn clone(&self) -> TestInvokeAuthorizerFluentBuilder
fn clone(&self) -> TestInvokeAuthorizerFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more