@aws-sdk/client-pricing-plan-manager 3.1099.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 +244 -0
- package/dist-cjs/index.js +729 -0
- package/dist-es/PricingPlanManager.js +29 -0
- package/dist-es/PricingPlanManagerClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/ApprovePaidSubscriptionCommand.js +4 -0
- package/dist-es/commands/AssociateResourcesToSubscriptionCommand.js +4 -0
- package/dist-es/commands/CancelSubscriptionChangeCommand.js +4 -0
- package/dist-es/commands/CancelSubscriptionCommand.js +4 -0
- package/dist-es/commands/CreateSubscriptionCommand.js +4 -0
- package/dist-es/commands/DisassociateResourcesFromSubscriptionCommand.js +4 -0
- package/dist-es/commands/GetSubscriptionCommand.js +4 -0
- package/dist-es/commands/ListSubscriptionsCommand.js +4 -0
- package/dist-es/commands/UpdateSubscriptionCommand.js +4 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/EndpointParameters.js +9 -0
- package/dist-es/endpoint/bdd.js +19 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/PricingPlanManagerServiceException.js +8 -0
- package/dist-es/models/enums.js +14 -0
- package/dist-es/models/errors.js +91 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +258 -0
- package/dist-types/PricingPlanManager.d.ts +81 -0
- package/dist-types/PricingPlanManagerClient.d.ts +195 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/ApprovePaidSubscriptionCommand.d.ts +138 -0
- package/dist-types/commands/AssociateResourcesToSubscriptionCommand.d.ts +145 -0
- package/dist-types/commands/CancelSubscriptionChangeCommand.d.ts +138 -0
- package/dist-types/commands/CancelSubscriptionCommand.d.ts +142 -0
- package/dist-types/commands/CreateSubscriptionCommand.d.ts +184 -0
- package/dist-types/commands/DisassociateResourcesFromSubscriptionCommand.d.ts +144 -0
- package/dist-types/commands/GetSubscriptionCommand.d.ts +132 -0
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +135 -0
- package/dist-types/commands/UpdateSubscriptionCommand.d.ts +144 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/PricingPlanManagerServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +38 -0
- package/dist-types/models/errors.d.ts +101 -0
- package/dist-types/models/models_0.d.ts +474 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +46 -0
- package/dist-types/ts3.4/PricingPlanManager.d.ts +172 -0
- package/dist-types/ts3.4/PricingPlanManagerClient.d.ts +157 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/ApprovePaidSubscriptionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/AssociateResourcesToSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CancelSubscriptionChangeCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CancelSubscriptionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DisassociateResourcesFromSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetSubscriptionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +39 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/PricingPlanManagerServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +17 -0
- package/dist-types/ts3.4/models/errors.d.ts +40 -0
- package/dist-types/ts3.4/models/models_0.d.ts +116 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +41 -0
- package/package.json +69 -0
|
@@ -0,0 +1,729 @@
|
|
|
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
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
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;
|
|
6
|
+
exports.__Client = Client;
|
|
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");
|
|
8
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
13
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
15
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
16
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
18
|
+
|
|
19
|
+
const defaultPricingPlanManagerHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
20
|
+
return {
|
|
21
|
+
operation: getSmithyContext(context).operation,
|
|
22
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
23
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
24
|
+
})(),
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
28
|
+
return {
|
|
29
|
+
schemeId: "aws.auth#sigv4",
|
|
30
|
+
signingProperties: {
|
|
31
|
+
name: "pricingplanmanager",
|
|
32
|
+
region: authParameters.region,
|
|
33
|
+
},
|
|
34
|
+
propertiesExtractor: (config, context) => ({
|
|
35
|
+
signingProperties: {
|
|
36
|
+
config,
|
|
37
|
+
context,
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const defaultPricingPlanManagerHttpAuthSchemeProvider = (authParameters) => {
|
|
43
|
+
const options = [];
|
|
44
|
+
switch (authParameters.operation) {
|
|
45
|
+
default: {
|
|
46
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return options;
|
|
50
|
+
};
|
|
51
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
52
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
53
|
+
return Object.assign(config_0, {
|
|
54
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const resolveClientEndpointParameters = (options) => {
|
|
59
|
+
return Object.assign(options, {
|
|
60
|
+
defaultSigningName: "pricingplanmanager",
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
const commonParams = {
|
|
64
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
65
|
+
Region: { type: "builtInParams", name: "region" },
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var version = "3.0.0";
|
|
69
|
+
var packageInfo = {
|
|
70
|
+
version: version};
|
|
71
|
+
|
|
72
|
+
const a = { "authSchemes": [{ "name": "sigv4", "signingName": "pricingplanmanager", "signingRegion": "us-east-1" }] };
|
|
73
|
+
const _data = {
|
|
74
|
+
conditions: [
|
|
75
|
+
["isSet", [{ ref: "Endpoint" }]]
|
|
76
|
+
],
|
|
77
|
+
results: [
|
|
78
|
+
[-1],
|
|
79
|
+
["{Endpoint}", a],
|
|
80
|
+
["https://pricingplanmanager.us-east-1.api.aws", a]
|
|
81
|
+
]
|
|
82
|
+
};
|
|
83
|
+
const root = 2;
|
|
84
|
+
const r = 100_000_000;
|
|
85
|
+
const nodes = new Int32Array([
|
|
86
|
+
-1, 1, -1,
|
|
87
|
+
0, r + 1, r + 2,
|
|
88
|
+
]);
|
|
89
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
90
|
+
|
|
91
|
+
const cache = new EndpointCache({
|
|
92
|
+
size: 50,
|
|
93
|
+
params: ["Endpoint"],
|
|
94
|
+
});
|
|
95
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
96
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
97
|
+
endpointParams: endpointParams,
|
|
98
|
+
logger: context.logger,
|
|
99
|
+
}));
|
|
100
|
+
};
|
|
101
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
102
|
+
|
|
103
|
+
class PricingPlanManagerServiceException extends ServiceException {
|
|
104
|
+
constructor(options) {
|
|
105
|
+
super(options);
|
|
106
|
+
Object.setPrototypeOf(this, PricingPlanManagerServiceException.prototype);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
class AccessDeniedException extends PricingPlanManagerServiceException {
|
|
111
|
+
name = "AccessDeniedException";
|
|
112
|
+
$fault = "client";
|
|
113
|
+
constructor(opts) {
|
|
114
|
+
super({
|
|
115
|
+
name: "AccessDeniedException",
|
|
116
|
+
$fault: "client",
|
|
117
|
+
...opts,
|
|
118
|
+
});
|
|
119
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
class ConflictException extends PricingPlanManagerServiceException {
|
|
123
|
+
name = "ConflictException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
resourceId;
|
|
126
|
+
constructor(opts) {
|
|
127
|
+
super({
|
|
128
|
+
name: "ConflictException",
|
|
129
|
+
$fault: "client",
|
|
130
|
+
...opts,
|
|
131
|
+
});
|
|
132
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
133
|
+
this.resourceId = opts.resourceId;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
class InternalServerException extends PricingPlanManagerServiceException {
|
|
137
|
+
name = "InternalServerException";
|
|
138
|
+
$fault = "server";
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "InternalServerException",
|
|
142
|
+
$fault: "server",
|
|
143
|
+
...opts,
|
|
144
|
+
});
|
|
145
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class ResourceNotFoundException extends PricingPlanManagerServiceException {
|
|
149
|
+
name = "ResourceNotFoundException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
resourceId;
|
|
152
|
+
constructor(opts) {
|
|
153
|
+
super({
|
|
154
|
+
name: "ResourceNotFoundException",
|
|
155
|
+
$fault: "client",
|
|
156
|
+
...opts,
|
|
157
|
+
});
|
|
158
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
159
|
+
this.resourceId = opts.resourceId;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
class ThrottlingException extends PricingPlanManagerServiceException {
|
|
163
|
+
name = "ThrottlingException";
|
|
164
|
+
$fault = "client";
|
|
165
|
+
constructor(opts) {
|
|
166
|
+
super({
|
|
167
|
+
name: "ThrottlingException",
|
|
168
|
+
$fault: "client",
|
|
169
|
+
...opts,
|
|
170
|
+
});
|
|
171
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
class ValidationException extends PricingPlanManagerServiceException {
|
|
175
|
+
name = "ValidationException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
resourceId;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "ValidationException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
185
|
+
this.resourceId = opts.resourceId;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
class ServiceQuotaExceededException extends PricingPlanManagerServiceException {
|
|
189
|
+
name = "ServiceQuotaExceededException";
|
|
190
|
+
$fault = "client";
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "ServiceQuotaExceededException",
|
|
194
|
+
$fault: "client",
|
|
195
|
+
...opts,
|
|
196
|
+
});
|
|
197
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const _ADE = "AccessDeniedException";
|
|
202
|
+
const _APS = "ApprovePaidSubscription";
|
|
203
|
+
const _APSI = "ApprovePaidSubscriptionInput";
|
|
204
|
+
const _APSO = "ApprovePaidSubscriptionOutput";
|
|
205
|
+
const _ARTS = "AssociateResourcesToSubscription";
|
|
206
|
+
const _ARTSI = "AssociateResourcesToSubscriptionInput";
|
|
207
|
+
const _ARTSO = "AssociateResourcesToSubscriptionOutput";
|
|
208
|
+
const _CE = "ConflictException";
|
|
209
|
+
const _CS = "CancelSubscription";
|
|
210
|
+
const _CSC = "CancelSubscriptionChange";
|
|
211
|
+
const _CSCI = "CancelSubscriptionChangeInput";
|
|
212
|
+
const _CSCO = "CancelSubscriptionChangeOutput";
|
|
213
|
+
const _CSI = "CancelSubscriptionInput";
|
|
214
|
+
const _CSIr = "CreateSubscriptionInput";
|
|
215
|
+
const _CSO = "CancelSubscriptionOutput";
|
|
216
|
+
const _CSOr = "CreateSubscriptionOutput";
|
|
217
|
+
const _CSr = "CreateSubscription";
|
|
218
|
+
const _DRFS = "DisassociateResourcesFromSubscription";
|
|
219
|
+
const _DRFSI = "DisassociateResourcesFromSubscriptionInput";
|
|
220
|
+
const _DRFSO = "DisassociateResourcesFromSubscriptionOutput";
|
|
221
|
+
const _ET = "ETag";
|
|
222
|
+
const _GS = "GetSubscription";
|
|
223
|
+
const _GSI = "GetSubscriptionInput";
|
|
224
|
+
const _GSO = "GetSubscriptionOutput";
|
|
225
|
+
const _IM = "If-Match";
|
|
226
|
+
const _ISE = "InternalServerException";
|
|
227
|
+
const _LS = "ListSubscriptions";
|
|
228
|
+
const _LSI = "ListSubscriptionsInput";
|
|
229
|
+
const _LSO = "ListSubscriptionsOutput";
|
|
230
|
+
const _RNFE = "ResourceNotFoundException";
|
|
231
|
+
const _S = "Subscription";
|
|
232
|
+
const _SC = "ScheduledChange";
|
|
233
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
234
|
+
const _SS = "SubscriptionSummary";
|
|
235
|
+
const _SSL = "SubscriptionSummaryList";
|
|
236
|
+
const _TE = "ThrottlingException";
|
|
237
|
+
const _US = "UpdateSubscription";
|
|
238
|
+
const _USI = "UpdateSubscriptionInput";
|
|
239
|
+
const _USO = "UpdateSubscriptionOutput";
|
|
240
|
+
const _VE = "ValidationException";
|
|
241
|
+
const _a = "arn";
|
|
242
|
+
const _aM = "approvalMode";
|
|
243
|
+
const _c = "client";
|
|
244
|
+
const _cA = "createdAt";
|
|
245
|
+
const _cT = "clientToken";
|
|
246
|
+
const _cTh = "changeType";
|
|
247
|
+
const _e = "error";
|
|
248
|
+
const _eD = "effectiveDate";
|
|
249
|
+
const _eT = "eTag";
|
|
250
|
+
const _h = "http";
|
|
251
|
+
const _hE = "httpError";
|
|
252
|
+
const _hH = "httpHeader";
|
|
253
|
+
const _iM = "ifMatch";
|
|
254
|
+
const _m = "message";
|
|
255
|
+
const _nT = "nextToken";
|
|
256
|
+
const _pF = "planFamily";
|
|
257
|
+
const _pT = "planTier";
|
|
258
|
+
const _rA = "resourceArns";
|
|
259
|
+
const _rI = "resourceId";
|
|
260
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pricingplanmanager";
|
|
261
|
+
const _sC = "scheduledChange";
|
|
262
|
+
const _sR = "statusReason";
|
|
263
|
+
const _sS = "subscriptionSummaries";
|
|
264
|
+
const _se = "server";
|
|
265
|
+
const _st = "status";
|
|
266
|
+
const _su = "subscription";
|
|
267
|
+
const _uA = "updatedAt";
|
|
268
|
+
const _uL = "usageLevel";
|
|
269
|
+
const n0 = "com.amazonaws.pricingplanmanager";
|
|
270
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
271
|
+
var PricingPlanManagerServiceException$ = [-3, _s, "PricingPlanManagerServiceException", 0, [], []];
|
|
272
|
+
_s_registry.registerError(PricingPlanManagerServiceException$, PricingPlanManagerServiceException);
|
|
273
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
274
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
275
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
276
|
+
[_m],
|
|
277
|
+
[0], 1
|
|
278
|
+
];
|
|
279
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
280
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
281
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
282
|
+
[_m, _rI],
|
|
283
|
+
[0, 0], 2
|
|
284
|
+
];
|
|
285
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
286
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
287
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
288
|
+
[_m],
|
|
289
|
+
[0], 1
|
|
290
|
+
];
|
|
291
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
292
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
293
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
294
|
+
[_m, _rI],
|
|
295
|
+
[0, 0], 2
|
|
296
|
+
];
|
|
297
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
298
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
299
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
300
|
+
[_m],
|
|
301
|
+
[0], 1
|
|
302
|
+
];
|
|
303
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
304
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
305
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
306
|
+
[_m],
|
|
307
|
+
[0]
|
|
308
|
+
];
|
|
309
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
310
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
311
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
312
|
+
[_m, _rI],
|
|
313
|
+
[0, 0], 1
|
|
314
|
+
];
|
|
315
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
316
|
+
const errorTypeRegistries = [
|
|
317
|
+
_s_registry,
|
|
318
|
+
n0_registry,
|
|
319
|
+
];
|
|
320
|
+
var ApprovePaidSubscriptionInput$ = [3, n0, _APSI,
|
|
321
|
+
0,
|
|
322
|
+
[_a, _iM, _cT],
|
|
323
|
+
[0, [0, { [_hH]: _IM }], [0, 4]], 2
|
|
324
|
+
];
|
|
325
|
+
var ApprovePaidSubscriptionOutput$ = [3, n0, _APSO,
|
|
326
|
+
0,
|
|
327
|
+
[_su, _eT],
|
|
328
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
329
|
+
];
|
|
330
|
+
var AssociateResourcesToSubscriptionInput$ = [3, n0, _ARTSI,
|
|
331
|
+
0,
|
|
332
|
+
[_a, _rA, _iM, _cT],
|
|
333
|
+
[0, 64 | 0, [0, { [_hH]: _IM }], [0, 4]], 3
|
|
334
|
+
];
|
|
335
|
+
var AssociateResourcesToSubscriptionOutput$ = [3, n0, _ARTSO,
|
|
336
|
+
0,
|
|
337
|
+
[_su, _eT],
|
|
338
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
339
|
+
];
|
|
340
|
+
var CancelSubscriptionChangeInput$ = [3, n0, _CSCI,
|
|
341
|
+
0,
|
|
342
|
+
[_a, _iM, _cT],
|
|
343
|
+
[0, [0, { [_hH]: _IM }], [0, 4]], 2
|
|
344
|
+
];
|
|
345
|
+
var CancelSubscriptionChangeOutput$ = [3, n0, _CSCO,
|
|
346
|
+
0,
|
|
347
|
+
[_su, _eT],
|
|
348
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
349
|
+
];
|
|
350
|
+
var CancelSubscriptionInput$ = [3, n0, _CSI,
|
|
351
|
+
0,
|
|
352
|
+
[_a, _iM, _cT],
|
|
353
|
+
[0, [0, { [_hH]: _IM }], [0, 4]], 2
|
|
354
|
+
];
|
|
355
|
+
var CancelSubscriptionOutput$ = [3, n0, _CSO,
|
|
356
|
+
0,
|
|
357
|
+
[_su, _eT],
|
|
358
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
359
|
+
];
|
|
360
|
+
var CreateSubscriptionInput$ = [3, n0, _CSIr,
|
|
361
|
+
0,
|
|
362
|
+
[_pF, _pT, _rA, _uL, _aM, _cT],
|
|
363
|
+
[0, 0, 64 | 0, 0, 0, [0, 4]], 3
|
|
364
|
+
];
|
|
365
|
+
var CreateSubscriptionOutput$ = [3, n0, _CSOr,
|
|
366
|
+
0,
|
|
367
|
+
[_su, _eT],
|
|
368
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
369
|
+
];
|
|
370
|
+
var DisassociateResourcesFromSubscriptionInput$ = [3, n0, _DRFSI,
|
|
371
|
+
0,
|
|
372
|
+
[_a, _rA, _iM, _cT],
|
|
373
|
+
[0, 64 | 0, [0, { [_hH]: _IM }], [0, 4]], 3
|
|
374
|
+
];
|
|
375
|
+
var DisassociateResourcesFromSubscriptionOutput$ = [3, n0, _DRFSO,
|
|
376
|
+
0,
|
|
377
|
+
[_su, _eT],
|
|
378
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
379
|
+
];
|
|
380
|
+
var GetSubscriptionInput$ = [3, n0, _GSI,
|
|
381
|
+
0,
|
|
382
|
+
[_a],
|
|
383
|
+
[0], 1
|
|
384
|
+
];
|
|
385
|
+
var GetSubscriptionOutput$ = [3, n0, _GSO,
|
|
386
|
+
0,
|
|
387
|
+
[_su, _eT],
|
|
388
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
389
|
+
];
|
|
390
|
+
var ListSubscriptionsInput$ = [3, n0, _LSI,
|
|
391
|
+
0,
|
|
392
|
+
[_nT],
|
|
393
|
+
[0]
|
|
394
|
+
];
|
|
395
|
+
var ListSubscriptionsOutput$ = [3, n0, _LSO,
|
|
396
|
+
0,
|
|
397
|
+
[_sS, _nT],
|
|
398
|
+
[() => SubscriptionSummaryList, 0], 1
|
|
399
|
+
];
|
|
400
|
+
var ScheduledChange$ = [3, n0, _SC,
|
|
401
|
+
0,
|
|
402
|
+
[_cTh, _eD, _pT, _uL],
|
|
403
|
+
[0, 5, 0, 0], 1
|
|
404
|
+
];
|
|
405
|
+
var Subscription$ = [3, n0, _S,
|
|
406
|
+
0,
|
|
407
|
+
[_a, _pF, _pT, _st, _rA, _cA, _uA, _uL, _sC, _sR],
|
|
408
|
+
[0, 0, 0, 0, 64 | 0, 5, 5, 0, () => ScheduledChange$, 0], 7
|
|
409
|
+
];
|
|
410
|
+
var SubscriptionSummary$ = [3, n0, _SS,
|
|
411
|
+
0,
|
|
412
|
+
[_a, _pF, _pT, _st, _rA, _cA, _uA, _eT, _uL, _sC, _sR],
|
|
413
|
+
[0, 0, 0, 0, 64 | 0, 5, 5, 0, 0, () => ScheduledChange$, 0], 8
|
|
414
|
+
];
|
|
415
|
+
var UpdateSubscriptionInput$ = [3, n0, _USI,
|
|
416
|
+
0,
|
|
417
|
+
[_a, _pT, _iM, _uL, _cT],
|
|
418
|
+
[0, 0, [0, { [_hH]: _IM }], 0, [0, 4]], 3
|
|
419
|
+
];
|
|
420
|
+
var UpdateSubscriptionOutput$ = [3, n0, _USO,
|
|
421
|
+
0,
|
|
422
|
+
[_su, _eT],
|
|
423
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
424
|
+
];
|
|
425
|
+
var SubscriptionSummaryList = [1, n0, _SSL,
|
|
426
|
+
0, () => SubscriptionSummary$
|
|
427
|
+
];
|
|
428
|
+
var ApprovePaidSubscription$ = [9, n0, _APS,
|
|
429
|
+
{ [_h]: ["POST", "/v1/ApprovePaidSubscription", 200] }, () => ApprovePaidSubscriptionInput$, () => ApprovePaidSubscriptionOutput$
|
|
430
|
+
];
|
|
431
|
+
var AssociateResourcesToSubscription$ = [9, n0, _ARTS,
|
|
432
|
+
{ [_h]: ["POST", "/v1/AssociateResourcesToSubscription", 200] }, () => AssociateResourcesToSubscriptionInput$, () => AssociateResourcesToSubscriptionOutput$
|
|
433
|
+
];
|
|
434
|
+
var CancelSubscription$ = [9, n0, _CS,
|
|
435
|
+
{ [_h]: ["POST", "/v1/CancelSubscription", 200] }, () => CancelSubscriptionInput$, () => CancelSubscriptionOutput$
|
|
436
|
+
];
|
|
437
|
+
var CancelSubscriptionChange$ = [9, n0, _CSC,
|
|
438
|
+
{ [_h]: ["POST", "/v1/CancelSubscriptionChange", 200] }, () => CancelSubscriptionChangeInput$, () => CancelSubscriptionChangeOutput$
|
|
439
|
+
];
|
|
440
|
+
var CreateSubscription$ = [9, n0, _CSr,
|
|
441
|
+
{ [_h]: ["POST", "/v1/CreateSubscription", 200] }, () => CreateSubscriptionInput$, () => CreateSubscriptionOutput$
|
|
442
|
+
];
|
|
443
|
+
var DisassociateResourcesFromSubscription$ = [9, n0, _DRFS,
|
|
444
|
+
{ [_h]: ["POST", "/v1/DisassociateResourcesFromSubscription", 200] }, () => DisassociateResourcesFromSubscriptionInput$, () => DisassociateResourcesFromSubscriptionOutput$
|
|
445
|
+
];
|
|
446
|
+
var GetSubscription$ = [9, n0, _GS,
|
|
447
|
+
{ [_h]: ["POST", "/v1/GetSubscription", 200] }, () => GetSubscriptionInput$, () => GetSubscriptionOutput$
|
|
448
|
+
];
|
|
449
|
+
var ListSubscriptions$ = [9, n0, _LS,
|
|
450
|
+
{ [_h]: ["POST", "/v1/ListSubscriptions", 200] }, () => ListSubscriptionsInput$, () => ListSubscriptionsOutput$
|
|
451
|
+
];
|
|
452
|
+
var UpdateSubscription$ = [9, n0, _US,
|
|
453
|
+
{ [_h]: ["POST", "/v1/UpdateSubscription", 200] }, () => UpdateSubscriptionInput$, () => UpdateSubscriptionOutput$
|
|
454
|
+
];
|
|
455
|
+
|
|
456
|
+
const getRuntimeConfig$1 = (config) => {
|
|
457
|
+
return {
|
|
458
|
+
apiVersion: "2025-08-05",
|
|
459
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
460
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
461
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
462
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
463
|
+
extensions: config?.extensions ?? [],
|
|
464
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPricingPlanManagerHttpAuthSchemeProvider,
|
|
465
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
466
|
+
{
|
|
467
|
+
schemeId: "aws.auth#sigv4",
|
|
468
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
469
|
+
signer: new AwsSdkSigV4Signer(),
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
473
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
474
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
475
|
+
defaultNamespace: "com.amazonaws.pricingplanmanager",
|
|
476
|
+
errorTypeRegistries,
|
|
477
|
+
version: "2025-08-05",
|
|
478
|
+
serviceTarget: "AWSPricingPlanManager",
|
|
479
|
+
},
|
|
480
|
+
serviceId: config?.serviceId ?? "Pricing Plan Manager",
|
|
481
|
+
sha256: config?.sha256 ?? Sha256,
|
|
482
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
483
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
484
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
const getRuntimeConfig = (config) => {
|
|
489
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
490
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
491
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
492
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
493
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
494
|
+
const loaderConfig = {
|
|
495
|
+
profile: config?.profile,
|
|
496
|
+
logger: clientSharedValues.logger,
|
|
497
|
+
};
|
|
498
|
+
return {
|
|
499
|
+
...clientSharedValues,
|
|
500
|
+
...config,
|
|
501
|
+
runtime: "node",
|
|
502
|
+
defaultsMode,
|
|
503
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
504
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
505
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
506
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
507
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
508
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
509
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
510
|
+
retryMode: config?.retryMode ??
|
|
511
|
+
loadConfig({
|
|
512
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
513
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
514
|
+
}, config),
|
|
515
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
516
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
517
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
518
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
523
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
524
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
525
|
+
let _credentials = runtimeConfig.credentials;
|
|
526
|
+
return {
|
|
527
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
528
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
529
|
+
if (index === -1) {
|
|
530
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
httpAuthSchemes() {
|
|
537
|
+
return _httpAuthSchemes;
|
|
538
|
+
},
|
|
539
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
540
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
541
|
+
},
|
|
542
|
+
httpAuthSchemeProvider() {
|
|
543
|
+
return _httpAuthSchemeProvider;
|
|
544
|
+
},
|
|
545
|
+
setCredentials(credentials) {
|
|
546
|
+
_credentials = credentials;
|
|
547
|
+
},
|
|
548
|
+
credentials() {
|
|
549
|
+
return _credentials;
|
|
550
|
+
},
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
554
|
+
return {
|
|
555
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
556
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
557
|
+
credentials: config.credentials(),
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
562
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
563
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
564
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
class PricingPlanManagerClient extends Client {
|
|
568
|
+
config;
|
|
569
|
+
constructor(...[configuration]) {
|
|
570
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
571
|
+
super(_config_0);
|
|
572
|
+
this.initConfig = _config_0;
|
|
573
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
574
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
575
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
576
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
577
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
578
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
579
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
580
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
581
|
+
this.config = _config_8;
|
|
582
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
583
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
584
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
585
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
586
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
587
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
588
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
589
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
590
|
+
httpAuthSchemeParametersProvider: defaultPricingPlanManagerHttpAuthSchemeParametersProvider,
|
|
591
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
592
|
+
"aws.auth#sigv4": config.credentials,
|
|
593
|
+
}),
|
|
594
|
+
}));
|
|
595
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
596
|
+
}
|
|
597
|
+
destroy() {
|
|
598
|
+
super.destroy();
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
const command = makeBuilder(commonParams, "AWSPricingPlanManager", "PricingPlanManagerClient", getEndpointPlugin);
|
|
603
|
+
const _ep0 = {};
|
|
604
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
605
|
+
|
|
606
|
+
class ApprovePaidSubscriptionCommand extends command(_ep0, _mw0, "ApprovePaidSubscription", ApprovePaidSubscription$) {
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
class AssociateResourcesToSubscriptionCommand extends command(_ep0, _mw0, "AssociateResourcesToSubscription", AssociateResourcesToSubscription$) {
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
class CancelSubscriptionChangeCommand extends command(_ep0, _mw0, "CancelSubscriptionChange", CancelSubscriptionChange$) {
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
class CancelSubscriptionCommand extends command(_ep0, _mw0, "CancelSubscription", CancelSubscription$) {
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
class CreateSubscriptionCommand extends command(_ep0, _mw0, "CreateSubscription", CreateSubscription$) {
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
class DisassociateResourcesFromSubscriptionCommand extends command(_ep0, _mw0, "DisassociateResourcesFromSubscription", DisassociateResourcesFromSubscription$) {
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
class GetSubscriptionCommand extends command(_ep0, _mw0, "GetSubscription", GetSubscription$) {
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
class ListSubscriptionsCommand extends command(_ep0, _mw0, "ListSubscriptions", ListSubscriptions$) {
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
class UpdateSubscriptionCommand extends command(_ep0, _mw0, "UpdateSubscription", UpdateSubscription$) {
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
const paginateListSubscriptions = createPaginator(PricingPlanManagerClient, ListSubscriptionsCommand, "nextToken", "nextToken", "");
|
|
634
|
+
|
|
635
|
+
const commands = {
|
|
636
|
+
ApprovePaidSubscriptionCommand,
|
|
637
|
+
AssociateResourcesToSubscriptionCommand,
|
|
638
|
+
CancelSubscriptionCommand,
|
|
639
|
+
CancelSubscriptionChangeCommand,
|
|
640
|
+
CreateSubscriptionCommand,
|
|
641
|
+
DisassociateResourcesFromSubscriptionCommand,
|
|
642
|
+
GetSubscriptionCommand,
|
|
643
|
+
ListSubscriptionsCommand,
|
|
644
|
+
UpdateSubscriptionCommand,
|
|
645
|
+
};
|
|
646
|
+
const paginators = {
|
|
647
|
+
paginateListSubscriptions,
|
|
648
|
+
};
|
|
649
|
+
class PricingPlanManager extends PricingPlanManagerClient {
|
|
650
|
+
}
|
|
651
|
+
createAggregatedClient(commands, PricingPlanManager, { paginators });
|
|
652
|
+
|
|
653
|
+
const ApprovalMode = {
|
|
654
|
+
IMMEDIATE: "IMMEDIATE",
|
|
655
|
+
MANUAL: "MANUAL",
|
|
656
|
+
};
|
|
657
|
+
const ScheduledChangeType = {
|
|
658
|
+
CANCELLATION: "CANCELLATION",
|
|
659
|
+
DOWNGRADE: "DOWNGRADE",
|
|
660
|
+
};
|
|
661
|
+
const Status = {
|
|
662
|
+
ACTIVE: "ACTIVE",
|
|
663
|
+
FAILED: "FAILED",
|
|
664
|
+
PENDING_APPROVAL: "PENDING_APPROVAL",
|
|
665
|
+
SYNC_IN_PROGRESS: "SYNC_IN_PROGRESS",
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
669
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
670
|
+
exports.ApprovalMode = ApprovalMode;
|
|
671
|
+
exports.ApprovePaidSubscription$ = ApprovePaidSubscription$;
|
|
672
|
+
exports.ApprovePaidSubscriptionCommand = ApprovePaidSubscriptionCommand;
|
|
673
|
+
exports.ApprovePaidSubscriptionInput$ = ApprovePaidSubscriptionInput$;
|
|
674
|
+
exports.ApprovePaidSubscriptionOutput$ = ApprovePaidSubscriptionOutput$;
|
|
675
|
+
exports.AssociateResourcesToSubscription$ = AssociateResourcesToSubscription$;
|
|
676
|
+
exports.AssociateResourcesToSubscriptionCommand = AssociateResourcesToSubscriptionCommand;
|
|
677
|
+
exports.AssociateResourcesToSubscriptionInput$ = AssociateResourcesToSubscriptionInput$;
|
|
678
|
+
exports.AssociateResourcesToSubscriptionOutput$ = AssociateResourcesToSubscriptionOutput$;
|
|
679
|
+
exports.CancelSubscription$ = CancelSubscription$;
|
|
680
|
+
exports.CancelSubscriptionChange$ = CancelSubscriptionChange$;
|
|
681
|
+
exports.CancelSubscriptionChangeCommand = CancelSubscriptionChangeCommand;
|
|
682
|
+
exports.CancelSubscriptionChangeInput$ = CancelSubscriptionChangeInput$;
|
|
683
|
+
exports.CancelSubscriptionChangeOutput$ = CancelSubscriptionChangeOutput$;
|
|
684
|
+
exports.CancelSubscriptionCommand = CancelSubscriptionCommand;
|
|
685
|
+
exports.CancelSubscriptionInput$ = CancelSubscriptionInput$;
|
|
686
|
+
exports.CancelSubscriptionOutput$ = CancelSubscriptionOutput$;
|
|
687
|
+
exports.ConflictException = ConflictException;
|
|
688
|
+
exports.ConflictException$ = ConflictException$;
|
|
689
|
+
exports.CreateSubscription$ = CreateSubscription$;
|
|
690
|
+
exports.CreateSubscriptionCommand = CreateSubscriptionCommand;
|
|
691
|
+
exports.CreateSubscriptionInput$ = CreateSubscriptionInput$;
|
|
692
|
+
exports.CreateSubscriptionOutput$ = CreateSubscriptionOutput$;
|
|
693
|
+
exports.DisassociateResourcesFromSubscription$ = DisassociateResourcesFromSubscription$;
|
|
694
|
+
exports.DisassociateResourcesFromSubscriptionCommand = DisassociateResourcesFromSubscriptionCommand;
|
|
695
|
+
exports.DisassociateResourcesFromSubscriptionInput$ = DisassociateResourcesFromSubscriptionInput$;
|
|
696
|
+
exports.DisassociateResourcesFromSubscriptionOutput$ = DisassociateResourcesFromSubscriptionOutput$;
|
|
697
|
+
exports.GetSubscription$ = GetSubscription$;
|
|
698
|
+
exports.GetSubscriptionCommand = GetSubscriptionCommand;
|
|
699
|
+
exports.GetSubscriptionInput$ = GetSubscriptionInput$;
|
|
700
|
+
exports.GetSubscriptionOutput$ = GetSubscriptionOutput$;
|
|
701
|
+
exports.InternalServerException = InternalServerException;
|
|
702
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
703
|
+
exports.ListSubscriptions$ = ListSubscriptions$;
|
|
704
|
+
exports.ListSubscriptionsCommand = ListSubscriptionsCommand;
|
|
705
|
+
exports.ListSubscriptionsInput$ = ListSubscriptionsInput$;
|
|
706
|
+
exports.ListSubscriptionsOutput$ = ListSubscriptionsOutput$;
|
|
707
|
+
exports.PricingPlanManager = PricingPlanManager;
|
|
708
|
+
exports.PricingPlanManagerClient = PricingPlanManagerClient;
|
|
709
|
+
exports.PricingPlanManagerServiceException = PricingPlanManagerServiceException;
|
|
710
|
+
exports.PricingPlanManagerServiceException$ = PricingPlanManagerServiceException$;
|
|
711
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
712
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
713
|
+
exports.ScheduledChange$ = ScheduledChange$;
|
|
714
|
+
exports.ScheduledChangeType = ScheduledChangeType;
|
|
715
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
716
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
717
|
+
exports.Status = Status;
|
|
718
|
+
exports.Subscription$ = Subscription$;
|
|
719
|
+
exports.SubscriptionSummary$ = SubscriptionSummary$;
|
|
720
|
+
exports.ThrottlingException = ThrottlingException;
|
|
721
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
722
|
+
exports.UpdateSubscription$ = UpdateSubscription$;
|
|
723
|
+
exports.UpdateSubscriptionCommand = UpdateSubscriptionCommand;
|
|
724
|
+
exports.UpdateSubscriptionInput$ = UpdateSubscriptionInput$;
|
|
725
|
+
exports.UpdateSubscriptionOutput$ = UpdateSubscriptionOutput$;
|
|
726
|
+
exports.ValidationException = ValidationException;
|
|
727
|
+
exports.ValidationException$ = ValidationException$;
|
|
728
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
729
|
+
exports.paginateListSubscriptions = paginateListSubscriptions;
|