aws_sdk_apigateway/client/get_gateway_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 [`GetGatewayResponse`](crate::operation::get_gateway_response::builders::GetGatewayResponseFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`rest_api_id(impl Into<String>)`](crate::operation::get_gateway_response::builders::GetGatewayResponseFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::get_gateway_response::builders::GetGatewayResponseFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
7 /// - [`response_type(GatewayResponseType)`](crate::operation::get_gateway_response::builders::GetGatewayResponseFluentBuilder::response_type) / [`set_response_type(Option<GatewayResponseType>)`](crate::operation::get_gateway_response::builders::GetGatewayResponseFluentBuilder::set_response_type):<br>required: **true**<br><p>The response type of the associated GatewayResponse.</p><br>
8 /// - On success, responds with [`GetGatewayResponseOutput`](crate::operation::get_gateway_response::GetGatewayResponseOutput) with field(s):
9 /// - [`response_type(Option<GatewayResponseType>)`](crate::operation::get_gateway_response::GetGatewayResponseOutput::response_type): <p>The response type of the associated GatewayResponse.</p>
10 /// - [`status_code(Option<String>)`](crate::operation::get_gateway_response::GetGatewayResponseOutput::status_code): <p>The HTTP status code for this GatewayResponse.</p>
11 /// - [`response_parameters(Option<HashMap::<String, String>>)`](crate::operation::get_gateway_response::GetGatewayResponseOutput::response_parameters): <p>Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.</p>
12 /// - [`response_templates(Option<HashMap::<String, String>>)`](crate::operation::get_gateway_response::GetGatewayResponseOutput::response_templates): <p>Response templates of the GatewayResponse as a string-to-string map of key-value pairs.</p>
13 /// - [`default_response(bool)`](crate::operation::get_gateway_response::GetGatewayResponseOutput::default_response): <p>A Boolean flag to indicate whether this GatewayResponse is the default gateway response (<code>true</code>) or not (<code>false</code>). A default gateway response is one generated by API Gateway without any customization by an API developer.</p>
14 /// - On failure, responds with [`SdkError<GetGatewayResponseError>`](crate::operation::get_gateway_response::GetGatewayResponseError)
15 pub fn get_gateway_response(&self) -> crate::operation::get_gateway_response::builders::GetGatewayResponseFluentBuilder {
16 crate::operation::get_gateway_response::builders::GetGatewayResponseFluentBuilder::new(self.handle.clone())
17 }
18}