@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonPrometheusAsyncClient extends AmazonPrometheusClient implements AmazonPrometheusAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Amazon Managed Service for Prometheus
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, createWorkspace, deleteWorkspace, describeWorkspace, getCachedResponseMetadata, listWorkspaces, updateWorkspaceAliasaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateWorkspace, deleteWorkspace, describeWorkspace, getCachedResponseMetadata, listWorkspaces, updateWorkspaceAliaspublic static AmazonPrometheusAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateWorkspaceResult> createWorkspaceAsync(CreateWorkspaceRequest request)
AmazonPrometheusAsyncCreates a new AMP workspace.
createWorkspaceAsync in interface AmazonPrometheusAsyncrequest - Represents the input of a CreateWorkspace operation.public Future<CreateWorkspaceResult> createWorkspaceAsync(CreateWorkspaceRequest request, AsyncHandler<CreateWorkspaceRequest,CreateWorkspaceResult> asyncHandler)
AmazonPrometheusAsyncCreates a new AMP workspace.
createWorkspaceAsync in interface AmazonPrometheusAsyncrequest - Represents the input of a CreateWorkspace operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteWorkspaceResult> deleteWorkspaceAsync(DeleteWorkspaceRequest request)
AmazonPrometheusAsyncDeletes an AMP workspace.
deleteWorkspaceAsync in interface AmazonPrometheusAsyncrequest - Represents the input of a DeleteWorkspace operation.public Future<DeleteWorkspaceResult> deleteWorkspaceAsync(DeleteWorkspaceRequest request, AsyncHandler<DeleteWorkspaceRequest,DeleteWorkspaceResult> asyncHandler)
AmazonPrometheusAsyncDeletes an AMP workspace.
deleteWorkspaceAsync in interface AmazonPrometheusAsyncrequest - Represents the input of a DeleteWorkspace operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeWorkspaceResult> describeWorkspaceAsync(DescribeWorkspaceRequest request)
AmazonPrometheusAsyncDescribes an existing AMP workspace.
describeWorkspaceAsync in interface AmazonPrometheusAsyncrequest - Represents the input of a DescribeWorkspace operation.public Future<DescribeWorkspaceResult> describeWorkspaceAsync(DescribeWorkspaceRequest request, AsyncHandler<DescribeWorkspaceRequest,DescribeWorkspaceResult> asyncHandler)
AmazonPrometheusAsyncDescribes an existing AMP workspace.
describeWorkspaceAsync in interface AmazonPrometheusAsyncrequest - Represents the input of a DescribeWorkspace operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListWorkspacesResult> listWorkspacesAsync(ListWorkspacesRequest request)
AmazonPrometheusAsyncLists all AMP workspaces, including workspaces being created or deleted.
listWorkspacesAsync in interface AmazonPrometheusAsyncrequest - Represents the input of a ListWorkspaces operation.public Future<ListWorkspacesResult> listWorkspacesAsync(ListWorkspacesRequest request, AsyncHandler<ListWorkspacesRequest,ListWorkspacesResult> asyncHandler)
AmazonPrometheusAsyncLists all AMP workspaces, including workspaces being created or deleted.
listWorkspacesAsync in interface AmazonPrometheusAsyncrequest - Represents the input of a ListWorkspaces operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateWorkspaceAliasResult> updateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest request)
AmazonPrometheusAsyncUpdates an AMP workspace alias.
updateWorkspaceAliasAsync in interface AmazonPrometheusAsyncrequest - Represents the input of an UpdateWorkspaceAlias operation.public Future<UpdateWorkspaceAliasResult> updateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest request, AsyncHandler<UpdateWorkspaceAliasRequest,UpdateWorkspaceAliasResult> asyncHandler)
AmazonPrometheusAsyncUpdates an AMP workspace alias.
updateWorkspaceAliasAsync in interface AmazonPrometheusAsyncrequest - Represents the input of an UpdateWorkspaceAlias operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AmazonPrometheusshutdown in class AmazonPrometheusClient