@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_METRIC
ENDPOINT_PREFIX
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
public static AmazonPrometheusClientBuilder builder()
public CreateAlertManagerDefinitionResult createAlertManagerDefinition(CreateAlertManagerDefinitionRequest request)
Create an alert manager definition.
createAlertManagerDefinition
in interface AmazonPrometheus
createAlertManagerDefinitionRequest
- 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 CreateLoggingConfigurationResult createLoggingConfiguration(CreateLoggingConfigurationRequest request)
Create logging configuration.
createLoggingConfiguration
in interface AmazonPrometheus
createLoggingConfigurationRequest
- Represents the input of a CreateLoggingConfiguration operation.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 CreateRuleGroupsNamespaceResult createRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest request)
Create a rule group namespace.
createRuleGroupsNamespace
in interface AmazonPrometheus
createRuleGroupsNamespaceRequest
- 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 AmazonPrometheus
createWorkspaceRequest
- 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 AmazonPrometheus
deleteAlertManagerDefinitionRequest
- 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 DeleteLoggingConfigurationResult deleteLoggingConfiguration(DeleteLoggingConfigurationRequest request)
Delete logging configuration.
deleteLoggingConfiguration
in interface AmazonPrometheus
deleteLoggingConfigurationRequest
- Represents the input of a DeleteLoggingConfiguration operation.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 AmazonPrometheus
deleteRuleGroupsNamespaceRequest
- 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 AmazonPrometheus
deleteWorkspaceRequest
- 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 AmazonPrometheus
describeAlertManagerDefinitionRequest
- 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 DescribeLoggingConfigurationResult describeLoggingConfiguration(DescribeLoggingConfigurationRequest request)
Describes logging configuration.
describeLoggingConfiguration
in interface AmazonPrometheus
describeLoggingConfigurationRequest
- Represents the input of a DescribeLoggingConfiguration operation.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 AmazonPrometheus
describeRuleGroupsNamespaceRequest
- 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 AmazonPrometheus
describeWorkspaceRequest
- 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 AmazonPrometheus
listRuleGroupsNamespacesRequest
- 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 AmazonPrometheus
listTagsForResourceRequest
- 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 AmazonPrometheus
listWorkspacesRequest
- 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 AmazonPrometheus
putAlertManagerDefinitionRequest
- 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 AmazonPrometheus
putRuleGroupsNamespaceRequest
- 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 AmazonPrometheus
tagResourceRequest
- 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 AmazonPrometheus
untagResourceRequest
- 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 UpdateLoggingConfigurationResult updateLoggingConfiguration(UpdateLoggingConfigurationRequest request)
Update logging configuration.
updateLoggingConfiguration
in interface AmazonPrometheus
updateLoggingConfigurationRequest
- Represents the input of an UpdateLoggingConfiguration operation.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 UpdateWorkspaceAliasResult updateWorkspaceAlias(UpdateWorkspaceAliasRequest request)
Updates an AMP workspace alias.
updateWorkspaceAlias
in interface AmazonPrometheus
updateWorkspaceAliasRequest
- 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 AmazonPrometheus
request
- The originally executed requestpublic AmazonPrometheusWaiters waiters()
waiters
in interface AmazonPrometheus
public void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonPrometheus
shutdown
in class AmazonWebServiceClient