@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.
- package/LICENSE +201 -0
- package/README.md +249 -0
- package/dist-cjs/MarketplaceAgreement.js +17 -0
- package/dist-cjs/MarketplaceAgreementClient.js +43 -0
- package/dist-cjs/commands/DescribeAgreementCommand.js +51 -0
- package/dist-cjs/commands/GetAgreementTermsCommand.js +51 -0
- package/dist-cjs/commands/SearchAgreementsCommand.js +51 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/MarketplaceAgreementServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +137 -0
- package/dist-cjs/pagination/GetAgreementTermsPaginator.js +29 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/SearchAgreementsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_json1_0.js +420 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/MarketplaceAgreement.js +13 -0
- package/dist-es/MarketplaceAgreementClient.js +39 -0
- package/dist-es/commands/DescribeAgreementCommand.js +47 -0
- package/dist-es/commands/GetAgreementTermsCommand.js +47 -0
- package/dist-es/commands/SearchAgreementsCommand.js +47 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/MarketplaceAgreementServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +129 -0
- package/dist-es/pagination/GetAgreementTermsPaginator.js +25 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/SearchAgreementsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_0.js +411 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/MarketplaceAgreement.d.ts +51 -0
- package/dist-types/MarketplaceAgreementClient.d.ts +192 -0
- package/dist-types/commands/DescribeAgreementCommand.d.ts +112 -0
- package/dist-types/commands/GetAgreementTermsCommand.d.ts +235 -0
- package/dist-types/commands/SearchAgreementsCommand.d.ts +213 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +35 -0
- package/dist-types/models/MarketplaceAgreementServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1350 -0
- package/dist-types/pagination/GetAgreementTermsPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/SearchAgreementsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +29 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/MarketplaceAgreement.d.ts +58 -0
- package/dist-types/ts3.4/MarketplaceAgreementClient.d.ts +139 -0
- package/dist-types/ts3.4/commands/DescribeAgreementCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAgreementTermsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SearchAgreementsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/MarketplaceAgreementServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +458 -0
- package/dist-types/ts3.4/pagination/GetAgreementTermsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/SearchAgreementsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +41 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +102 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DescribeAgreementCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./GetAgreementTermsCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./SearchAgreementsCommand"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveClientEndpointParameters = void 0;
|
|
4
|
+
const resolveClientEndpointParameters = (options) => {
|
|
5
|
+
return {
|
|
6
|
+
...options,
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
+
defaultSigningName: "aws-marketplace",
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultEndpointResolver = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
+
const ruleset_1 = require("./ruleset");
|
|
6
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
+
return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
|
+
endpointParams: endpointParams,
|
|
9
|
+
logger: context.logger,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
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" }];
|
|
6
|
+
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 }] };
|
|
7
|
+
exports.ruleSet = _data;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceAgreementServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./MarketplaceAgreementClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./MarketplaceAgreement"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
10
|
+
require("@aws-sdk/util-endpoints");
|
|
11
|
+
var MarketplaceAgreementServiceException_1 = require("./models/MarketplaceAgreementServiceException");
|
|
12
|
+
Object.defineProperty(exports, "MarketplaceAgreementServiceException", { enumerable: true, get: function () { return MarketplaceAgreementServiceException_1.MarketplaceAgreementServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceAgreementServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class MarketplaceAgreementServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, MarketplaceAgreementServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.MarketplaceAgreementServiceException = MarketplaceAgreementServiceException;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SortOrder = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.AgreementStatus = exports.AccessDeniedException = exports.AcceptedTerm = void 0;
|
|
4
|
+
const MarketplaceAgreementServiceException_1 = require("./MarketplaceAgreementServiceException");
|
|
5
|
+
var AcceptedTerm;
|
|
6
|
+
(function (AcceptedTerm) {
|
|
7
|
+
AcceptedTerm.visit = (value, visitor) => {
|
|
8
|
+
if (value.legalTerm !== undefined)
|
|
9
|
+
return visitor.legalTerm(value.legalTerm);
|
|
10
|
+
if (value.supportTerm !== undefined)
|
|
11
|
+
return visitor.supportTerm(value.supportTerm);
|
|
12
|
+
if (value.renewalTerm !== undefined)
|
|
13
|
+
return visitor.renewalTerm(value.renewalTerm);
|
|
14
|
+
if (value.usageBasedPricingTerm !== undefined)
|
|
15
|
+
return visitor.usageBasedPricingTerm(value.usageBasedPricingTerm);
|
|
16
|
+
if (value.configurableUpfrontPricingTerm !== undefined)
|
|
17
|
+
return visitor.configurableUpfrontPricingTerm(value.configurableUpfrontPricingTerm);
|
|
18
|
+
if (value.byolPricingTerm !== undefined)
|
|
19
|
+
return visitor.byolPricingTerm(value.byolPricingTerm);
|
|
20
|
+
if (value.recurringPaymentTerm !== undefined)
|
|
21
|
+
return visitor.recurringPaymentTerm(value.recurringPaymentTerm);
|
|
22
|
+
if (value.validityTerm !== undefined)
|
|
23
|
+
return visitor.validityTerm(value.validityTerm);
|
|
24
|
+
if (value.paymentScheduleTerm !== undefined)
|
|
25
|
+
return visitor.paymentScheduleTerm(value.paymentScheduleTerm);
|
|
26
|
+
if (value.freeTrialPricingTerm !== undefined)
|
|
27
|
+
return visitor.freeTrialPricingTerm(value.freeTrialPricingTerm);
|
|
28
|
+
if (value.fixedUpfrontPricingTerm !== undefined)
|
|
29
|
+
return visitor.fixedUpfrontPricingTerm(value.fixedUpfrontPricingTerm);
|
|
30
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
31
|
+
};
|
|
32
|
+
})(AcceptedTerm = exports.AcceptedTerm || (exports.AcceptedTerm = {}));
|
|
33
|
+
class AccessDeniedException extends MarketplaceAgreementServiceException_1.MarketplaceAgreementServiceException {
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "AccessDeniedException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
this.name = "AccessDeniedException";
|
|
41
|
+
this.$fault = "client";
|
|
42
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
43
|
+
this.requestId = opts.requestId;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
47
|
+
exports.AgreementStatus = {
|
|
48
|
+
ACTIVE: "ACTIVE",
|
|
49
|
+
ARCHIVED: "ARCHIVED",
|
|
50
|
+
CANCELLED: "CANCELLED",
|
|
51
|
+
EXPIRED: "EXPIRED",
|
|
52
|
+
RENEWED: "RENEWED",
|
|
53
|
+
REPLACED: "REPLACED",
|
|
54
|
+
ROLLED_BACK: "ROLLED_BACK",
|
|
55
|
+
SUPERSEDED: "SUPERSEDED",
|
|
56
|
+
TERMINATED: "TERMINATED",
|
|
57
|
+
};
|
|
58
|
+
class InternalServerException extends MarketplaceAgreementServiceException_1.MarketplaceAgreementServiceException {
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "InternalServerException",
|
|
62
|
+
$fault: "server",
|
|
63
|
+
...opts,
|
|
64
|
+
});
|
|
65
|
+
this.name = "InternalServerException";
|
|
66
|
+
this.$fault = "server";
|
|
67
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
68
|
+
this.requestId = opts.requestId;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.InternalServerException = InternalServerException;
|
|
72
|
+
exports.ResourceType = {
|
|
73
|
+
AGREEMENT: "Agreement",
|
|
74
|
+
};
|
|
75
|
+
class ResourceNotFoundException extends MarketplaceAgreementServiceException_1.MarketplaceAgreementServiceException {
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "ResourceNotFoundException",
|
|
79
|
+
$fault: "client",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
this.name = "ResourceNotFoundException";
|
|
83
|
+
this.$fault = "client";
|
|
84
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
85
|
+
this.requestId = opts.requestId;
|
|
86
|
+
this.resourceId = opts.resourceId;
|
|
87
|
+
this.resourceType = opts.resourceType;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
91
|
+
class ThrottlingException extends MarketplaceAgreementServiceException_1.MarketplaceAgreementServiceException {
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "ThrottlingException",
|
|
95
|
+
$fault: "client",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
this.name = "ThrottlingException";
|
|
99
|
+
this.$fault = "client";
|
|
100
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
101
|
+
this.requestId = opts.requestId;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.ThrottlingException = ThrottlingException;
|
|
105
|
+
exports.ValidationExceptionReason = {
|
|
106
|
+
INVALID_AGREEMENT_ID: "INVALID_AGREEMENT_ID",
|
|
107
|
+
INVALID_CATALOG: "INVALID_CATALOG",
|
|
108
|
+
INVALID_FILTER_NAME: "INVALID_FILTER_NAME",
|
|
109
|
+
INVALID_FILTER_VALUES: "INVALID_FILTER_VALUES",
|
|
110
|
+
INVALID_MAX_RESULTS: "INVALID_MAX_RESULTS",
|
|
111
|
+
INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN",
|
|
112
|
+
INVALID_SORT_BY: "INVALID_SORT_BY",
|
|
113
|
+
INVALID_SORT_ORDER: "INVALID_SORT_ORDER",
|
|
114
|
+
MISSING_AGREEMENT_ID: "MISSING_AGREEMENT_ID",
|
|
115
|
+
OTHER: "OTHER",
|
|
116
|
+
UNSUPPORTED_FILTERS: "UNSUPPORTED_FILTERS",
|
|
117
|
+
};
|
|
118
|
+
class ValidationException extends MarketplaceAgreementServiceException_1.MarketplaceAgreementServiceException {
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "ValidationException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
this.name = "ValidationException";
|
|
126
|
+
this.$fault = "client";
|
|
127
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
128
|
+
this.requestId = opts.requestId;
|
|
129
|
+
this.reason = opts.reason;
|
|
130
|
+
this.fields = opts.fields;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
exports.ValidationException = ValidationException;
|
|
134
|
+
exports.SortOrder = {
|
|
135
|
+
ASCENDING: "ASCENDING",
|
|
136
|
+
DESCENDING: "DESCENDING",
|
|
137
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetAgreementTerms = void 0;
|
|
4
|
+
const GetAgreementTermsCommand_1 = require("../commands/GetAgreementTermsCommand");
|
|
5
|
+
const MarketplaceAgreementClient_1 = require("../MarketplaceAgreementClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new GetAgreementTermsCommand_1.GetAgreementTermsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateGetAgreementTerms(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof MarketplaceAgreementClient_1.MarketplaceAgreementClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected MarketplaceAgreement | MarketplaceAgreementClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateGetAgreementTerms = paginateGetAgreementTerms;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateSearchAgreements = void 0;
|
|
4
|
+
const SearchAgreementsCommand_1 = require("../commands/SearchAgreementsCommand");
|
|
5
|
+
const MarketplaceAgreementClient_1 = require("../MarketplaceAgreementClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new SearchAgreementsCommand_1.SearchAgreementsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateSearchAgreements(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof MarketplaceAgreementClient_1.MarketplaceAgreementClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected MarketplaceAgreement | MarketplaceAgreementClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateSearchAgreements = paginateSearchAgreements;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetAgreementTermsPaginator"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./SearchAgreementsPaginator"), exports);
|