/// <summary> /// Returns summary information about the connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeConnector service method, as returned by KafkaConnect.</returns> /// <exception cref="Amazon.KafkaConnect.Model.BadRequestException"> /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// </exception> /// <exception cref="Amazon.KafkaConnect.Model.ForbiddenException"> /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// </exception> /// <exception cref="Amazon.KafkaConnect.Model.InternalServerErrorException"> /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// </exception> /// <exception cref="Amazon.KafkaConnect.Model.NotFoundException"> /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// </exception> /// <exception cref="Amazon.KafkaConnect.Model.ServiceUnavailableException"> /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// </exception> /// <exception cref="Amazon.KafkaConnect.Model.TooManyRequestsException"> /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// </exception> /// <exception cref="Amazon.KafkaConnect.Model.UnauthorizedException"> /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> public virtual Task <DescribeConnectorResponse> DescribeConnectorAsync(DescribeConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return(InvokeAsync <DescribeConnectorResponse>(request, options, cancellationToken)); }
internal virtual DescribeConnectorResponse DescribeConnector(DescribeConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return(Invoke <DescribeConnectorResponse>(request, options)); }