@aws-sdk/client-marketplace-catalog 3.1076.0 → 3.1078.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist-cjs/index.js +24 -135
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/BatchDescribeEntitiesCommand.js +2 -14
  4. package/dist-es/commands/CancelChangeSetCommand.js +2 -14
  5. package/dist-es/commands/DeleteResourcePolicyCommand.js +2 -14
  6. package/dist-es/commands/DescribeChangeSetCommand.js +2 -14
  7. package/dist-es/commands/DescribeEntityCommand.js +2 -14
  8. package/dist-es/commands/GetResourcePolicyCommand.js +2 -14
  9. package/dist-es/commands/ListChangeSetsCommand.js +2 -14
  10. package/dist-es/commands/ListEntitiesCommand.js +2 -14
  11. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  12. package/dist-es/commands/PutResourcePolicyCommand.js +2 -14
  13. package/dist-es/commands/StartChangeSetCommand.js +2 -14
  14. package/dist-es/commands/TagResourceCommand.js +2 -14
  15. package/dist-es/commands/UntagResourceCommand.js +2 -14
  16. package/dist-es/index.js +1 -0
  17. package/dist-es/runtimeConfig.browser.js +0 -2
  18. package/dist-es/runtimeConfig.js +1 -2
  19. package/dist-es/runtimeConfig.native.js +0 -2
  20. package/dist-es/runtimeConfig.shared.js +2 -0
  21. package/dist-types/commandBuilder.d.ts +18 -0
  22. package/dist-types/commands/BatchDescribeEntitiesCommand.d.ts +3 -8
  23. package/dist-types/commands/CancelChangeSetCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +3 -8
  25. package/dist-types/commands/DescribeChangeSetCommand.d.ts +3 -8
  26. package/dist-types/commands/DescribeEntityCommand.d.ts +3 -8
  27. package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -8
  28. package/dist-types/commands/ListChangeSetsCommand.d.ts +3 -8
  29. package/dist-types/commands/ListEntitiesCommand.d.ts +3 -8
  30. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  31. package/dist-types/commands/PutResourcePolicyCommand.d.ts +3 -8
  32. package/dist-types/commands/StartChangeSetCommand.d.ts +3 -8
  33. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  34. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  35. package/dist-types/index.d.ts +1 -0
  36. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  37. package/dist-types/runtimeConfig.d.ts +1 -1
  38. package/dist-types/runtimeConfig.native.d.ts +1 -1
  39. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  40. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  41. package/dist-types/ts3.4/commands/BatchDescribeEntitiesCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/CancelChangeSetCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/DescribeChangeSetCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/DescribeEntityCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/ListChangeSetsCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/ListEntitiesCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/StartChangeSetCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/index.d.ts +1 -0
  55. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  56. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  57. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  58. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  59. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultMarketplaceCatalogHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -1279,6 +1281,7 @@ const getRuntimeConfig$1 = (config) => {
1279
1281
  serviceTarget: "AWSMPSeymour",
1280
1282
  },
1281
1283
  serviceId: config?.serviceId ?? "Marketplace Catalog",
1284
+ sha256: config?.sha256 ?? Sha256,
1282
1285
  urlParser: config?.urlParser ?? parseUrl,
1283
1286
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1284
1287
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1312,7 +1315,6 @@ const getRuntimeConfig = (config) => {
1312
1315
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1313
1316
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1314
1317
  }, config),
1315
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1316
1318
  streamCollector: config?.streamCollector ?? streamCollector,
1317
1319
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1318
1320
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1400,160 +1402,47 @@ class MarketplaceCatalogClient extends Client {
1400
1402
  }
1401
1403
  }
1402
1404
 
1403
- class BatchDescribeEntitiesCommand extends Command
1404
- .classBuilder()
1405
- .ep(commonParams)
1406
- .m(function (Command, cs, config, o) {
1407
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1408
- })
1409
- .s("AWSMPSeymour", "BatchDescribeEntities", {})
1410
- .n("MarketplaceCatalogClient", "BatchDescribeEntitiesCommand")
1411
- .sc(BatchDescribeEntities$)
1412
- .build() {
1405
+ const command = makeBuilder(commonParams, "AWSMPSeymour", "MarketplaceCatalogClient", getEndpointPlugin);
1406
+ const _ep0 = {};
1407
+ const _mw0 = (Command, cs, config, o) => [];
1408
+
1409
+ class BatchDescribeEntitiesCommand extends command(_ep0, _mw0, "BatchDescribeEntities", BatchDescribeEntities$) {
1413
1410
  }
1414
1411
 
1415
- class CancelChangeSetCommand extends Command
1416
- .classBuilder()
1417
- .ep(commonParams)
1418
- .m(function (Command, cs, config, o) {
1419
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1420
- })
1421
- .s("AWSMPSeymour", "CancelChangeSet", {})
1422
- .n("MarketplaceCatalogClient", "CancelChangeSetCommand")
1423
- .sc(CancelChangeSet$)
1424
- .build() {
1412
+ class CancelChangeSetCommand extends command(_ep0, _mw0, "CancelChangeSet", CancelChangeSet$) {
1425
1413
  }
1426
1414
 
1427
- class DeleteResourcePolicyCommand extends Command
1428
- .classBuilder()
1429
- .ep(commonParams)
1430
- .m(function (Command, cs, config, o) {
1431
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1432
- })
1433
- .s("AWSMPSeymour", "DeleteResourcePolicy", {})
1434
- .n("MarketplaceCatalogClient", "DeleteResourcePolicyCommand")
1435
- .sc(DeleteResourcePolicy$)
1436
- .build() {
1415
+ class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
1437
1416
  }
1438
1417
 
1439
- class DescribeChangeSetCommand extends Command
1440
- .classBuilder()
1441
- .ep(commonParams)
1442
- .m(function (Command, cs, config, o) {
1443
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1444
- })
1445
- .s("AWSMPSeymour", "DescribeChangeSet", {})
1446
- .n("MarketplaceCatalogClient", "DescribeChangeSetCommand")
1447
- .sc(DescribeChangeSet$)
1448
- .build() {
1418
+ class DescribeChangeSetCommand extends command(_ep0, _mw0, "DescribeChangeSet", DescribeChangeSet$) {
1449
1419
  }
1450
1420
 
1451
- class DescribeEntityCommand extends Command
1452
- .classBuilder()
1453
- .ep(commonParams)
1454
- .m(function (Command, cs, config, o) {
1455
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1456
- })
1457
- .s("AWSMPSeymour", "DescribeEntity", {})
1458
- .n("MarketplaceCatalogClient", "DescribeEntityCommand")
1459
- .sc(DescribeEntity$)
1460
- .build() {
1421
+ class DescribeEntityCommand extends command(_ep0, _mw0, "DescribeEntity", DescribeEntity$) {
1461
1422
  }
1462
1423
 
1463
- class GetResourcePolicyCommand extends Command
1464
- .classBuilder()
1465
- .ep(commonParams)
1466
- .m(function (Command, cs, config, o) {
1467
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1468
- })
1469
- .s("AWSMPSeymour", "GetResourcePolicy", {})
1470
- .n("MarketplaceCatalogClient", "GetResourcePolicyCommand")
1471
- .sc(GetResourcePolicy$)
1472
- .build() {
1424
+ class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
1473
1425
  }
1474
1426
 
1475
- class ListChangeSetsCommand extends Command
1476
- .classBuilder()
1477
- .ep(commonParams)
1478
- .m(function (Command, cs, config, o) {
1479
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1480
- })
1481
- .s("AWSMPSeymour", "ListChangeSets", {})
1482
- .n("MarketplaceCatalogClient", "ListChangeSetsCommand")
1483
- .sc(ListChangeSets$)
1484
- .build() {
1427
+ class ListChangeSetsCommand extends command(_ep0, _mw0, "ListChangeSets", ListChangeSets$) {
1485
1428
  }
1486
1429
 
1487
- class ListEntitiesCommand extends Command
1488
- .classBuilder()
1489
- .ep(commonParams)
1490
- .m(function (Command, cs, config, o) {
1491
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1492
- })
1493
- .s("AWSMPSeymour", "ListEntities", {})
1494
- .n("MarketplaceCatalogClient", "ListEntitiesCommand")
1495
- .sc(ListEntities$)
1496
- .build() {
1430
+ class ListEntitiesCommand extends command(_ep0, _mw0, "ListEntities", ListEntities$) {
1497
1431
  }
1498
1432
 
1499
- class ListTagsForResourceCommand extends Command
1500
- .classBuilder()
1501
- .ep(commonParams)
1502
- .m(function (Command, cs, config, o) {
1503
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1504
- })
1505
- .s("AWSMPSeymour", "ListTagsForResource", {})
1506
- .n("MarketplaceCatalogClient", "ListTagsForResourceCommand")
1507
- .sc(ListTagsForResource$)
1508
- .build() {
1433
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1509
1434
  }
1510
1435
 
1511
- class PutResourcePolicyCommand extends Command
1512
- .classBuilder()
1513
- .ep(commonParams)
1514
- .m(function (Command, cs, config, o) {
1515
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1516
- })
1517
- .s("AWSMPSeymour", "PutResourcePolicy", {})
1518
- .n("MarketplaceCatalogClient", "PutResourcePolicyCommand")
1519
- .sc(PutResourcePolicy$)
1520
- .build() {
1436
+ class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
1521
1437
  }
1522
1438
 
1523
- class StartChangeSetCommand extends Command
1524
- .classBuilder()
1525
- .ep(commonParams)
1526
- .m(function (Command, cs, config, o) {
1527
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1528
- })
1529
- .s("AWSMPSeymour", "StartChangeSet", {})
1530
- .n("MarketplaceCatalogClient", "StartChangeSetCommand")
1531
- .sc(StartChangeSet$)
1532
- .build() {
1439
+ class StartChangeSetCommand extends command(_ep0, _mw0, "StartChangeSet", StartChangeSet$) {
1533
1440
  }
1534
1441
 
1535
- class TagResourceCommand extends Command
1536
- .classBuilder()
1537
- .ep(commonParams)
1538
- .m(function (Command, cs, config, o) {
1539
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1540
- })
1541
- .s("AWSMPSeymour", "TagResource", {})
1542
- .n("MarketplaceCatalogClient", "TagResourceCommand")
1543
- .sc(TagResource$)
1544
- .build() {
1442
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1545
1443
  }
1546
1444
 
1547
- class UntagResourceCommand extends Command
1548
- .classBuilder()
1549
- .ep(commonParams)
1550
- .m(function (Command, cs, config, o) {
1551
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1552
- })
1553
- .s("AWSMPSeymour", "UntagResource", {})
1554
- .n("MarketplaceCatalogClient", "UntagResourceCommand")
1555
- .sc(UntagResource$)
1556
- .build() {
1445
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1557
1446
  }
1558
1447
 
1559
1448
  const paginateListChangeSets = createPaginator(MarketplaceCatalogClient, ListChangeSetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AWSMPSeymour", "MarketplaceCatalogClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { BatchDescribeEntities$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchDescribeEntitiesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "BatchDescribeEntities", {})
13
- .n("MarketplaceCatalogClient", "BatchDescribeEntitiesCommand")
14
- .sc(BatchDescribeEntities$)
15
- .build() {
3
+ export class BatchDescribeEntitiesCommand extends command(_ep0, _mw0, "BatchDescribeEntities", BatchDescribeEntities$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CancelChangeSet$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CancelChangeSetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "CancelChangeSet", {})
13
- .n("MarketplaceCatalogClient", "CancelChangeSetCommand")
14
- .sc(CancelChangeSet$)
15
- .build() {
3
+ export class CancelChangeSetCommand extends command(_ep0, _mw0, "CancelChangeSet", CancelChangeSet$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "DeleteResourcePolicy", {})
13
- .n("MarketplaceCatalogClient", "DeleteResourcePolicyCommand")
14
- .sc(DeleteResourcePolicy$)
15
- .build() {
3
+ export class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeChangeSet$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeChangeSetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "DescribeChangeSet", {})
13
- .n("MarketplaceCatalogClient", "DescribeChangeSetCommand")
14
- .sc(DescribeChangeSet$)
15
- .build() {
3
+ export class DescribeChangeSetCommand extends command(_ep0, _mw0, "DescribeChangeSet", DescribeChangeSet$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeEntity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeEntityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "DescribeEntity", {})
13
- .n("MarketplaceCatalogClient", "DescribeEntityCommand")
14
- .sc(DescribeEntity$)
15
- .build() {
3
+ export class DescribeEntityCommand extends command(_ep0, _mw0, "DescribeEntity", DescribeEntity$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "GetResourcePolicy", {})
13
- .n("MarketplaceCatalogClient", "GetResourcePolicyCommand")
14
- .sc(GetResourcePolicy$)
15
- .build() {
3
+ export class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListChangeSets$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListChangeSetsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "ListChangeSets", {})
13
- .n("MarketplaceCatalogClient", "ListChangeSetsCommand")
14
- .sc(ListChangeSets$)
15
- .build() {
3
+ export class ListChangeSetsCommand extends command(_ep0, _mw0, "ListChangeSets", ListChangeSets$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListEntities$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListEntitiesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "ListEntities", {})
13
- .n("MarketplaceCatalogClient", "ListEntitiesCommand")
14
- .sc(ListEntities$)
15
- .build() {
3
+ export class ListEntitiesCommand extends command(_ep0, _mw0, "ListEntities", ListEntities$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "ListTagsForResource", {})
13
- .n("MarketplaceCatalogClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "PutResourcePolicy", {})
13
- .n("MarketplaceCatalogClient", "PutResourcePolicyCommand")
14
- .sc(PutResourcePolicy$)
15
- .build() {
3
+ export class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StartChangeSet$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartChangeSetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "StartChangeSet", {})
13
- .n("MarketplaceCatalogClient", "StartChangeSetCommand")
14
- .sc(StartChangeSet$)
15
- .build() {
3
+ export class StartChangeSetCommand extends command(_ep0, _mw0, "StartChangeSet", StartChangeSet$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "TagResource", {})
13
- .n("MarketplaceCatalogClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSMPSeymour", "UntagResource", {})
13
- .n("MarketplaceCatalogClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./MarketplaceCatalogClient";
2
2
  export * from "./MarketplaceCatalog";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AWSMPSeymour",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Marketplace Catalog",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./MarketplaceCatalogClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MarketplaceCatalogClient";
4
2
  import type { BatchDescribeEntitiesRequest, BatchDescribeEntitiesResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface BatchDescribeEntitiesCommandInput extends BatchDescribeEntities
22
19
  export interface BatchDescribeEntitiesCommandOutput extends BatchDescribeEntitiesResponse, __MetadataBearer {
23
20
  }
24
21
  declare const BatchDescribeEntitiesCommand_base: {
25
- new (input: BatchDescribeEntitiesCommandInput): import("@smithy/core/client").CommandImpl<BatchDescribeEntitiesCommandInput, BatchDescribeEntitiesCommandOutput, MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: BatchDescribeEntitiesCommandInput): import("@smithy/core/client").CommandImpl<BatchDescribeEntitiesCommandInput, BatchDescribeEntitiesCommandOutput, MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: BatchDescribeEntitiesCommandInput): import("@smithy/core/client").CommandImpl<BatchDescribeEntitiesCommandInput, BatchDescribeEntitiesCommandOutput, import("..").MarketplaceCatalogClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: BatchDescribeEntitiesCommandInput): import("@smithy/core/client").CommandImpl<BatchDescribeEntitiesCommandInput, BatchDescribeEntitiesCommandOutput, import("..").MarketplaceCatalogClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Returns metadata and content for multiple entities. This is the Batch version of the <code>DescribeEntity</code> API and uses the same IAM permission action as <code>DescribeEntity</code> API.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MarketplaceCatalogClient";
4
2
  import type { CancelChangeSetRequest, CancelChangeSetResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CancelChangeSetCommandInput extends CancelChangeSetRequest {
22
19
  export interface CancelChangeSetCommandOutput extends CancelChangeSetResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CancelChangeSetCommand_base: {
25
- new (input: CancelChangeSetCommandInput): import("@smithy/core/client").CommandImpl<CancelChangeSetCommandInput, CancelChangeSetCommandOutput, MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CancelChangeSetCommandInput): import("@smithy/core/client").CommandImpl<CancelChangeSetCommandInput, CancelChangeSetCommandOutput, MarketplaceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CancelChangeSetCommandInput): import("@smithy/core/client").CommandImpl<CancelChangeSetCommandInput, CancelChangeSetCommandOutput, import("..").MarketplaceCatalogClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CancelChangeSetCommandInput): import("@smithy/core/client").CommandImpl<CancelChangeSetCommandInput, CancelChangeSetCommandOutput, import("..").MarketplaceCatalogClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Used to cancel an open change request. Must be sent before the status of the request