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

Inherits:
AWS.Service show all
Identifier:
marketplacecatalog
API Version:
2018-09-17
Defined in:
(unknown)

Overview

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

Service Description

Catalog API actions allow you to manage your entities through list, describe, and update capabilities. An entity can be a product or an offer on AWS Marketplace.

You can automate your entity update process by integrating the AWS Marketplace Catalog API with your AWS Marketplace product build or deployment pipelines. You can also create your own applications on top of the Catalog API to manage your products on AWS Marketplace.

Sending a Request Using MarketplaceCatalog

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

var marketplacecatalog = new AWS.MarketplaceCatalog({apiVersion: '2018-09-17'});

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

AWS.config.apiVersions = {
  marketplacecatalog: '2018-09-17',
  // other service API versions
};

var marketplacecatalog = new AWS.MarketplaceCatalog();

Version:

  • 2018-09-17

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

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

Examples:

Constructing a MarketplaceCatalog object

var marketplacecatalog = new AWS.MarketplaceCatalog({apiVersion: '2018-09-17'});

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

  • maxRetries (Integer)

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

  • maxRedirects (Integer)

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

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

Returns metadata and content for multiple entities. This is the Batch version of the DescribeEntity API and uses the same IAM permission action as DescribeEntity API.

Service Reference:

Examples:

Calling the batchDescribeEntities operation

var params = {
  EntityRequestList: [ /* required */
    {
      Catalog: 'STRING_VALUE', /* required */
      EntityId: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
marketplacecatalog.batchDescribeEntities(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: {})
    • EntityRequestList — (Array<map>)

      List of entity IDs and the catalogs the entities are present in.

      • Catalogrequired — (String)

        The name of the catalog the entity is present in. The only value at this time is AWSMarketplace.

      • EntityIdrequired — (String)

        The ID of the entity.

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:

      • EntityDetails — (map<map>)

        Details about each entity.

        • EntityType — (String)

          The entity type of the entity, in the format of EntityType@Version.

        • EntityArn — (String)

          The Amazon Resource Name (ARN) of the entity.

        • EntityIdentifier — (String)

          The ID of the entity, in the format of EntityId@RevisionId.

        • LastModifiedDate — (String)

          The last time the entity was modified.

        • DetailsDocument — (map)

          An object that contains all the details of the entity.

      • Errors — (map<map>)

        A map of errors returned, with EntityId as the key and errorDetail as the value.

        • ErrorCode — (String)

          The error code returned.

        • ErrorMessage — (String)

          The error message returned.

Returns:

  • (AWS.Request)

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

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

Used to cancel an open change request. Must be sent before the status of the request changes to APPLYING, the final stage of completing your change request. You can describe a change during the 60-day request history retention period for API calls.

Service Reference:

Examples:

Calling the cancelChangeSet operation

var params = {
  Catalog: 'STRING_VALUE', /* required */
  ChangeSetId: 'STRING_VALUE' /* required */
};
marketplacecatalog.cancelChangeSet(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: {})
    • Catalog — (String)

      Required. The catalog related to the request. Fixed value: AWSMarketplace.

    • ChangeSetId — (String)

      Required. The unique identifier of the StartChangeSet request that you want to cancel.

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:

      • ChangeSetId — (String)

        The unique identifier for the change set referenced in this request.

      • ChangeSetArn — (String)

        The ARN associated with the change set referenced in this request.

Returns:

  • (AWS.Request)

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

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

Deletes a resource-based policy on an entity that is identified by its resource ARN.

Service Reference:

Examples:

Calling the deleteResourcePolicy operation

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

      The Amazon Resource Name (ARN) of the entity resource that is associated with the resource policy.

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.

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

Provides information about a given change set.

Service Reference:

Examples:

Calling the describeChangeSet operation

var params = {
  Catalog: 'STRING_VALUE', /* required */
  ChangeSetId: 'STRING_VALUE' /* required */
};
marketplacecatalog.describeChangeSet(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: {})
    • Catalog — (String)

      Required. The catalog related to the request. Fixed value: AWSMarketplace

    • ChangeSetId — (String)

      Required. The unique identifier for the StartChangeSet request that you want to describe the details for.

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:

      • ChangeSetId — (String)

        Required. The unique identifier for the change set referenced in this request.

      • ChangeSetArn — (String)

        The ARN associated with the unique identifier for the change set referenced in this request.

      • ChangeSetName — (String)

        The optional name provided in the StartChangeSet request. If you do not provide a name, one is set by default.

      • Intent — (String)

        The optional intent provided in the StartChangeSet request. If you do not provide an intent, APPLY is set by default.

        Possible values include:
        • "VALIDATE"
        • "APPLY"
      • StartTime — (String)

        The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request started.

      • EndTime — (String)

        The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request transitioned to a terminal state. The change cannot transition to a different state. Null if the request is not in a terminal state.

      • Status — (String)

        The status of the change request.

        Possible values include:
        • "PREPARING"
        • "APPLYING"
        • "SUCCEEDED"
        • "CANCELLED"
        • "FAILED"
      • FailureCode — (String)

        Returned if the change set is in FAILED status. Can be either CLIENT_ERROR, which means that there are issues with the request (see the ErrorDetailList), or SERVER_FAULT, which means that there is a problem in the system, and you should retry your request.

        Possible values include:
        • "CLIENT_ERROR"
        • "SERVER_FAULT"
      • FailureDescription — (String)

        Returned if there is a failure on the change set, but that failure is not related to any of the changes in the request.

      • ChangeSet — (Array<map>)

        An array of ChangeSummary objects.

        • ChangeType — (String)

          The type of the change.

        • Entity — (map)

          The entity to be changed.

          • Typerequired — (String)

            The type of entity.

          • Identifier — (String)

            The identifier for the entity.

        • Details — (String)

          This object contains details specific to the change type of the requested change.

        • DetailsDocument — (map)

          The JSON value of the details specific to the change type of the requested change.

        • ErrorDetailList — (Array<map>)

          An array of ErrorDetail objects associated with the change.

          • ErrorCode — (String)

            The error code that identifies the type of error.

          • ErrorMessage — (String)

            The message for the error.

        • ChangeName — (String)

          Optional name for the change.

Returns:

  • (AWS.Request)

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

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

Returns the metadata and content of the entity.

Service Reference:

Examples:

Calling the describeEntity operation

var params = {
  Catalog: 'STRING_VALUE', /* required */
  EntityId: 'STRING_VALUE' /* required */
};
marketplacecatalog.describeEntity(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: {})
    • Catalog — (String)

      Required. The catalog related to the request. Fixed value: AWSMarketplace

    • EntityId — (String)

      Required. The unique ID of the entity to describe.

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:

      • EntityType — (String)

        The named type of the entity, in the format of EntityType@Version.

      • EntityIdentifier — (String)

        The identifier of the entity, in the format of EntityId@RevisionId.

      • EntityArn — (String)

        The ARN associated to the unique identifier for the entity referenced in this request.

      • LastModifiedDate — (String)

        The last modified date of the entity, in ISO 8601 format (2018-02-27T13:45:22Z).

      • Details — (String)

        This stringified JSON object includes the details of the entity.

      • DetailsDocument — (map)

        The JSON value of the details specific to the entity.

Returns:

  • (AWS.Request)

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

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

Gets a resource-based policy of an entity that is identified by its resource ARN.

Service Reference:

Examples:

Calling the getResourcePolicy operation

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

      The Amazon Resource Name (ARN) of the entity resource that is associated with the resource policy.

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:

      • Policy — (String)

        The policy document to set; formatted in JSON.

Returns:

  • (AWS.Request)

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

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

Returns the list of change sets owned by the account being used to make the call. You can filter this list by providing any combination of entityId, ChangeSetName, and status. If you provide more than one filter, the API operation applies a logical AND between the filters.

You can describe a change during the 60-day request history retention period for API calls.

Service Reference:

Examples:

Calling the listChangeSets operation

var params = {
  Catalog: 'STRING_VALUE', /* required */
  FilterList: [
    {
      Name: 'STRING_VALUE',
      ValueList: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  Sort: {
    SortBy: 'STRING_VALUE',
    SortOrder: ASCENDING | DESCENDING
  }
};
marketplacecatalog.listChangeSets(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: {})
    • Catalog — (String)

      The catalog related to the request. Fixed value: AWSMarketplace

    • FilterList — (Array<map>)

      An array of filter objects.

      • Name — (String)

        For ListEntities, the supported value for this is an EntityId.

        For ListChangeSets, the supported values are as follows:

      • ValueList — (Array<String>)

        ListEntities - This is a list of unique EntityIds.

        ListChangeSets - The supported filter names and associated ValueLists is as follows:

        • ChangeSetName - The supported ValueList is a list of non-unique ChangeSetNames. These are defined when you call the StartChangeSet action.

        • Status - The supported ValueList is a list of statuses for all change set requests.

        • EntityId - The supported ValueList is a list of unique EntityIds.

        • BeforeStartTime - The supported ValueList is a list of all change sets that started before the filter value.

        • AfterStartTime - The supported ValueList is a list of all change sets that started after the filter value.

        • BeforeEndTime - The supported ValueList is a list of all change sets that ended before the filter value.

        • AfterEndTime - The supported ValueList is a list of all change sets that ended after the filter value.

    • Sort — (map)

      An object that contains two attributes, SortBy and SortOrder.

      • SortBy — (String)

        For ListEntities, supported attributes include LastModifiedDate (default) and EntityId. In addition to LastModifiedDate and EntityId, each EntityType might support additional fields.

        For ListChangeSets, supported attributes include StartTime and EndTime.

      • SortOrder — (String)

        The sorting order. Can be ASCENDING or DESCENDING. The default value is DESCENDING.

        Possible values include:
        • "ASCENDING"
        • "DESCENDING"
    • MaxResults — (Integer)

      The maximum number of results returned by a single call. This value must be provided in the next call to retrieve the next set of results. By default, this value is 20.

    • NextToken — (String)

      The token value retrieved from a previous call to access the next 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:

      • ChangeSetSummaryList — (Array<map>)

        Array of ChangeSetSummaryListItem objects.

        • ChangeSetId — (String)

          The unique identifier for a change set.

        • ChangeSetArn — (String)

          The ARN associated with the unique identifier for the change set referenced in this request.

        • ChangeSetName — (String)

          The non-unique name for the change set.

        • StartTime — (String)

          The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was started.

        • EndTime — (String)

          The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was finished.

        • Status — (String)

          The current status of the change set.

          Possible values include:
          • "PREPARING"
          • "APPLYING"
          • "SUCCEEDED"
          • "CANCELLED"
          • "FAILED"
        • EntityIdList — (Array<String>)

          This object is a list of entity IDs (string) that are a part of a change set. The entity ID list is a maximum of 20 entities. It must contain at least one entity.

        • FailureCode — (String)

          Returned if the change set is in FAILED status. Can be either CLIENT_ERROR, which means that there are issues with the request (see the ErrorDetailList of DescribeChangeSet), or SERVER_FAULT, which means that there is a problem in the system, and you should retry your request.

          Possible values include:
          • "CLIENT_ERROR"
          • "SERVER_FAULT"
      • NextToken — (String)

        The value of the next token, if it exists. Null if there are no more results.

Returns:

  • (AWS.Request)

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

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

Provides the list of entities of a given type.

Service Reference:

Examples:

Calling the listEntities operation

var params = {
  Catalog: 'STRING_VALUE', /* required */
  EntityType: 'STRING_VALUE', /* required */
  EntityTypeFilters: {
    AmiProductFilters: {
      EntityId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      LastModifiedDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        }
      },
      ProductTitle: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      Visibility: {
        ValueList: [
          Limited | Public | Restricted | Draft,
          /* more items */
        ]
      }
    },
    ContainerProductFilters: {
      EntityId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      LastModifiedDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        }
      },
      ProductTitle: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      Visibility: {
        ValueList: [
          Limited | Public | Restricted | Draft,
          /* more items */
        ]
      }
    },
    DataProductFilters: {
      EntityId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      LastModifiedDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        }
      },
      ProductTitle: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      Visibility: {
        ValueList: [
          Limited | Public | Restricted | Unavailable | Draft,
          /* more items */
        ]
      }
    },
    OfferFilters: {
      AvailabilityEndDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        }
      },
      BuyerAccounts: {
        WildCardValue: 'STRING_VALUE'
      },
      EntityId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      LastModifiedDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        }
      },
      Name: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      ProductId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      ReleaseDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        }
      },
      ResaleAuthorizationId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      State: {
        ValueList: [
          Draft | Released,
          /* more items */
        ]
      },
      Targeting: {
        ValueList: [
          BuyerAccounts | ParticipatingPrograms | CountryCodes | None,
          /* more items */
        ]
      }
    },
    ResaleAuthorizationFilters: {
      AvailabilityEndDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        },
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      CreatedDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        },
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      EntityId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      LastModifiedDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        }
      },
      ManufacturerAccountId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      ManufacturerLegalName: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      Name: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      OfferExtendedStatus: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      ProductId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      ProductName: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      ResellerAccountID: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      ResellerLegalName: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      Status: {
        ValueList: [
          Draft | Active | Restricted,
          /* more items */
        ]
      }
    },
    SaaSProductFilters: {
      EntityId: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      LastModifiedDate: {
        DateRange: {
          AfterValue: 'STRING_VALUE',
          BeforeValue: 'STRING_VALUE'
        }
      },
      ProductTitle: {
        ValueList: [
          'STRING_VALUE',
          /* more items */
        ],
        WildCardValue: 'STRING_VALUE'
      },
      Visibility: {
        ValueList: [
          Limited | Public | Restricted | Draft,
          /* more items */
        ]
      }
    }
  },
  EntityTypeSort: {
    AmiProductSort: {
      SortBy: EntityId | LastModifiedDate | ProductTitle | Visibility,
      SortOrder: ASCENDING | DESCENDING
    },
    ContainerProductSort: {
      SortBy: EntityId | LastModifiedDate | ProductTitle | Visibility,
      SortOrder: ASCENDING | DESCENDING
    },
    DataProductSort: {
      SortBy: EntityId | ProductTitle | Visibility | LastModifiedDate,
      SortOrder: ASCENDING | DESCENDING
    },
    OfferSort: {
      SortBy: EntityId | Name | ProductId | ResaleAuthorizationId | ReleaseDate | AvailabilityEndDate | BuyerAccounts | State | Targeting | LastModifiedDate,
      SortOrder: ASCENDING | DESCENDING
    },
    ResaleAuthorizationSort: {
      SortBy: EntityId | Name | ProductId | ProductName | ManufacturerAccountId | ManufacturerLegalName | ResellerAccountID | ResellerLegalName | Status | OfferExtendedStatus | CreatedDate | AvailabilityEndDate | LastModifiedDate,
      SortOrder: ASCENDING | DESCENDING
    },
    SaaSProductSort: {
      SortBy: EntityId | ProductTitle | Visibility | LastModifiedDate,
      SortOrder: ASCENDING | DESCENDING
    }
  },
  FilterList: [
    {
      Name: 'STRING_VALUE',
      ValueList: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  OwnershipType: SELF | SHARED,
  Sort: {
    SortBy: 'STRING_VALUE',
    SortOrder: ASCENDING | DESCENDING
  }
};
marketplacecatalog.listEntities(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: {})
    • Catalog — (String)

      The catalog related to the request. Fixed value: AWSMarketplace

    • EntityType — (String)

      The type of entities to retrieve. Valid values are: AmiProduct, ContainerProduct, DataProduct, SaaSProduct, ProcurementPolicy, Experience, Audience, BrandingSettings, Offer, Seller, ResaleAuthorization.

    • FilterList — (Array<map>)

      An array of filter objects. Each filter object contains two attributes, filterName and filterValues.

      • Name — (String)

        For ListEntities, the supported value for this is an EntityId.

        For ListChangeSets, the supported values are as follows:

      • ValueList — (Array<String>)

        ListEntities - This is a list of unique EntityIds.

        ListChangeSets - The supported filter names and associated ValueLists is as follows:

        • ChangeSetName - The supported ValueList is a list of non-unique ChangeSetNames. These are defined when you call the StartChangeSet action.

        • Status - The supported ValueList is a list of statuses for all change set requests.

        • EntityId - The supported ValueList is a list of unique EntityIds.

        • BeforeStartTime - The supported ValueList is a list of all change sets that started before the filter value.

        • AfterStartTime - The supported ValueList is a list of all change sets that started after the filter value.

        • BeforeEndTime - The supported ValueList is a list of all change sets that ended before the filter value.

        • AfterEndTime - The supported ValueList is a list of all change sets that ended after the filter value.

    • Sort — (map)

      An object that contains two attributes, SortBy and SortOrder.

      • SortBy — (String)

        For ListEntities, supported attributes include LastModifiedDate (default) and EntityId. In addition to LastModifiedDate and EntityId, each EntityType might support additional fields.

        For ListChangeSets, supported attributes include StartTime and EndTime.

      • SortOrder — (String)

        The sorting order. Can be ASCENDING or DESCENDING. The default value is DESCENDING.

        Possible values include:
        • "ASCENDING"
        • "DESCENDING"
    • NextToken — (String)

      The value of the next token, if it exists. Null if there are no more results.

    • MaxResults — (Integer)

      Specifies the upper limit of the elements on a single page. If a value isn't provided, the default value is 20.

    • OwnershipType — (String)

      Filters the returned set of entities based on their owner. The default is SELF. To list entities shared with you through AWS Resource Access Manager (AWS RAM), set to SHARED. Entities shared through the AWS Marketplace Catalog API PutResourcePolicy operation can't be discovered through the SHARED parameter.

      Possible values include:
      • "SELF"
      • "SHARED"
    • EntityTypeFilters — (map)

      A Union object containing filter shapes for all EntityTypes. Each EntityTypeFilter shape will have filters applicable for that EntityType that can be used to search or filter entities.

      • DataProductFilters — (map)

        A filter for data products.

        • EntityId — (map)

          Unique identifier for the data product.

          • ValueList — (Array<String>)

            A string array of unique entity id values to be filtered on.

        • ProductTitle — (map)

          The title of the data product.

          • ValueList — (Array<String>)

            A string array of unique product title values to be filtered on.

          • WildCardValue — (String)

            A string that will be the wildCard input for product tile filter. It matches the provided value as a substring in the actual value.

        • Visibility — (map)

          The visibility of the data product.

          • ValueList — (Array<String>)

            A string array of unique visibility values to be filtered on.

        • LastModifiedDate — (map)

          The last date on which the data product was modified.

          • DateRange — (map)

            Dates between which the data product was last modified.

            • AfterValue — (String)

              Date after which the data product was last modified.

            • BeforeValue — (String)

              Date before which the data product was last modified.

      • SaaSProductFilters — (map)

        A filter for SaaS products.

        • EntityId — (map)

          Unique identifier for the SaaS product.

          • ValueList — (Array<String>)

            A string array of unique entity id values to be filtered on.

        • ProductTitle — (map)

          The title of the SaaS product.

          • ValueList — (Array<String>)

            A string array of unique product title values to be filtered on.

          • WildCardValue — (String)

            A string that will be the wildCard input for product tile filter. It matches the provided value as a substring in the actual value.

        • Visibility — (map)

          The visibility of the SaaS product.

          • ValueList — (Array<String>)

            A string array of unique visibility values to be filtered on.

        • LastModifiedDate — (map)

          The last date on which the SaaS product was modified.

          • DateRange — (map)

            Dates between which the SaaS product was last modified.

            • AfterValue — (String)

              Date after which the SaaS product was last modified.

            • BeforeValue — (String)

              Date before which the SaaS product was last modified.

      • AmiProductFilters — (map)

        A filter for AMI products.

        • EntityId — (map)

          Unique identifier for the AMI product.

          • ValueList — (Array<String>)

            A string array of unique entity id values to be filtered on.

        • LastModifiedDate — (map)

          The last date on which the AMI product was modified.

          • DateRange — (map)

            Dates between which the AMI product was last modified.

            • AfterValue — (String)

              Date after which the AMI product was last modified.

            • BeforeValue — (String)

              Date before which the AMI product was last modified.

        • ProductTitle — (map)

          The title of the AMI product.

          • ValueList — (Array<String>)

            A string array of unique product title values to be filtered on.

          • WildCardValue — (String)

            A string that will be the wildCard input for product tile filter. It matches the provided value as a substring in the actual value.

        • Visibility — (map)

          The visibility of the AMI product.

          • ValueList — (Array<String>)

            A string array of unique visibility values to be filtered on.

      • OfferFilters — (map)

        A filter for offers.

        • EntityId — (map)

          Allows filtering on EntityId of an offer.

          • ValueList — (Array<String>)

            Allows filtering on entity id of an offer with list input.

        • Name — (map)

          Allows filtering on the Name of an offer.

          • ValueList — (Array<String>)

            Allows filtering on the Name of an offer with list input.

          • WildCardValue — (String)

            Allows filtering on the Name of an offer with wild card input.

        • ProductId — (map)

          Allows filtering on the ProductId of an offer.

          • ValueList — (Array<String>)

            Allows filtering on the ProductId of an offer with list input.

        • ResaleAuthorizationId — (map)

          Allows filtering on the ResaleAuthorizationId of an offer.

          Note: Not all offers have a ResaleAuthorizationId. The response will only include offers for which you have permissions.
          • ValueList — (Array<String>)

            Allows filtering on the ResaleAuthorizationId of an offer with list input.

        • ReleaseDate — (map)

          Allows filtering on the ReleaseDate of an offer.

          • DateRange — (map)

            Allows filtering on the ReleaseDate of an offer with date range as input.

            • AfterValue — (String)

              Allows filtering on the ReleaseDate of offers after a date.

            • BeforeValue — (String)

              Allows filtering on the ReleaseDate of offers before a date.

        • AvailabilityEndDate — (map)

          Allows filtering on the AvailabilityEndDate of an offer.

          • DateRange — (map)

            Allows filtering on the AvailabilityEndDate of an offer with date range as input.

            • AfterValue — (String)

              Allows filtering on the AvailabilityEndDate of an offer after a date.

            • BeforeValue — (String)

              Allows filtering on the AvailabilityEndDate of an offer before a date.

        • BuyerAccounts — (map)

          Allows filtering on the BuyerAccounts of an offer.

          • WildCardValue — (String)

            Allows filtering on the BuyerAccounts of an offer with wild card input.

        • State — (map)

          Allows filtering on the State of an offer.

          • ValueList — (Array<String>)

            Allows filtering on the State of an offer with list input.

        • Targeting — (map)

          Allows filtering on the Targeting of an offer.

          • ValueList — (Array<String>)

            Allows filtering on the Targeting of an offer with list input.

        • LastModifiedDate — (map)

          Allows filtering on the LastModifiedDate of an offer.

          • DateRange — (map)

            Allows filtering on the LastModifiedDate of an offer with date range as input.

            • AfterValue — (String)

              Allows filtering on the LastModifiedDate of an offer after a date.

            • BeforeValue — (String)

              Allows filtering on the LastModifiedDate of an offer before a date.

      • ContainerProductFilters — (map)

        A filter for container products.

        • EntityId — (map)

          Unique identifier for the container product.

          • ValueList — (Array<String>)

            A string array of unique entity id values to be filtered on.

        • LastModifiedDate — (map)

          The last date on which the container product was modified.

          • DateRange — (map)

            Dates between which the container product was last modified.

            • AfterValue — (String)

              Date after which the container product was last modified.

            • BeforeValue — (String)

              Date before which the container product was last modified.

        • ProductTitle — (map)

          The title of the container product.

          • ValueList — (Array<String>)

            A string array of unique product title values to be filtered on.

          • WildCardValue — (String)

            A string that will be the wildCard input for product tile filter. It matches the provided value as a substring in the actual value.

        • Visibility — (map)

          The visibility of the container product.

          • ValueList — (Array<String>)

            A string array of unique visibility values to be filtered on.

      • ResaleAuthorizationFilters — (map)

        A filter for Resale Authorizations.

        • EntityId — (map)

          Allows filtering on the EntityId of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on EntityId of a ResaleAuthorization with list input.

        • Name — (map)

          Allows filtering on the Name of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the Name of a ResaleAuthorization with list input.

          • WildCardValue — (String)

            Allows filtering on the Name of a ResaleAuthorization with wild card input.

        • ProductId — (map)

          Allows filtering on the ProductId of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the ProductId of a ResaleAuthorization with list input.

          • WildCardValue — (String)

            Allows filtering on the ProductId of a ResaleAuthorization with wild card input.

        • CreatedDate — (map)

          Allows filtering on the CreatedDate of a ResaleAuthorization.

          • DateRange — (map)

            Allows filtering on CreatedDate of a ResaleAuthorization with date range as input.

            • AfterValue — (String)

              Allows filtering on CreatedDate of a ResaleAuthorization after a date.

            • BeforeValue — (String)

              Allows filtering on CreatedDate of a ResaleAuthorization before a date.

          • ValueList — (Array<String>)

            Allows filtering on CreatedDate of a ResaleAuthorization with date value as input.

        • AvailabilityEndDate — (map)

          Allows filtering on the AvailabilityEndDate of a ResaleAuthorization.

          • DateRange — (map)

            Allows filtering on AvailabilityEndDate of a ResaleAuthorization with date range as input

            • AfterValue — (String)

              Allows filtering on AvailabilityEndDate of a ResaleAuthorization after a date.

            • BeforeValue — (String)

              Allows filtering on AvailabilityEndDate of a ResaleAuthorization before a date.

          • ValueList — (Array<String>)

            Allows filtering on AvailabilityEndDate of a ResaleAuthorization with date value as input.

        • ManufacturerAccountId — (map)

          Allows filtering on the ManufacturerAccountId of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the ManufacturerAccountId of a ResaleAuthorization with list input.

          • WildCardValue — (String)

            Allows filtering on the ManufacturerAccountId of a ResaleAuthorization with wild card input.

        • ProductName — (map)

          Allows filtering on the ProductName of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the ProductName of a ResaleAuthorization with list input.

          • WildCardValue — (String)

            Allows filtering on the ProductName of a ResaleAuthorization with wild card input.

        • ManufacturerLegalName — (map)

          Allows filtering on the ManufacturerLegalName of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the ManufacturerLegalName of a ResaleAuthorization with list input.

          • WildCardValue — (String)

            Allows filtering on the ManufacturerLegalName of a ResaleAuthorization with wild card input.

        • ResellerAccountID — (map)

          Allows filtering on the ResellerAccountID of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the ResellerAccountID of a ResaleAuthorization with list input.

          • WildCardValue — (String)

            Allows filtering on the ResellerAccountID of a ResaleAuthorization with wild card input.

        • ResellerLegalName — (map)

          Allows filtering on the ResellerLegalName of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the ResellerLegalNameProductName of a ResaleAuthorization with list input.

          • WildCardValue — (String)

            Allows filtering on the ResellerLegalName of a ResaleAuthorization with wild card input.

        • Status — (map)

          Allows filtering on the Status of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the Status of a ResaleAuthorization with list input.

        • OfferExtendedStatus — (map)

          Allows filtering on the OfferExtendedStatus of a ResaleAuthorization.

          • ValueList — (Array<String>)

            Allows filtering on the OfferExtendedStatus of a ResaleAuthorization with list input.

        • LastModifiedDate — (map)

          Allows filtering on the LastModifiedDate of a ResaleAuthorization.

          • DateRange — (map)

            Allows filtering on the LastModifiedDate of a ResaleAuthorization with date range as input.

            • AfterValue — (String)

              Allows filtering on the LastModifiedDate of a ResaleAuthorization after a date.

            • BeforeValue — (String)

              Allows filtering on the LastModifiedDate of a ResaleAuthorization before a date.

    • EntityTypeSort — (map)

      A Union object containing Sort shapes for all EntityTypes. Each EntityTypeSort shape will have SortBy and SortOrder applicable for fields on that EntityType. This can be used to sort the results of the filter query.

      • DataProductSort — (map)

        A sort for data products.

        • SortBy — (String)

          Field to sort the data products by.

          Possible values include:
          • "EntityId"
          • "ProductTitle"
          • "Visibility"
          • "LastModifiedDate"
        • SortOrder — (String)

          The sorting order. Can be ASCENDING or DESCENDING. The default value is DESCENDING.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"
      • SaaSProductSort — (map)

        A sort for SaaS products.

        • SortBy — (String)

          Field to sort the SaaS products by.

          Possible values include:
          • "EntityId"
          • "ProductTitle"
          • "Visibility"
          • "LastModifiedDate"
        • SortOrder — (String)

          The sorting order. Can be ASCENDING or DESCENDING. The default value is DESCENDING.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"
      • AmiProductSort — (map)

        A sort for AMI products.

        • SortBy — (String)

          Field to sort the AMI products by.

          Possible values include:
          • "EntityId"
          • "LastModifiedDate"
          • "ProductTitle"
          • "Visibility"
        • SortOrder — (String)

          The sorting order. Can be ASCENDING or DESCENDING. The default value is DESCENDING.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"
      • OfferSort — (map)

        A sort for offers.

        • SortBy — (String)

          Allows to sort offers.

          Possible values include:
          • "EntityId"
          • "Name"
          • "ProductId"
          • "ResaleAuthorizationId"
          • "ReleaseDate"
          • "AvailabilityEndDate"
          • "BuyerAccounts"
          • "State"
          • "Targeting"
          • "LastModifiedDate"
        • SortOrder — (String)

          Allows to sort offers.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"
      • ContainerProductSort — (map)

        A sort for container products.

        • SortBy — (String)

          Field to sort the container products by.

          Possible values include:
          • "EntityId"
          • "LastModifiedDate"
          • "ProductTitle"
          • "Visibility"
        • SortOrder — (String)

          The sorting order. Can be ASCENDING or DESCENDING. The default value is DESCENDING.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"
      • ResaleAuthorizationSort — (map)

        A sort for Resale Authorizations.

        • SortBy — (String)

          Allows to sort ResaleAuthorization.

          Possible values include:
          • "EntityId"
          • "Name"
          • "ProductId"
          • "ProductName"
          • "ManufacturerAccountId"
          • "ManufacturerLegalName"
          • "ResellerAccountID"
          • "ResellerLegalName"
          • "Status"
          • "OfferExtendedStatus"
          • "CreatedDate"
          • "AvailabilityEndDate"
          • "LastModifiedDate"
        • SortOrder — (String)

          Allows to sort ResaleAuthorization.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"

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:

      • EntitySummaryList — (Array<map>)

        Array of EntitySummary objects.

        • Name — (String)

          The name for the entity. This value is not unique. It is defined by the seller.

        • EntityType — (String)

          The type of the entity.

        • EntityId — (String)

          The unique identifier for the entity.

        • EntityArn — (String)

          The ARN associated with the unique identifier for the entity.

        • LastModifiedDate — (String)

          The last time the entity was published, using ISO 8601 format (2018-02-27T13:45:22Z).

        • Visibility — (String)

          The visibility status of the entity to buyers. This value can be Public (everyone can view the entity), Limited (the entity is visible to limited accounts only), or Restricted (the entity was published and then unpublished and only existing buyers can view it).

        • AmiProductSummary — (map)

          An object that contains summary information about the AMI product.

          • ProductTitle — (String)

            The title of the AMI product.

          • Visibility — (String)

            The lifecycle of the AMI product.

            Possible values include:
            • "Limited"
            • "Public"
            • "Restricted"
            • "Draft"
        • ContainerProductSummary — (map)

          An object that contains summary information about the container product.

          • ProductTitle — (String)

            The title of the container product.

          • Visibility — (String)

            The lifecycle of the product.

            Possible values include:
            • "Limited"
            • "Public"
            • "Restricted"
            • "Draft"
        • DataProductSummary — (map)

          An object that contains summary information about the data product.

          • ProductTitle — (String)

            The title of the data product.

          • Visibility — (String)

            The lifecycle of the data product.

            Possible values include:
            • "Limited"
            • "Public"
            • "Restricted"
            • "Unavailable"
            • "Draft"
        • SaaSProductSummary — (map)

          An object that contains summary information about the SaaS product.

          • ProductTitle — (String)

            The title of the SaaS product.

          • Visibility — (String)

            The lifecycle of the SaaS product.

            Possible values include:
            • "Limited"
            • "Public"
            • "Restricted"
            • "Draft"
        • OfferSummary — (map)

          An object that contains summary information about the offer.

          • Name — (String)

            The name of the offer.

          • ProductId — (String)

            The product ID of the offer.

          • ResaleAuthorizationId — (String)

            The ResaleAuthorizationId of the offer.

          • ReleaseDate — (String)

            The release date of the offer.

          • AvailabilityEndDate — (String)

            The availability end date of the offer.

          • BuyerAccounts — (Array<String>)

            The buyer accounts in the offer.

          • State — (String)

            The status of the offer.

            Possible values include:
            • "Draft"
            • "Released"
          • Targeting — (Array<String>)

            The targeting in the offer.

        • ResaleAuthorizationSummary — (map)

          An object that contains summary information about the Resale Authorization.

          • Name — (String)

            The name of the ResaleAuthorization.

          • ProductId — (String)

            The product ID of the ResaleAuthorization.

          • ProductName — (String)

            The product name of the ResaleAuthorization.

          • ManufacturerAccountId — (String)

            The manufacturer account ID of the ResaleAuthorization.

          • ManufacturerLegalName — (String)

            The manufacturer legal name of the ResaleAuthorization.

          • ResellerAccountID — (String)

            The reseller account ID of the ResaleAuthorization.

          • ResellerLegalName — (String)

            The reseller legal name of the ResaleAuthorization

          • Status — (String)

            The status of the ResaleAuthorization.

            Possible values include:
            • "Draft"
            • "Active"
            • "Restricted"
          • OfferExtendedStatus — (String)

            The offer extended status of the ResaleAuthorization

          • CreatedDate — (String)

            The created date of the ResaleAuthorization.

          • AvailabilityEndDate — (String)

            The availability end date of the ResaleAuthorization.

      • NextToken — (String)

        The value of the next token if it exists. Null if there is no more result.

Returns:

  • (AWS.Request)

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

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

Lists all tags that have been added to a resource (either an entity or change set).

Service Reference:

Examples:

Calling the listTagsForResource operation

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

      Required. The Amazon Resource Name (ARN) associated with the resource you want to list tags on.

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:

      • ResourceArn — (String)

        Required. The ARN associated with the resource you want to list tags on.

      • Tags — (Array<map>)

        Required. A list of objects specifying each key name and value. Number of objects allowed: 1-50.

        • Keyrequired — (String)

          The key associated with the tag.

        • Valuerequired — (String)

          The value associated with the tag.

Returns:

  • (AWS.Request)

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

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

Attaches a resource-based policy to an entity. Examples of an entity include: AmiProduct and ContainerProduct.

Service Reference:

Examples:

Calling the putResourcePolicy operation

var params = {
  Policy: 'STRING_VALUE', /* required */
  ResourceArn: 'STRING_VALUE' /* required */
};
marketplacecatalog.putResourcePolicy(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: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.

    • Policy — (String)

      The policy document to set; formatted in JSON.

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.

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

Allows you to request changes for your entities. Within a single ChangeSet, you can't start the same change type against the same entity multiple times. Additionally, when a ChangeSet is running, all the entities targeted by the different changes are locked until the change set has completed (either succeeded, cancelled, or failed). If you try to start a change set containing a change against an entity that is already locked, you will receive a ResourceInUseException error.

For example, you can't start the ChangeSet described in the example later in this topic because it contains two changes to run the same change type (AddRevisions) against the same entity (entity-id@1).

For more information about working with change sets, see Working with change sets. For information about change types for single-AMI products, see Working with single-AMI products. Also, for more information about change types available for container-based products, see Working with container products.

Service Reference:

Examples:

Calling the startChangeSet operation

var params = {
  Catalog: 'STRING_VALUE', /* required */
  ChangeSet: [ /* required */
    {
      ChangeType: 'STRING_VALUE', /* required */
      Entity: { /* required */
        Type: 'STRING_VALUE', /* required */
        Identifier: 'STRING_VALUE'
      },
      ChangeName: 'STRING_VALUE',
      Details: 'STRING_VALUE',
      DetailsDocument: {
      },
      EntityTags: [
        {
          Key: 'STRING_VALUE', /* required */
          Value: 'STRING_VALUE' /* required */
        },
        /* more items */
      ]
    },
    /* more items */
  ],
  ChangeSetName: 'STRING_VALUE',
  ChangeSetTags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  ClientRequestToken: 'STRING_VALUE',
  Intent: VALIDATE | APPLY
};
marketplacecatalog.startChangeSet(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: {})
    • Catalog — (String)

      The catalog related to the request. Fixed value: AWSMarketplace

    • ChangeSet — (Array<map>)

      Array of change object.

      • ChangeTyperequired — (String)

        Change types are single string values that describe your intention for the change. Each change type is unique for each EntityType provided in the change's scope. For more information about change types available for single-AMI products, see Working with single-AMI products. Also, for more information about change types available for container-based products, see Working with container products.

      • Entityrequired — (map)

        The entity to be changed.

        • Typerequired — (String)

          The type of entity.

        • Identifier — (String)

          The identifier for the entity.

      • EntityTags — (Array<map>)

        The tags associated with the change.

        • Keyrequired — (String)

          The key associated with the tag.

        • Valuerequired — (String)

          The value associated with the tag.

      • Details — (String)

        This object contains details specific to the change type of the requested change. For more information about change types available for single-AMI products, see Working with single-AMI products. Also, for more information about change types available for container-based products, see Working with container products.

      • DetailsDocument — (map)

        Alternative field that accepts a JSON value instead of a string for ChangeType details. You can use either Details or DetailsDocument, but not both.

      • ChangeName — (String)

        Optional name for the change.

    • ChangeSetName — (String)

      Optional case sensitive string of up to 100 ASCII characters. The change set name can be used to filter the list of change sets.

    • ClientRequestToken — (String)

      A unique token to identify the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.
    • ChangeSetTags — (Array<map>)

      A list of objects specifying each key name and value for the ChangeSetTags property.

      • Keyrequired — (String)

        The key associated with the tag.

      • Valuerequired — (String)

        The value associated with the tag.

    • Intent — (String)

      The intent related to the request. The default is APPLY. To test your request before applying changes to your entities, use VALIDATE. This feature is currently available for adding versions to single-AMI products. For more information, see Add a new version.

      Possible values include:
      • "VALIDATE"
      • "APPLY"

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:

      • ChangeSetId — (String)

        Unique identifier generated for the request.

      • ChangeSetArn — (String)

        The ARN associated to the unique identifier generated for the request.

Returns:

  • (AWS.Request)

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

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

Tags a resource (either an entity or change set).

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
marketplacecatalog.tagResource(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: {})
    • ResourceArn — (String)

      Required. The Amazon Resource Name (ARN) associated with the resource you want to tag.

    • Tags — (Array<map>)

      Required. A list of objects specifying each key name and value. Number of objects allowed: 1-50.

      • Keyrequired — (String)

        The key associated with the tag.

      • Valuerequired — (String)

        The value associated with the tag.

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.

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

Removes a tag or list of tags from a resource (either an entity or change set).

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
marketplacecatalog.untagResource(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: {})
    • ResourceArn — (String)

      Required. The Amazon Resource Name (ARN) associated with the resource you want to remove the tag from.

    • TagKeys — (Array<String>)

      Required. A list of key names of tags to be removed. Number of strings allowed: 0-256.

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.