#[non_exhaustive]pub struct TestInvokeMethodInput {
pub rest_api_id: Option<String>,
pub resource_id: Option<String>,
pub http_method: Option<String>,
pub path_with_query_string: Option<String>,
pub body: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub multi_value_headers: Option<HashMap<String, Vec<String>>>,
pub client_certificate_id: Option<String>,
pub stage_variables: Option<HashMap<String, String>>,
}
Expand description
Make a request to simulate the invocation of a Method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.rest_api_id: Option<String>
The string identifier of the associated RestApi.
resource_id: Option<String>
Specifies a test invoke method request's resource ID.
http_method: Option<String>
Specifies a test invoke method request's HTTP method.
path_with_query_string: Option<String>
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
body: Option<String>
The simulated request body of an incoming invocation request.
headers: Option<HashMap<String, String>>
A key-value map of headers to simulate an incoming invocation request.
multi_value_headers: Option<HashMap<String, Vec<String>>>
The headers as a map from string to list of values to simulate an incoming invocation request.
client_certificate_id: Option<String>
A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.
stage_variables: Option<HashMap<String, String>>
A key-value map of stage variables to simulate an invocation on a deployed Stage.
Implementations§
source§impl TestInvokeMethodInput
impl TestInvokeMethodInput
sourcepub fn rest_api_id(&self) -> Option<&str>
pub fn rest_api_id(&self) -> Option<&str>
The string identifier of the associated RestApi.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
Specifies a test invoke method request's resource ID.
sourcepub fn http_method(&self) -> Option<&str>
pub fn http_method(&self) -> Option<&str>
Specifies a test invoke method request's HTTP method.
sourcepub fn path_with_query_string(&self) -> Option<&str>
pub fn path_with_query_string(&self) -> Option<&str>
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) -> Option<&str>
pub fn body(&self) -> Option<&str>
The simulated request body of an incoming invocation request.
sourcepub fn headers(&self) -> Option<&HashMap<String, String>>
pub fn headers(&self) -> Option<&HashMap<String, String>>
A key-value map of headers to simulate an incoming invocation request.
sourcepub fn multi_value_headers(&self) -> Option<&HashMap<String, Vec<String>>>
pub fn 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.
sourcepub fn client_certificate_id(&self) -> Option<&str>
pub fn client_certificate_id(&self) -> Option<&str>
A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.
source§impl TestInvokeMethodInput
impl TestInvokeMethodInput
sourcepub fn builder() -> TestInvokeMethodInputBuilder
pub fn builder() -> TestInvokeMethodInputBuilder
Creates a new builder-style object to manufacture TestInvokeMethodInput
.
Trait Implementations§
source§impl Clone for TestInvokeMethodInput
impl Clone for TestInvokeMethodInput
source§fn clone(&self) -> TestInvokeMethodInput
fn clone(&self) -> TestInvokeMethodInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestInvokeMethodInput
impl Debug for TestInvokeMethodInput
source§impl PartialEq for TestInvokeMethodInput
impl PartialEq for TestInvokeMethodInput
source§fn eq(&self, other: &TestInvokeMethodInput) -> bool
fn eq(&self, other: &TestInvokeMethodInput) -> bool
self
and other
values to be equal, and is used
by ==
.