pub struct TestInvokeAuthorizerRequest {
pub additional_context: Option<HashMap<String, String>>,
pub authorizer_id: String,
pub body: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub multi_value_headers: Option<HashMap<String, Vec<String>>>,
pub path_with_query_string: Option<String>,
pub rest_api_id: String,
pub stage_variables: Option<HashMap<String, String>>,
}
Expand description
Make a request to simulate the execution of an Authorizer.
Fields
additional_context: Option<HashMap<String, String>>
[Optional] A key-value map of additional context variables.
[Required] Specifies a test invoke authorizer request's Authorizer ID.
body: Option<String>
[Optional] The simulated request body of an incoming invocation request.
headers: Option<HashMap<String, String>>
[Required] 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.
multi_value_headers: Option<HashMap<String, Vec<String>>>
[Optional] 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.
path_with_query_string: Option<String>
[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
rest_api_id: String
[Required] The string identifier of the associated RestApi.
stage_variables: Option<HashMap<String, String>>
A key-value map of stage variables to simulate an invocation on a deployed Stage.
Trait Implementations
sourceimpl Clone for TestInvokeAuthorizerRequest
impl Clone for TestInvokeAuthorizerRequest
sourcefn clone(&self) -> TestInvokeAuthorizerRequest
fn clone(&self) -> TestInvokeAuthorizerRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TestInvokeAuthorizerRequest
impl Debug for TestInvokeAuthorizerRequest
sourceimpl Default for TestInvokeAuthorizerRequest
impl Default for TestInvokeAuthorizerRequest
sourcefn default() -> TestInvokeAuthorizerRequest
fn default() -> TestInvokeAuthorizerRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<TestInvokeAuthorizerRequest> for TestInvokeAuthorizerRequest
impl PartialEq<TestInvokeAuthorizerRequest> for TestInvokeAuthorizerRequest
sourcefn eq(&self, other: &TestInvokeAuthorizerRequest) -> bool
fn eq(&self, other: &TestInvokeAuthorizerRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TestInvokeAuthorizerRequest) -> bool
fn ne(&self, other: &TestInvokeAuthorizerRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for TestInvokeAuthorizerRequest
Auto Trait Implementations
impl RefUnwindSafe for TestInvokeAuthorizerRequest
impl Send for TestInvokeAuthorizerRequest
impl Sync for TestInvokeAuthorizerRequest
impl Unpin for TestInvokeAuthorizerRequest
impl UnwindSafe for TestInvokeAuthorizerRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more