Skip to content

get_network_connector

get_network_connector(
    network_connector_name: NetworkConnectorName,
    *,
    config_overrides: Optional[AmplifyGen3ClientConfig] = None,
) -> GetNetworkConnectorResponse

Retrieves a network connector.

Parameters:

Raises:

Source code in docs_src/capo_amplifygen3/_services/amplify_gen3.py
def get_network_connector(
    self,
    network_connector_name: "capo_amplifygen3.types.network_connector_name.NetworkConnectorName",
    *,
    config_overrides: Optional[AmplifyGen3ClientConfig] = None,
) -> "capo_amplifygen3.types.get_network_connector_response.GetNetworkConnectorResponse":
    """<p>Retrieves a network connector.</p>

    Args:
        network_connector_name: <p>The name of the network connector.</p>

    Raises:
        capo_amplifygen3.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action.</p>
        capo_amplifygen3.errors.internal_server_exception.InternalServerException: <p>An internal error occurred. Retry the request.</p>
        capo_amplifygen3.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found.</p>
        capo_amplifygen3.errors.throttling_exception.ThrottlingException: <p>The request was denied because the request rate exceeds the allowed limit.</p>
        capo_amplifygen3.errors.validation_exception.ValidationException: <p>The request contains invalid parameters or is otherwise malformed.</p>
        capo_amplifygen3.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_amplifygen3.types.get_network_connector_request.GetNetworkConnectorRequest]",
    ) -> OperationResponse[
        "capo_amplifygen3.types.get_network_connector_response.GetNetworkConnectorResponse"
    ]:
        import capo_amplifygen3._operations.omega.get_network_connector

        output, http_response = (
            capo_amplifygen3._operations.omega.get_network_connector.get_network_connector(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetNetworkConnector")
    )
    input_: capo_amplifygen3.types.get_network_connector_request.GetNetworkConnectorRequest = {
        "network_connector_name": network_connector_name
    }

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