@Generated(value="software.amazon.awssdk:codegen") public interface KafkaClient extends SdkClient
builder() method.
The operations for managing an Amazon MSK cluster.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static KafkaClientBuilder |
builder()
Create a builder that can be used to configure and create a
KafkaClient. |
static KafkaClient |
create()
Create a
KafkaClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateClusterResponse |
createCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest)
Creates a new MSK cluster.
|
default CreateClusterResponse |
createCluster(CreateClusterRequest createClusterRequest)
Creates a new MSK cluster.
|
default DeleteClusterResponse |
deleteCluster(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest)
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
|
default DeleteClusterResponse |
deleteCluster(DeleteClusterRequest deleteClusterRequest)
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
|
default DescribeClusterResponse |
describeCluster(Consumer<DescribeClusterRequest.Builder> describeClusterRequest)
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
|
default DescribeClusterResponse |
describeCluster(DescribeClusterRequest describeClusterRequest)
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
|
default GetBootstrapBrokersResponse |
getBootstrapBrokers(Consumer<GetBootstrapBrokersRequest.Builder> getBootstrapBrokersRequest)
A list of brokers that a client application can use to bootstrap.
|
default GetBootstrapBrokersResponse |
getBootstrapBrokers(GetBootstrapBrokersRequest getBootstrapBrokersRequest)
A list of brokers that a client application can use to bootstrap.
|
default ListClustersResponse |
listClusters()
Returns a list of clusters in an account.
|
default ListClustersResponse |
listClusters(Consumer<ListClustersRequest.Builder> listClustersRequest)
Returns a list of clusters in an account.
|
default ListClustersResponse |
listClusters(ListClustersRequest listClustersRequest)
Returns a list of clusters in an account.
|
default ListNodesResponse |
listNodes(Consumer<ListNodesRequest.Builder> listNodesRequest)
Returns a list of the broker nodes in the cluster.
|
default ListNodesResponse |
listNodes(ListNodesRequest listNodesRequest)
Returns a list of the broker nodes in the cluster.
|
static ServiceMetadata |
serviceMetadata() |
serviceNameclosestatic final String SERVICE_NAME
static KafkaClient create()
KafkaClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static KafkaClientBuilder builder()
KafkaClient.default CreateClusterResponse createCluster(CreateClusterRequest createClusterRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException
Creates a new MSK cluster.
createClusterRequest - BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.ForbiddenException - Access forbidden. Check your credentials and then retry your request.ServiceUnavailableException - 503 responseTooManyRequestsException - 429 responseConflictException - This cluster name already exists. Retry your request using another name.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateClusterResponse createCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException
Creates a new MSK cluster.
This is a convenience which creates an instance of the CreateClusterRequest.Builder avoiding the need to
create one manually via CreateClusterRequest.builder()
createClusterRequest - A Consumer that will call methods on CreateClusterRequest.Builder to create a request.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.ForbiddenException - Access forbidden. Check your credentials and then retry your request.ServiceUnavailableException - 503 responseTooManyRequestsException - 429 responseConflictException - This cluster name already exists. Retry your request using another name.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteClusterResponse deleteCluster(DeleteClusterRequest deleteClusterRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
deleteClusterRequest - NotFoundException - The resource could not be found due to incorrect input. Correct your request and then retry it.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteClusterResponse deleteCluster(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
This is a convenience which creates an instance of the DeleteClusterRequest.Builder avoiding the need to
create one manually via DeleteClusterRequest.builder()
deleteClusterRequest - A Consumer that will call methods on DeleteClusterRequest.Builder to create a request.NotFoundException - The resource could not be found due to incorrect input. Correct your request and then retry it.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeClusterResponse describeCluster(DescribeClusterRequest describeClusterRequest) throws NotFoundException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
describeClusterRequest - NotFoundException - The resource could not be found due to incorrect input. Correct your request and then retry it.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeClusterResponse describeCluster(Consumer<DescribeClusterRequest.Builder> describeClusterRequest) throws NotFoundException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
This is a convenience which creates an instance of the DescribeClusterRequest.Builder avoiding the need
to create one manually via DescribeClusterRequest.builder()
describeClusterRequest - A Consumer that will call methods on DescribeClusterRequest.Builder to create a request.NotFoundException - The resource could not be found due to incorrect input. Correct your request and then retry it.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetBootstrapBrokersResponse getBootstrapBrokers(GetBootstrapBrokersRequest getBootstrapBrokersRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
A list of brokers that a client application can use to bootstrap.
getBootstrapBrokersRequest - BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.ConflictException - This cluster name already exists. Retry your request using another name.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetBootstrapBrokersResponse getBootstrapBrokers(Consumer<GetBootstrapBrokersRequest.Builder> getBootstrapBrokersRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
A list of brokers that a client application can use to bootstrap.
This is a convenience which creates an instance of the GetBootstrapBrokersRequest.Builder avoiding the
need to create one manually via GetBootstrapBrokersRequest.builder()
getBootstrapBrokersRequest - A Consumer that will call methods on GetBootstrapBrokersRequest.Builder to create a
request.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.ConflictException - This cluster name already exists. Retry your request using another name.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListClustersResponse listClusters() throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Returns a list of clusters in an account.
BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistClusters(ListClustersRequest),
AWS API
Documentationdefault ListClustersResponse listClusters(ListClustersRequest listClustersRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Returns a list of clusters in an account.
listClustersRequest - BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListClustersResponse listClusters(Consumer<ListClustersRequest.Builder> listClustersRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Returns a list of clusters in an account.
This is a convenience which creates an instance of the ListClustersRequest.Builder avoiding the need to
create one manually via ListClustersRequest.builder()
listClustersRequest - A Consumer that will call methods on ListClustersRequest.Builder to create a request.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.UnauthorizedException - The request is not authorized. The provided credentials couldn't be validated.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListNodesResponse listNodes(ListNodesRequest listNodesRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Returns a list of the broker nodes in the cluster.
listNodesRequest - NotFoundException - The resource could not be found due to incorrect input. Correct your request and then retry it.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListNodesResponse listNodes(Consumer<ListNodesRequest.Builder> listNodesRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException
Returns a list of the broker nodes in the cluster.
This is a convenience which creates an instance of the ListNodesRequest.Builder avoiding the need to
create one manually via ListNodesRequest.builder()
listNodesRequest - A Consumer that will call methods on ListNodesRequest.Builder to create a request.NotFoundException - The resource could not be found due to incorrect input. Correct your request and then retry it.BadRequestException - Bad request due to incorrect input. Correct your request and then retry it.InternalServerErrorException - There was an unexpected internal server error. Retrying your request might resolve the issue.ForbiddenException - Access forbidden. Check your credentials and then retry your request.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.KafkaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.