Skip to content

list_global_inference_gateways

list_global_inference_gateways(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    filters: Optional[GlobalInferenceGatewayFilters] = None,
    next_token: Optional[GlobalInferenceGatewayNextToken] = None,
    max_results: Optional[GlobalInferenceGatewayMaxResults] = None,
) -> ListGlobalInferenceGatewaysResponse

Lists summaries of the global inference gateways in your account. You can filter the results by status.

Parameters:

  • filters (Optional[GlobalInferenceGatewayFilters], default: None ) –

    The filters to apply to the results. You can filter by Status. Multiple filters are combined with a logical AND.

  • next_token (Optional[GlobalInferenceGatewayNextToken], default: None ) –

    If the result of the previous ListGlobalInferenceGateways request was truncated, the response includes a NextToken. To retrieve the next set of global inference gateways, use the token in the next request.

  • max_results (Optional[GlobalInferenceGatewayMaxResults], default: None ) –

    The maximum number of global inference gateways to return in the response.

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def list_global_inference_gateways(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    filters: Optional[
        "capo_sagemaker.types.global_inference_gateway_filters.GlobalInferenceGatewayFilters"
    ] = None,
    next_token: Optional[
        "capo_sagemaker.types.global_inference_gateway_next_token.GlobalInferenceGatewayNextToken"
    ] = None,
    max_results: Optional[
        "capo_sagemaker.types.global_inference_gateway_max_results.GlobalInferenceGatewayMaxResults"
    ] = None,
) -> "capo_sagemaker.types.list_global_inference_gateways_response.ListGlobalInferenceGatewaysResponse":
    """<p>Lists summaries of the global inference gateways in your account. You can filter the results by status.</p>

    Args:
        filters: The filters to apply to the results. You can filter by `Status`. Multiple filters are combined with a logical AND.
        next_token: <p>If the result of the previous <code>ListGlobalInferenceGateways</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of global inference gateways, use the token in the next request.</p>
        max_results: <p>The maximum number of global inference gateways to return in the response.</p>

    Raises:
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.list_global_inference_gateways_request.ListGlobalInferenceGatewaysRequest]",
    ) -> OperationResponse[
        "capo_sagemaker.types.list_global_inference_gateways_response.ListGlobalInferenceGatewaysResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.list_global_inference_gateways

        output, http_response = (
            capo_sagemaker._operations.sage_maker.list_global_inference_gateways.list_global_inference_gateways(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListGlobalInferenceGateways")
    )
    input_: capo_sagemaker.types.list_global_inference_gateways_request.ListGlobalInferenceGatewaysRequest = {}
    if filters is not None:
        input_["filters"] = filters
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output