@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
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.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Lists the tags you have assigned to the resource.
|
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.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Creates tags for the specified resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Deletes tags from the specified resource.
|
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, withTimeOffset
public static AmazonPrometheusClientBuilder builder()
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 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.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 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 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 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 void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonPrometheus
shutdown
in class AmazonWebServiceClient