Skip to content

get_gateway_responses

Operation

get_gateway_responses

get_gateway_responses(request: GetGatewayResponsesInput | GetGatewayResponsesInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetGatewayResponsesInputDict]) -> GetGatewayResponsesOutput

Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.

Parameters:

Name Type Description Default
request GetGatewayResponsesInput | GetGatewayResponsesInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[GetGatewayResponsesInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetGatewayResponsesOutput

An instance of GetGatewayResponsesOutput.

get_gateway_responses async

get_gateway_responses(request: GetGatewayResponsesInput | GetGatewayResponsesInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetGatewayResponsesInputDict]) -> GetGatewayResponsesOutput

Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.

Parameters:

Name Type Description Default
request GetGatewayResponsesInput | GetGatewayResponsesInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[GetGatewayResponsesInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetGatewayResponsesOutput

An instance of GetGatewayResponsesOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

GetGatewayResponsesInputDict

Bases: TypedDict

Dictionary form of GetGatewayResponsesInput.

Attributes

limit instance-attribute
limit: int | None

The maximum number of returned results per page. The default value is 25 and the maximum value is 500. The GatewayResponses collection does not support pagination and the limit does not apply here.

position instance-attribute
position: str | None

The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.

rest_api_id instance-attribute
rest_api_id: Required[str]

The string identifier of the associated RestApi.

GetGatewayResponsesInput dataclass

Bases: _SerdeShape

Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.

Attributes

limit class-attribute instance-attribute
limit: int | None = ...

The maximum number of returned results per page. The default value is 25 and the maximum value is 500. The GatewayResponses collection does not support pagination and the limit does not apply here.

position class-attribute instance-attribute
position: str | None = ...

The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.

rest_api_id class-attribute instance-attribute
rest_api_id: str | None = ...

The string identifier of the associated RestApi.

Output

GetGatewayResponsesOutput dataclass

Bases: _SerdeShape

The collection of the GatewayResponse instances of a RestApi as a responseType-to-GatewayResponse object map of key-value pairs. As such, pagination is not supported for querying this collection.

Attributes

items class-attribute instance-attribute
items: list[GatewayResponse] | None = ...

Returns the entire collection, because of no pagination support.

position class-attribute instance-attribute
position: str | None = ...

The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.