AWS.TrustedAdvisor — AWS SDK for JavaScript (original) (raw)

We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

TrustedAdvisor Public API

Sending a Request Using TrustedAdvisor

var trustedadvisor = new AWS.TrustedAdvisor();
trustedadvisor.batchUpdateRecommendationResourceExclusion(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 TrustedAdvisor object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var trustedadvisor = new AWS.TrustedAdvisor({apiVersion: '2022-09-15'});

You can also set the API version globally in AWS.config.apiVersions using the trustedadvisor service identifier:

AWS.config.apiVersions = {
  trustedadvisor: '2022-09-15',
  // other service API versions
};

var trustedadvisor = new AWS.TrustedAdvisor();

Constructor Summarycollapse

Property Summarycollapse

Properties inherited from AWS.Service

apiVersions

Method Summarycollapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.TrustedAdvisor(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Property Details

endpointAWS.Endpoint

Returns an Endpoint object representing the endpoint URL for service requests.

Method Details

batchUpdateRecommendationResourceExclusion(params = {}, callback) ⇒ AWS.Request

Update one or more exclusion status for a list of recommendation resources

getOrganizationRecommendation(params = {}, callback) ⇒ AWS.Request

Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations.

getRecommendation(params = {}, callback) ⇒ AWS.Request

Get a specific Recommendation

listChecks(params = {}, callback) ⇒ AWS.Request

List a filterable set of Checks

listOrganizationRecommendationAccounts(params = {}, callback) ⇒ AWS.Request

Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.

listOrganizationRecommendationResources(params = {}, callback) ⇒ AWS.Request

List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.

listOrganizationRecommendations(params = {}, callback) ⇒ AWS.Request

List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.

listRecommendationResources(params = {}, callback) ⇒ AWS.Request

List Resources of a Recommendation

listRecommendations(params = {}, callback) ⇒ AWS.Request

List a filterable set of Recommendations

updateOrganizationRecommendationLifecycle(params = {}, callback) ⇒ AWS.Request

Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations.

updateRecommendationLifecycle(params = {}, callback) ⇒ AWS.Request

Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.