@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSKafkaClient extends AmazonWebServiceClient implements AWSKafka
The operations for managing an Amazon MSK cluster.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSKafkaClientBuilder |
builder() |
CreateClusterResult |
createCluster(CreateClusterRequest request)
Creates a new MSK cluster.
|
CreateConfigurationResult |
createConfiguration(CreateConfigurationRequest request)
Creates a new MSK configuration.
|
DeleteClusterResult |
deleteCluster(DeleteClusterRequest request)
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
|
DescribeClusterResult |
describeCluster(DescribeClusterRequest request)
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
|
DescribeClusterOperationResult |
describeClusterOperation(DescribeClusterOperationRequest request)
Returns a description of the cluster operation specified by the ARN.
|
DescribeConfigurationResult |
describeConfiguration(DescribeConfigurationRequest request)
Returns a description of this MSK configuration.
|
DescribeConfigurationRevisionResult |
describeConfigurationRevision(DescribeConfigurationRevisionRequest request)
Returns a description of this revision of the configuration.
|
GetBootstrapBrokersResult |
getBootstrapBrokers(GetBootstrapBrokersRequest request)
A list of brokers that a client application can use to bootstrap.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetCompatibleKafkaVersionsResult |
getCompatibleKafkaVersions(GetCompatibleKafkaVersionsRequest request)
Gets the Apache Kafka versions to which you can update the MSK cluster.
|
ListClusterOperationsResult |
listClusterOperations(ListClusterOperationsRequest request)
Returns a list of all the operations that have been performed on the specified MSK cluster.
|
ListClustersResult |
listClusters(ListClustersRequest request)
Returns a list of all the MSK clusters in the current Region.
|
ListConfigurationRevisionsResult |
listConfigurationRevisions(ListConfigurationRevisionsRequest request)
Returns a list of all the MSK configurations in this Region.
|
ListConfigurationsResult |
listConfigurations(ListConfigurationsRequest request)
Returns a list of all the MSK configurations in this Region.
|
ListKafkaVersionsResult |
listKafkaVersions(ListKafkaVersionsRequest request)
Returns a list of Kafka versions.
|
ListNodesResult |
listNodes(ListNodesRequest request)
Returns a list of the broker nodes in the cluster.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Returns a list of the tags associated with the specified resource.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Adds tags to the specified MSK resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes the tags associated with the keys that are provided in the query.
|
UpdateBrokerCountResult |
updateBrokerCount(UpdateBrokerCountRequest request)
Updates the number of broker nodes in the cluster.
|
UpdateBrokerStorageResult |
updateBrokerStorage(UpdateBrokerStorageRequest request)
Updates the EBS storage associated with MSK brokers.
|
UpdateClusterConfigurationResult |
updateClusterConfiguration(UpdateClusterConfigurationRequest request)
Updates the cluster with the configuration that is specified in the request body.
|
UpdateClusterKafkaVersionResult |
updateClusterKafkaVersion(UpdateClusterKafkaVersionRequest request)
Updates the Apache Kafka version for the cluster.
|
UpdateMonitoringResult |
updateMonitoring(UpdateMonitoringRequest request)
Updates the monitoring settings for the cluster.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSKafkaClientBuilder builder()
public CreateClusterResult createCluster(CreateClusterRequest request)
Creates a new MSK cluster.
createCluster
in interface AWSKafka
createClusterRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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 response
TooManyRequestsException
- 429 response
ConflictException
- This cluster name already exists. Retry your request using another name.
public CreateConfigurationResult createConfiguration(CreateConfigurationRequest request)
Creates a new MSK configuration.
createConfiguration
in interface AWSKafka
createConfigurationRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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 response
TooManyRequestsException
- 429 response
ConflictException
- This cluster name already exists. Retry your request using another name.
public DeleteClusterResult deleteCluster(DeleteClusterRequest request)
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
deleteCluster
in interface AWSKafka
deleteClusterRequest
- NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public DescribeClusterResult describeCluster(DescribeClusterRequest request)
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
describeCluster
in interface AWSKafka
describeClusterRequest
- NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public DescribeClusterOperationResult describeClusterOperation(DescribeClusterOperationRequest request)
Returns a description of the cluster operation specified by the ARN.
describeClusterOperation
in interface AWSKafka
describeClusterOperationRequest
- NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public DescribeConfigurationResult describeConfiguration(DescribeConfigurationRequest request)
Returns a description of this MSK configuration.
describeConfiguration
in interface AWSKafka
describeConfigurationRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
ServiceUnavailableException
- 503 response
public DescribeConfigurationRevisionResult describeConfigurationRevision(DescribeConfigurationRevisionRequest request)
Returns a description of this revision of the configuration.
describeConfigurationRevision
in interface AWSKafka
describeConfigurationRevisionRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
ServiceUnavailableException
- 503 response
public GetBootstrapBrokersResult getBootstrapBrokers(GetBootstrapBrokersRequest request)
A list of brokers that a client application can use to bootstrap.
getBootstrapBrokers
in interface AWSKafka
getBootstrapBrokersRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public GetCompatibleKafkaVersionsResult getCompatibleKafkaVersions(GetCompatibleKafkaVersionsRequest request)
Gets the Apache Kafka versions to which you can update the MSK cluster.
getCompatibleKafkaVersions
in interface AWSKafka
getCompatibleKafkaVersionsRequest
- BadRequestException
- n
The request isn't valid because the input is incorrect. Correct your input and then submit it again.
nUnauthorizedException
- n
The request is not authorized. The provided credentials couldn't be validated.
nInternalServerErrorException
- n
There was an unexpected internal server error. Retrying your request might resolve the issue.
nForbiddenException
- n
Access forbidden. Check your credentials and then retry your request.
nNotFoundException
- n
The resource could not be found due to incorrect input. Correct the input, then retry the request.
nServiceUnavailableException
- n
503 response
nTooManyRequestsException
- n
429 response
npublic ListClusterOperationsResult listClusterOperations(ListClusterOperationsRequest request)
Returns a list of all the operations that have been performed on the specified MSK cluster.
listClusterOperations
in interface AWSKafka
listClusterOperationsRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public ListClustersResult listClusters(ListClustersRequest request)
Returns a list of all the MSK clusters in the current Region.
listClusters
in interface AWSKafka
listClustersRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public ListConfigurationRevisionsResult listConfigurationRevisions(ListConfigurationRevisionsRequest request)
Returns a list of all the MSK configurations in this Region.
listConfigurationRevisions
in interface AWSKafka
listConfigurationRevisionsRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
ServiceUnavailableException
- 503 response
public ListConfigurationsResult listConfigurations(ListConfigurationsRequest request)
Returns a list of all the MSK configurations in this Region.
listConfigurations
in interface AWSKafka
listConfigurationsRequest
- ServiceUnavailableException
- 503 response
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public ListKafkaVersionsResult listKafkaVersions(ListKafkaVersionsRequest request)
Returns a list of Kafka versions.
listKafkaVersions
in interface AWSKafka
listKafkaVersionsRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public ListNodesResult listNodes(ListNodesRequest request)
Returns a list of the broker nodes in the cluster.
listNodes
in interface AWSKafka
listNodesRequest
- NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Returns a list of the tags associated with the specified resource.
listTagsForResource
in interface AWSKafka
listTagsForResourceRequest
- NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
InternalServerErrorException
- There was an unexpected internal server error. Retrying your request might resolve the issue.
public TagResourceResult tagResource(TagResourceRequest request)
Adds tags to the specified MSK resource.
tagResource
in interface AWSKafka
tagResourceRequest
- NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
InternalServerErrorException
- There was an unexpected internal server error. Retrying your request might resolve the issue.
public UntagResourceResult untagResource(UntagResourceRequest request)
Removes the tags associated with the keys that are provided in the query.
untagResource
in interface AWSKafka
untagResourceRequest
- NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
InternalServerErrorException
- There was an unexpected internal server error. Retrying your request might resolve the issue.
public UpdateBrokerCountResult updateBrokerCount(UpdateBrokerCountRequest request)
Updates the number of broker nodes in the cluster.
updateBrokerCount
in interface AWSKafka
updateBrokerCountRequest
- ServiceUnavailableException
- 503 response
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public UpdateBrokerStorageResult updateBrokerStorage(UpdateBrokerStorageRequest request)
Updates the EBS storage associated with MSK brokers.
updateBrokerStorage
in interface AWSKafka
updateBrokerStorageRequest
- ServiceUnavailableException
- 503 response
BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
public UpdateClusterConfigurationResult updateClusterConfiguration(UpdateClusterConfigurationRequest request)
Updates the cluster with the configuration that is specified in the request body.
updateClusterConfiguration
in interface AWSKafka
updateClusterConfigurationRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
ServiceUnavailableException
- 503 response
public UpdateClusterKafkaVersionResult updateClusterKafkaVersion(UpdateClusterKafkaVersionRequest request)
Updates the Apache Kafka version for the cluster.
updateClusterKafkaVersion
in interface AWSKafka
updateClusterKafkaVersionRequest
- BadRequestException
- The request isn't valid because the input is incorrect. Correct your input and then submit it again.
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.
NotFoundException
- The resource could not be found due to incorrect input. Correct the input, then retry the request.
ServiceUnavailableException
- 503 response
TooManyRequestsException
- 429 response
public UpdateMonitoringResult updateMonitoring(UpdateMonitoringRequest request)
Updates the monitoring settings for the cluster. You can use this operation to specify which Apache Kafka metrics you want Amazon MSK to send to Amazon CloudWatch. You can also specify settings for open monitoring with Prometheus.
updateMonitoring
in interface AWSKafka
updateMonitoringRequest
- Request body for UpdateMonitoring.ServiceUnavailableException
- HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.
BadRequestException
- HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
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.
ForbiddenException
- HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSKafka
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.