@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonPrometheusClient extends AmazonWebServiceClient implements AmazonPrometheus
Amazon Managed Service for Prometheus
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description | 
|---|---|
| static AmazonPrometheusClientBuilder | builder() | 
| CreateWorkspaceResult | createWorkspace(CreateWorkspaceRequest request)
 Creates a new AMP workspace. | 
| DeleteWorkspaceResult | deleteWorkspace(DeleteWorkspaceRequest request)
 Deletes an AMP workspace. | 
| DescribeWorkspaceResult | describeWorkspace(DescribeWorkspaceRequest request)
 Describes an existing AMP workspace. | 
| 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. | 
| ListWorkspacesResult | listWorkspaces(ListWorkspacesRequest request)
 Lists all AMP workspaces, including workspaces being created or deleted. | 
| void | shutdown()Shuts down this client object, releasing any resources that might be held
 open. | 
| UpdateWorkspaceAliasResult | updateWorkspaceAlias(UpdateWorkspaceAliasRequest request)
 Updates an AMP workspace alias. | 
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetpublic static AmazonPrometheusClientBuilder builder()
public CreateWorkspaceResult createWorkspace(CreateWorkspaceRequest request)
Creates a new AMP workspace.
createWorkspace in interface AmazonPrometheuscreateWorkspaceRequest - Represents the input of a CreateWorkspace operation.ThrottlingException - Request was denied due to request throttling.ConflictException - Updating or deleting a resource can cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an AWS service.AccessDeniedException - User does not have sufficient access to perform this action.InternalServerException - Unexpected error during processing of request.ServiceQuotaExceededException - Request would cause a service quota to be exceeded.public DeleteWorkspaceResult deleteWorkspace(DeleteWorkspaceRequest request)
Deletes an AMP workspace.
deleteWorkspace in interface AmazonPrometheusdeleteWorkspaceRequest - Represents the input of a DeleteWorkspace operation.ThrottlingException - Request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an AWS service.ResourceNotFoundException - Request references a resource which does not exist.AccessDeniedException - User does not have sufficient access to perform this action.InternalServerException - Unexpected error during processing of request.public DescribeWorkspaceResult describeWorkspace(DescribeWorkspaceRequest request)
Describes an existing AMP workspace.
describeWorkspace in interface AmazonPrometheusdescribeWorkspaceRequest - Represents the input of a DescribeWorkspace operation.ThrottlingException - Request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an AWS service.ResourceNotFoundException - Request references a resource which does not exist.AccessDeniedException - User does not have sufficient access to perform this action.InternalServerException - Unexpected error during processing of request.public ListWorkspacesResult listWorkspaces(ListWorkspacesRequest request)
Lists all AMP workspaces, including workspaces being created or deleted.
listWorkspaces in interface AmazonPrometheuslistWorkspacesRequest - Represents the input of a ListWorkspaces operation.ThrottlingException - Request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by an AWS service.AccessDeniedException - User does not have sufficient access to perform this action.InternalServerException - Unexpected error during processing of request.public UpdateWorkspaceAliasResult updateWorkspaceAlias(UpdateWorkspaceAliasRequest request)
Updates an AMP workspace alias.
updateWorkspaceAlias in interface AmazonPrometheusupdateWorkspaceAliasRequest - Represents the input of an UpdateWorkspaceAlias operation.ThrottlingException - Request was denied due to request throttling.ConflictException - Updating or deleting a resource can cause an inconsistent state.ValidationException - The input fails to satisfy the constraints specified by an AWS service.ResourceNotFoundException - Request references a resource which does not exist.AccessDeniedException - User does not have sufficient access to perform this action.InternalServerException - Unexpected error during processing of request.ServiceQuotaExceededException - Request would cause a service quota to be exceeded.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 AmazonPrometheusrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AmazonPrometheusshutdown in class AmazonWebServiceClient