/// <summary> /// Creates a custom plugin using the specified properties. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomPlugin 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 CreateCustomPlugin 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.ConflictException"> /// HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your /// request with another name. /// </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/CreateCustomPlugin">REST API Reference for CreateCustomPlugin Operation</seealso> public virtual Task <CreateCustomPluginResponse> CreateCustomPluginAsync(CreateCustomPluginRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomPluginRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomPluginResponseUnmarshaller.Instance; return(InvokeAsync <CreateCustomPluginResponse>(request, options, cancellationToken)); }
internal virtual CreateCustomPluginResponse CreateCustomPlugin(CreateCustomPluginRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomPluginRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomPluginResponseUnmarshaller.Instance; return(Invoke <CreateCustomPluginResponse>(request, options)); }