Struct aws_sdk_apigateway::client::fluent_builders::PutMethodResponse [−][src]
pub struct PutMethodResponse<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to PutMethodResponse
.
Adds a MethodResponse
to an existing Method
resource.
Implementations
impl<C, M, R> PutMethodResponse<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutMethodResponse<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutMethodResponseOutput, SdkError<PutMethodResponseError>> where
R::Policy: SmithyRetryPolicy<PutMethodResponseInputOperationOutputAlias, PutMethodResponseOutput, PutMethodResponseError, PutMethodResponseInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutMethodResponseOutput, SdkError<PutMethodResponseError>> where
R::Policy: SmithyRetryPolicy<PutMethodResponseInputOperationOutputAlias, PutMethodResponseOutput, PutMethodResponseError, PutMethodResponseInputOperationRetryAlias>,
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.
[Required] The string identifier of the associated RestApi
.
[Required] The string identifier of the associated RestApi
.
[Required] The Resource
identifier for the Method
resource.
[Required] The Resource
identifier for the Method
resource.
[Required] The HTTP verb of the Method
resource.
[Required] The HTTP verb of the Method
resource.
[Required] The method response's status code.
[Required] The method response's status code.
Adds a key-value pair to responseParameters
.
To override the contents of this collection use set_response_parameters
.
A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether the method response parameter is required or not. The method response header names must match the pattern of method.response.header.{name}
, where name
is a valid and unique header name. The response parameter names defined here are available in the integration response to be mapped from an integration response header expressed in integration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g., 'application/json'
), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}
, where JSON-expression
is a valid JSON expression without the $
prefix.)
A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether the method response parameter is required or not. The method response header names must match the pattern of method.response.header.{name}
, where name
is a valid and unique header name. The response parameter names defined here are available in the integration response to be mapped from an integration response header expressed in integration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g., 'application/json'
), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}
, where JSON-expression
is a valid JSON expression without the $
prefix.)
Adds a key-value pair to responseModels
.
To override the contents of this collection use set_response_models
.
Specifies the Model
resources used for the response's content type. Response models are represented as a key/value map, with a content type as the key and a Model
name as the value.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for PutMethodResponse<C, M, R>
impl<C, M, R> Send for PutMethodResponse<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutMethodResponse<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutMethodResponse<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for PutMethodResponse<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more