/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the kafkaconnect-2021-09-14.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.KafkaConnect.Model; using Amazon.KafkaConnect.Model.Internal.MarshallTransformations; using Amazon.KafkaConnect.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.KafkaConnect { /// /// Implementation for accessing KafkaConnect /// /// /// public partial class AmazonKafkaConnectClient : AmazonServiceClient, IAmazonKafkaConnect { private static IServiceMetadata serviceMetadata = new AmazonKafkaConnectMetadata(); private IKafkaConnectPaginatorFactory _paginators; /// /// Paginators for the service /// public IKafkaConnectPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new KafkaConnectPaginatorFactory(this); } return this._paginators; } } #region Constructors /// /// Constructs AmazonKafkaConnectClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonKafkaConnectClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonKafkaConnectConfig()) { } /// /// Constructs AmazonKafkaConnectClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonKafkaConnectClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonKafkaConnectConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonKafkaConnectClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonKafkaConnectClient Configuration Object public AmazonKafkaConnectClient(AmazonKafkaConnectConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonKafkaConnectClient with AWS Credentials /// /// AWS Credentials public AmazonKafkaConnectClient(AWSCredentials credentials) : this(credentials, new AmazonKafkaConnectConfig()) { } /// /// Constructs AmazonKafkaConnectClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonKafkaConnectClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonKafkaConnectConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonKafkaConnectClient with AWS Credentials and an /// AmazonKafkaConnectClient Configuration object. /// /// AWS Credentials /// The AmazonKafkaConnectClient Configuration Object public AmazonKafkaConnectClient(AWSCredentials credentials, AmazonKafkaConnectConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonKafkaConnectClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonKafkaConnectClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonKafkaConnectConfig()) { } /// /// Constructs AmazonKafkaConnectClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonKafkaConnectClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonKafkaConnectConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonKafkaConnectClient with AWS Access Key ID, AWS Secret Key and an /// AmazonKafkaConnectClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonKafkaConnectClient Configuration Object public AmazonKafkaConnectClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonKafkaConnectConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonKafkaConnectClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonKafkaConnectClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonKafkaConnectConfig()) { } /// /// Constructs AmazonKafkaConnectClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonKafkaConnectClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonKafkaConnectConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonKafkaConnectClient with AWS Access Key ID, AWS Secret Key and an /// AmazonKafkaConnectClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonKafkaConnectClient Configuration Object public AmazonKafkaConnectClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonKafkaConnectConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonKafkaConnectEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CreateConnector /// /// Creates a connector using the specified properties. /// /// Container for the necessary parameters to execute the CreateConnector service method. /// /// The response from the CreateConnector service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your /// request with another name. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for CreateConnector Operation public virtual CreateConnectorResponse CreateConnector(CreateConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateConnectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a connector using the specified properties. /// /// Container for the necessary parameters to execute the CreateConnector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateConnector service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your /// request with another name. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for CreateConnector Operation public virtual Task CreateConnectorAsync(CreateConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateConnectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateCustomPlugin /// /// Creates a custom plugin using the specified properties. /// /// Container for the necessary parameters to execute the CreateCustomPlugin service method. /// /// The response from the CreateCustomPlugin service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your /// request with another name. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for CreateCustomPlugin Operation public virtual CreateCustomPluginResponse CreateCustomPlugin(CreateCustomPluginRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomPluginRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomPluginResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a custom plugin using the specified properties. /// /// Container for the necessary parameters to execute the CreateCustomPlugin service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCustomPlugin service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your /// request with another name. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for CreateCustomPlugin Operation public virtual Task CreateCustomPluginAsync(CreateCustomPluginRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomPluginRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomPluginResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateWorkerConfiguration /// /// Creates a worker configuration using the specified properties. /// /// Container for the necessary parameters to execute the CreateWorkerConfiguration service method. /// /// The response from the CreateWorkerConfiguration service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your /// request with another name. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for CreateWorkerConfiguration Operation public virtual CreateWorkerConfigurationResponse CreateWorkerConfiguration(CreateWorkerConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkerConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkerConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a worker configuration using the specified properties. /// /// Container for the necessary parameters to execute the CreateWorkerConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateWorkerConfiguration service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your /// request with another name. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for CreateWorkerConfiguration Operation public virtual Task CreateWorkerConfigurationAsync(CreateWorkerConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkerConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkerConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteConnector /// /// Deletes the specified connector. /// /// Container for the necessary parameters to execute the DeleteConnector service method. /// /// The response from the DeleteConnector service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DeleteConnector Operation public virtual DeleteConnectorResponse DeleteConnector(DeleteConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteConnectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified connector. /// /// Container for the necessary parameters to execute the DeleteConnector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteConnector service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DeleteConnector Operation public virtual Task DeleteConnectorAsync(DeleteConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteConnectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteCustomPlugin /// /// Deletes a custom plugin. /// /// Container for the necessary parameters to execute the DeleteCustomPlugin service method. /// /// The response from the DeleteCustomPlugin service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DeleteCustomPlugin Operation public virtual DeleteCustomPluginResponse DeleteCustomPlugin(DeleteCustomPluginRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomPluginRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomPluginResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a custom plugin. /// /// Container for the necessary parameters to execute the DeleteCustomPlugin service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCustomPlugin service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DeleteCustomPlugin Operation public virtual Task DeleteCustomPluginAsync(DeleteCustomPluginRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomPluginRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomPluginResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeConnector /// /// Returns summary information about the connector. /// /// Container for the necessary parameters to execute the DescribeConnector service method. /// /// The response from the DescribeConnector service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DescribeConnector Operation public virtual DescribeConnectorResponse DescribeConnector(DescribeConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns summary information about the connector. /// /// Container for the necessary parameters to execute the DescribeConnector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeConnector service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DescribeConnector Operation public virtual Task DescribeConnectorAsync(DescribeConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeCustomPlugin /// /// A summary description of the custom plugin. /// /// Container for the necessary parameters to execute the DescribeCustomPlugin service method. /// /// The response from the DescribeCustomPlugin service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DescribeCustomPlugin Operation public virtual DescribeCustomPluginResponse DescribeCustomPlugin(DescribeCustomPluginRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCustomPluginRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCustomPluginResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// A summary description of the custom plugin. /// /// Container for the necessary parameters to execute the DescribeCustomPlugin service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeCustomPlugin service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DescribeCustomPlugin Operation public virtual Task DescribeCustomPluginAsync(DescribeCustomPluginRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCustomPluginRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCustomPluginResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeWorkerConfiguration /// /// Returns information about a worker configuration. /// /// Container for the necessary parameters to execute the DescribeWorkerConfiguration service method. /// /// The response from the DescribeWorkerConfiguration service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DescribeWorkerConfiguration Operation public virtual DescribeWorkerConfigurationResponse DescribeWorkerConfiguration(DescribeWorkerConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkerConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkerConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a worker configuration. /// /// Container for the necessary parameters to execute the DescribeWorkerConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeWorkerConfiguration service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for DescribeWorkerConfiguration Operation public virtual Task DescribeWorkerConfigurationAsync(DescribeWorkerConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkerConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkerConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListConnectors /// /// Returns a list of all the connectors in this account and Region. The list is limited /// to connectors whose name starts with the specified prefix. The response also includes /// a description of each of the listed connectors. /// /// Container for the necessary parameters to execute the ListConnectors service method. /// /// The response from the ListConnectors service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for ListConnectors Operation public virtual ListConnectorsResponse ListConnectors(ListConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of all the connectors in this account and Region. The list is limited /// to connectors whose name starts with the specified prefix. The response also includes /// a description of each of the listed connectors. /// /// Container for the necessary parameters to execute the ListConnectors service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListConnectors service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for ListConnectors Operation public virtual Task ListConnectorsAsync(ListConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCustomPlugins /// /// Returns a list of all of the custom plugins in this account and Region. /// /// Container for the necessary parameters to execute the ListCustomPlugins service method. /// /// The response from the ListCustomPlugins service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for ListCustomPlugins Operation public virtual ListCustomPluginsResponse ListCustomPlugins(ListCustomPluginsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomPluginsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomPluginsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of all of the custom plugins in this account and Region. /// /// Container for the necessary parameters to execute the ListCustomPlugins service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCustomPlugins service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for ListCustomPlugins Operation public virtual Task ListCustomPluginsAsync(ListCustomPluginsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomPluginsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomPluginsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListWorkerConfigurations /// /// Returns a list of all of the worker configurations in this account and Region. /// /// Container for the necessary parameters to execute the ListWorkerConfigurations service method. /// /// The response from the ListWorkerConfigurations service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for ListWorkerConfigurations Operation public virtual ListWorkerConfigurationsResponse ListWorkerConfigurations(ListWorkerConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkerConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkerConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of all of the worker configurations in this account and Region. /// /// Container for the necessary parameters to execute the ListWorkerConfigurations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListWorkerConfigurations service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for ListWorkerConfigurations Operation public virtual Task ListWorkerConfigurationsAsync(ListWorkerConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkerConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkerConfigurationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateConnector /// /// Updates the specified connector. /// /// Container for the necessary parameters to execute the UpdateConnector service method. /// /// The response from the UpdateConnector service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for UpdateConnector Operation public virtual UpdateConnectorResponse UpdateConnector(UpdateConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the specified connector. /// /// Container for the necessary parameters to execute the UpdateConnector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateConnector service method, as returned by KafkaConnect. /// /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and /// then retry it. /// /// /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your /// request. /// /// /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might /// resolve the issue. /// /// /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request /// and then retry it. /// /// /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might /// resolve the issue. /// /// /// HTTP Status Code 429: Limit exceeded. Resource limit reached. /// /// /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. /// /// REST API Reference for UpdateConnector Operation public virtual Task UpdateConnectorAsync(UpdateConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }