@aws-sdk/client-marketplace-entitlement-service 3.35.0 → 3.38.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 (80) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/MarketplaceEntitlementService.js +0 -20
  3. package/dist-cjs/MarketplaceEntitlementServiceClient.js +0 -25
  4. package/dist-cjs/commands/GetEntitlementsCommand.js +0 -26
  5. package/dist-cjs/commands/index.js +4 -0
  6. package/dist-cjs/endpoints.js +1 -2
  7. package/dist-cjs/index.js +3 -4
  8. package/dist-cjs/models/index.js +0 -1
  9. package/dist-cjs/models/models_0.js +0 -22
  10. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  11. package/dist-cjs/runtimeConfig.browser.js +1 -6
  12. package/dist-cjs/runtimeConfig.js +2 -7
  13. package/dist-cjs/runtimeConfig.native.js +0 -4
  14. package/dist-cjs/runtimeConfig.shared.js +0 -4
  15. package/dist-es/MarketplaceEntitlementService.js +0 -1
  16. package/dist-es/MarketplaceEntitlementServiceClient.js +0 -1
  17. package/dist-es/commands/GetEntitlementsCommand.js +0 -1
  18. package/dist-es/commands/index.js +1 -0
  19. package/dist-es/endpoints.js +1 -2
  20. package/dist-es/index.js +3 -4
  21. package/dist-es/models/index.js +0 -1
  22. package/dist-es/models/models_0.js +0 -1
  23. package/dist-es/protocols/Aws_json1_1.js +0 -1
  24. package/dist-es/runtimeConfig.browser.js +1 -2
  25. package/dist-es/runtimeConfig.js +2 -3
  26. package/dist-es/runtimeConfig.native.js +0 -1
  27. package/dist-es/runtimeConfig.shared.js +0 -1
  28. package/dist-types/commands/index.d.ts +1 -0
  29. package/dist-types/index.d.ts +3 -3
  30. package/dist-types/ts3.4/MarketplaceEntitlementService.d.ts +2 -23
  31. package/dist-types/ts3.4/MarketplaceEntitlementServiceClient.d.ts +24 -105
  32. package/dist-types/ts3.4/commands/GetEntitlementsCommand.d.ts +2 -21
  33. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  34. package/dist-types/ts3.4/index.d.ts +3 -3
  35. package/dist-types/ts3.4/models/models_0.d.ts +29 -115
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  39. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  40. package/package.json +33 -30
  41. package/dist-cjs/MarketplaceEntitlementService.js.map +0 -1
  42. package/dist-cjs/MarketplaceEntitlementServiceClient.js.map +0 -1
  43. package/dist-cjs/commands/GetEntitlementsCommand.js.map +0 -1
  44. package/dist-cjs/endpoints.js.map +0 -1
  45. package/dist-cjs/index.js.map +0 -1
  46. package/dist-cjs/models/index.js.map +0 -1
  47. package/dist-cjs/models/models_0.js.map +0 -1
  48. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  49. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  50. package/dist-cjs/runtimeConfig.js.map +0 -1
  51. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  52. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  53. package/dist-es/MarketplaceEntitlementService.js.map +0 -1
  54. package/dist-es/MarketplaceEntitlementServiceClient.js.map +0 -1
  55. package/dist-es/commands/GetEntitlementsCommand.js.map +0 -1
  56. package/dist-es/endpoints.js.map +0 -1
  57. package/dist-es/index.js.map +0 -1
  58. package/dist-es/models/index.js.map +0 -1
  59. package/dist-es/models/models_0.js.map +0 -1
  60. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  61. package/dist-es/runtimeConfig.browser.js.map +0 -1
  62. package/dist-es/runtimeConfig.js.map +0 -1
  63. package/dist-es/runtimeConfig.native.js.map +0 -1
  64. package/dist-es/runtimeConfig.shared.js.map +0 -1
  65. package/jest.config.js +0 -4
  66. package/src/MarketplaceEntitlementService.ts +0 -62
  67. package/src/MarketplaceEntitlementServiceClient.ts +0 -254
  68. package/src/commands/GetEntitlementsCommand.ts +0 -100
  69. package/src/endpoints.ts +0 -57
  70. package/src/index.ts +0 -4
  71. package/src/models/index.ts +0 -1
  72. package/src/models/models_0.ts +0 -278
  73. package/src/protocols/Aws_json1_1.ts +0 -360
  74. package/src/runtimeConfig.browser.ts +0 -41
  75. package/src/runtimeConfig.native.ts +0 -17
  76. package/src/runtimeConfig.shared.ts +0 -17
  77. package/src/runtimeConfig.ts +0 -46
  78. package/tsconfig.es.json +0 -10
  79. package/tsconfig.json +0 -33
  80. package/tsconfig.types.json +0 -9
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
12
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
13
+
14
+
15
+
16
+
17
+
18
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
19
+
20
+
21
+ ### Features
22
+
23
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
24
+
25
+
26
+
27
+
28
+
29
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
35
+
36
+
37
+
38
+
39
+
40
+ # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
41
+
42
+
43
+ ### Features
44
+
45
+ * publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
46
+ * **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
47
+ * **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
7
54
 
8
55
 
@@ -3,25 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MarketplaceEntitlementService = void 0;
4
4
  const GetEntitlementsCommand_1 = require("./commands/GetEntitlementsCommand");
5
5
  const MarketplaceEntitlementServiceClient_1 = require("./MarketplaceEntitlementServiceClient");
6
- /**
7
- * <fullname>AWS Marketplace Entitlement Service</fullname>
8
- * <p>This reference provides descriptions of the AWS Marketplace Entitlement Service
9
- * API.</p>
10
- * <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to
11
- * a given product. An entitlement represents capacity in a product owned by the customer. For
12
- * example, a customer might own some number of users or seats in an SaaS application or some
13
- * amount of data capacity in a multi-tenant database.</p>
14
- * <p>
15
- * <b>Getting Entitlement Records</b>
16
- * </p>
17
- * <ul>
18
- * <li>
19
- * <p>
20
- * <i>GetEntitlements</i>- Gets the entitlements for a Marketplace
21
- * product.</p>
22
- * </li>
23
- * </ul>
24
- */
25
6
  class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient_1.MarketplaceEntitlementServiceClient {
26
7
  getEntitlements(args, optionsOrCb, cb) {
27
8
  const command = new GetEntitlementsCommand_1.GetEntitlementsCommand(args);
@@ -39,4 +20,3 @@ class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient_
39
20
  }
40
21
  }
41
22
  exports.MarketplaceEntitlementService = MarketplaceEntitlementService;
42
- //# sourceMappingURL=MarketplaceEntitlementService.js.map
@@ -10,25 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <fullname>AWS Marketplace Entitlement Service</fullname>
15
- * <p>This reference provides descriptions of the AWS Marketplace Entitlement Service
16
- * API.</p>
17
- * <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to
18
- * a given product. An entitlement represents capacity in a product owned by the customer. For
19
- * example, a customer might own some number of users or seats in an SaaS application or some
20
- * amount of data capacity in a multi-tenant database.</p>
21
- * <p>
22
- * <b>Getting Entitlement Records</b>
23
- * </p>
24
- * <ul>
25
- * <li>
26
- * <p>
27
- * <i>GetEntitlements</i>- Gets the entitlements for a Marketplace
28
- * product.</p>
29
- * </li>
30
- * </ul>
31
- */
32
13
  class MarketplaceEntitlementServiceClient extends smithy_client_1.Client {
33
14
  constructor(configuration) {
34
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -47,14 +28,8 @@ class MarketplaceEntitlementServiceClient extends smithy_client_1.Client {
47
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
48
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
49
30
  }
50
- /**
51
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
52
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
53
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
54
- */
55
31
  destroy() {
56
32
  super.destroy();
57
33
  }
58
34
  }
59
35
  exports.MarketplaceEntitlementServiceClient = MarketplaceEntitlementServiceClient;
60
- //# sourceMappingURL=MarketplaceEntitlementServiceClient.js.map
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>GetEntitlements retrieves entitlement values for a given product. The results can be
10
- * filtered based on customer identifier or product dimensions.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { MarketplaceEntitlementServiceClient, GetEntitlementsCommand } from "@aws-sdk/client-marketplace-entitlement-service"; // ES Modules import
15
- * // const { MarketplaceEntitlementServiceClient, GetEntitlementsCommand } = require("@aws-sdk/client-marketplace-entitlement-service"); // CommonJS import
16
- * const client = new MarketplaceEntitlementServiceClient(config);
17
- * const command = new GetEntitlementsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetEntitlementsCommandInput} for command's `input` shape.
22
- * @see {@link GetEntitlementsCommandOutput} for command's `response` shape.
23
- * @see {@link MarketplaceEntitlementServiceClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class GetEntitlementsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -59,4 +34,3 @@ class GetEntitlementsCommand extends smithy_client_1.Command {
59
34
  }
60
35
  }
61
36
  exports.GetEntitlementsCommand = GetEntitlementsCommand;
62
- //# sourceMappingURL=GetEntitlementsCommand.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./GetEntitlementsCommand"), exports);
@@ -35,7 +35,7 @@ const partitionHash = {
35
35
  hostname: "entitlement.marketplace.{region}.amazonaws.com.cn",
36
36
  },
37
37
  "aws-iso": {
38
- regions: ["us-iso-east-1"],
38
+ regions: ["us-iso-east-1", "us-iso-west-1"],
39
39
  hostname: "entitlement.marketplace.{region}.c2s.ic.gov",
40
40
  },
41
41
  "aws-iso-b": {
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
54
54
  partitionHash,
55
55
  });
56
56
  exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
57
- //# sourceMappingURL=endpoints.js.map
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./MarketplaceEntitlementServiceClient"), exports);
5
4
  tslib_1.__exportStar(require("./MarketplaceEntitlementService"), exports);
6
- tslib_1.__exportStar(require("./commands/GetEntitlementsCommand"), exports);
7
- tslib_1.__exportStar(require("./models/index"), exports);
8
- //# sourceMappingURL=index.js.map
5
+ tslib_1.__exportStar(require("./MarketplaceEntitlementServiceClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./models_0"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -8,9 +8,6 @@ var GetEntitlementFilterName;
8
8
  })(GetEntitlementFilterName = exports.GetEntitlementFilterName || (exports.GetEntitlementFilterName = {}));
9
9
  var GetEntitlementsRequest;
10
10
  (function (GetEntitlementsRequest) {
11
- /**
12
- * @internal
13
- */
14
11
  GetEntitlementsRequest.filterSensitiveLog = (obj) => ({
15
12
  ...obj,
16
13
  });
@@ -28,9 +25,6 @@ var EntitlementValue;
28
25
  return visitor.StringValue(value.StringValue);
29
26
  return visitor._(value.$unknown[0], value.$unknown[1]);
30
27
  };
31
- /**
32
- * @internal
33
- */
34
28
  EntitlementValue.filterSensitiveLog = (obj) => {
35
29
  if (obj.IntegerValue !== undefined)
36
30
  return { IntegerValue: obj.IntegerValue };
@@ -46,9 +40,6 @@ var EntitlementValue;
46
40
  })(EntitlementValue = exports.EntitlementValue || (exports.EntitlementValue = {}));
47
41
  var Entitlement;
48
42
  (function (Entitlement) {
49
- /**
50
- * @internal
51
- */
52
43
  Entitlement.filterSensitiveLog = (obj) => ({
53
44
  ...obj,
54
45
  ...(obj.Value && { Value: EntitlementValue.filterSensitiveLog(obj.Value) }),
@@ -56,9 +47,6 @@ var Entitlement;
56
47
  })(Entitlement = exports.Entitlement || (exports.Entitlement = {}));
57
48
  var GetEntitlementsResult;
58
49
  (function (GetEntitlementsResult) {
59
- /**
60
- * @internal
61
- */
62
50
  GetEntitlementsResult.filterSensitiveLog = (obj) => ({
63
51
  ...obj,
64
52
  ...(obj.Entitlements && { Entitlements: obj.Entitlements.map((item) => Entitlement.filterSensitiveLog(item)) }),
@@ -66,29 +54,19 @@ var GetEntitlementsResult;
66
54
  })(GetEntitlementsResult = exports.GetEntitlementsResult || (exports.GetEntitlementsResult = {}));
67
55
  var InternalServiceErrorException;
68
56
  (function (InternalServiceErrorException) {
69
- /**
70
- * @internal
71
- */
72
57
  InternalServiceErrorException.filterSensitiveLog = (obj) => ({
73
58
  ...obj,
74
59
  });
75
60
  })(InternalServiceErrorException = exports.InternalServiceErrorException || (exports.InternalServiceErrorException = {}));
76
61
  var InvalidParameterException;
77
62
  (function (InvalidParameterException) {
78
- /**
79
- * @internal
80
- */
81
63
  InvalidParameterException.filterSensitiveLog = (obj) => ({
82
64
  ...obj,
83
65
  });
84
66
  })(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
85
67
  var ThrottlingException;
86
68
  (function (ThrottlingException) {
87
- /**
88
- * @internal
89
- */
90
69
  ThrottlingException.filterSensitiveLog = (obj) => ({
91
70
  ...obj,
92
71
  });
93
72
  })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
94
- //# sourceMappingURL=models_0.js.map
@@ -209,14 +209,12 @@ const deserializeMetadata = (output) => {
209
209
  cfId: output.headers["x-amz-cf-id"],
210
210
  });
211
211
  };
212
- // Collect low-level response body stream to Uint8Array.
213
212
  const collectBody = (streamBody = new Uint8Array(), context) => {
214
213
  if (streamBody instanceof Uint8Array) {
215
214
  return Promise.resolve(streamBody);
216
215
  }
217
216
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
218
217
  };
219
- // Encode Uint8Array data into string with utf-8.
220
218
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
221
219
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
222
220
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -242,9 +240,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
242
240
  }
243
241
  return {};
244
242
  });
245
- /**
246
- * Load an error code for the aws.rest-json-1.1 protocol.
247
- */
248
243
  const loadRestJsonErrorCode = (output, data) => {
249
244
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
250
245
  const sanitizeErrorCode = (rawValue) => {
@@ -269,4 +264,3 @@ const loadRestJsonErrorCode = (output, data) => {
269
264
  }
270
265
  return "";
271
266
  };
272
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
5
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
6
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
7
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -10,12 +11,7 @@ const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
10
11
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
12
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
13
- // @ts-ignore: package.json will be imported from dist folders
14
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -39,4 +35,3 @@ const getRuntimeConfig = (config) => {
39
35
  };
40
36
  };
41
37
  exports.getRuntimeConfig = getRuntimeConfig;
42
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
5
6
  const client_sts_1 = require("@aws-sdk/client-sts");
6
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -9,17 +10,12 @@ const hash_node_1 = require("@aws-sdk/hash-node");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
10
11
  const node_config_provider_1 = require("@aws-sdk/node-config-provider");
11
12
  const node_http_handler_1 = require("@aws-sdk/node-http-handler");
12
- const smithy_client_1 = require("@aws-sdk/smithy-client");
13
13
  const util_base64_node_1 = require("@aws-sdk/util-base64-node");
14
14
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
- // @ts-ignore: package.json will be imported from dist folders
18
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
19
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
20
- /**
21
- * @internal
22
- */
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -44,4 +40,3 @@ const getRuntimeConfig = (config) => {
44
40
  };
45
41
  };
46
42
  exports.getRuntimeConfig = getRuntimeConfig;
47
- //# sourceMappingURL=runtimeConfig.js.map
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
18
15
  });
19
16
  };
20
17
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -23,4 +23,3 @@ var MarketplaceEntitlementService = (function (_super) {
23
23
  return MarketplaceEntitlementService;
24
24
  }(MarketplaceEntitlementServiceClient));
25
25
  export { MarketplaceEntitlementService };
26
- //# sourceMappingURL=MarketplaceEntitlementService.js.map
@@ -35,4 +35,3 @@ var MarketplaceEntitlementServiceClient = (function (_super) {
35
35
  return MarketplaceEntitlementServiceClient;
36
36
  }(__Client));
37
37
  export { MarketplaceEntitlementServiceClient };
38
- //# sourceMappingURL=MarketplaceEntitlementServiceClient.js.map
@@ -37,4 +37,3 @@ var GetEntitlementsCommand = (function (_super) {
37
37
  return GetEntitlementsCommand;
38
38
  }($Command));
39
39
  export { GetEntitlementsCommand };
40
- //# sourceMappingURL=GetEntitlementsCommand.js.map
@@ -0,0 +1 @@
1
+ export * from "./GetEntitlementsCommand";
@@ -33,7 +33,7 @@ var partitionHash = {
33
33
  hostname: "entitlement.marketplace.{region}.amazonaws.com.cn",
34
34
  },
35
35
  "aws-iso": {
36
- regions: ["us-iso-east-1"],
36
+ regions: ["us-iso-east-1", "us-iso-west-1"],
37
37
  hostname: "entitlement.marketplace.{region}.c2s.ic.gov",
38
38
  },
39
39
  "aws-iso-b": {
@@ -50,4 +50,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
50
50
  return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "aws-marketplace", regionHash: regionHash, partitionHash: partitionHash }))];
51
51
  });
52
52
  }); };
53
- //# sourceMappingURL=endpoints.js.map
package/dist-es/index.js CHANGED
@@ -1,5 +1,4 @@
1
- export * from "./MarketplaceEntitlementServiceClient";
2
1
  export * from "./MarketplaceEntitlementService";
3
- export * from "./commands/GetEntitlementsCommand";
4
- export * from "./models/index";
5
- //# sourceMappingURL=index.js.map
2
+ export * from "./MarketplaceEntitlementServiceClient";
3
+ export * from "./commands";
4
+ export * from "./models";
@@ -1,2 +1 @@
1
1
  export * from "./models_0";
2
- //# sourceMappingURL=index.js.map
@@ -55,4 +55,3 @@ export var ThrottlingException;
55
55
  (function (ThrottlingException) {
56
56
  ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
57
  })(ThrottlingException || (ThrottlingException = {}));
58
- //# sourceMappingURL=models_0.js.map
@@ -272,4 +272,3 @@ var loadRestJsonErrorCode = function (output, data) {
272
272
  }
273
273
  return "";
274
274
  };
275
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
4
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
4
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
7
8
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
8
9
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
10
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
- import packageInfo from "../package.json";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
12
  export var getRuntimeConfig = function (config) {
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
14
  var clientSharedValues = getSharedRuntimeConfig(config);
15
15
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
16
  };
17
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -6,17 +7,15 @@ import { Hash } from "@aws-sdk/hash-node";
6
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
9
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
- import packageInfo from "../package.json";
15
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
20
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
21
21
  };
22
- //# sourceMappingURL=runtimeConfig.js.map
@@ -6,4 +6,3 @@ export var getRuntimeConfig = function (config) {
6
6
  var browserDefaults = getBrowserRuntimeConfig(config);
7
7
  return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
8
8
  };
9
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -11,4 +11,3 @@ export var getRuntimeConfig = function (config) {
11
11
  urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
12
  });
13
13
  };
14
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -0,0 +1 @@
1
+ export * from "./GetEntitlementsCommand";
@@ -1,4 +1,4 @@
1
- export * from "./MarketplaceEntitlementServiceClient";
2
1
  export * from "./MarketplaceEntitlementService";
3
- export * from "./commands/GetEntitlementsCommand";
4
- export * from "./models/index";
2
+ export * from "./MarketplaceEntitlementServiceClient";
3
+ export * from "./commands";
4
+ export * from "./models";
@@ -1,30 +1,9 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { GetEntitlementsCommandInput, GetEntitlementsCommandOutput } from "./commands/GetEntitlementsCommand";
3
3
  import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
4
- /**
5
- * <fullname>AWS Marketplace Entitlement Service</fullname>
6
- * <p>This reference provides descriptions of the AWS Marketplace Entitlement Service
7
- * API.</p>
8
- * <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to
9
- * a given product. An entitlement represents capacity in a product owned by the customer. For
10
- * example, a customer might own some number of users or seats in an SaaS application or some
11
- * amount of data capacity in a multi-tenant database.</p>
12
- * <p>
13
- * <b>Getting Entitlement Records</b>
14
- * </p>
15
- * <ul>
16
- * <li>
17
- * <p>
18
- * <i>GetEntitlements</i>- Gets the entitlements for a Marketplace
19
- * product.</p>
20
- * </li>
21
- * </ul>
22
- */
4
+
23
5
  export declare class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
24
- /**
25
- * <p>GetEntitlements retrieves entitlement values for a given product. The results can be
26
- * filtered based on customer identifier or product dimensions.</p>
27
- */
6
+
28
7
  getEntitlements(args: GetEntitlementsCommandInput, options?: __HttpHandlerOptions): Promise<GetEntitlementsCommandOutput>;
29
8
  getEntitlements(args: GetEntitlementsCommandInput, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
30
9
  getEntitlements(args: GetEntitlementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;