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

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
});