pub struct PutGatewayResponseRequest {
pub response_parameters: Option<HashMap<String, String>>,
pub response_templates: Option<HashMap<String, String>>,
pub response_type: String,
pub rest_api_id: String,
pub status_code: Option<String>,
}
Expand description
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
Fields
response_parameters: Option<HashMap<String, String>>
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
response_templates: Option<HashMap<String, String>>
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
response_type: String
[Required]
The response type of the associated GatewayResponse. Valid values are
- ACCESS_DENIED
- API_CONFIGURATION_ERROR
- AUTHORIZER_FAILURE
- AUTHORIZER_CONFIGURATION_ERROR
- BAD_REQUEST_PARAMETERS
- BAD_REQUEST_BODY
- DEFAULT_4XX
- DEFAULT_5XX
- EXPIRED_TOKEN
- INVALID_SIGNATURE
- INTEGRATION_FAILURE
- INTEGRATION_TIMEOUT
- INVALID_API_KEY
- MISSING_AUTHENTICATION_TOKEN
- QUOTA_EXCEEDED
- REQUEST_TOO_LARGE
- RESOURCE_NOT_FOUND
- THROTTLED
- UNAUTHORIZED
- UNSUPPORTED_MEDIA_TYPE
rest_api_id: String
[Required] The string identifier of the associated RestApi.
status_code: Option<String>
The HTTP status code of the GatewayResponse.
Trait Implementations
sourceimpl Clone for PutGatewayResponseRequest
impl Clone for PutGatewayResponseRequest
sourcefn clone(&self) -> PutGatewayResponseRequest
fn clone(&self) -> PutGatewayResponseRequest
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 PutGatewayResponseRequest
impl Debug for PutGatewayResponseRequest
sourceimpl Default for PutGatewayResponseRequest
impl Default for PutGatewayResponseRequest
sourcefn default() -> PutGatewayResponseRequest
fn default() -> PutGatewayResponseRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PutGatewayResponseRequest> for PutGatewayResponseRequest
impl PartialEq<PutGatewayResponseRequest> for PutGatewayResponseRequest
sourcefn eq(&self, other: &PutGatewayResponseRequest) -> bool
fn eq(&self, other: &PutGatewayResponseRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutGatewayResponseRequest) -> bool
fn ne(&self, other: &PutGatewayResponseRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for PutGatewayResponseRequest
impl Serialize for PutGatewayResponseRequest
impl StructuralPartialEq for PutGatewayResponseRequest
Auto Trait Implementations
impl RefUnwindSafe for PutGatewayResponseRequest
impl Send for PutGatewayResponseRequest
impl Sync for PutGatewayResponseRequest
impl Unpin for PutGatewayResponseRequest
impl UnwindSafe for PutGatewayResponseRequest
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