@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_PREFIXaddRequestHandler, 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 CreateAlertManagerDefinitionResult createAlertManagerDefinition(CreateAlertManagerDefinitionRequest request)
Create an alert manager definition.
createAlertManagerDefinition in interface AmazonPrometheuscreateAlertManagerDefinitionRequest - Represents the input of a CreateAlertManagerDefinition 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 CreateRuleGroupsNamespaceResult createRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest request)
Create a rule group namespace.
createRuleGroupsNamespace in interface AmazonPrometheuscreateRuleGroupsNamespaceRequest - Represents the input of a CreateRuleGroupsNamespace 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 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 DeleteAlertManagerDefinitionResult deleteAlertManagerDefinition(DeleteAlertManagerDefinitionRequest request)
Deletes an alert manager definition.
deleteAlertManagerDefinition in interface AmazonPrometheusdeleteAlertManagerDefinitionRequest - Represents the input of a DeleteAlertManagerDefinition 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.public DeleteRuleGroupsNamespaceResult deleteRuleGroupsNamespace(DeleteRuleGroupsNamespaceRequest request)
Delete a rule groups namespace.
deleteRuleGroupsNamespace in interface AmazonPrometheusdeleteRuleGroupsNamespaceRequest - Represents the input of a DeleteRuleGroupsNamespace 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.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.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.public DescribeAlertManagerDefinitionResult describeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest request)
Describes an alert manager definition.
describeAlertManagerDefinition in interface AmazonPrometheusdescribeAlertManagerDefinitionRequest - Represents the input of a DescribeAlertManagerDefinition 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 DescribeRuleGroupsNamespaceResult describeRuleGroupsNamespace(DescribeRuleGroupsNamespaceRequest request)
Describe a rule groups namespace.
describeRuleGroupsNamespace in interface AmazonPrometheusdescribeRuleGroupsNamespaceRequest - Represents the input of a DescribeRuleGroupsNamespace 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 ListRuleGroupsNamespacesResult listRuleGroupsNamespaces(ListRuleGroupsNamespacesRequest request)
Lists rule groups namespaces.
listRuleGroupsNamespaces in interface AmazonPrometheuslistRuleGroupsNamespacesRequest - Represents the input of a ListRuleGroupsNamespaces 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 ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags you have assigned to the resource.
listTagsForResource in interface AmazonPrometheuslistTagsForResourceRequest - 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 PutAlertManagerDefinitionResult putAlertManagerDefinition(PutAlertManagerDefinitionRequest request)
Update an alert manager definition.
putAlertManagerDefinition in interface AmazonPrometheusputAlertManagerDefinitionRequest - Represents the input of a PutAlertManagerDefinition 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 PutRuleGroupsNamespaceResult putRuleGroupsNamespace(PutRuleGroupsNamespaceRequest request)
Update a rule groups namespace.
putRuleGroupsNamespace in interface AmazonPrometheusputRuleGroupsNamespaceRequest - Represents the input of a PutRuleGroupsNamespace 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 TagResourceResult tagResource(TagResourceRequest request)
Creates tags for the specified resource.
tagResource in interface AmazonPrometheustagResourceRequest - 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 UntagResourceResult untagResource(UntagResourceRequest request)
Deletes tags from the specified resource.
untagResource in interface AmazonPrometheusuntagResourceRequest - 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 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 AmazonPrometheusWaiters waiters()
waiters in interface AmazonPrometheuspublic void shutdown()
AmazonWebServiceClientshutdown in interface AmazonPrometheusshutdown in class AmazonWebServiceClient