put_gateway_response
¶
put_gateway_response(
rest_api_id: String,
response_type: GatewayResponseType,
*,
config_overrides: Optional[APIGatewayClientConfig] = None,
status_code: Optional[StatusCode] = None,
response_parameters: Optional[MapOfStringToString] = None,
response_templates: Optional[MapOfStringToString] = None,
) -> GatewayResponse
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
response_type(GatewayResponseType) –The response type of the associated GatewayResponse
-
status_code(Optional[StatusCode], default:None) –The HTTP status code of the GatewayResponse.
-
response_parameters(Optional[MapOfStringToString], default:None) –Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
-
response_templates(Optional[MapOfStringToString], default:None) –Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_api_gateway/_services/api_gateway.py
5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 | |