Note: You are viewing the documentation for an older major version of the AWS SDK for JavaScript (v2).
The modular AWS SDK for JavaScript (v3) is now General Available. For more information see the Developer Guide or API Reference.
Class: AWS.Amp
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Amp
- Identifier:
- amp
- API Version:
- 2020-08-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Managed Service for Prometheus
Sending a Request Using Amp
var amp = new AWS.Amp();
amp.createWorkspace(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Amp object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var amp = new AWS.Amp({apiVersion: '2020-08-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the amp service identifier:
AWS.config.apiVersions = {
amp: '2020-08-01',
// other service API versions
};
var amp = new AWS.Amp();
Constructor Summary
-
new AWS.Amp(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
createWorkspace(params = {}, callback) ⇒ AWS.Request
Creates a new AMP workspace.
-
deleteWorkspace(params = {}, callback) ⇒ AWS.Request
Deletes an AMP workspace.
-
describeWorkspace(params = {}, callback) ⇒ AWS.Request
Describes an existing AMP workspace.
-
listWorkspaces(params = {}, callback) ⇒ AWS.Request
Lists all AMP workspaces, including workspaces being created or deleted.
-
updateWorkspaceAlias(params = {}, callback) ⇒ AWS.Request
Updates an AMP workspace alias.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService