get_gateway_response
async
¶
get_gateway_response(
rest_api_id: String,
response_type: GatewayResponseType,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
) -> GatewayResponse
Gets a GatewayResponse of a specified response type 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.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
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.