Interface KafkaConnectClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface KafkaConnectClient extends AwsClient
Service client for accessing Kafka Connect. This can be created using the staticbuilder()method.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
createConnector
default CreateConnectorResponse createConnector(CreateConnectorRequest createConnectorRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Creates a connector using the specified properties.
- Parameters:
createConnectorRequest-- Returns:
- Result of the CreateConnector operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.ConflictException- HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your request with another name.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createConnector
default CreateConnectorResponse createConnector(Consumer<CreateConnectorRequest.Builder> createConnectorRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Creates a connector using the specified properties.
This is a convenience which creates an instance of the
CreateConnectorRequest.Builderavoiding the need to create one manually viaCreateConnectorRequest.builder()- Parameters:
createConnectorRequest- AConsumerthat will call methods onCreateConnectorRequest.Builderto create a request.- Returns:
- Result of the CreateConnector operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.ConflictException- HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your request with another name.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createCustomPlugin
default CreateCustomPluginResponse createCustomPlugin(CreateCustomPluginRequest createCustomPluginRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Creates a custom plugin using the specified properties.
- Parameters:
createCustomPluginRequest-- Returns:
- Result of the CreateCustomPlugin operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.ConflictException- HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your request with another name.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createCustomPlugin
default CreateCustomPluginResponse createCustomPlugin(Consumer<CreateCustomPluginRequest.Builder> createCustomPluginRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Creates a custom plugin using the specified properties.
This is a convenience which creates an instance of the
CreateCustomPluginRequest.Builderavoiding the need to create one manually viaCreateCustomPluginRequest.builder()- Parameters:
createCustomPluginRequest- AConsumerthat will call methods onCreateCustomPluginRequest.Builderto create a request.- Returns:
- Result of the CreateCustomPlugin operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.ConflictException- HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your request with another name.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createWorkerConfiguration
default CreateWorkerConfigurationResponse createWorkerConfiguration(CreateWorkerConfigurationRequest createWorkerConfigurationRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Creates a worker configuration using the specified properties.
- Parameters:
createWorkerConfigurationRequest-- Returns:
- Result of the CreateWorkerConfiguration operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.ConflictException- HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your request with another name.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createWorkerConfiguration
default CreateWorkerConfigurationResponse createWorkerConfiguration(Consumer<CreateWorkerConfigurationRequest.Builder> createWorkerConfigurationRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Creates a worker configuration using the specified properties.
This is a convenience which creates an instance of the
CreateWorkerConfigurationRequest.Builderavoiding the need to create one manually viaCreateWorkerConfigurationRequest.builder()- Parameters:
createWorkerConfigurationRequest- AConsumerthat will call methods onCreateWorkerConfigurationRequest.Builderto create a request.- Returns:
- Result of the CreateWorkerConfiguration operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.ConflictException- HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your request with another name.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteConnector
default DeleteConnectorResponse deleteConnector(DeleteConnectorRequest deleteConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Deletes the specified connector.
- Parameters:
deleteConnectorRequest-- Returns:
- Result of the DeleteConnector operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteConnector
default DeleteConnectorResponse deleteConnector(Consumer<DeleteConnectorRequest.Builder> deleteConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Deletes the specified connector.
This is a convenience which creates an instance of the
DeleteConnectorRequest.Builderavoiding the need to create one manually viaDeleteConnectorRequest.builder()- Parameters:
deleteConnectorRequest- AConsumerthat will call methods onDeleteConnectorRequest.Builderto create a request.- Returns:
- Result of the DeleteConnector operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteCustomPlugin
default DeleteCustomPluginResponse deleteCustomPlugin(DeleteCustomPluginRequest deleteCustomPluginRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Deletes a custom plugin.
- Parameters:
deleteCustomPluginRequest-- Returns:
- Result of the DeleteCustomPlugin operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteCustomPlugin
default DeleteCustomPluginResponse deleteCustomPlugin(Consumer<DeleteCustomPluginRequest.Builder> deleteCustomPluginRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Deletes a custom plugin.
This is a convenience which creates an instance of the
DeleteCustomPluginRequest.Builderavoiding the need to create one manually viaDeleteCustomPluginRequest.builder()- Parameters:
deleteCustomPluginRequest- AConsumerthat will call methods onDeleteCustomPluginRequest.Builderto create a request.- Returns:
- Result of the DeleteCustomPlugin operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeConnector
default DescribeConnectorResponse describeConnector(DescribeConnectorRequest describeConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Returns summary information about the connector.
- Parameters:
describeConnectorRequest-- Returns:
- Result of the DescribeConnector operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeConnector
default DescribeConnectorResponse describeConnector(Consumer<DescribeConnectorRequest.Builder> describeConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Returns summary information about the connector.
This is a convenience which creates an instance of the
DescribeConnectorRequest.Builderavoiding the need to create one manually viaDescribeConnectorRequest.builder()- Parameters:
describeConnectorRequest- AConsumerthat will call methods onDescribeConnectorRequest.Builderto create a request.- Returns:
- Result of the DescribeConnector operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeCustomPlugin
default DescribeCustomPluginResponse describeCustomPlugin(DescribeCustomPluginRequest describeCustomPluginRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
A summary description of the custom plugin.
- Parameters:
describeCustomPluginRequest-- Returns:
- Result of the DescribeCustomPlugin operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeCustomPlugin
default DescribeCustomPluginResponse describeCustomPlugin(Consumer<DescribeCustomPluginRequest.Builder> describeCustomPluginRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
A summary description of the custom plugin.
This is a convenience which creates an instance of the
DescribeCustomPluginRequest.Builderavoiding the need to create one manually viaDescribeCustomPluginRequest.builder()- Parameters:
describeCustomPluginRequest- AConsumerthat will call methods onDescribeCustomPluginRequest.Builderto create a request.- Returns:
- Result of the DescribeCustomPlugin operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeWorkerConfiguration
default DescribeWorkerConfigurationResponse describeWorkerConfiguration(DescribeWorkerConfigurationRequest describeWorkerConfigurationRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Returns information about a worker configuration.
- Parameters:
describeWorkerConfigurationRequest-- Returns:
- Result of the DescribeWorkerConfiguration operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeWorkerConfiguration
default DescribeWorkerConfigurationResponse describeWorkerConfiguration(Consumer<DescribeWorkerConfigurationRequest.Builder> describeWorkerConfigurationRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Returns information about a worker configuration.
This is a convenience which creates an instance of the
DescribeWorkerConfigurationRequest.Builderavoiding the need to create one manually viaDescribeWorkerConfigurationRequest.builder()- Parameters:
describeWorkerConfigurationRequest- AConsumerthat will call methods onDescribeWorkerConfigurationRequest.Builderto create a request.- Returns:
- Result of the DescribeWorkerConfiguration operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listConnectors
default ListConnectorsResponse listConnectors(ListConnectorsRequest listConnectorsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
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.
- Parameters:
listConnectorsRequest-- Returns:
- Result of the ListConnectors operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listConnectors
default ListConnectorsResponse listConnectors(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
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.
This is a convenience which creates an instance of the
ListConnectorsRequest.Builderavoiding the need to create one manually viaListConnectorsRequest.builder()- Parameters:
listConnectorsRequest- AConsumerthat will call methods onListConnectorsRequest.Builderto create a request.- Returns:
- Result of the ListConnectors operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listConnectorsPaginator
default ListConnectorsIterable listConnectorsPaginator(ListConnectorsRequest listConnectorsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
This is a variant of
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client.listConnectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client .listConnectorsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client.listConnectorsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)operation.- Parameters:
listConnectorsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listConnectorsPaginator
default ListConnectorsIterable listConnectorsPaginator(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
This is a variant of
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client.listConnectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client .listConnectorsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client.listConnectorsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)operation.
This is a convenience which creates an instance of the
ListConnectorsRequest.Builderavoiding the need to create one manually viaListConnectorsRequest.builder()- Parameters:
listConnectorsRequest- AConsumerthat will call methods onListConnectorsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listCustomPlugins
default ListCustomPluginsResponse listCustomPlugins(ListCustomPluginsRequest listCustomPluginsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Returns a list of all of the custom plugins in this account and Region.
- Parameters:
listCustomPluginsRequest-- Returns:
- Result of the ListCustomPlugins operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listCustomPlugins
default ListCustomPluginsResponse listCustomPlugins(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Returns a list of all of the custom plugins in this account and Region.
This is a convenience which creates an instance of the
ListCustomPluginsRequest.Builderavoiding the need to create one manually viaListCustomPluginsRequest.builder()- Parameters:
listCustomPluginsRequest- AConsumerthat will call methods onListCustomPluginsRequest.Builderto create a request.- Returns:
- Result of the ListCustomPlugins operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listCustomPluginsPaginator
default ListCustomPluginsIterable listCustomPluginsPaginator(ListCustomPluginsRequest listCustomPluginsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
This is a variant of
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client.listCustomPluginsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client .listCustomPluginsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client.listCustomPluginsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)operation.- Parameters:
listCustomPluginsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listCustomPluginsPaginator
default ListCustomPluginsIterable listCustomPluginsPaginator(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
This is a variant of
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client.listCustomPluginsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client .listCustomPluginsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client.listCustomPluginsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)operation.
This is a convenience which creates an instance of the
ListCustomPluginsRequest.Builderavoiding the need to create one manually viaListCustomPluginsRequest.builder()- Parameters:
listCustomPluginsRequest- AConsumerthat will call methods onListCustomPluginsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listWorkerConfigurations
default ListWorkerConfigurationsResponse listWorkerConfigurations(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Returns a list of all of the worker configurations in this account and Region.
- Parameters:
listWorkerConfigurationsRequest-- Returns:
- Result of the ListWorkerConfigurations operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listWorkerConfigurations
default ListWorkerConfigurationsResponse listWorkerConfigurations(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Returns a list of all of the worker configurations in this account and Region.
This is a convenience which creates an instance of the
ListWorkerConfigurationsRequest.Builderavoiding the need to create one manually viaListWorkerConfigurationsRequest.builder()- Parameters:
listWorkerConfigurationsRequest- AConsumerthat will call methods onListWorkerConfigurationsRequest.Builderto create a request.- Returns:
- Result of the ListWorkerConfigurations operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listWorkerConfigurationsPaginator
default ListWorkerConfigurationsIterable listWorkerConfigurationsPaginator(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
This is a variant of
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client.listWorkerConfigurationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client .listWorkerConfigurationsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client.listWorkerConfigurationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)operation.- Parameters:
listWorkerConfigurationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listWorkerConfigurationsPaginator
default ListWorkerConfigurationsIterable listWorkerConfigurationsPaginator(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
This is a variant of
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client.listWorkerConfigurationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client .listWorkerConfigurationsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client.listWorkerConfigurationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)operation.
This is a convenience which creates an instance of the
ListWorkerConfigurationsRequest.Builderavoiding the need to create one manually viaListWorkerConfigurationsRequest.builder()- Parameters:
listWorkerConfigurationsRequest- AConsumerthat will call methods onListWorkerConfigurationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateConnector
default UpdateConnectorResponse updateConnector(UpdateConnectorRequest updateConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Updates the specified connector.
- Parameters:
updateConnectorRequest-- Returns:
- Result of the UpdateConnector operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateConnector
default UpdateConnectorResponse updateConnector(Consumer<UpdateConnectorRequest.Builder> updateConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException
Updates the specified connector.
This is a convenience which creates an instance of the
UpdateConnectorRequest.Builderavoiding the need to create one manually viaUpdateConnectorRequest.builder()- Parameters:
updateConnectorRequest- AConsumerthat will call methods onUpdateConnectorRequest.Builderto create a request.- Returns:
- Result of the UpdateConnector operation returned by the service.
- Throws:
NotFoundException- HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.BadRequestException- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.ForbiddenException- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.ServiceUnavailableException- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.TooManyRequestsException- HTTP Status Code 429: Limit exceeded. Resource limit reached.UnauthorizedException- HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.InternalServerErrorException- HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.KafkaConnectException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static KafkaConnectClient create()
Create aKafkaConnectClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static KafkaConnectClientBuilder builder()
Create a builder that can be used to configure and create aKafkaConnectClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default KafkaConnectServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-