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

Inherits:
AWS.Service show all
Identifier:
marketplaceagreement
API Version:
2020-03-01
Defined in:
(unknown)

Overview

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

Service Description

AWS Marketplace is a curated digital catalog that customers can use to find, buy, deploy, and manage third-party software, data, and services to build solutions and run their businesses. The AWS Marketplace Agreement Service provides an API interface that helps AWS Marketplace sellers manage their product-related agreements, including listing, searching, and filtering agreements.

To manage agreements in AWS Marketplace, you must ensure that your AWS Identity and Access Management (IAM) policies and roles are set up. The user must have the required policies/permissions that allow them to carry out the actions in AWS:

  • DescribeAgreement – Grants permission to users to obtain detailed meta data about any of their agreements.

  • GetAgreementTerms – Grants permission to users to obtain details about the terms of an agreement.

  • SearchAgreements – Grants permission to users to search through all their agreements.

Sending a Request Using MarketplaceAgreement

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

var marketplaceagreement = new AWS.MarketplaceAgreement({apiVersion: '2020-03-01'});

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

AWS.config.apiVersions = {
  marketplaceagreement: '2020-03-01',
  // other service API versions
};

var marketplaceagreement = new AWS.MarketplaceAgreement();

Version:

  • 2020-03-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.MarketplaceAgreement(options = {}) ⇒ Object

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

Examples:

Constructing a MarketplaceAgreement object

var marketplaceagreement = new AWS.MarketplaceAgreement({apiVersion: '2020-03-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.MarketplaceAgreement.region for more information.

  • maxRetries (Integer)

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

  • maxRedirects (Integer)

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

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

Provides details about an agreement, such as the proposer, acceptor, start date, and end date.

Service Reference:

Examples:

Calling the describeAgreement operation

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

      The unique identifier of the agreement.

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:

      • acceptanceTime — (Date)

        The date and time the offer was accepted or the agreement was created.

        Note: AcceptanceTime and StartTime can differ for future dated agreements (FDAs).
      • acceptor — (map)

        The details of the party accepting the agreement terms. This is commonly the buyer for PurchaseAgreement.

        • accountId — (String)

          The AWS account ID of the acceptor.

      • agreementId — (String)

        The unique identifier of the agreement.

      • agreementType — (String)

        The type of agreement. Values are PurchaseAgreement or VendorInsightsAgreement.

      • endTime — (Date)

        The date and time when the agreement ends. The field is null for pay-as-you-go agreements, which don’t have end dates.

      • estimatedCharges — (map)

        The estimated cost of the agreement.

        • agreementValue — (String)

          The total known amount customer has to pay across the lifecycle of the agreement.

          Note: This is the total contract value if accepted terms contain ConfigurableUpfrontPricingTerm or FixedUpfrontPricingTerm. In the case of pure contract pricing, this will be the total value of the contract. In the case of contracts with consumption pricing, this will only include the committed value and not include any overages that occur. If the accepted terms contain PaymentScheduleTerm, it will be the total payment schedule amount. This occurs when flexible payment schedule is used, and is the sum of all invoice charges in the payment schedule. In case a customer has amended an agreement, by purchasing more units of any dimension, this will include both the original cost as well as the added cost incurred due to addition of new units. This is 0 if the accepted terms contain UsageBasedPricingTerm without ConfigurableUpfrontPricingTerm or RecurringPaymentTerm. This occurs for usage-based pricing (such as SaaS metered or AMI/container hourly or monthly), because the exact usage is not known upfront.
        • currencyCode — (String)

          Defines the currency code for the charge.

      • proposalSummary — (map)

        A summary of the proposal received from the proposer.

        • offerId — (String)

          The unique identifier of the offer in AWS Marketplace.

        • resources — (Array<map>)

          The list of resources involved in the agreement.

          • id — (String)

            The unique identifier of the resource.

            Note: We mention the term resource, which is most commonly a product, so a resourceId is also a productId.
          • type — (String)

            Type of the resource, which is the product. Values include SaaSProduct or AmiProduct.

      • proposer — (map)

        The details of the party proposing the agreement terms. This is commonly the seller for PurchaseAgreement.

        • accountId — (String)

          The AWS account ID of the proposer.

      • startTime — (Date)

        The date and time when the agreement starts.

      • status — (String)

        The current status of the agreement.

        Statuses include:

        • ACTIVE – The terms of the agreement are active.

        • ARCHIVED – The agreement ended without a specified reason.

        • CANCELLED – The acceptor ended the agreement before the defined end date.

        • EXPIRED – The agreement ended on the defined end date.

        • RENEWED – The agreement was renewed into a new agreement (for example, an auto-renewal).

        • REPLACED – The agreement was replaced using an agreement replacement offer.

        • ROLLED_BACK (Only applicable to inactive agreement revisions) – The agreement revision has been rolled back because of an error. An earlier revision is now active.

        • SUPERCEDED (Only applicable to inactive agreement revisions) – The agreement revision is no longer active and another agreement revision is now active.

        • TERMINATED – The agreement ended before the defined end date because of an AWS termination (for example, a payment failure).

        Possible values include:
        • "ACTIVE"
        • "ARCHIVED"
        • "CANCELLED"
        • "EXPIRED"
        • "RENEWED"
        • "REPLACED"
        • "ROLLED_BACK"
        • "SUPERSEDED"
        • "TERMINATED"

Returns:

  • (AWS.Request)

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

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

Obtains details about the terms in an agreement that you participated in as proposer or acceptor.

The details include:

  • TermType – The type of term, such as LegalTerm, RenewalTerm, or ConfigurableUpfrontPricingTerm.

  • TermID – The ID of the particular term, which is common between offer and agreement.

  • TermPayload – The key information contained in the term, such as the EULA for LegalTerm or pricing and dimensions for various pricing terms, such as ConfigurableUpfrontPricingTerm or UsageBasedPricingTerm.

  • Configuration – The buyer/acceptor's selection at the time of agreement creation, such as the number of units purchased for a dimension or setting the EnableAutoRenew flag.

Service Reference:

Examples:

Calling the getAgreementTerms operation

var params = {
  agreementId: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
marketplaceagreement.getAgreementTerms(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: {})
    • agreementId — (String)

      The unique identifier of the agreement.

    • maxResults — (Integer)

      The maximum number of agreements to return in the response.

    • nextToken — (String)

      A token to specify where to start pagination

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:

      • acceptedTerms — (Array<map>)

        A subset of terms proposed by the proposer that have been accepted by the acceptor as part of the agreement creation.

        • byolPricingTerm — (map)

          Enables you and your customers to move your existing agreements to AWS Marketplace. The customer won't be charged for product usage in AWS Marketplace because they already paid for the product outside of AWS Marketplace.

          • type — (String)

            Type of the term being updated.

        • configurableUpfrontPricingTerm — (map)

          Defines a prepaid payment model that allows buyers to configure the entitlements they want to purchase and the duration.

          • configuration — (map)

            Additional parameters specified by the acceptor while accepting the term.

            • dimensionsrequired — (Array<map>)

              Defines the dimensions that the acceptor has purchased from the overall set of dimensions presented in the rate card.

              • dimensionKeyrequired — (String)

                The name of key value of the dimension.

              • dimensionValuerequired — (Integer)

                The number of units of the dimension the acceptor has purchased.

                Note: For Agreements with ConfigurableUpfrontPricingTerm, the RateCard section will define the prices and dimensions defined by the seller (proposer), whereas the Configuration section will define the actual dimensions, prices, and units the buyer has chosen to accept.
            • selectorValuerequired — (String)

              Defines the length of time for which the particular pricing/dimension is being purchased by the acceptor.

          • currencyCode — (String)

            Defines the currency for the prices mentioned in the term.

          • rateCards — (Array<map>)

            A rate card defines the per unit rates for product dimensions.

            • constraints — (map)

              Defines limits on how the term can be configured by acceptors.

              • multipleDimensionSelection — (String)

                Determines if buyers are allowed to select multiple dimensions in the rate card. The possible values are Allowed and Disallowed. The default value is Allowed.

              • quantityConfiguration — (String)

                Determines if acceptors are allowed to configure quantity for each dimension in rate card. The possible values are Allowed and Disallowed. The default value is Allowed.

            • rateCard — (Array<map>)

              Defines the per unit rates for product dimensions.

              • dimensionKey — (String)

                Dimension for which the given entitlement applies. Dimensions represent categories of capacity in a product and are specified when the product is listed in AWS Marketplace.

              • price — (String)

                Per unit price for the product dimension that’s used for calculating the amount to be charged.

            • selector — (map)

              Differentiates between the mutually exclusive rate cards in the same pricing term to be selected by the buyer.

              • type — (String)

                Category of selector.

              • value — (String)

                Contract duration. This field supports the ISO 8601 format.

          • type — (String)

            Category of selector.

        • fixedUpfrontPricingTerm — (map)

          Defines a pre-paid pricing model where the customers are charged a fixed upfront amount.

          • currencyCode — (String)

            Defines the currency for the prices mentioned in this term.

          • duration — (String)

            Contract duration for the terms.

          • grants — (Array<map>)

            Entitlements granted to the acceptor of fixed upfront as part of agreement execution.

            • dimensionKey — (String)

              Unique dimension key defined in the product document. Dimensions represent categories of capacity in a product and are specified when the product is listed in AWS Marketplace.

            • maxQuantity — (Integer)

              Maximum amount of capacity that the buyer can be entitled to the given dimension of the product. If MaxQuantity is not provided, the buyer will be able to use an unlimited amount of the given dimension.

          • price — (String)

            Fixed amount to be charged to the customer when this term is accepted.

          • type — (String)

            Category of the term being updated.

        • freeTrialPricingTerm — (map)

          Defines a short-term free pricing model where the buyers aren’t charged anything within a specified limit.

          • duration — (String)

            Duration of the free trial period (5–31 days).

          • grants — (Array<map>)

            Entitlements granted to the acceptor of a free trial as part of an agreement execution.

            • dimensionKey — (String)

              Unique dimension key defined in the product document. Dimensions represent categories of capacity in a product and are specified when the product is listed in AWS Marketplace.

            • maxQuantity — (Integer)

              Maximum amount of capacity that the buyer can be entitled to the given dimension of the product. If MaxQuantity is not provided, the buyer will be able to use an unlimited amount of the given dimension.

          • type — (String)

            Category of the term.

        • legalTerm — (map)

          Defines the list of text agreements proposed to the acceptors. An example is the end user license agreement (EULA).

          • documents — (Array<map>)

            List of references to legal resources proposed to the buyers. An example is the EULA.

            • type — (String)

              Category of the document. Document types include:

              • CustomEula – A custom EULA provided by you as seller. A URL for a EULA stored in an accessible Amazon S3 bucket is required for this document type.

              • CustomDsa – A custom Data Subscription Agreement (DSA) provided by you as seller. A URL for a DSA stored in an accessible Amazon S3 bucket is required for this document type.

              • StandardEula – The Standard Contract for AWS Marketplace (SCMP). For more information about SCMP, see the AWS Marketplace Seller Guide. You don’t provide a URL for this type because it’s managed by AWS Marketplace.

              • StandardDsa – DSA for AWS Marketplace. For more information about the DSA, see the AWS Data Exchange User Guide. You don’t provide a URL for this type because it’s managed by AWS Marketplace.

            • url — (String)

              A URL to the legal document for buyers to read. Required when Type is CustomEula.

            • version — (String)

              Version of standard contracts provided by AWS Marketplace. Required when Type is StandardEula or StandardDsa.

          • type — (String)

            Category of the term being updated.

        • paymentScheduleTerm — (map)

          Defines an installment-based pricing model where customers are charged a fixed price on different dates during the agreement validity period. This is used most commonly for flexible payment schedule pricing.

          • currencyCode — (String)

            Defines the currency for the prices mentioned in the term.

          • schedule — (Array<map>)

            List of the payment schedule where each element defines one installment of payment. It contains the information necessary for calculating the price.

            • chargeAmount — (String)

              The price that the customer would pay on the scheduled date (chargeDate).

            • chargeDate — (Date)

              The date that the customer would pay the price defined in this payment schedule term. Invoices are generated on the date provided.

          • type — (String)

            Type of the term.

        • recurringPaymentTerm — (map)

          Defines a pricing model where customers are charged a fixed recurring price at the end of each billing period.

          • billingPeriod — (String)

            Defines the recurrence at which buyers are charged.

          • currencyCode — (String)

            Defines the currency for the prices mentioned in this term.

          • price — (String)

            Amount charged to the buyer every billing period.

          • type — (String)

            Type of the term being updated.

        • renewalTerm — (map)

          Defines that on graceful expiration of the agreement (when the agreement ends on its pre-defined end date), a new agreement will be created using the accepted terms on the existing agreement. In other words, the agreement will be renewed. Presence of RenewalTerm in the offer document means that auto-renewal is allowed. Buyers will have the option to accept or decline auto-renewal at the offer acceptance/agreement creation. Buyers can also change this flag from True to False or False to True at anytime during the agreement's lifecycle.

          • configuration — (map)

            Additional parameters specified by the acceptor while accepting the term.

            • enableAutoRenewrequired — (Boolean)

              Defines whether the acceptor has chosen to auto-renew the agreement at the end of its lifecycle. Can be set to True or False.

          • type — (String)

            Category of the term being updated.

        • supportTerm — (map)

          Defines the customer support available for the acceptors when they purchase the software.

          • refundPolicy — (String)

            Free-text field about the refund policy description that will be shown to customers as is on the website and console.

          • type — (String)

            Category of the term being updated.

        • usageBasedPricingTerm — (map)

          Defines a usage-based pricing model (typically, pay-as-you-go pricing), where the customers are charged based on product usage.

          • currencyCode — (String)

            Defines the currency for the prices mentioned in the term.

          • rateCards — (Array<map>)

            List of rate cards.

            • rateCard — (Array<map>)

              Defines the per unit rates for product dimensions.

              • dimensionKey — (String)

                Dimension for which the given entitlement applies. Dimensions represent categories of capacity in a product and are specified when the product is listed in AWS Marketplace.

              • price — (String)

                Per unit price for the product dimension that’s used for calculating the amount to be charged.

          • type — (String)

            Category of the term.

        • validityTerm — (map)

          Defines the conditions that will keep an agreement created from this offer valid.

          • agreementDuration — (String)

            Defines the duration that the agreement remains active. If AgreementStartDate isn’t provided, the agreement duration is relative to the agreement signature time. The duration is represented in the ISO_8601 format.

          • agreementEndDate — (Date)

            Defines the date when the agreement ends. The agreement ends at 23:59:59.999 UTC on the date provided. If AgreementEndDate isn’t provided, the agreement end date is determined by the validity of individual terms.

          • agreementStartDate — (Date)

            Defines the date when agreement starts. The agreement starts at 00:00:00.000 UTC on the date provided. If AgreementStartDate isn’t provided, the agreement start date is determined based on agreement signature time.

          • type — (String)

            Category of the term being updated.

      • nextToken — (String)

        A token to specify where to start pagination

Returns:

  • (AWS.Request)

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

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

Searches across all agreements that a proposer or an acceptor has in AWS Marketplace. The search returns a list of agreements with basic agreement information.

The following filter combinations are supported:

  • PartyType as Proposer + AgreementType + ResourceIdentifier

  • PartyType as Proposer + AgreementType + OfferId

  • PartyType as Proposer + AgreementType + AcceptorAccountId

  • PartyType as Proposer + AgreementType + Status

  • PartyType as Proposer + AgreementType + ResourceIdentifier + Status

  • PartyType as Proposer + AgreementType + OfferId + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + Status

  • PartyType as Proposer + AgreementType + ResourceType + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceType + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + OfferId

  • PartyType as Proposer + AgreementType + AcceptorAccountId + OfferId + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceIdentifier

  • PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceIdentifier + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceType

Service Reference:

Examples:

Calling the searchAgreements operation

var params = {
  catalog: 'STRING_VALUE',
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  sort: {
    sortBy: 'STRING_VALUE',
    sortOrder: ASCENDING | DESCENDING
  }
};
marketplaceagreement.searchAgreements(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 in which the agreement was created.

    • filters — (Array<map>)

      The filter name and value pair used to return a specific list of results.

      The following filters are supported:

      • ResourceIdentifier – The unique identifier of the resource.

      • ResourceType – Type of the resource, which is the product (AmiProduct, ContainerProduct, or SaaSProduct).

      • PartyType – The party type (either Acceptor or Proposer) of the caller. For agreements where the caller is the proposer, use the Proposer filter. For agreements where the caller is the acceptor, use the Acceptor filter.

      • AcceptorAccountId – The AWS account ID of the party accepting the agreement terms.

      • OfferId – The unique identifier of the offer in which the terms are registered in the agreement token.

      • Status – The current status of the agreement. Values include ACTIVE, ARCHIVED, CANCELLED, EXPIRED, RENEWED, REPLACED, and TERMINATED.

      • BeforeEndTime – A date used to filter agreements with a date before the endTime of an agreement.

      • AfterEndTime – A date used to filter agreements with a date after the endTime of an agreement.

      • AgreementType – The type of agreement. Values include PurchaseAgreement or VendorInsightsAgreement.

      • name — (String)

        The name of the filter.

      • values — (Array<String>)

        The filter value.

    • maxResults — (Integer)

      The maximum number of agreements to return in the response.

    • nextToken — (String)

      A token to specify where to start pagination.

    • sort — (map)

      An object that contains the SortBy and SortOrder attributes.

      • sortBy — (String)

        The attribute on which the data is grouped, which can be by StartTime and EndTime. The default value is EndTime.

      • sortOrder — (String)

        The sorting order, which can be ASCENDING or DESCENDING. The default value is DESCENDING.

        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:

      • agreementViewSummaries — (Array<map>)

        A summary of the agreement, including top-level attributes (for example, the agreement ID, version, proposer, and acceptor).

        • acceptanceTime — (Date)

          The date and time that the agreement was accepted.

        • acceptor — (map)

          Details of the party accepting the agreement terms. This is commonly the buyer for PurchaseAgreement.

          • accountId — (String)

            The AWS account ID of the acceptor.

        • agreementId — (String)

          The unique identifier of the agreement.

        • agreementType — (String)

          The type of agreement. Values are PurchaseAgreement or VendorInsightsAgreement.

        • endTime — (Date)

          The date and time when the agreement ends. The field is null for pay-as-you-go agreements, which don’t have end dates.

        • proposalSummary — (map)

          A summary of the proposal

          • offerId — (String)

            The unique identifier of the offer in AWS Marketplace.

          • resources — (Array<map>)

            The list of resources involved in the agreement.

            • id — (String)

              The unique identifier of the resource.

              Note: We mention the term resource, which is most commonly a product, so a resourceId is also a productId.
            • type — (String)

              Type of the resource, which is the product. Values include SaaSProduct or AmiProduct.

        • proposer — (map)

          Details of the party proposing the agreement terms, most commonly the seller for PurchaseAgreement.

          • accountId — (String)

            The AWS account ID of the proposer.

        • startTime — (Date)

          The date and time when the agreement starts.

        • status — (String)

          The current status of the agreement.

          Possible values include:
          • "ACTIVE"
          • "ARCHIVED"
          • "CANCELLED"
          • "EXPIRED"
          • "RENEWED"
          • "REPLACED"
          • "ROLLED_BACK"
          • "SUPERSEDED"
          • "TERMINATED"
      • nextToken — (String)

        The token used for pagination. The field is null if there are no more results.

Returns:

  • (AWS.Request)

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