@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_METRIC
ENDPOINT_PREFIX
builder, createAlertManagerDefinition, createLoggingConfiguration, createRuleGroupsNamespace, createWorkspace, deleteAlertManagerDefinition, deleteLoggingConfiguration, deleteRuleGroupsNamespace, deleteWorkspace, describeAlertManagerDefinition, describeLoggingConfiguration, describeRuleGroupsNamespace, describeWorkspace, getCachedResponseMetadata, listRuleGroupsNamespaces, listTagsForResource, listWorkspaces, putAlertManagerDefinition, putRuleGroupsNamespace, tagResource, untagResource, updateLoggingConfiguration, updateWorkspaceAlias, waiters
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAlertManagerDefinition, createLoggingConfiguration, createRuleGroupsNamespace, createWorkspace, deleteAlertManagerDefinition, deleteLoggingConfiguration, deleteRuleGroupsNamespace, deleteWorkspace, describeAlertManagerDefinition, describeLoggingConfiguration, describeRuleGroupsNamespace, describeWorkspace, getCachedResponseMetadata, listRuleGroupsNamespaces, listTagsForResource, listWorkspaces, putAlertManagerDefinition, putRuleGroupsNamespace, tagResource, untagResource, updateLoggingConfiguration, updateWorkspaceAlias, waiters
public static AmazonPrometheusAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateAlertManagerDefinitionResult> createAlertManagerDefinitionAsync(CreateAlertManagerDefinitionRequest request)
AmazonPrometheusAsync
Create an alert manager definition.
createAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateAlertManagerDefinition operation.public Future<CreateAlertManagerDefinitionResult> createAlertManagerDefinitionAsync(CreateAlertManagerDefinitionRequest request, AsyncHandler<CreateAlertManagerDefinitionRequest,CreateAlertManagerDefinitionResult> asyncHandler)
AmazonPrometheusAsync
Create an alert manager definition.
createAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateAlertManagerDefinition 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<CreateLoggingConfigurationResult> createLoggingConfigurationAsync(CreateLoggingConfigurationRequest request)
AmazonPrometheusAsync
Create logging configuration.
createLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateLoggingConfiguration operation.public Future<CreateLoggingConfigurationResult> createLoggingConfigurationAsync(CreateLoggingConfigurationRequest request, AsyncHandler<CreateLoggingConfigurationRequest,CreateLoggingConfigurationResult> asyncHandler)
AmazonPrometheusAsync
Create logging configuration.
createLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateLoggingConfiguration 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<CreateRuleGroupsNamespaceResult> createRuleGroupsNamespaceAsync(CreateRuleGroupsNamespaceRequest request)
AmazonPrometheusAsync
Create a rule group namespace.
createRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateRuleGroupsNamespace operation.public Future<CreateRuleGroupsNamespaceResult> createRuleGroupsNamespaceAsync(CreateRuleGroupsNamespaceRequest request, AsyncHandler<CreateRuleGroupsNamespaceRequest,CreateRuleGroupsNamespaceResult> asyncHandler)
AmazonPrometheusAsync
Create a rule group namespace.
createRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateRuleGroupsNamespace 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<CreateWorkspaceResult> createWorkspaceAsync(CreateWorkspaceRequest request)
AmazonPrometheusAsync
Creates a new AMP workspace.
createWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateWorkspace operation.public Future<CreateWorkspaceResult> createWorkspaceAsync(CreateWorkspaceRequest request, AsyncHandler<CreateWorkspaceRequest,CreateWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Creates a new AMP workspace.
createWorkspaceAsync
in interface AmazonPrometheusAsync
request
- 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<DeleteAlertManagerDefinitionResult> deleteAlertManagerDefinitionAsync(DeleteAlertManagerDefinitionRequest request)
AmazonPrometheusAsync
Deletes an alert manager definition.
deleteAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteAlertManagerDefinition operation.public Future<DeleteAlertManagerDefinitionResult> deleteAlertManagerDefinitionAsync(DeleteAlertManagerDefinitionRequest request, AsyncHandler<DeleteAlertManagerDefinitionRequest,DeleteAlertManagerDefinitionResult> asyncHandler)
AmazonPrometheusAsync
Deletes an alert manager definition.
deleteAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteAlertManagerDefinition 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<DeleteLoggingConfigurationResult> deleteLoggingConfigurationAsync(DeleteLoggingConfigurationRequest request)
AmazonPrometheusAsync
Delete logging configuration.
deleteLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteLoggingConfiguration operation.public Future<DeleteLoggingConfigurationResult> deleteLoggingConfigurationAsync(DeleteLoggingConfigurationRequest request, AsyncHandler<DeleteLoggingConfigurationRequest,DeleteLoggingConfigurationResult> asyncHandler)
AmazonPrometheusAsync
Delete logging configuration.
deleteLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteLoggingConfiguration 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<DeleteRuleGroupsNamespaceResult> deleteRuleGroupsNamespaceAsync(DeleteRuleGroupsNamespaceRequest request)
AmazonPrometheusAsync
Delete a rule groups namespace.
deleteRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteRuleGroupsNamespace operation.public Future<DeleteRuleGroupsNamespaceResult> deleteRuleGroupsNamespaceAsync(DeleteRuleGroupsNamespaceRequest request, AsyncHandler<DeleteRuleGroupsNamespaceRequest,DeleteRuleGroupsNamespaceResult> asyncHandler)
AmazonPrometheusAsync
Delete a rule groups namespace.
deleteRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteRuleGroupsNamespace 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)
AmazonPrometheusAsync
Deletes an AMP workspace.
deleteWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteWorkspace operation.public Future<DeleteWorkspaceResult> deleteWorkspaceAsync(DeleteWorkspaceRequest request, AsyncHandler<DeleteWorkspaceRequest,DeleteWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Deletes an AMP workspace.
deleteWorkspaceAsync
in interface AmazonPrometheusAsync
request
- 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<DescribeAlertManagerDefinitionResult> describeAlertManagerDefinitionAsync(DescribeAlertManagerDefinitionRequest request)
AmazonPrometheusAsync
Describes an alert manager definition.
describeAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeAlertManagerDefinition operation.public Future<DescribeAlertManagerDefinitionResult> describeAlertManagerDefinitionAsync(DescribeAlertManagerDefinitionRequest request, AsyncHandler<DescribeAlertManagerDefinitionRequest,DescribeAlertManagerDefinitionResult> asyncHandler)
AmazonPrometheusAsync
Describes an alert manager definition.
describeAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeAlertManagerDefinition 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<DescribeLoggingConfigurationResult> describeLoggingConfigurationAsync(DescribeLoggingConfigurationRequest request)
AmazonPrometheusAsync
Describes logging configuration.
describeLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeLoggingConfiguration operation.public Future<DescribeLoggingConfigurationResult> describeLoggingConfigurationAsync(DescribeLoggingConfigurationRequest request, AsyncHandler<DescribeLoggingConfigurationRequest,DescribeLoggingConfigurationResult> asyncHandler)
AmazonPrometheusAsync
Describes logging configuration.
describeLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeLoggingConfiguration 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<DescribeRuleGroupsNamespaceResult> describeRuleGroupsNamespaceAsync(DescribeRuleGroupsNamespaceRequest request)
AmazonPrometheusAsync
Describe a rule groups namespace.
describeRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeRuleGroupsNamespace operation.public Future<DescribeRuleGroupsNamespaceResult> describeRuleGroupsNamespaceAsync(DescribeRuleGroupsNamespaceRequest request, AsyncHandler<DescribeRuleGroupsNamespaceRequest,DescribeRuleGroupsNamespaceResult> asyncHandler)
AmazonPrometheusAsync
Describe a rule groups namespace.
describeRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeRuleGroupsNamespace 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)
AmazonPrometheusAsync
Describes an existing AMP workspace.
describeWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeWorkspace operation.public Future<DescribeWorkspaceResult> describeWorkspaceAsync(DescribeWorkspaceRequest request, AsyncHandler<DescribeWorkspaceRequest,DescribeWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Describes an existing AMP workspace.
describeWorkspaceAsync
in interface AmazonPrometheusAsync
request
- 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<ListRuleGroupsNamespacesResult> listRuleGroupsNamespacesAsync(ListRuleGroupsNamespacesRequest request)
AmazonPrometheusAsync
Lists rule groups namespaces.
listRuleGroupsNamespacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListRuleGroupsNamespaces operation.public Future<ListRuleGroupsNamespacesResult> listRuleGroupsNamespacesAsync(ListRuleGroupsNamespacesRequest request, AsyncHandler<ListRuleGroupsNamespacesRequest,ListRuleGroupsNamespacesResult> asyncHandler)
AmazonPrometheusAsync
Lists rule groups namespaces.
listRuleGroupsNamespacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListRuleGroupsNamespaces 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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonPrometheusAsync
Lists the tags you have assigned to the resource.
listTagsForResourceAsync
in interface AmazonPrometheusAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonPrometheusAsync
Lists the tags you have assigned to the resource.
listTagsForResourceAsync
in interface AmazonPrometheusAsync
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)
AmazonPrometheusAsync
Lists all AMP workspaces, including workspaces being created or deleted.
listWorkspacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListWorkspaces operation.public Future<ListWorkspacesResult> listWorkspacesAsync(ListWorkspacesRequest request, AsyncHandler<ListWorkspacesRequest,ListWorkspacesResult> asyncHandler)
AmazonPrometheusAsync
Lists all AMP workspaces, including workspaces being created or deleted.
listWorkspacesAsync
in interface AmazonPrometheusAsync
request
- 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<PutAlertManagerDefinitionResult> putAlertManagerDefinitionAsync(PutAlertManagerDefinitionRequest request)
AmazonPrometheusAsync
Update an alert manager definition.
putAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a PutAlertManagerDefinition operation.public Future<PutAlertManagerDefinitionResult> putAlertManagerDefinitionAsync(PutAlertManagerDefinitionRequest request, AsyncHandler<PutAlertManagerDefinitionRequest,PutAlertManagerDefinitionResult> asyncHandler)
AmazonPrometheusAsync
Update an alert manager definition.
putAlertManagerDefinitionAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a PutAlertManagerDefinition 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<PutRuleGroupsNamespaceResult> putRuleGroupsNamespaceAsync(PutRuleGroupsNamespaceRequest request)
AmazonPrometheusAsync
Update a rule groups namespace.
putRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a PutRuleGroupsNamespace operation.public Future<PutRuleGroupsNamespaceResult> putRuleGroupsNamespaceAsync(PutRuleGroupsNamespaceRequest request, AsyncHandler<PutRuleGroupsNamespaceRequest,PutRuleGroupsNamespaceResult> asyncHandler)
AmazonPrometheusAsync
Update a rule groups namespace.
putRuleGroupsNamespaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a PutRuleGroupsNamespace 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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonPrometheusAsync
Creates tags for the specified resource.
tagResourceAsync
in interface AmazonPrometheusAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonPrometheusAsync
Creates tags for the specified resource.
tagResourceAsync
in interface AmazonPrometheusAsync
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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonPrometheusAsync
Deletes tags from the specified resource.
untagResourceAsync
in interface AmazonPrometheusAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonPrometheusAsync
Deletes tags from the specified resource.
untagResourceAsync
in interface AmazonPrometheusAsync
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<UpdateLoggingConfigurationResult> updateLoggingConfigurationAsync(UpdateLoggingConfigurationRequest request)
AmazonPrometheusAsync
Update logging configuration.
updateLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateLoggingConfiguration operation.public Future<UpdateLoggingConfigurationResult> updateLoggingConfigurationAsync(UpdateLoggingConfigurationRequest request, AsyncHandler<UpdateLoggingConfigurationRequest,UpdateLoggingConfigurationResult> asyncHandler)
AmazonPrometheusAsync
Update logging configuration.
updateLoggingConfigurationAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateLoggingConfiguration 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)
AmazonPrometheusAsync
Updates an AMP workspace alias.
updateWorkspaceAliasAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateWorkspaceAlias operation.public Future<UpdateWorkspaceAliasResult> updateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest request, AsyncHandler<UpdateWorkspaceAliasRequest,UpdateWorkspaceAliasResult> asyncHandler)
AmazonPrometheusAsync
Updates an AMP workspace alias.
updateWorkspaceAliasAsync
in interface AmazonPrometheusAsync
request
- 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 AmazonPrometheus
shutdown
in class AmazonPrometheusClient