We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
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.

Class: AWS.Support

Inherits:
AWS.Service show all
Identifier:
support
API Version:
2013-04-15
Defined in:
(unknown)

Overview

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

Service Description

The Amazon Web Services Support API Reference is intended for programmers who need detailed information about the Amazon Web Services Support operations and data types. You can use the API to manage your support cases programmatically. The Amazon Web Services Support API uses HTTP methods that return results in JSON format.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

You can also use the Amazon Web Services Support API to access features for Trusted Advisor. You can return a list of checks and their descriptions, get check results, specify checks to refresh, and get the refresh status of checks.

You can manage your support cases with the following Amazon Web Services Support API operations:

You can also use the Amazon Web Services Support API to call the Trusted Advisor operations. For more information, see Trusted Advisor in the Amazon Web Services Support User Guide.

For authentication of requests, Amazon Web Services Support uses Signature Version 4 Signing Process.

For more information about this service and the endpoints to use, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide.

Sending a Request Using Support

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

var support = new AWS.Support({apiVersion: '2013-04-15'});

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

AWS.config.apiVersions = {
  support: '2013-04-15',
  // other service API versions
};

var support = new AWS.Support();

Version:

  • 2013-04-15

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

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

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

Examples:

Constructing a Support object

var support = new AWS.Support({apiVersion: '2013-04-15'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.Support.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.Support.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Support.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

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

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

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

Adds one or more attachments to an attachment set.

An attachment set is a temporary container for attachments that you add to a case or case communication. The set is available for 1 hour after it's created. The expiryTime returned in the response is when the set expires.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the addAttachmentsToSet operation

var params = {
  attachments: [ /* required */
    {
      data: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */,
      fileName: 'STRING_VALUE'
    },
    /* more items */
  ],
  attachmentSetId: 'STRING_VALUE'
};
support.addAttachmentsToSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • attachmentSetId — (String)

      The ID of the attachment set. If an attachmentSetId is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId is specified, the attachments are added to the specified set, if it exists.

    • attachments — (Array<map>)

      One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.

      In the Attachment object, use the data parameter to specify the contents of the attachment file. In the previous request syntax, the value for data appear as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png.

      • fileName — (String)

        The name of the attachment file.

      • data — (Buffer, Typed Array, Blob, String)

        The content of the attachment file.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • attachmentSetId — (String)

        The ID of the attachment set. If an attachmentSetId was not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId was specified, the attachments are added to the specified set, if it exists.

      • expiryTime — (String)

        The time and date when the attachment set expires.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Adds additional customer communication to an Amazon Web Services Support case. Use the caseId parameter to identify the case to which to add communication. You can list a set of email addresses to copy on the communication by using the ccEmailAddresses parameter. The communicationBody value contains the text of the communication.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the addCommunicationToCase operation

var params = {
  communicationBody: 'STRING_VALUE', /* required */
  attachmentSetId: 'STRING_VALUE',
  caseId: 'STRING_VALUE',
  ccEmailAddresses: [
    'STRING_VALUE',
    /* more items */
  ]
};
support.addCommunicationToCase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • caseId — (String)

      The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

    • communicationBody — (String)

      The body of an email communication to add to the support case.

    • ccEmailAddresses — (Array<String>)

      The email addresses in the CC line of an email to be added to the support case.

    • attachmentSetId — (String)

      The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling AddAttachmentsToSet

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Creates a case in the Amazon Web Services Support Center. This operation is similar to how you create a case in the Amazon Web Services Support Center Create Case page.

The Amazon Web Services Support API doesn't support requesting service limit increases. You can submit a service limit increase in the following ways:

A successful CreateCase request returns an Amazon Web Services Support case number. You can use the DescribeCases operation and specify the case number to get existing Amazon Web Services Support cases. After you create a case, use the AddCommunicationToCase operation to add additional communication or attachments to an existing case.

The caseId is separate from the displayId that appears in the Amazon Web Services Support Center. Use the DescribeCases operation to get the displayId.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the createCase operation

var params = {
  communicationBody: 'STRING_VALUE', /* required */
  subject: 'STRING_VALUE', /* required */
  attachmentSetId: 'STRING_VALUE',
  categoryCode: 'STRING_VALUE',
  ccEmailAddresses: [
    'STRING_VALUE',
    /* more items */
  ],
  issueType: 'STRING_VALUE',
  language: 'STRING_VALUE',
  serviceCode: 'STRING_VALUE',
  severityCode: 'STRING_VALUE'
};
support.createCase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • subject — (String)

      The title of the support case. The title appears in the Subject field on the Amazon Web Services Support Center Create Case page.

    • serviceCode — (String)

      The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible serviceCode values.

    • severityCode — (String)

      A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the DescribeSeverityLevels operation to get the possible values for severityCode.

      For more information, see SeverityLevel and Choosing a Severity in the Amazon Web Services Support User Guide.

      Note: The availability of severity levels depends on the support plan for the Amazon Web Services account.
    • categoryCode — (String)

      The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.

    • communicationBody — (String)

      The communication body text that describes the issue. This text appears in the Description field on the Amazon Web Services Support Center Create Case page.

    • ccEmailAddresses — (Array<String>)

      A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the Amazon Web Services SDKs.

    • language — (String)

      The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the language parameter if you want support in that language.

    • issueType — (String)

      The type of issue for the case. You can specify customer-service or technical. If you don't specify a value, the default is technical.

    • attachmentSetId — (String)

      The ID of a set of one or more attachments for the case. Create the set by using the AddAttachmentsToSet operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • caseId — (String)

        The support case ID requested or returned in the call. The case ID is an alphanumeric string in the following format: case-12345678910-2013-c4c1d2bf33c5cf47

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns the attachment that has the specified ID. Attachments can include screenshots, error logs, or other files that describe your issue. Attachment IDs are generated by the case management system when you add an attachment to a case or case communication. Attachment IDs are returned in the AttachmentDetails objects that are returned by the DescribeCommunications operation.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the describeAttachment operation

var params = {
  attachmentId: 'STRING_VALUE' /* required */
};
support.describeAttachment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • attachmentId — (String)

      The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • attachment — (map)

        This object includes the attachment content and file name.

        In the previous response syntax, the value for the data parameter appears as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png.

        • fileName — (String)

          The name of the attachment file.

        • data — (Buffer, Typed Array, Blob, String)

          The content of the attachment file.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns a list of cases that you specify by passing one or more case IDs. You can use the afterTime and beforeTime parameters to filter the cases by date. You can set values for the includeResolvedCases and includeCommunications parameters to specify how much information to return.

The response returns the following in JSON format:

  • One or more CaseDetails data types.

  • One or more nextToken values, which specify where to paginate the returned records represented by the CaseDetails objects.

Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request might return an error.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the describeCases operation

var params = {
  afterTime: 'STRING_VALUE',
  beforeTime: 'STRING_VALUE',
  caseIdList: [
    'STRING_VALUE',
    /* more items */
  ],
  displayId: 'STRING_VALUE',
  includeCommunications: true || false,
  includeResolvedCases: true || false,
  language: 'STRING_VALUE',
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
support.describeCases(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • caseIdList — (Array<String>)

      A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.

    • displayId — (String)

      The ID displayed for a case in the Amazon Web Services Support Center user interface.

    • afterTime — (String)

      The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

    • beforeTime — (String)

      The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

    • includeResolvedCases — (Boolean)

      Specifies whether to include resolved support cases in the DescribeCases response. By default, resolved cases aren't included.

    • nextToken — (String)

      A resumption point for pagination.

    • maxResults — (Integer)

      The maximum number of results to return before paginating.

    • language — (String)

      The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the language parameter if you want support in that language.

    • includeCommunications — (Boolean)

      Specifies whether to include communications in the DescribeCases response. By default, communications are included.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • cases — (Array<map>)

        The details for the cases that match the request.

        • caseId — (String)

          The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

        • displayId — (String)

          The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string.

        • subject — (String)

          The subject line for the case in the Amazon Web Services Support Center.

        • status — (String)

          The status of the case.

          Valid values:

          • all-open

          • customer-action-completed

          • opened

          • pending-customer-action

          • reopened

          • resolved

          • unassigned

          • work-in-progress

        • serviceCode — (String)

          The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by calling DescribeServices.

        • categoryCode — (String)

          The category of problem for the support case.

        • severityCode — (String)

          The code for the severity level returned by the call to DescribeSeverityLevels.

        • submittedBy — (String)

          The email address of the account that submitted the case.

        • timeCreated — (String)

          The time that the case was created in the Amazon Web Services Support Center.

        • recentCommunications — (map)

          The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any attachments to the communications. Also includes a nextToken that you can use to retrieve earlier communications.

          • communications — (Array<map>)

            The five most recent communications associated with the case.

            • caseId — (String)

              The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

            • body — (String)

              The text of the communication between the customer and Amazon Web Services Support.

            • submittedBy — (String)

              The identity of the account that submitted, or responded to, the support case. Customer entries include the IAM role as well as the email address (for example, "AdminRole (Role) <janedoe@example.com>). Entries from the Amazon Web Services Support team display "Amazon Web Services," and don't show an email address.

            • timeCreated — (String)

              The time the communication was created.

            • attachmentSet — (Array<map>)

              Information about the attachments to the case communication.

              • attachmentId — (String)

                The ID of the attachment.

              • fileName — (String)

                The file name of the attachment.

          • nextToken — (String)

            A resumption point for pagination.

        • ccEmailAddresses — (Array<String>)

          The email addresses that receive copies of communication about the case.

        • language — (String)

          The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the language parameter if you want support in that language.

      • nextToken — (String)

        A resumption point for pagination.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns communications and attachments for one or more support cases. Use the afterTime and beforeTime parameters to filter by date. You can use the caseId parameter to restrict the results to a specific case.

Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request for data might cause an error.

You can use the maxResults and nextToken parameters to control the pagination of the results. Set maxResults to the number of cases that you want to display on each page, and use nextToken to specify the resumption of pagination.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the describeCommunications operation

var params = {
  caseId: 'STRING_VALUE', /* required */
  afterTime: 'STRING_VALUE',
  beforeTime: 'STRING_VALUE',
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
support.describeCommunications(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • caseId — (String)

      The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

    • beforeTime — (String)

      The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

    • afterTime — (String)

      The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

    • nextToken — (String)

      A resumption point for pagination.

    • maxResults — (Integer)

      The maximum number of results to return before paginating.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • communications — (Array<map>)

        The communications for the case.

        • caseId — (String)

          The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

        • body — (String)

          The text of the communication between the customer and Amazon Web Services Support.

        • submittedBy — (String)

          The identity of the account that submitted, or responded to, the support case. Customer entries include the IAM role as well as the email address (for example, "AdminRole (Role) <janedoe@example.com>). Entries from the Amazon Web Services Support team display "Amazon Web Services," and don't show an email address.

        • timeCreated — (String)

          The time the communication was created.

        • attachmentSet — (Array<map>)

          Information about the attachments to the case communication.

          • attachmentId — (String)

            The ID of the attachment.

          • fileName — (String)

            The file name of the attachment.

      • nextToken — (String)

        A resumption point for pagination.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns a list of CreateCaseOption types along with the corresponding supported hours and language availability. You can specify the language categoryCode, issueType and serviceCode used to retrieve the CreateCaseOptions.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the describeCreateCaseOptions operation

var params = {
  categoryCode: 'STRING_VALUE', /* required */
  issueType: 'STRING_VALUE', /* required */
  language: 'STRING_VALUE', /* required */
  serviceCode: 'STRING_VALUE' /* required */
};
support.describeCreateCaseOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • issueType — (String)

      The type of issue for the case. You can specify customer-service or technical. If you don't specify a value, the default is technical.

    • serviceCode — (String)

      The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible serviceCode values.

    • language — (String)

      The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the language parameter if you want support in that language.

    • categoryCode — (String)

      The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • languageAvailability — (String)

        Language availability can be any of the following:

        • available

        • best_effort

        • unavailable

      • communicationTypes — (Array<map>)

        A JSON-formatted array that contains the available communication type options, along with the available support timeframes for the given inputs.

        • type — (String)

          A string value indicating the communication type. At the moment the type value can assume one of 3 values at the moment chat, web and call.

        • supportedHours — (Array<map>)

          A JSON-formatted list containing time ranges when support is available.

          • startTime — (String)

            Start Time. RFC 3339 format 'HH:mm:ss.SSS'.

          • endTime — (String)

            End Time. RFC 3339 format 'HH:mm:ss.SSS'.

        • datesWithoutSupport — (Array<map>)

          A JSON-formatted list containing date and time ranges for periods without support

          • startDateTime — (String)

            A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'.

          • endDateTime — (String)

            End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns the current list of Amazon Web Services services and a list of service categories for each service. You then use service names and categories in your CreateCase requests. Each Amazon Web Services service has its own set of categories.

The service codes and category codes correspond to the values that appear in the Service and Category lists on the Amazon Web Services Support Center Create Case page. The values in those fields don't necessarily match the service codes and categories returned by the DescribeServices operation. Always use the service codes and categories that the DescribeServices operation returns, so that you have the most recent set of service and category codes.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the describeServices operation

var params = {
  language: 'STRING_VALUE',
  serviceCodeList: [
    'STRING_VALUE',
    /* more items */
  ]
};
support.describeServices(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceCodeList — (Array<String>)

      A JSON-formatted list of service codes available for Amazon Web Services services.

    • language — (String)

      The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the language parameter if you want support in that language.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • services — (Array<map>)

        A JSON-formatted list of Amazon Web Services services.

        • code — (String)

          The code for an Amazon Web Services service returned by the DescribeServices response. The name element contains the corresponding friendly name.

        • name — (String)

          The friendly name for an Amazon Web Services service. The code element contains the corresponding code.

        • categories — (Array<map>)

          A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to Amazon Web Services Support when you call CreateCase.

          • code — (String)

            The category code for the support case.

          • name — (String)

            The category name for the support case.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns the list of severity levels that you can assign to a support case. The severity level for a case is also a field in the CaseDetails data type that you include for a CreateCase request.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the describeSeverityLevels operation

var params = {
  language: 'STRING_VALUE'
};
support.describeSeverityLevels(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • language — (String)

      The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the language parameter if you want support in that language.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • severityLevels — (Array<map>)

        The available severity levels for the support case. Available severity levels are defined by your service level agreement with Amazon Web Services.

        • code — (String)

          The code for case severity level.

          Valid values: low | normal | high | urgent | critical

        • name — (String)

          The name of the severity level that corresponds to the severity level code.

          Note: The values returned by the API are different from the values that appear in the Amazon Web Services Support Center. For example, the API uses the code low, but the name appears as General guidance in Support Center. The following are the API code names and how they appear in the console:
          • low - General guidance
          • normal - System impaired
          • high - Production system impaired
          • urgent - Production system down
          • critical - Business-critical system down

          For more information, see Choosing a severity in the Amazon Web Services Support User Guide.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns a list of supported languages for a specified categoryCode, issueType and serviceCode. The returned supported languages will include a ISO 639-1 code for the language, and the language display name.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the describeSupportedLanguages operation

var params = {
  categoryCode: 'STRING_VALUE', /* required */
  issueType: 'STRING_VALUE', /* required */
  serviceCode: 'STRING_VALUE' /* required */
};
support.describeSupportedLanguages(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • issueType — (String)

      The type of issue for the case. You can specify customer-service or technical.

    • serviceCode — (String)

      The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible serviceCode values.

    • categoryCode — (String)

      The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • supportedLanguages — (Array<map>)

        A JSON-formatted array that contains the available ISO 639-1 language codes.

        • code — (String)

          2 digit ISO 639-1 code. e.g. en

        • language — (String)

          Full language description e.g. ENGLISH

        • display — (String)

          Language display value e.g. ENGLISH

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns the refresh status of the Trusted Advisor checks that have the specified check IDs. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

Some checks are refreshed automatically, and you can't return their refresh statuses by using the DescribeTrustedAdvisorCheckRefreshStatuses operation. If you call this operation for these checks, you might see an InvalidParameterValue error.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide.

Examples:

Calling the describeTrustedAdvisorCheckRefreshStatuses operation

var params = {
  checkIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
support.describeTrustedAdvisorCheckRefreshStatuses(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • checkIds — (Array<String>)

      The IDs of the Trusted Advisor checks to get the status.

      Note: If you specify the check ID of a check that is automatically refreshed, you might see an InvalidParameterValue error.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • statuses — (Array<map>)

        The refresh status of the specified Trusted Advisor checks.

        • checkIdrequired — (String)

          The unique identifier for the Trusted Advisor check.

        • statusrequired — (String)

          The status of the Trusted Advisor check for which a refresh has been requested:

          • none - The check is not refreshed or the non-success status exceeds the timeout

          • enqueued - The check refresh requests has entered the refresh queue

          • processing - The check refresh request is picked up by the rule processing engine

          • success - The check is successfully refreshed

          • abandoned - The check refresh has failed

        • millisUntilNextRefreshablerequired — (Integer)

          The amount of time, in milliseconds, until the Trusted Advisor check is eligible for refresh.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns the results of the Trusted Advisor check that has the specified check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

The response contains a TrustedAdvisorCheckResult object, which contains these three objects:

In addition, the response contains these fields:

  • status - The alert status of the check can be ok (green), warning (yellow), error (red), or not_available.

  • timestamp - The time of the last refresh of the check.

  • checkId - The unique identifier for the check.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide.

Examples:

Calling the describeTrustedAdvisorCheckResult operation

var params = {
  checkId: 'STRING_VALUE', /* required */
  language: 'STRING_VALUE'
};
support.describeTrustedAdvisorCheckResult(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • checkId — (String)

      The unique identifier for the Trusted Advisor check.

    • language — (String)

      The ISO 639-1 code for the language that you want your check results to appear in.

      The Amazon Web Services Support API currently supports the following languages for Trusted Advisor:

      • Chinese, Simplified - zh

      • Chinese, Traditional - zh_TW

      • English - en

      • French - fr

      • German - de

      • Indonesian - id

      • Italian - it

      • Japanese - ja

      • Korean - ko

      • Portuguese, Brazilian - pt_BR

      • Spanish - es

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • result — (map)

        The detailed results of the Trusted Advisor check.

        • checkIdrequired — (String)

          The unique identifier for the Trusted Advisor check.

        • timestamprequired — (String)

          The time of the last refresh of the check.

        • statusrequired — (String)

          The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".

        • resourcesSummaryrequired — (map)

          Details about Amazon Web Services resources that were analyzed in a call to Trusted Advisor DescribeTrustedAdvisorCheckSummaries.

          • resourcesProcessedrequired — (Integer)

            The number of Amazon Web Services resources that were analyzed by the Trusted Advisor check.

          • resourcesFlaggedrequired — (Integer)

            The number of Amazon Web Services resources that were flagged (listed) by the Trusted Advisor check.

          • resourcesIgnoredrequired — (Integer)

            The number of Amazon Web Services resources ignored by Trusted Advisor because information was unavailable.

          • resourcesSuppressedrequired — (Integer)

            The number of Amazon Web Services resources ignored by Trusted Advisor because they were marked as suppressed by the user.

        • categorySpecificSummaryrequired — (map)

          Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.

          • costOptimizing — (map)

            The summary information about cost savings for a Trusted Advisor check that is in the Cost Optimizing category.

            • estimatedMonthlySavingsrequired — (Float)

              The estimated monthly savings that might be realized if the recommended operations are taken.

            • estimatedPercentMonthlySavingsrequired — (Float)

              The estimated percentage of savings that might be realized if the recommended operations are taken.

        • flaggedResourcesrequired — (Array<map>)

          The details about each resource listed in the check result.

          • statusrequired — (String)

            The status code for the resource identified in the Trusted Advisor check.

          • region — (String)

            The Amazon Web Services Region in which the identified resource is located.

          • resourceIdrequired — (String)

            The unique identifier for the identified resource.

          • isSuppressed — (Boolean)

            Specifies whether the Amazon Web Services resource was ignored by Trusted Advisor because it was marked as suppressed by the user.

          • metadatarequired — (Array<String>)

            Additional information about the identified resource. The exact metadata and its order can be obtained by inspecting the TrustedAdvisorCheckDescription object returned by the call to DescribeTrustedAdvisorChecks. Metadata contains all the data that is shown in the Excel download, even in those cases where the UI shows just summary data.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns information about all available Trusted Advisor checks, including the name, ID, category, description, and metadata. You must specify a language code.

The response contains a TrustedAdvisorCheckDescription object for each check. You must set the Amazon Web Services Region to us-east-1.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.
  • The names and descriptions for Trusted Advisor checks are subject to change. We recommend that you specify the check ID in your code to uniquely identify a check.

To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide.

Service Reference:

Examples:

Calling the describeTrustedAdvisorChecks operation

var params = {
  language: 'STRING_VALUE' /* required */
};
support.describeTrustedAdvisorChecks(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • language — (String)

      The ISO 639-1 code for the language that you want your checks to appear in.

      The Amazon Web Services Support API currently supports the following languages for Trusted Advisor:

      • Chinese, Simplified - zh

      • Chinese, Traditional - zh_TW

      • English - en

      • French - fr

      • German - de

      • Indonesian - id

      • Italian - it

      • Japanese - ja

      • Korean - ko

      • Portuguese, Brazilian - pt_BR

      • Spanish - es

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • checks — (Array<map>)

        Information about all available Trusted Advisor checks.

        • idrequired — (String)

          The unique identifier for the Trusted Advisor check.

        • namerequired — (String)

          The display name for the Trusted Advisor check.

        • descriptionrequired — (String)

          The description of the Trusted Advisor check, which includes the alert criteria and recommended operations (contains HTML markup).

        • categoryrequired — (String)

          The category of the Trusted Advisor check.

        • metadatarequired — (Array<String>)

          The column headings for the data returned by the Trusted Advisor check. The order of the headings corresponds to the order of the data in the Metadata element of the TrustedAdvisorResourceDetail for the check. Metadata contains all the data that is shown in the Excel download, even in those cases where the UI shows just summary data.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Returns the results for the Trusted Advisor check summaries for the check IDs that you specified. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

The response contains an array of TrustedAdvisorCheckSummary objects.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide.

Examples:

Calling the describeTrustedAdvisorCheckSummaries operation

var params = {
  checkIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
support.describeTrustedAdvisorCheckSummaries(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • checkIds — (Array<String>)

      The IDs of the Trusted Advisor checks.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • summaries — (Array<map>)

        The summary information for the requested Trusted Advisor checks.

        • checkIdrequired — (String)

          The unique identifier for the Trusted Advisor check.

        • timestamprequired — (String)

          The time of the last refresh of the check.

        • statusrequired — (String)

          The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".

        • hasFlaggedResources — (Boolean)

          Specifies whether the Trusted Advisor check has flagged resources.

        • resourcesSummaryrequired — (map)

          Details about Amazon Web Services resources that were analyzed in a call to Trusted Advisor DescribeTrustedAdvisorCheckSummaries.

          • resourcesProcessedrequired — (Integer)

            The number of Amazon Web Services resources that were analyzed by the Trusted Advisor check.

          • resourcesFlaggedrequired — (Integer)

            The number of Amazon Web Services resources that were flagged (listed) by the Trusted Advisor check.

          • resourcesIgnoredrequired — (Integer)

            The number of Amazon Web Services resources ignored by Trusted Advisor because information was unavailable.

          • resourcesSuppressedrequired — (Integer)

            The number of Amazon Web Services resources ignored by Trusted Advisor because they were marked as suppressed by the user.

        • categorySpecificSummaryrequired — (map)

          Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.

          • costOptimizing — (map)

            The summary information about cost savings for a Trusted Advisor check that is in the Cost Optimizing category.

            • estimatedMonthlySavingsrequired — (Float)

              The estimated monthly savings that might be realized if the recommended operations are taken.

            • estimatedPercentMonthlySavingsrequired — (Float)

              The estimated percentage of savings that might be realized if the recommended operations are taken.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Refreshes the Trusted Advisor check that you specify using the check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

Some checks are refreshed automatically. If you call the RefreshTrustedAdvisorCheck operation to refresh them, you might see the InvalidParameterValue error.

The response contains a TrustedAdvisorCheckRefreshStatus object.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the Amazon Web Services Support User Guide.

Service Reference:

Examples:

Calling the refreshTrustedAdvisorCheck operation

var params = {
  checkId: 'STRING_VALUE' /* required */
};
support.refreshTrustedAdvisorCheck(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • checkId — (String)

      The unique identifier for the Trusted Advisor check to refresh.

      Note: Specifying the check ID of a check that is automatically refreshed causes an InvalidParameterValue error.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • status — (map)

        The current refresh status for a check, including the amount of time until the check is eligible for refresh.

        • checkIdrequired — (String)

          The unique identifier for the Trusted Advisor check.

        • statusrequired — (String)

          The status of the Trusted Advisor check for which a refresh has been requested:

          • none - The check is not refreshed or the non-success status exceeds the timeout

          • enqueued - The check refresh requests has entered the refresh queue

          • processing - The check refresh request is picked up by the rule processing engine

          • success - The check is successfully refreshed

          • abandoned - The check refresh has failed

        • millisUntilNextRefreshablerequired — (Integer)

          The amount of time, in milliseconds, until the Trusted Advisor check is eligible for refresh.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Resolves a support case. This operation takes a caseId and returns the initial and final state of the case.

Note:
  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Service Reference:

Examples:

Calling the resolveCase operation

var params = {
  caseId: 'STRING_VALUE'
};
support.resolveCase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • caseId — (String)

      The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • initialCaseStatus — (String)

        The status of the case when the ResolveCase request was sent.

      • finalCaseStatus — (String)

        The status of the case after the ResolveCase request was processed.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.