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.Discovery

Inherits:
AWS.Service show all
Identifier:
discovery
API Version:
2015-11-01
Defined in:
(unknown)

Overview

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

Service Description

Amazon Web Services Application Discovery Service (Application Discovery Service) helps you plan application migration projects. It automatically identifies servers, virtual machines (VMs), and network dependencies in your on-premises data centers. For more information, see the Amazon Web Services Application Discovery Service FAQ.

Application Discovery Service offers three ways of performing discovery and collecting data about your on-premises servers:

  • Agentless discovery using Amazon Web Services Application Discovery Service Agentless Collector (Agentless Collector), which doesn't require you to install an agent on each host.

    • Agentless Collector gathers server information regardless of the operating systems, which minimizes the time required for initial on-premises infrastructure assessment.

    • Agentless Collector doesn't collect information about network dependencies, only agent-based discovery collects that information.

  • Agent-based discovery using the Amazon Web Services Application Discovery Agent (Application Discovery Agent) collects a richer set of data than agentless discovery, which you install on one or more hosts in your data center.

    • The agent captures infrastructure and application information, including an inventory of running processes, system performance information, resource utilization, and network dependencies.

    • The information collected by agents is secured at rest and in transit to the Application Discovery Service database in the Amazon Web Services cloud. For more information, see Amazon Web Services Application Discovery Agent.

  • Amazon Web Services Partner Network (APN) solutions integrate with Application Discovery Service, enabling you to import details of your on-premises environment directly into Amazon Web Services Migration Hub (Migration Hub) without using Agentless Collector or Application Discovery Agent.

    • Third-party application discovery tools can query Amazon Web Services Application Discovery Service, and they can write to the Application Discovery Service database using the public API.

    • In this way, you can import data into Migration Hub and view it, so that you can associate applications with servers and track migrations.

Working With This Guide

This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for Application Discovery Service. The topic for each action shows the API request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to access an API that is tailored to the programming language or platform that you're using. For more information, see Amazon Web Services SDKs.

Note:
  • Remember that you must set your Migration Hub home Region before you call any of these APIs.
  • You must make API calls for write actions (create, notify, associate, disassociate, import, or put) while in your home Region, or a HomeRegionNotSetException error is returned.
  • API calls for read actions (list, describe, stop, and delete) are permitted outside of your home Region.
  • Although it is unlikely, the Migration Hub home Region could change. If you call APIs outside the home Region, an InvalidInputException is returned.
  • You must call GetHomeRegion to obtain the latest Migration Hub home Region.

This guide is intended for use with the Amazon Web Services Application Discovery Service User Guide.

All data is handled according to the Amazon Web Services Privacy Policy. You can operate Application Discovery Service offline to inspect collected data before it is shared with the service.

Sending a Request Using Discovery

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

var discovery = new AWS.Discovery({apiVersion: '2015-11-01'});

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

AWS.config.apiVersions = {
  discovery: '2015-11-01',
  // other service API versions
};

var discovery = new AWS.Discovery();

Version:

  • 2015-11-01

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.Discovery(options = {}) ⇒ Object

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

Examples:

Constructing a Discovery object

var discovery = new AWS.Discovery({apiVersion: '2015-11-01'});

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.Discovery.region for more information.

  • maxRetries (Integer)

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

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Discovery.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

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

Associates one or more configuration items with an application.

Examples:

Calling the associateConfigurationItemsToApplication operation

var params = {
  applicationConfigurationId: 'STRING_VALUE', /* required */
  configurationIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
discovery.associateConfigurationItemsToApplication(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: {})
    • applicationConfigurationId — (String)

      The configuration ID of an application with which items are to be associated.

    • configurationIds — (Array<String>)

      The ID of each configuration item to be associated with an application.

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.

Returns:

  • (AWS.Request)

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

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

Deletes one or more agents or collectors as specified by ID. Deleting an agent or collector does not delete the previously discovered data. To delete the data collected, use StartBatchDeleteConfigurationTask.

Service Reference:

Examples:

Calling the batchDeleteAgents operation

var params = {
  deleteAgents: [ /* required */
    {
      agentId: 'STRING_VALUE', /* required */
      force: true || false
    },
    /* more items */
  ]
};
discovery.batchDeleteAgents(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: {})
    • deleteAgents — (Array<map>)

      The list of agents to delete.

      • agentIdrequired — (String)

        The ID of the agent or data collector to delete.

      • force — (Boolean)

        Optional flag used to force delete an agent or data collector. It is needed to delete any agent in HEALTHY/UNHEALTHY/RUNNING status. Note that deleting an agent that is actively reporting health causes it to be re-registered with a different agent ID after data collector re-connects with Amazon Web Services.

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:

      • errors — (Array<map>)

        A list of agent IDs that failed to delete during the deletion task, each paired with an error message.

        • agentIdrequired — (String)

          The ID of the agent or data collector to delete.

        • errorMessagerequired — (String)

          The description of the error that occurred for the delete failed agent.

        • errorCoderequired — (String)

          The type of error that occurred for the delete failed agent. Valid status are: AGENT_IN_USE | NOT_FOUND | INTERNAL_SERVER_ERROR.

          Possible values include:
          • "NOT_FOUND"
          • "INTERNAL_SERVER_ERROR"
          • "AGENT_IN_USE"

Returns:

  • (AWS.Request)

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

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

Deletes one or more import tasks, each identified by their import ID. Each import task has a number of records that can identify servers or applications.

Amazon Web Services Application Discovery Service has built-in matching logic that will identify when discovered servers match existing entries that you've previously discovered, the information for the already-existing discovered server is updated. When you delete an import task that contains records that were used to match, the information in those matched records that comes from the deleted records will also be deleted.

Service Reference:

Examples:

Calling the batchDeleteImportData operation

var params = {
  importTaskIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  deleteHistory: true || false
};
discovery.batchDeleteImportData(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: {})
    • importTaskIds — (Array<String>)

      The IDs for the import tasks that you want to delete.

    • deleteHistory — (Boolean)

      Set to true to remove the deleted import task from DescribeImportTasks.

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:

      • errors — (Array<map>)

        Error messages returned for each import task that you deleted as a response for this command.

        • importTaskId — (String)

          The unique import ID associated with the error that occurred.

        • errorCode — (String)

          The type of error that occurred for a specific import task.

          Possible values include:
          • "NOT_FOUND"
          • "INTERNAL_SERVER_ERROR"
          • "OVER_LIMIT"
        • errorDescription — (String)

          The description of the error that occurred for a specific import task.

Returns:

  • (AWS.Request)

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

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

Creates an application with the given name and description.

Service Reference:

Examples:

Calling the createApplication operation

var params = {
  name: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE'
};
discovery.createApplication(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: {})
    • name — (String)

      Name of the application to be created.

    • description — (String)

      Description of the application to be created.

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:

      • configurationId — (String)

        Configuration ID of an application to be created.

Returns:

  • (AWS.Request)

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

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

Creates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API accepts a list of multiple configuration items.

Do not store sensitive information (like personal data) in tags.

Service Reference:

Examples:

Calling the createTags operation

var params = {
  configurationIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  tags: [ /* required */
    {
      key: 'STRING_VALUE', /* required */
      value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
discovery.createTags(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: {})
    • configurationIds — (Array<String>)

      A list of configuration items that you want to tag.

    • tags — (Array<map>)

      Tags that you want to associate with one or more configuration items. Specify the tags that you want to create in a key-value format. For example:

      {"key": "serverType", "value": "webServer"}

      • keyrequired — (String)

        The type of tag on which to filter.

      • valuerequired — (String)

        A value for a tag key on which to filter.

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.

Returns:

  • (AWS.Request)

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

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

Deletes a list of applications and their associations with configuration items.

Service Reference:

Examples:

Calling the deleteApplications operation

var params = {
  configurationIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
discovery.deleteApplications(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: {})
    • configurationIds — (Array<String>)

      Configuration ID of an application to be deleted.

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.

Returns:

  • (AWS.Request)

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

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

Deletes the association between configuration items and one or more tags. This API accepts a list of multiple configuration items.

Service Reference:

Examples:

Calling the deleteTags operation

var params = {
  configurationIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  tags: [
    {
      key: 'STRING_VALUE', /* required */
      value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
discovery.deleteTags(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: {})
    • configurationIds — (Array<String>)

      A list of configuration items with tags that you want to delete.

    • tags — (Array<map>)

      Tags that you want to delete from one or more configuration items. Specify the tags that you want to delete in a key-value format. For example:

      {"key": "serverType", "value": "webServer"}

      • keyrequired — (String)

        The type of tag on which to filter.

      • valuerequired — (String)

        A value for a tag key on which to filter.

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.

Returns:

  • (AWS.Request)

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

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

Lists agents or collectors as specified by ID or other filters. All agents/collectors associated with your user can be listed if you call DescribeAgents as is without passing any parameters.

Service Reference:

Examples:

Calling the describeAgents operation

var params = {
  agentIds: [
    'STRING_VALUE',
    /* more items */
  ],
  filters: [
    {
      condition: 'STRING_VALUE', /* required */
      name: 'STRING_VALUE', /* required */
      values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
discovery.describeAgents(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: {})
    • agentIds — (Array<String>)

      The agent or the collector IDs for which you want information. If you specify no IDs, the system returns information about all agents/collectors associated with your user.

    • filters — (Array<map>)

      You can filter the request using various logical operators and a key-value format. For example:

      {"key": "collectionStatus", "value": "STARTED"}

      • namerequired — (String)

        The name of the filter.

      • valuesrequired — (Array<String>)

        A string value on which to filter. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.

      • conditionrequired — (String)

        A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.

    • maxResults — (Integer)

      The total number of agents/collectors to return in a single page of output. The maximum value is 100.

    • nextToken — (String)

      Token to retrieve the next set of results. For example, if you previously specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.

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:

      • agentsInfo — (Array<map>)

        Lists agents or the collector by ID or lists all agents/collectors associated with your user, if you did not specify an agent/collector ID. The output includes agent/collector IDs, IP addresses, media access control (MAC) addresses, agent/collector health, host name where the agent/collector resides, and the version number of each agent/collector.

        • agentId — (String)

          The agent or collector ID.

        • hostName — (String)

          The name of the host where the agent or collector resides. The host can be a server or virtual machine.

        • agentNetworkInfoList — (Array<map>)

          Network details about the host where the agent or collector resides.

          • ipAddress — (String)

            The IP address for the host where the agent/collector resides.

          • macAddress — (String)

            The MAC address for the host where the agent/collector resides.

        • connectorId — (String)

          The ID of the connector.

        • version — (String)

          The agent or collector version.

        • health — (String)

          The health of the agent.

          Possible values include:
          • "HEALTHY"
          • "UNHEALTHY"
          • "RUNNING"
          • "UNKNOWN"
          • "BLACKLISTED"
          • "SHUTDOWN"
        • lastHealthPingTime — (String)

          Time since agent health was reported.

        • collectionStatus — (String)

          Status of the collection process for an agent.

        • agentType — (String)

          Type of agent.

        • registeredTime — (String)

          Agent's first registration timestamp in UTC.

      • nextToken — (String)

        Token to retrieve the next set of results. For example, if you specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.

Returns:

  • (AWS.Request)

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

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

Takes a unique deletion task identifier as input and returns metadata about a configuration deletion task.

Examples:

Calling the describeBatchDeleteConfigurationTask operation

var params = {
  taskId: 'STRING_VALUE' /* required */
};
discovery.describeBatchDeleteConfigurationTask(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: {})
    • taskId — (String)

      The ID of the task to delete.

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:

      • task — (map)

        The BatchDeleteConfigurationTask that represents the deletion task being executed.

        • taskId — (String)

          The deletion task's unique identifier.

        • status — (String)

          The current execution status of the deletion task. Valid status are: INITIALIZING | VALIDATING | DELETING | COMPLETED | FAILED.

          Possible values include:
          • "INITIALIZING"
          • "VALIDATING"
          • "DELETING"
          • "COMPLETED"
          • "FAILED"
        • startTime — (Date)

          An epoch seconds timestamp (UTC) of when the deletion task was started.

        • endTime — (Date)

          An epoch seconds timestamp (UTC) of when the deletion task was completed or failed.

        • configurationType — (String)

          The type of configuration item to delete. Supported types are: SERVER.

          Possible values include:
          • "SERVER"
        • requestedConfigurations — (Array<String>)

          The list of configuration IDs that were originally requested to be deleted by the deletion task.

        • deletedConfigurations — (Array<String>)

          The list of configuration IDs that were successfully deleted by the deletion task.

        • failedConfigurations — (Array<map>)

          A list of configuration IDs that failed to delete during the deletion task, each paired with an error message.

          • configurationId — (String)

            The unique identifier of the configuration the failed to delete.

          • errorStatusCode — (Integer)

            The integer error code associated with the error message.

          • errorMessage — (String)

            A descriptive message indicating why the associated configuration failed to delete.

        • deletionWarnings — (Array<map>)

          A list of configuration IDs that produced warnings regarding their deletion, paired with a warning message.

          • configurationId — (String)

            The unique identifier of the configuration that produced a warning.

          • warningCode — (Integer)

            The integer warning code associated with the warning message.

          • warningText — (String)

            A descriptive message of the warning the associated configuration ID produced.

Returns:

  • (AWS.Request)

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

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

Retrieves attributes for a list of configuration item IDs.

Note: All of the supplied IDs must be for the same asset type from one of the following:
  • server
  • application
  • process
  • connection
Output fields are specific to the asset type specified. For example, the output for a server configuration item includes a list of attributes about the server, such as host name, operating system, number of network cards, etc. For a complete list of outputs for each asset type, see Using the DescribeConfigurations Action in the Amazon Web Services Application Discovery Service User Guide.

Service Reference:

Examples:

Calling the describeConfigurations operation

var params = {
  configurationIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
discovery.describeConfigurations(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: {})
    • configurationIds — (Array<String>)

      One or more configuration IDs.

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:

      • configurations — (Array<map<String>>)

        A key in the response map. The value is an array of data.

Returns:

  • (AWS.Request)

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

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

Lists exports as specified by ID. All continuous exports associated with your user can be listed if you call DescribeContinuousExports as is without passing any parameters.

Service Reference:

Examples:

Calling the describeContinuousExports operation

var params = {
  exportIds: [
    'STRING_VALUE',
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
discovery.describeContinuousExports(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: {})
    • exportIds — (Array<String>)

      The unique IDs assigned to the exports.

    • maxResults — (Integer)

      A number between 1 and 100 specifying the maximum number of continuous export descriptions returned.

    • nextToken — (String)

      The token from the previous call to DescribeExportTasks.

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:

      • descriptions — (Array<map>)

        A list of continuous export descriptions.

        • exportId — (String)

          The unique ID assigned to this export.

        • status — (String)

          Describes the status of the export. Can be one of the following values:

          • START_IN_PROGRESS - setting up resources to start continuous export.

          • START_FAILED - an error occurred setting up continuous export. To recover, call start-continuous-export again.

          • ACTIVE - data is being exported to the customer bucket.

          • ERROR - an error occurred during export. To fix the issue, call stop-continuous-export and start-continuous-export.

          • STOP_IN_PROGRESS - stopping the export.

          • STOP_FAILED - an error occurred stopping the export. To recover, call stop-continuous-export again.

          • INACTIVE - the continuous export has been stopped. Data is no longer being exported to the customer bucket.

          Possible values include:
          • "START_IN_PROGRESS"
          • "START_FAILED"
          • "ACTIVE"
          • "ERROR"
          • "STOP_IN_PROGRESS"
          • "STOP_FAILED"
          • "INACTIVE"
        • statusDetail — (String)

          Contains information about any errors that have occurred. This data type can have the following values:

          • ACCESS_DENIED - You don’t have permission to start Data Exploration in Amazon Athena. Contact your Amazon Web Services administrator for help. For more information, see Setting Up Amazon Web Services Application Discovery Service in the Application Discovery Service User Guide.

          • DELIVERY_STREAM_LIMIT_FAILURE - You reached the limit for Amazon Kinesis Data Firehose delivery streams. Reduce the number of streams or request a limit increase and try again. For more information, see Kinesis Data Streams Limits in the Amazon Kinesis Data Streams Developer Guide.

          • FIREHOSE_ROLE_MISSING - The Data Exploration feature is in an error state because your user is missing the Amazon Web ServicesApplicationDiscoveryServiceFirehose role. Turn on Data Exploration in Amazon Athena and try again. For more information, see Creating the Amazon Web ServicesApplicationDiscoveryServiceFirehose Role in the Application Discovery Service User Guide.

          • FIREHOSE_STREAM_DOES_NOT_EXIST - The Data Exploration feature is in an error state because your user is missing one or more of the Kinesis data delivery streams.

          • INTERNAL_FAILURE - The Data Exploration feature is in an error state because of an internal failure. Try again later. If this problem persists, contact Amazon Web Services Support.

          • LAKE_FORMATION_ACCESS_DENIED - You don't have sufficient lake formation permissions to start continuous export. For more information, see Upgrading Amazon Web Services Glue Data Permissions to the Amazon Web Services Lake Formation Model in the Amazon Web Services Lake Formation Developer Guide.

            You can use one of the following two ways to resolve this issue.

            1. If you don’t want to use the Lake Formation permission model, you can change the default Data Catalog settings to use only Amazon Web Services Identity and Access Management (IAM) access control for new databases. For more information, see Change Data Catalog Settings in the Lake Formation Developer Guide.

            2. You can give the service-linked IAM roles AWSServiceRoleForApplicationDiscoveryServiceContinuousExport and AWSApplicationDiscoveryServiceFirehose the required Lake Formation permissions. For more information, see Granting Database Permissions in the Lake Formation Developer Guide.

              1. AWSServiceRoleForApplicationDiscoveryServiceContinuousExport - Grant database creator permissions, which gives the role database creation ability and implicit permissions for any created tables. For more information, see Implicit Lake Formation Permissions in the Lake Formation Developer Guide.

              2. AWSApplicationDiscoveryServiceFirehose - Grant describe permissions for all tables in the database.

          • S3_BUCKET_LIMIT_FAILURE - You reached the limit for Amazon S3 buckets. Reduce the number of S3 buckets or request a limit increase and try again. For more information, see Bucket Restrictions and Limitations in the Amazon Simple Storage Service Developer Guide.

          • S3_NOT_SIGNED_UP - Your account is not signed up for the Amazon S3 service. You must sign up before you can use Amazon S3. You can sign up at the following URL: https://aws.amazon.com/s3.

        • s3Bucket — (String)

          The name of the s3 bucket where the export data parquet files are stored.

        • startTime — (Date)

          The timestamp representing when the continuous export was started.

        • stopTime — (Date)

          The timestamp that represents when this continuous export was stopped.

        • dataSource — (String)

          The type of data collector used to gather this data (currently only offered for AGENT).

          Possible values include:
          • "AGENT"
        • schemaStorageConfig — (map<String>)

          An object which describes how the data is stored.

          • databaseName - the name of the Glue database used to store the schema.

      • nextToken — (String)

        The token from the previous call to DescribeExportTasks.

Returns:

  • (AWS.Request)

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

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

DescribeExportConfigurations is deprecated. Use DescribeExportTasks, instead.

Service Reference:

Examples:

Calling the describeExportConfigurations operation

var params = {
  exportIds: [
    'STRING_VALUE',
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
discovery.describeExportConfigurations(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: {})
    • exportIds — (Array<String>)

      A list of continuous export IDs to search for.

    • maxResults — (Integer)

      A number between 1 and 100 specifying the maximum number of continuous export descriptions returned.

    • nextToken — (String)

      The token from the previous call to describe-export-tasks.

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:

      • exportsInfo — (Array<map>)

        • exportIdrequired — (String)

          A unique identifier used to query an export.

        • exportStatusrequired — (String)

          The status of the data export job.

          Possible values include:
          • "FAILED"
          • "SUCCEEDED"
          • "IN_PROGRESS"
        • statusMessagerequired — (String)

          A status message provided for API callers.

        • configurationsDownloadUrl — (String)

          A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the export succeeded.

        • exportRequestTimerequired — (Date)

          The time that the data export was initiated.

        • isTruncated — (Boolean)

          If true, the export of agent information exceeded the size limit for a single export and the exported data is incomplete for the requested time range. To address this, select a smaller time range for the export by using startDate and endDate.

        • requestedStartTime — (Date)

          The value of startTime parameter in the StartExportTask request. If no startTime was requested, this result does not appear in ExportInfo.

        • requestedEndTime — (Date)

          The endTime used in the StartExportTask request. If no endTime was requested, this result does not appear in ExportInfo.

      • nextToken — (String)

        The token from the previous call to describe-export-tasks.

Returns:

  • (AWS.Request)

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

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

Retrieve status of one or more export tasks. You can retrieve the status of up to 100 export tasks.

Service Reference:

Examples:

Calling the describeExportTasks operation

var params = {
  exportIds: [
    'STRING_VALUE',
    /* more items */
  ],
  filters: [
    {
      condition: 'STRING_VALUE', /* required */
      name: 'STRING_VALUE', /* required */
      values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
discovery.describeExportTasks(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: {})
    • exportIds — (Array<String>)

      One or more unique identifiers used to query the status of an export request.

    • filters — (Array<map>)

      One or more filters.

      • AgentId - ID of the agent whose collected data will be exported

      • namerequired — (String)

        A single ExportFilter name. Supported filters: agentIds.

      • valuesrequired — (Array<String>)

        A single agent ID for a Discovery Agent. An agent ID can be found using the DescribeAgents action. Typically an ADS agent ID is in the form o-0123456789abcdef0.

      • conditionrequired — (String)

        Supported condition: EQUALS

    • maxResults — (Integer)

      The maximum number of volume results returned by DescribeExportTasks in paginated output. When this parameter is used, DescribeExportTasks only returns maxResults results in a single page along with a nextToken response element.

    • nextToken — (String)

      The nextToken value returned from a previous paginated DescribeExportTasks request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

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:

      • exportsInfo — (Array<map>)

        Contains one or more sets of export request details. When the status of a request is SUCCEEDED, the response includes a URL for an Amazon S3 bucket where you can view the data in a CSV file.

        • exportIdrequired — (String)

          A unique identifier used to query an export.

        • exportStatusrequired — (String)

          The status of the data export job.

          Possible values include:
          • "FAILED"
          • "SUCCEEDED"
          • "IN_PROGRESS"
        • statusMessagerequired — (String)

          A status message provided for API callers.

        • configurationsDownloadUrl — (String)

          A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the export succeeded.

        • exportRequestTimerequired — (Date)

          The time that the data export was initiated.

        • isTruncated — (Boolean)

          If true, the export of agent information exceeded the size limit for a single export and the exported data is incomplete for the requested time range. To address this, select a smaller time range for the export by using startDate and endDate.

        • requestedStartTime — (Date)

          The value of startTime parameter in the StartExportTask request. If no startTime was requested, this result does not appear in ExportInfo.

        • requestedEndTime — (Date)

          The endTime used in the StartExportTask request. If no endTime was requested, this result does not appear in ExportInfo.

      • nextToken — (String)

        The nextToken value to include in a future DescribeExportTasks request. When the results of a DescribeExportTasks request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

Returns:

  • (AWS.Request)

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

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

Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object URL for the import file, and more.

Service Reference:

Examples:

Calling the describeImportTasks operation

var params = {
  filters: [
    {
      name: IMPORT_TASK_ID | STATUS | NAME,
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
discovery.describeImportTasks(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: {})
    • filters — (Array<map>)

      An array of name-value pairs that you provide to filter the results for the DescribeImportTask request to a specific subset of results. Currently, wildcard values aren't supported for filters.

      • name — (String)

        The name, status, or import task ID for a specific import task.

        Possible values include:
        • "IMPORT_TASK_ID"
        • "STATUS"
        • "NAME"
      • values — (Array<String>)

        An array of strings that you can provide to match against a specific name, status, or import task ID to filter the results for your import task queries.

    • maxResults — (Integer)

      The maximum number of results that you want this request to return, up to 100.

    • nextToken — (String)

      The token to request a specific page of results.

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:

      • nextToken — (String)

        The token to request the next page of results.

      • tasks — (Array<map>)

        A returned array of import tasks that match any applied filters, up to the specified number of maximum results.

        • importTaskId — (String)

          The unique ID for a specific import task. These IDs aren't globally unique, but they are unique within an Amazon Web Services account.

        • clientRequestToken — (String)

          A unique token used to prevent the same import request from occurring more than once. If you didn't provide a token, a token was automatically generated when the import task request was sent.

        • name — (String)

          A descriptive name for an import task. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.

        • importUrl — (String)

          The URL for your import file that you've uploaded to Amazon S3.

        • status — (String)

          The status of the import task. An import can have the status of IMPORT_COMPLETE and still have some records fail to import from the overall request. More information can be found in the downloadable archive defined in the errorsAndFailedEntriesZip field, or in the Migration Hub management console.

          Possible values include:
          • "IMPORT_IN_PROGRESS"
          • "IMPORT_COMPLETE"
          • "IMPORT_COMPLETE_WITH_ERRORS"
          • "IMPORT_FAILED"
          • "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED"
          • "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"
          • "DELETE_IN_PROGRESS"
          • "DELETE_COMPLETE"
          • "DELETE_FAILED"
          • "DELETE_FAILED_LIMIT_EXCEEDED"
          • "INTERNAL_ERROR"
        • importRequestTime — (Date)

          The time that the import task request was made, presented in the Unix time stamp format.

        • importCompletionTime — (Date)

          The time that the import task request finished, presented in the Unix time stamp format.

        • importDeletedTime — (Date)

          The time that the import task request was deleted, presented in the Unix time stamp format.

        • serverImportSuccess — (Integer)

          The total number of server records in the import file that were successfully imported.

        • serverImportFailure — (Integer)

          The total number of server records in the import file that failed to be imported.

        • applicationImportSuccess — (Integer)

          The total number of application records in the import file that were successfully imported.

        • applicationImportFailure — (Integer)

          The total number of application records in the import file that failed to be imported.

        • errorsAndFailedEntriesZip — (String)

          A link to a compressed archive folder (in the ZIP format) that contains an error log and a file of failed records. You can use these two files to quickly identify records that failed, why they failed, and correct those records. Afterward, you can upload the corrected file to your Amazon S3 bucket and create another import task request.

          This field also includes authorization information so you can confirm the authenticity of the compressed archive before you download it.

          If some records failed to be imported we recommend that you correct the records in the failed entries file and then imports that failed entries file. This prevents you from having to correct and update the larger original file and attempt importing it again.

Returns:

  • (AWS.Request)

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

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

Retrieves a list of configuration items that have tags as specified by the key-value pairs, name and value, passed to the optional parameter filters.

There are three valid tag filter names:

  • tagKey

  • tagValue

  • configurationId

Also, all configuration items associated with your user that have tags can be listed if you call DescribeTags as is without passing any parameters.

Service Reference:

Examples:

Calling the describeTags operation

var params = {
  filters: [
    {
      name: 'STRING_VALUE', /* required */
      values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
discovery.describeTags(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: {})
    • filters — (Array<map>)

      You can filter the list using a key-value format. You can separate these items by using logical operators. Allowed filters include tagKey, tagValue, and configurationId.

      • namerequired — (String)

        A name of the tag filter.

      • valuesrequired — (Array<String>)

        Values for the tag filter.

    • maxResults — (Integer)

      The total number of items to return in a single page of output. The maximum value is 100.

    • nextToken — (String)

      A token to start the list. Use this token to get the next set of results.

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:

      • tags — (Array<map>)

        Depending on the input, this is a list of configuration items tagged with a specific tag, or a list of tags for a specific configuration item.

        • configurationType — (String)

          A type of IT asset to tag.

          Possible values include:
          • "SERVER"
          • "PROCESS"
          • "CONNECTION"
          • "APPLICATION"
        • configurationId — (String)

          The configuration ID for the item to tag. You can specify a list of keys and values.

        • key — (String)

          A type of tag on which to filter. For example, serverType.

        • value — (String)

          A value on which to filter. For example key = serverType and value = web server.

        • timeOfCreation — (Date)

          The time the configuration tag was created in Coordinated Universal Time (UTC).

      • nextToken — (String)

        The call returns a token. Use this token to get the next set of results.

Returns:

  • (AWS.Request)

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

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

Disassociates one or more configuration items from an application.

Examples:

Calling the disassociateConfigurationItemsFromApplication operation

var params = {
  applicationConfigurationId: 'STRING_VALUE', /* required */
  configurationIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
discovery.disassociateConfigurationItemsFromApplication(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: {})
    • applicationConfigurationId — (String)

      Configuration ID of an application from which each item is disassociated.

    • configurationIds — (Array<String>)

      Configuration ID of each item to be disassociated from an application.

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.

Returns:

  • (AWS.Request)

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

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

Deprecated. Use StartExportTask instead.

Exports all discovered configuration data to an Amazon S3 bucket or an application that enables you to view and evaluate the data. Data includes tags and tag associations, processes, connections, servers, and system performance. This API returns an export ID that you can query using the DescribeExportConfigurations API. The system imposes a limit of two configuration exports in six hours.

Service Reference:

Examples:

Calling the exportConfigurations operation

discovery.exportConfigurations(function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

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:

      • exportId — (String)

        A unique identifier that you can use to query the export status.

Returns:

  • (AWS.Request)

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

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

Retrieves a short summary of discovered assets.

This API operation takes no request parameters and is called as is at the command prompt as shown in the example.

Service Reference:

Examples:

Calling the getDiscoverySummary operation

var params = {
};
discovery.getDiscoverySummary(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: {})

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:

      • servers — (Integer)

        The number of servers discovered.

      • applications — (Integer)

        The number of applications discovered.

      • serversMappedToApplications — (Integer)

        The number of servers mapped to applications.

      • serversMappedtoTags — (Integer)

        The number of servers mapped to tags.

      • agentSummary — (map)

        Details about discovered agents, including agent status and health.

        • activeAgentsrequired — (Integer)

          Number of active discovery agents.

        • healthyAgentsrequired — (Integer)

          Number of healthy discovery agents

        • blackListedAgentsrequired — (Integer)

          Number of blacklisted discovery agents.

        • shutdownAgentsrequired — (Integer)

          Number of discovery agents with status SHUTDOWN.

        • unhealthyAgentsrequired — (Integer)

          Number of unhealthy discovery agents.

        • totalAgentsrequired — (Integer)

          Total number of discovery agents.

        • unknownAgentsrequired — (Integer)

          Number of unknown discovery agents.

      • connectorSummary — (map)

        Details about discovered connectors, including connector status and health.

        • activeConnectorsrequired — (Integer)

          Number of active discovery connectors.

        • healthyConnectorsrequired — (Integer)

          Number of healthy discovery connectors.

        • blackListedConnectorsrequired — (Integer)

          Number of blacklisted discovery connectors.

        • shutdownConnectorsrequired — (Integer)

          Number of discovery connectors with status SHUTDOWN,

        • unhealthyConnectorsrequired — (Integer)

          Number of unhealthy discovery connectors.

        • totalConnectorsrequired — (Integer)

          Total number of discovery connectors.

        • unknownConnectorsrequired — (Integer)

          Number of unknown discovery connectors.

      • meCollectorSummary — (map)

        Details about Migration Evaluator collectors, including collector status and health.

        • activeMeCollectorsrequired — (Integer)

          The number of active Migration Evaluator collectors.

        • healthyMeCollectorsrequired — (Integer)

          The number of healthy Migration Evaluator collectors.

        • denyListedMeCollectorsrequired — (Integer)

          The number of deny-listed Migration Evaluator collectors.

        • shutdownMeCollectorsrequired — (Integer)

          The number of Migration Evaluator collectors with SHUTDOWN status.

        • unhealthyMeCollectorsrequired — (Integer)

          The number of unhealthy Migration Evaluator collectors.

        • totalMeCollectorsrequired — (Integer)

          The total number of Migration Evaluator collectors.

        • unknownMeCollectorsrequired — (Integer)

          The number of unknown Migration Evaluator collectors.

      • agentlessCollectorSummary — (map)

        Details about Agentless Collector collectors, including status.

        • activeAgentlessCollectorsrequired — (Integer)

          The number of active Agentless Collector collectors.

        • healthyAgentlessCollectorsrequired — (Integer)

          The number of healthy Agentless Collector collectors.

        • denyListedAgentlessCollectorsrequired — (Integer)

          The number of deny-listed Agentless Collector collectors.

        • shutdownAgentlessCollectorsrequired — (Integer)

          The number of Agentless Collector collectors with SHUTDOWN status.

        • unhealthyAgentlessCollectorsrequired — (Integer)

          The number of unhealthy Agentless Collector collectors.

        • totalAgentlessCollectorsrequired — (Integer)

          The total number of Agentless Collector collectors.

        • unknownAgentlessCollectorsrequired — (Integer)

          The number of unknown Agentless Collector collectors.

Returns:

  • (AWS.Request)

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

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

Retrieves a list of configuration items as specified by the value passed to the required parameter configurationType. Optional filtering may be applied to refine search results.

Service Reference:

Examples:

Calling the listConfigurations operation

var params = {
  configurationType: SERVER | PROCESS | CONNECTION | APPLICATION, /* required */
  filters: [
    {
      condition: 'STRING_VALUE', /* required */
      name: 'STRING_VALUE', /* required */
      values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  orderBy: [
    {
      fieldName: 'STRING_VALUE', /* required */
      sortOrder: ASC | DESC
    },
    /* more items */
  ]
};
discovery.listConfigurations(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: {})
    • configurationType — (String)

      A valid configuration identified by Application Discovery Service.

      Possible values include:
      • "SERVER"
      • "PROCESS"
      • "CONNECTION"
      • "APPLICATION"
    • filters — (Array<map>)

      You can filter the request using various logical operators and a key-value format. For example:

      {"key": "serverType", "value": "webServer"}

      For a complete list of filter options and guidance about using them with this action, see Using the ListConfigurations Action in the Amazon Web Services Application Discovery Service User Guide.

      • namerequired — (String)

        The name of the filter.

      • valuesrequired — (Array<String>)

        A string value on which to filter. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.

      • conditionrequired — (String)

        A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.

    • maxResults — (Integer)

      The total number of items to return. The maximum value is 100.

    • nextToken — (String)

      Token to retrieve the next set of results. For example, if a previous call to ListConfigurations returned 100 items, but you set ListConfigurationsRequest$maxResults to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.

    • orderBy — (Array<map>)

      Certain filter criteria return output that can be sorted in ascending or descending order. For a list of output characteristics for each filter, see Using the ListConfigurations Action in the Amazon Web Services Application Discovery Service User Guide.

      • fieldNamerequired — (String)

        The field on which to order.

      • sortOrder — (String)

        Ordering direction.

        Possible values include:
        • "ASC"
        • "DESC"

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:

      • configurations — (Array<map<String>>)

        Returns configuration details, including the configuration ID, attribute names, and attribute values.

      • nextToken — (String)

        Token to retrieve the next set of results. For example, if your call to ListConfigurations returned 100 items, but you set ListConfigurationsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.

Returns:

  • (AWS.Request)

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

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

Retrieves a list of servers that are one network hop away from a specified server.

Service Reference:

Examples:

Calling the listServerNeighbors operation

var params = {
  configurationId: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  neighborConfigurationIds: [
    'STRING_VALUE',
    /* more items */
  ],
  nextToken: 'STRING_VALUE',
  portInformationNeeded: true || false
};
discovery.listServerNeighbors(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: {})
    • configurationId — (String)

      Configuration ID of the server for which neighbors are being listed.

    • portInformationNeeded — (Boolean)

      Flag to indicate if port and protocol information is needed as part of the response.

    • neighborConfigurationIds — (Array<String>)

      List of configuration IDs to test for one-hop-away.

    • maxResults — (Integer)

      Maximum number of results to return in a single page of output.

    • nextToken — (String)

      Token to retrieve the next set of results. For example, if you previously specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.

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:

      • neighbors — (Array<map>)

        List of distinct servers that are one hop away from the given server.

        • sourceServerIdrequired — (String)

          The ID of the server that opened the network connection.

        • destinationServerIdrequired — (String)

          The ID of the server that accepted the network connection.

        • destinationPort — (Integer)

          The destination network port for the connection.

        • transportProtocol — (String)

          The network protocol used for the connection.

        • connectionsCountrequired — (Integer)

          The number of open network connections with the neighboring server.

      • nextToken — (String)

        Token to retrieve the next set of results. For example, if you specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.

      • knownDependencyCount — (Integer)

        Count of distinct servers that are one hop away from the given server.

Returns:

  • (AWS.Request)

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

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

Takes a list of configurationId as input and starts an asynchronous deletion task to remove the configurationItems. Returns a unique deletion task identifier.

Examples:

Calling the startBatchDeleteConfigurationTask operation

var params = {
  configurationIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  configurationType: SERVER /* required */
};
discovery.startBatchDeleteConfigurationTask(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: {})
    • configurationType — (String)

      The type of configuration item to delete. Supported types are: SERVER.

      Possible values include:
      • "SERVER"
    • configurationIds — (Array<String>)

      The list of configuration IDs that will be deleted by the task.

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:

      • taskId — (String)

        The unique identifier associated with the newly started deletion task.

Returns:

  • (AWS.Request)

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

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

Start the continuous flow of agent's discovered data into Amazon Athena.

Service Reference:

Examples:

Calling the startContinuousExport operation

var params = {
};
discovery.startContinuousExport(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: {})

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:

      • exportId — (String)

        The unique ID assigned to this export.

      • s3Bucket — (String)

        The name of the s3 bucket where the export data parquet files are stored.

      • startTime — (Date)

        The timestamp representing when the continuous export was started.

      • dataSource — (String)

        The type of data collector used to gather this data (currently only offered for AGENT).

        Possible values include:
        • "AGENT"
      • schemaStorageConfig — (map<String>)

        A dictionary which describes how the data is stored.

        • databaseName - the name of the Glue database used to store the schema.

Returns:

  • (AWS.Request)

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

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

Instructs the specified agents to start collecting data.

Service Reference:

Examples:

Calling the startDataCollectionByAgentIds operation

var params = {
  agentIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
discovery.startDataCollectionByAgentIds(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: {})
    • agentIds — (Array<String>)

      The IDs of the agents from which to start collecting data. If you send a request to an agent ID that you do not have permission to contact, according to your Amazon Web Services account, the service does not throw an exception. Instead, it returns the error in the Description field. If you send a request to multiple agents and you do not have permission to contact some of those agents, the system does not throw an exception. Instead, the system shows Failed in the Description field.

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:

      • agentsConfigurationStatus — (Array<map>)

        Information about agents that were instructed to start collecting data. Information includes the agent ID, a description of the operation performed, and whether the agent configuration was updated.

        • agentId — (String)

          The agent ID.

        • operationSucceeded — (Boolean)

          Information about the status of the StartDataCollection and StopDataCollection operations. The system has recorded the data collection operation. The agent receives this command the next time it polls for a new command.

        • description — (String)

          A description of the operation performed.

Returns:

  • (AWS.Request)

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

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

Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon Web Services.

Note: Exports might provide an estimate of fees and savings based on certain information that you provide. Fee estimates do not include any taxes that might apply. Your actual fees and savings depend on a variety of factors, including your actual usage of Amazon Web Services services, which might vary from the estimates provided in this report.

If you do not specify preferences or agentIds in the filter, a summary of all servers, applications, tags, and performance is generated. This data is an aggregation of all server data collected through on-premises tooling, file import, application grouping and applying tags.

If you specify agentIds in a filter, the task exports up to 72 hours of detailed data collected by the identified Application Discovery Agent, including network, process, and performance details. A time range for exported agent data may be set by using startTime and endTime. Export of detailed agent data is limited to five concurrently running exports. Export of detailed agent data is limited to two exports per day.

If you enable ec2RecommendationsPreferences in preferences , an Amazon EC2 instance matching the characteristics of each server in Application Discovery Service is generated. Changing the attributes of the ec2RecommendationsPreferences changes the criteria of the recommendation.

Service Reference:

Examples:

Calling the startExportTask operation

var params = {
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  exportDataFormat: [
    CSV,
    /* more items */
  ],
  filters: [
    {
      condition: 'STRING_VALUE', /* required */
      name: 'STRING_VALUE', /* required */
      values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  preferences: {
    ec2RecommendationsPreferences: {
      cpuPerformanceMetricBasis: {
        name: 'STRING_VALUE',
        percentageAdjust: 'NUMBER_VALUE'
      },
      enabled: true || false,
      excludedInstanceTypes: [
        'STRING_VALUE',
        /* more items */
      ],
      preferredRegion: 'STRING_VALUE',
      ramPerformanceMetricBasis: {
        name: 'STRING_VALUE',
        percentageAdjust: 'NUMBER_VALUE'
      },
      reservedInstanceOptions: {
        offeringClass: STANDARD | CONVERTIBLE, /* required */
        purchasingOption: ALL_UPFRONT | PARTIAL_UPFRONT | NO_UPFRONT, /* required */
        termLength: ONE_YEAR | THREE_YEAR /* required */
      },
      tenancy: DEDICATED | SHARED
    }
  },
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
discovery.startExportTask(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: {})
    • exportDataFormat — (Array<String>)

      The file format for the returned export data. Default value is CSV. Note: The GRAPHML option has been deprecated.

    • filters — (Array<map>)

      If a filter is present, it selects the single agentId of the Application Discovery Agent for which data is exported. The agentId can be found in the results of the DescribeAgents API or CLI. If no filter is present, startTime and endTime are ignored and exported data includes both Amazon Web Services Application Discovery Service Agentless Collector collectors data and summary data from Application Discovery Agent agents.

      • namerequired — (String)

        A single ExportFilter name. Supported filters: agentIds.

      • valuesrequired — (Array<String>)

        A single agent ID for a Discovery Agent. An agent ID can be found using the DescribeAgents action. Typically an ADS agent ID is in the form o-0123456789abcdef0.

      • conditionrequired — (String)

        Supported condition: EQUALS

    • startTime — (Date)

      The start timestamp for exported data from the single Application Discovery Agent selected in the filters. If no value is specified, data is exported starting from the first data collected by the agent.

    • endTime — (Date)

      The end timestamp for exported data from the single Application Discovery Agent selected in the filters. If no value is specified, exported data includes the most recent data collected by the agent.

    • preferences — (map)

      Indicates the type of data that needs to be exported. Only one ExportPreferences can be enabled at any time.

      • ec2RecommendationsPreferences — (map)

        If enabled, exported data includes EC2 instance type matches for on-premises servers discovered through Amazon Web Services Application Discovery Service.

        • enabled — (Boolean)

          If set to true, the export preferences is set to Ec2RecommendationsExportPreferences.

        • cpuPerformanceMetricBasis — (map)

          The recommended EC2 instance type that matches the CPU usage metric of server performance data.

          • name — (String)

            A utilization metric that is used by the recommendations.

          • percentageAdjust — (Float)

            Specifies the percentage of the specified utilization metric that is used by the recommendations.

        • ramPerformanceMetricBasis — (map)

          The recommended EC2 instance type that matches the Memory usage metric of server performance data.

          • name — (String)

            A utilization metric that is used by the recommendations.

          • percentageAdjust — (Float)

            Specifies the percentage of the specified utilization metric that is used by the recommendations.

        • tenancy — (String)

          The target tenancy to use for your recommended EC2 instances.

          Possible values include:
          • "DEDICATED"
          • "SHARED"
        • excludedInstanceTypes — (Array<String>)

          An array of instance types to exclude from recommendations.

        • preferredRegion — (String)

          The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.

        • reservedInstanceOptions — (map)

          The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.

          • purchasingOptionrequired — (String)

            The payment plan to use for your Reserved Instance.

            Possible values include:
            • "ALL_UPFRONT"
            • "PARTIAL_UPFRONT"
            • "NO_UPFRONT"
          • offeringClassrequired — (String)

            The flexibility to change the instance types needed for your Reserved Instance.

            Possible values include:
            • "STANDARD"
            • "CONVERTIBLE"
          • termLengthrequired — (String)

            The preferred duration of the Reserved Instance term.

            Possible values include:
            • "ONE_YEAR"
            • "THREE_YEAR"

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:

      • exportId — (String)

        A unique identifier used to query the status of an export request.

Returns:

  • (AWS.Request)

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

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

Starts an import task, which allows you to import details of your on-premises environment directly into Amazon Web Services Migration Hub without having to use the Amazon Web Services Application Discovery Service (Application Discovery Service) tools such as the Amazon Web Services Application Discovery Service Agentless Collector or Application Discovery Agent. This gives you the option to perform migration assessment and planning directly from your imported data, including the ability to group your devices as applications and track their migration status.

To start an import request, do this:

  1. Download the specially formatted comma separated value (CSV) import template, which you can find here: https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv.

  2. Fill out the template with your server and application data.

  3. Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL. Your import file must be in the CSV format.

  4. Use the console or the StartImportTask command with the Amazon Web Services CLI or one of the Amazon Web Services SDKs to import the records from your file.

For more information, including step-by-step procedures, see Migration Hub Import in the Amazon Web Services Application Discovery Service User Guide.

Note: There are limits to the number of import tasks you can create (and delete) in an Amazon Web Services account. For more information, see Amazon Web Services Application Discovery Service Limits in the Amazon Web Services Application Discovery Service User Guide.

Service Reference:

Examples:

Calling the startImportTask operation

var params = {
  importUrl: 'STRING_VALUE', /* required */
  name: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE'
};
discovery.startImportTask(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: {})
    • clientRequestToken — (String)

      Optional. A unique token that you can provide to prevent the same import request from occurring more than once. If you don't provide a token, a token is automatically generated.

      Sending more than one StartImportTask request with the same client request token will return information about the original import task with that client request token.

      If a token is not provided, the SDK will use a version 4 UUID.
    • name — (String)

      A descriptive name for this request. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.

    • importUrl — (String)

      The URL for your import file that you've uploaded to Amazon S3.

      Note: If you're using the Amazon Web Services CLI, this URL is structured as follows: s3://BucketName/ImportFileName.CSV

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:

      • task — (map)

        An array of information related to the import task request including status information, times, IDs, the Amazon S3 Object URL for the import file, and more.

        • importTaskId — (String)

          The unique ID for a specific import task. These IDs aren't globally unique, but they are unique within an Amazon Web Services account.

        • clientRequestToken — (String)

          A unique token used to prevent the same import request from occurring more than once. If you didn't provide a token, a token was automatically generated when the import task request was sent.

        • name — (String)

          A descriptive name for an import task. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.

        • importUrl — (String)

          The URL for your import file that you've uploaded to Amazon S3.

        • status — (String)

          The status of the import task. An import can have the status of IMPORT_COMPLETE and still have some records fail to import from the overall request. More information can be found in the downloadable archive defined in the errorsAndFailedEntriesZip field, or in the Migration Hub management console.

          Possible values include:
          • "IMPORT_IN_PROGRESS"
          • "IMPORT_COMPLETE"
          • "IMPORT_COMPLETE_WITH_ERRORS"
          • "IMPORT_FAILED"
          • "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED"
          • "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"
          • "DELETE_IN_PROGRESS"
          • "DELETE_COMPLETE"
          • "DELETE_FAILED"
          • "DELETE_FAILED_LIMIT_EXCEEDED"
          • "INTERNAL_ERROR"
        • importRequestTime — (Date)

          The time that the import task request was made, presented in the Unix time stamp format.

        • importCompletionTime — (Date)

          The time that the import task request finished, presented in the Unix time stamp format.

        • importDeletedTime — (Date)

          The time that the import task request was deleted, presented in the Unix time stamp format.

        • serverImportSuccess — (Integer)

          The total number of server records in the import file that were successfully imported.

        • serverImportFailure — (Integer)

          The total number of server records in the import file that failed to be imported.

        • applicationImportSuccess — (Integer)

          The total number of application records in the import file that were successfully imported.

        • applicationImportFailure — (Integer)

          The total number of application records in the import file that failed to be imported.

        • errorsAndFailedEntriesZip — (String)

          A link to a compressed archive folder (in the ZIP format) that contains an error log and a file of failed records. You can use these two files to quickly identify records that failed, why they failed, and correct those records. Afterward, you can upload the corrected file to your Amazon S3 bucket and create another import task request.

          This field also includes authorization information so you can confirm the authenticity of the compressed archive before you download it.

          If some records failed to be imported we recommend that you correct the records in the failed entries file and then imports that failed entries file. This prevents you from having to correct and update the larger original file and attempt importing it again.

Returns:

  • (AWS.Request)

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

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

Stop the continuous flow of agent's discovered data into Amazon Athena.

Service Reference:

Examples:

Calling the stopContinuousExport operation

var params = {
  exportId: 'STRING_VALUE' /* required */
};
discovery.stopContinuousExport(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: {})
    • exportId — (String)

      The unique ID assigned to this export.

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:

      • startTime — (Date)

        Timestamp that represents when this continuous export started collecting data.

      • stopTime — (Date)

        Timestamp that represents when this continuous export was stopped.

Returns:

  • (AWS.Request)

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

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

Instructs the specified agents to stop collecting data.

Service Reference:

Examples:

Calling the stopDataCollectionByAgentIds operation

var params = {
  agentIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
discovery.stopDataCollectionByAgentIds(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: {})
    • agentIds — (Array<String>)

      The IDs of the agents from which to stop collecting data.

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:

      • agentsConfigurationStatus — (Array<map>)

        Information about the agents that were instructed to stop collecting data. Information includes the agent ID, a description of the operation performed, and whether the agent configuration was updated.

        • agentId — (String)

          The agent ID.

        • operationSucceeded — (Boolean)

          Information about the status of the StartDataCollection and StopDataCollection operations. The system has recorded the data collection operation. The agent receives this command the next time it polls for a new command.

        • description — (String)

          A description of the operation performed.

Returns:

  • (AWS.Request)

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

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

Updates metadata about an application.

Service Reference:

Examples:

Calling the updateApplication operation

var params = {
  configurationId: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  name: 'STRING_VALUE'
};
discovery.updateApplication(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: {})
    • configurationId — (String)

      Configuration ID of the application to be updated.

    • name — (String)

      New name of the application to be updated.

    • description — (String)

      New description of the application to be updated.

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.

Returns:

  • (AWS.Request)

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