Class: AWS.CloudControl
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.CloudControl
- Identifier:
- cloudcontrol
- API Version:
- 2021-09-30
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Use Amazon Web Services Cloud Control API to create, read, update, delete, and list (CRUD-L) your cloud resources that belong to a wide range of services--both Amazon Web Services and third-party. With the Cloud Control API standardized set of application programming interfaces (APIs), you can perform CRUD-L operations on any supported resources in your Amazon Web Services account. Using Cloud Control API, you won't have to generate code or scripts specific to each individual service responsible for those resources.
For more information about Amazon Web Services Cloud Control API, see the Amazon Web Services Cloud Control API User Guide.
Sending a Request Using CloudControl
var cloudcontrol = new AWS.CloudControl();
cloudcontrol.cancelResourceRequest(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 CloudControl object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var cloudcontrol = new AWS.CloudControl({apiVersion: '2021-09-30'});
You can also set the API version globally in AWS.config.apiVersions
using
the cloudcontrol service identifier:
AWS.config.apiVersions = {
cloudcontrol: '2021-09-30',
// other service API versions
};
var cloudcontrol = new AWS.CloudControl();
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
Constructor Summary collapse
-
new AWS.CloudControl(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
cancelResourceRequest(params = {}, callback) ⇒ AWS.Request
Cancels the specified resource operation request.
-
createResource(params = {}, callback) ⇒ AWS.Request
Creates the specified resource.
-
deleteResource(params = {}, callback) ⇒ AWS.Request
Deletes the specified resource.
-
getResource(params = {}, callback) ⇒ AWS.Request
Returns information about the current state of the specified resource.
-
getResourceRequestStatus(params = {}, callback) ⇒ AWS.Request
Returns the current status of a resource operation request.
-
listResourceRequests(params = {}, callback) ⇒ AWS.Request
Returns existing resource operation requests.
-
listResources(params = {}, callback) ⇒ AWS.Request
Returns information about the specified resources.
-
updateResource(params = {}, callback) ⇒ AWS.Request
Updates the specified property values in the resource.
You specify your resource property updates as a list of patch operations contained in a JSON patch document that adheres to the RFC 6902 - JavaScript Object Notation (JSON) Patch standard.
For details on how Cloud Control API performs resource update operations, see Updating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource update request, you can monitor the progress of your request by calling GetResourceRequestStatus using the
RequestToken
of theProgressEvent
returned byUpdateResource
.For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference in the Amazon Web Services CloudFormation Users Guide.
. -
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given CloudControl resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.CloudControl(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
cancelResourceRequest(params = {}, callback) ⇒ AWS.Request
Cancels the specified resource operation request. For more information, see Canceling resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Only resource operations requests with a status of PENDING
or IN_PROGRESS
can be cancelled.
createResource(params = {}, callback) ⇒ AWS.Request
Creates the specified resource. For more information, see Creating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource creation request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken
of the ProgressEvent
type returned by CreateResource
.
deleteResource(params = {}, callback) ⇒ AWS.Request
Deletes the specified resource. For details, see Deleting a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource deletion request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken
of the ProgressEvent
returned by DeleteResource
.
getResource(params = {}, callback) ⇒ AWS.Request
Returns information about the current state of the specified resource. For details, see Reading a resource's current state.
You can use this action to return information about an existing resource in your account and Amazon Web Services Region, whether or not those resources were provisioned using Cloud Control API.
getResourceRequestStatus(params = {}, callback) ⇒ AWS.Request
Returns the current status of a resource operation request. For more information, see Tracking the progress of resource operation requests in the Amazon Web Services Cloud Control API User Guide.
listResourceRequests(params = {}, callback) ⇒ AWS.Request
Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests in the Amazon Web Services Cloud Control API User Guide.
listResources(params = {}, callback) ⇒ AWS.Request
Returns information about the specified resources. For more information, see Discovering resources in the Amazon Web Services Cloud Control API User Guide.
You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether or not those resources were provisioned using Cloud Control API.
updateResource(params = {}, callback) ⇒ AWS.Request
Updates the specified property values in the resource.
You specify your resource property updates as a list of patch operations contained in a JSON patch document that adheres to the RFC 6902 - JavaScript Object Notation (JSON) Patch standard.
For details on how Cloud Control API performs resource update operations, see Updating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource update request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken
of the ProgressEvent
returned by UpdateResource
.
For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference in the Amazon Web Services CloudFormation Users Guide.
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given CloudControl resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.
Waiter Resource Details
cloudcontrol.waitFor('resourceRequestSuccess', params = {}, [callback]) ⇒ AWS.Request
Waits for the resourceRequestSuccess
state by periodically calling the underlying
CloudControl.getResourceRequestStatus() operation every 5 seconds
(at most 720 times).