@aws-sdk/client-marketplace-agreement 3.463.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 (99) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +249 -0
  3. package/dist-cjs/MarketplaceAgreement.js +17 -0
  4. package/dist-cjs/MarketplaceAgreementClient.js +43 -0
  5. package/dist-cjs/commands/DescribeAgreementCommand.js +51 -0
  6. package/dist-cjs/commands/GetAgreementTermsCommand.js +51 -0
  7. package/dist-cjs/commands/SearchAgreementsCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  10. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  11. package/dist-cjs/endpoint/ruleset.js +7 -0
  12. package/dist-cjs/extensionConfiguration.js +2 -0
  13. package/dist-cjs/index.js +12 -0
  14. package/dist-cjs/models/MarketplaceAgreementServiceException.js +12 -0
  15. package/dist-cjs/models/index.js +4 -0
  16. package/dist-cjs/models/models_0.js +137 -0
  17. package/dist-cjs/pagination/GetAgreementTermsPaginator.js +29 -0
  18. package/dist-cjs/pagination/Interfaces.js +2 -0
  19. package/dist-cjs/pagination/SearchAgreementsPaginator.js +29 -0
  20. package/dist-cjs/pagination/index.js +6 -0
  21. package/dist-cjs/protocols/Aws_json1_0.js +420 -0
  22. package/dist-cjs/runtimeConfig.browser.js +39 -0
  23. package/dist-cjs/runtimeConfig.js +50 -0
  24. package/dist-cjs/runtimeConfig.native.js +15 -0
  25. package/dist-cjs/runtimeConfig.shared.js +24 -0
  26. package/dist-cjs/runtimeExtensions.js +22 -0
  27. package/dist-es/MarketplaceAgreement.js +13 -0
  28. package/dist-es/MarketplaceAgreementClient.js +39 -0
  29. package/dist-es/commands/DescribeAgreementCommand.js +47 -0
  30. package/dist-es/commands/GetAgreementTermsCommand.js +47 -0
  31. package/dist-es/commands/SearchAgreementsCommand.js +47 -0
  32. package/dist-es/commands/index.js +3 -0
  33. package/dist-es/endpoint/EndpointParameters.js +8 -0
  34. package/dist-es/endpoint/endpointResolver.js +8 -0
  35. package/dist-es/endpoint/ruleset.js +4 -0
  36. package/dist-es/extensionConfiguration.js +1 -0
  37. package/dist-es/index.js +7 -0
  38. package/dist-es/models/MarketplaceAgreementServiceException.js +8 -0
  39. package/dist-es/models/index.js +1 -0
  40. package/dist-es/models/models_0.js +129 -0
  41. package/dist-es/pagination/GetAgreementTermsPaginator.js +25 -0
  42. package/dist-es/pagination/Interfaces.js +1 -0
  43. package/dist-es/pagination/SearchAgreementsPaginator.js +25 -0
  44. package/dist-es/pagination/index.js +3 -0
  45. package/dist-es/protocols/Aws_json1_0.js +411 -0
  46. package/dist-es/runtimeConfig.browser.js +34 -0
  47. package/dist-es/runtimeConfig.js +45 -0
  48. package/dist-es/runtimeConfig.native.js +11 -0
  49. package/dist-es/runtimeConfig.shared.js +20 -0
  50. package/dist-es/runtimeExtensions.js +18 -0
  51. package/dist-types/MarketplaceAgreement.d.ts +51 -0
  52. package/dist-types/MarketplaceAgreementClient.d.ts +192 -0
  53. package/dist-types/commands/DescribeAgreementCommand.d.ts +112 -0
  54. package/dist-types/commands/GetAgreementTermsCommand.d.ts +235 -0
  55. package/dist-types/commands/SearchAgreementsCommand.d.ts +213 -0
  56. package/dist-types/commands/index.d.ts +3 -0
  57. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  58. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  59. package/dist-types/endpoint/ruleset.d.ts +2 -0
  60. package/dist-types/extensionConfiguration.d.ts +8 -0
  61. package/dist-types/index.d.ts +35 -0
  62. package/dist-types/models/MarketplaceAgreementServiceException.d.ts +13 -0
  63. package/dist-types/models/index.d.ts +1 -0
  64. package/dist-types/models/models_0.d.ts +1350 -0
  65. package/dist-types/pagination/GetAgreementTermsPaginator.d.ts +7 -0
  66. package/dist-types/pagination/Interfaces.d.ts +8 -0
  67. package/dist-types/pagination/SearchAgreementsPaginator.d.ts +7 -0
  68. package/dist-types/pagination/index.d.ts +3 -0
  69. package/dist-types/protocols/Aws_json1_0.d.ts +29 -0
  70. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  71. package/dist-types/runtimeConfig.d.ts +46 -0
  72. package/dist-types/runtimeConfig.native.d.ts +45 -0
  73. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  74. package/dist-types/runtimeExtensions.d.ts +17 -0
  75. package/dist-types/ts3.4/MarketplaceAgreement.d.ts +58 -0
  76. package/dist-types/ts3.4/MarketplaceAgreementClient.d.ts +139 -0
  77. package/dist-types/ts3.4/commands/DescribeAgreementCommand.d.ts +38 -0
  78. package/dist-types/ts3.4/commands/GetAgreementTermsCommand.d.ts +38 -0
  79. package/dist-types/ts3.4/commands/SearchAgreementsCommand.d.ts +38 -0
  80. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  81. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  82. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  83. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  84. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  85. package/dist-types/ts3.4/index.d.ts +10 -0
  86. package/dist-types/ts3.4/models/MarketplaceAgreementServiceException.d.ts +8 -0
  87. package/dist-types/ts3.4/models/index.d.ts +1 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +458 -0
  89. package/dist-types/ts3.4/pagination/GetAgreementTermsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  91. package/dist-types/ts3.4/pagination/SearchAgreementsPaginator.d.ts +11 -0
  92. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  93. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +41 -0
  94. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
  95. package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +90 -0
  97. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  98. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  99. package/package.json +102 -0
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DescribeAgreementCommand, se_DescribeAgreementCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DescribeAgreementCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAgreementCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "MarketplaceAgreementClient";
26
+ const commandName = "DescribeAgreementCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSMPCommerceService_v20200301",
35
+ operation: "DescribeAgreement",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DescribeAgreementCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeAgreementCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_GetAgreementTermsCommand, se_GetAgreementTermsCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class GetAgreementTermsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetAgreementTermsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "MarketplaceAgreementClient";
26
+ const commandName = "GetAgreementTermsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSMPCommerceService_v20200301",
35
+ operation: "GetAgreementTerms",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_GetAgreementTermsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_GetAgreementTermsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_SearchAgreementsCommand, se_SearchAgreementsCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class SearchAgreementsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, SearchAgreementsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "MarketplaceAgreementClient";
26
+ const commandName = "SearchAgreementsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSMPCommerceService_v20200301",
35
+ operation: "SearchAgreements",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_SearchAgreementsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_SearchAgreementsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeAgreementCommand";
2
+ export * from "./GetAgreementTermsCommand";
3
+ export * from "./SearchAgreementsCommand";
@@ -0,0 +1,8 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "aws-marketplace",
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };
@@ -0,0 +1,4 @@
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://agreement-marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://agreement-marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://agreement-marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://agreement-marketplace.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from "./MarketplaceAgreementClient";
2
+ export * from "./MarketplaceAgreement";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ import "@aws-sdk/util-endpoints";
7
+ export { MarketplaceAgreementServiceException } from "./models/MarketplaceAgreementServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class MarketplaceAgreementServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, MarketplaceAgreementServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,129 @@
1
+ import { MarketplaceAgreementServiceException as __BaseException } from "./MarketplaceAgreementServiceException";
2
+ export var AcceptedTerm;
3
+ (function (AcceptedTerm) {
4
+ AcceptedTerm.visit = (value, visitor) => {
5
+ if (value.legalTerm !== undefined)
6
+ return visitor.legalTerm(value.legalTerm);
7
+ if (value.supportTerm !== undefined)
8
+ return visitor.supportTerm(value.supportTerm);
9
+ if (value.renewalTerm !== undefined)
10
+ return visitor.renewalTerm(value.renewalTerm);
11
+ if (value.usageBasedPricingTerm !== undefined)
12
+ return visitor.usageBasedPricingTerm(value.usageBasedPricingTerm);
13
+ if (value.configurableUpfrontPricingTerm !== undefined)
14
+ return visitor.configurableUpfrontPricingTerm(value.configurableUpfrontPricingTerm);
15
+ if (value.byolPricingTerm !== undefined)
16
+ return visitor.byolPricingTerm(value.byolPricingTerm);
17
+ if (value.recurringPaymentTerm !== undefined)
18
+ return visitor.recurringPaymentTerm(value.recurringPaymentTerm);
19
+ if (value.validityTerm !== undefined)
20
+ return visitor.validityTerm(value.validityTerm);
21
+ if (value.paymentScheduleTerm !== undefined)
22
+ return visitor.paymentScheduleTerm(value.paymentScheduleTerm);
23
+ if (value.freeTrialPricingTerm !== undefined)
24
+ return visitor.freeTrialPricingTerm(value.freeTrialPricingTerm);
25
+ if (value.fixedUpfrontPricingTerm !== undefined)
26
+ return visitor.fixedUpfrontPricingTerm(value.fixedUpfrontPricingTerm);
27
+ return visitor._(value.$unknown[0], value.$unknown[1]);
28
+ };
29
+ })(AcceptedTerm || (AcceptedTerm = {}));
30
+ export class AccessDeniedException extends __BaseException {
31
+ constructor(opts) {
32
+ super({
33
+ name: "AccessDeniedException",
34
+ $fault: "client",
35
+ ...opts,
36
+ });
37
+ this.name = "AccessDeniedException";
38
+ this.$fault = "client";
39
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
40
+ this.requestId = opts.requestId;
41
+ }
42
+ }
43
+ export const AgreementStatus = {
44
+ ACTIVE: "ACTIVE",
45
+ ARCHIVED: "ARCHIVED",
46
+ CANCELLED: "CANCELLED",
47
+ EXPIRED: "EXPIRED",
48
+ RENEWED: "RENEWED",
49
+ REPLACED: "REPLACED",
50
+ ROLLED_BACK: "ROLLED_BACK",
51
+ SUPERSEDED: "SUPERSEDED",
52
+ TERMINATED: "TERMINATED",
53
+ };
54
+ export class InternalServerException extends __BaseException {
55
+ constructor(opts) {
56
+ super({
57
+ name: "InternalServerException",
58
+ $fault: "server",
59
+ ...opts,
60
+ });
61
+ this.name = "InternalServerException";
62
+ this.$fault = "server";
63
+ Object.setPrototypeOf(this, InternalServerException.prototype);
64
+ this.requestId = opts.requestId;
65
+ }
66
+ }
67
+ export const ResourceType = {
68
+ AGREEMENT: "Agreement",
69
+ };
70
+ export class ResourceNotFoundException extends __BaseException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "ResourceNotFoundException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ this.name = "ResourceNotFoundException";
78
+ this.$fault = "client";
79
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
80
+ this.requestId = opts.requestId;
81
+ this.resourceId = opts.resourceId;
82
+ this.resourceType = opts.resourceType;
83
+ }
84
+ }
85
+ export class ThrottlingException extends __BaseException {
86
+ constructor(opts) {
87
+ super({
88
+ name: "ThrottlingException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ this.name = "ThrottlingException";
93
+ this.$fault = "client";
94
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
95
+ this.requestId = opts.requestId;
96
+ }
97
+ }
98
+ export const ValidationExceptionReason = {
99
+ INVALID_AGREEMENT_ID: "INVALID_AGREEMENT_ID",
100
+ INVALID_CATALOG: "INVALID_CATALOG",
101
+ INVALID_FILTER_NAME: "INVALID_FILTER_NAME",
102
+ INVALID_FILTER_VALUES: "INVALID_FILTER_VALUES",
103
+ INVALID_MAX_RESULTS: "INVALID_MAX_RESULTS",
104
+ INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN",
105
+ INVALID_SORT_BY: "INVALID_SORT_BY",
106
+ INVALID_SORT_ORDER: "INVALID_SORT_ORDER",
107
+ MISSING_AGREEMENT_ID: "MISSING_AGREEMENT_ID",
108
+ OTHER: "OTHER",
109
+ UNSUPPORTED_FILTERS: "UNSUPPORTED_FILTERS",
110
+ };
111
+ export class ValidationException extends __BaseException {
112
+ constructor(opts) {
113
+ super({
114
+ name: "ValidationException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ this.name = "ValidationException";
119
+ this.$fault = "client";
120
+ Object.setPrototypeOf(this, ValidationException.prototype);
121
+ this.requestId = opts.requestId;
122
+ this.reason = opts.reason;
123
+ this.fields = opts.fields;
124
+ }
125
+ }
126
+ export const SortOrder = {
127
+ ASCENDING: "ASCENDING",
128
+ DESCENDING: "DESCENDING",
129
+ };
@@ -0,0 +1,25 @@
1
+ import { GetAgreementTermsCommand, } from "../commands/GetAgreementTermsCommand";
2
+ import { MarketplaceAgreementClient } from "../MarketplaceAgreementClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new GetAgreementTermsCommand(input), ...args);
5
+ };
6
+ export async function* paginateGetAgreementTerms(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof MarketplaceAgreementClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected MarketplaceAgreement | MarketplaceAgreementClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { SearchAgreementsCommand, } from "../commands/SearchAgreementsCommand";
2
+ import { MarketplaceAgreementClient } from "../MarketplaceAgreementClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new SearchAgreementsCommand(input), ...args);
5
+ };
6
+ export async function* paginateSearchAgreements(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof MarketplaceAgreementClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected MarketplaceAgreement | MarketplaceAgreementClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./GetAgreementTermsPaginator";
2
+ export * from "./Interfaces";
3
+ export * from "./SearchAgreementsPaginator";