aws_sdk_apigateway/client/update_method_response.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateMethodResponse`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`rest_api_id(impl Into<String>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
7 /// - [`resource_id(impl Into<String>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::set_resource_id):<br>required: **true**<br><p>The Resource identifier for the MethodResponse resource.</p><br>
8 /// - [`http_method(impl Into<String>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::http_method) / [`set_http_method(Option<String>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::set_http_method):<br>required: **true**<br><p>The HTTP verb of the Method resource.</p><br>
9 /// - [`status_code(impl Into<String>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::status_code) / [`set_status_code(Option<String>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::set_status_code):<br>required: **true**<br><p>The status code for the MethodResponse resource.</p><br>
10 /// - [`patch_operations(PatchOperation)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::patch_operations) / [`set_patch_operations(Option<Vec::<PatchOperation>>)`](crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::set_patch_operations):<br>required: **false**<br><p>For more information about supported patch operations, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html">Patch Operations</a>.</p><br>
11 /// - On success, responds with [`UpdateMethodResponseOutput`](crate::operation::update_method_response::UpdateMethodResponseOutput) with field(s):
12 /// - [`status_code(Option<String>)`](crate::operation::update_method_response::UpdateMethodResponseOutput::status_code): <p>The method response's status code.</p>
13 /// - [`response_parameters(Option<HashMap::<String, bool>>)`](crate::operation::update_method_response::UpdateMethodResponseOutput::response_parameters): <p>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 and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern <code>method.response.header.{name}</code>, where <code>name</code> is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in <code>integration.response.header.{name}</code>, a static value enclosed within a pair of single quotes (e.g., <code>'application/json'</code>), or a JSON expression from the back-end response payload in the form of <code>integration.response.body.{JSON-expression}</code>, where <code>JSON-expression</code> is a valid JSON expression without the <code>$</code> prefix.)</p>
14 /// - [`response_models(Option<HashMap::<String, String>>)`](crate::operation::update_method_response::UpdateMethodResponseOutput::response_models): <p>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.</p>
15 /// - On failure, responds with [`SdkError<UpdateMethodResponseError>`](crate::operation::update_method_response::UpdateMethodResponseError)
16 pub fn update_method_response(&self) -> crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder {
17 crate::operation::update_method_response::builders::UpdateMethodResponseFluentBuilder::new(self.handle.clone())
18 }
19}