@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,258 @@
|
|
|
1
|
+
const _ADE = "AccessDeniedException";
|
|
2
|
+
const _APS = "ApprovePaidSubscription";
|
|
3
|
+
const _APSI = "ApprovePaidSubscriptionInput";
|
|
4
|
+
const _APSO = "ApprovePaidSubscriptionOutput";
|
|
5
|
+
const _ARTS = "AssociateResourcesToSubscription";
|
|
6
|
+
const _ARTSI = "AssociateResourcesToSubscriptionInput";
|
|
7
|
+
const _ARTSO = "AssociateResourcesToSubscriptionOutput";
|
|
8
|
+
const _CE = "ConflictException";
|
|
9
|
+
const _CS = "CancelSubscription";
|
|
10
|
+
const _CSC = "CancelSubscriptionChange";
|
|
11
|
+
const _CSCI = "CancelSubscriptionChangeInput";
|
|
12
|
+
const _CSCO = "CancelSubscriptionChangeOutput";
|
|
13
|
+
const _CSI = "CancelSubscriptionInput";
|
|
14
|
+
const _CSIr = "CreateSubscriptionInput";
|
|
15
|
+
const _CSO = "CancelSubscriptionOutput";
|
|
16
|
+
const _CSOr = "CreateSubscriptionOutput";
|
|
17
|
+
const _CSr = "CreateSubscription";
|
|
18
|
+
const _DRFS = "DisassociateResourcesFromSubscription";
|
|
19
|
+
const _DRFSI = "DisassociateResourcesFromSubscriptionInput";
|
|
20
|
+
const _DRFSO = "DisassociateResourcesFromSubscriptionOutput";
|
|
21
|
+
const _ET = "ETag";
|
|
22
|
+
const _GS = "GetSubscription";
|
|
23
|
+
const _GSI = "GetSubscriptionInput";
|
|
24
|
+
const _GSO = "GetSubscriptionOutput";
|
|
25
|
+
const _IM = "If-Match";
|
|
26
|
+
const _ISE = "InternalServerException";
|
|
27
|
+
const _LS = "ListSubscriptions";
|
|
28
|
+
const _LSI = "ListSubscriptionsInput";
|
|
29
|
+
const _LSO = "ListSubscriptionsOutput";
|
|
30
|
+
const _RNFE = "ResourceNotFoundException";
|
|
31
|
+
const _S = "Subscription";
|
|
32
|
+
const _SC = "ScheduledChange";
|
|
33
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
34
|
+
const _SS = "SubscriptionSummary";
|
|
35
|
+
const _SSL = "SubscriptionSummaryList";
|
|
36
|
+
const _TE = "ThrottlingException";
|
|
37
|
+
const _US = "UpdateSubscription";
|
|
38
|
+
const _USI = "UpdateSubscriptionInput";
|
|
39
|
+
const _USO = "UpdateSubscriptionOutput";
|
|
40
|
+
const _VE = "ValidationException";
|
|
41
|
+
const _a = "arn";
|
|
42
|
+
const _aM = "approvalMode";
|
|
43
|
+
const _c = "client";
|
|
44
|
+
const _cA = "createdAt";
|
|
45
|
+
const _cT = "clientToken";
|
|
46
|
+
const _cTh = "changeType";
|
|
47
|
+
const _e = "error";
|
|
48
|
+
const _eD = "effectiveDate";
|
|
49
|
+
const _eT = "eTag";
|
|
50
|
+
const _h = "http";
|
|
51
|
+
const _hE = "httpError";
|
|
52
|
+
const _hH = "httpHeader";
|
|
53
|
+
const _iM = "ifMatch";
|
|
54
|
+
const _m = "message";
|
|
55
|
+
const _nT = "nextToken";
|
|
56
|
+
const _pF = "planFamily";
|
|
57
|
+
const _pT = "planTier";
|
|
58
|
+
const _rA = "resourceArns";
|
|
59
|
+
const _rI = "resourceId";
|
|
60
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pricingplanmanager";
|
|
61
|
+
const _sC = "scheduledChange";
|
|
62
|
+
const _sR = "statusReason";
|
|
63
|
+
const _sS = "subscriptionSummaries";
|
|
64
|
+
const _se = "server";
|
|
65
|
+
const _st = "status";
|
|
66
|
+
const _su = "subscription";
|
|
67
|
+
const _uA = "updatedAt";
|
|
68
|
+
const _uL = "usageLevel";
|
|
69
|
+
const n0 = "com.amazonaws.pricingplanmanager";
|
|
70
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
71
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
72
|
+
import { PricingPlanManagerServiceException } from "../models/PricingPlanManagerServiceException";
|
|
73
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
74
|
+
export var PricingPlanManagerServiceException$ = [-3, _s, "PricingPlanManagerServiceException", 0, [], []];
|
|
75
|
+
_s_registry.registerError(PricingPlanManagerServiceException$, PricingPlanManagerServiceException);
|
|
76
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
77
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
78
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
79
|
+
[_m],
|
|
80
|
+
[0], 1
|
|
81
|
+
];
|
|
82
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
83
|
+
export var ConflictException$ = [-3, n0, _CE,
|
|
84
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
85
|
+
[_m, _rI],
|
|
86
|
+
[0, 0], 2
|
|
87
|
+
];
|
|
88
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
89
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
90
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
91
|
+
[_m],
|
|
92
|
+
[0], 1
|
|
93
|
+
];
|
|
94
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
95
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
96
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
97
|
+
[_m, _rI],
|
|
98
|
+
[0, 0], 2
|
|
99
|
+
];
|
|
100
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
101
|
+
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
102
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
103
|
+
[_m],
|
|
104
|
+
[0], 1
|
|
105
|
+
];
|
|
106
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
107
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
108
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
109
|
+
[_m],
|
|
110
|
+
[0]
|
|
111
|
+
];
|
|
112
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
113
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
114
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
115
|
+
[_m, _rI],
|
|
116
|
+
[0, 0], 1
|
|
117
|
+
];
|
|
118
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
119
|
+
export const errorTypeRegistries = [
|
|
120
|
+
_s_registry,
|
|
121
|
+
n0_registry,
|
|
122
|
+
];
|
|
123
|
+
export var ApprovePaidSubscriptionInput$ = [3, n0, _APSI,
|
|
124
|
+
0,
|
|
125
|
+
[_a, _iM, _cT],
|
|
126
|
+
[0, [0, { [_hH]: _IM }], [0, 4]], 2
|
|
127
|
+
];
|
|
128
|
+
export var ApprovePaidSubscriptionOutput$ = [3, n0, _APSO,
|
|
129
|
+
0,
|
|
130
|
+
[_su, _eT],
|
|
131
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
132
|
+
];
|
|
133
|
+
export var AssociateResourcesToSubscriptionInput$ = [3, n0, _ARTSI,
|
|
134
|
+
0,
|
|
135
|
+
[_a, _rA, _iM, _cT],
|
|
136
|
+
[0, 64 | 0, [0, { [_hH]: _IM }], [0, 4]], 3
|
|
137
|
+
];
|
|
138
|
+
export var AssociateResourcesToSubscriptionOutput$ = [3, n0, _ARTSO,
|
|
139
|
+
0,
|
|
140
|
+
[_su, _eT],
|
|
141
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
142
|
+
];
|
|
143
|
+
export var CancelSubscriptionChangeInput$ = [3, n0, _CSCI,
|
|
144
|
+
0,
|
|
145
|
+
[_a, _iM, _cT],
|
|
146
|
+
[0, [0, { [_hH]: _IM }], [0, 4]], 2
|
|
147
|
+
];
|
|
148
|
+
export var CancelSubscriptionChangeOutput$ = [3, n0, _CSCO,
|
|
149
|
+
0,
|
|
150
|
+
[_su, _eT],
|
|
151
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
152
|
+
];
|
|
153
|
+
export var CancelSubscriptionInput$ = [3, n0, _CSI,
|
|
154
|
+
0,
|
|
155
|
+
[_a, _iM, _cT],
|
|
156
|
+
[0, [0, { [_hH]: _IM }], [0, 4]], 2
|
|
157
|
+
];
|
|
158
|
+
export var CancelSubscriptionOutput$ = [3, n0, _CSO,
|
|
159
|
+
0,
|
|
160
|
+
[_su, _eT],
|
|
161
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
162
|
+
];
|
|
163
|
+
export var CreateSubscriptionInput$ = [3, n0, _CSIr,
|
|
164
|
+
0,
|
|
165
|
+
[_pF, _pT, _rA, _uL, _aM, _cT],
|
|
166
|
+
[0, 0, 64 | 0, 0, 0, [0, 4]], 3
|
|
167
|
+
];
|
|
168
|
+
export var CreateSubscriptionOutput$ = [3, n0, _CSOr,
|
|
169
|
+
0,
|
|
170
|
+
[_su, _eT],
|
|
171
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
172
|
+
];
|
|
173
|
+
export var DisassociateResourcesFromSubscriptionInput$ = [3, n0, _DRFSI,
|
|
174
|
+
0,
|
|
175
|
+
[_a, _rA, _iM, _cT],
|
|
176
|
+
[0, 64 | 0, [0, { [_hH]: _IM }], [0, 4]], 3
|
|
177
|
+
];
|
|
178
|
+
export var DisassociateResourcesFromSubscriptionOutput$ = [3, n0, _DRFSO,
|
|
179
|
+
0,
|
|
180
|
+
[_su, _eT],
|
|
181
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
182
|
+
];
|
|
183
|
+
export var GetSubscriptionInput$ = [3, n0, _GSI,
|
|
184
|
+
0,
|
|
185
|
+
[_a],
|
|
186
|
+
[0], 1
|
|
187
|
+
];
|
|
188
|
+
export var GetSubscriptionOutput$ = [3, n0, _GSO,
|
|
189
|
+
0,
|
|
190
|
+
[_su, _eT],
|
|
191
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
192
|
+
];
|
|
193
|
+
export var ListSubscriptionsInput$ = [3, n0, _LSI,
|
|
194
|
+
0,
|
|
195
|
+
[_nT],
|
|
196
|
+
[0]
|
|
197
|
+
];
|
|
198
|
+
export var ListSubscriptionsOutput$ = [3, n0, _LSO,
|
|
199
|
+
0,
|
|
200
|
+
[_sS, _nT],
|
|
201
|
+
[() => SubscriptionSummaryList, 0], 1
|
|
202
|
+
];
|
|
203
|
+
export var ScheduledChange$ = [3, n0, _SC,
|
|
204
|
+
0,
|
|
205
|
+
[_cTh, _eD, _pT, _uL],
|
|
206
|
+
[0, 5, 0, 0], 1
|
|
207
|
+
];
|
|
208
|
+
export var Subscription$ = [3, n0, _S,
|
|
209
|
+
0,
|
|
210
|
+
[_a, _pF, _pT, _st, _rA, _cA, _uA, _uL, _sC, _sR],
|
|
211
|
+
[0, 0, 0, 0, 64 | 0, 5, 5, 0, () => ScheduledChange$, 0], 7
|
|
212
|
+
];
|
|
213
|
+
export var SubscriptionSummary$ = [3, n0, _SS,
|
|
214
|
+
0,
|
|
215
|
+
[_a, _pF, _pT, _st, _rA, _cA, _uA, _eT, _uL, _sC, _sR],
|
|
216
|
+
[0, 0, 0, 0, 64 | 0, 5, 5, 0, 0, () => ScheduledChange$, 0], 8
|
|
217
|
+
];
|
|
218
|
+
export var UpdateSubscriptionInput$ = [3, n0, _USI,
|
|
219
|
+
0,
|
|
220
|
+
[_a, _pT, _iM, _uL, _cT],
|
|
221
|
+
[0, 0, [0, { [_hH]: _IM }], 0, [0, 4]], 3
|
|
222
|
+
];
|
|
223
|
+
export var UpdateSubscriptionOutput$ = [3, n0, _USO,
|
|
224
|
+
0,
|
|
225
|
+
[_su, _eT],
|
|
226
|
+
[[() => Subscription$, 16], [0, { [_hH]: _ET }]], 2
|
|
227
|
+
];
|
|
228
|
+
var ResourceArns = 64 | 0;
|
|
229
|
+
var SubscriptionSummaryList = [1, n0, _SSL,
|
|
230
|
+
0, () => SubscriptionSummary$
|
|
231
|
+
];
|
|
232
|
+
export var ApprovePaidSubscription$ = [9, n0, _APS,
|
|
233
|
+
{ [_h]: ["POST", "/v1/ApprovePaidSubscription", 200] }, () => ApprovePaidSubscriptionInput$, () => ApprovePaidSubscriptionOutput$
|
|
234
|
+
];
|
|
235
|
+
export var AssociateResourcesToSubscription$ = [9, n0, _ARTS,
|
|
236
|
+
{ [_h]: ["POST", "/v1/AssociateResourcesToSubscription", 200] }, () => AssociateResourcesToSubscriptionInput$, () => AssociateResourcesToSubscriptionOutput$
|
|
237
|
+
];
|
|
238
|
+
export var CancelSubscription$ = [9, n0, _CS,
|
|
239
|
+
{ [_h]: ["POST", "/v1/CancelSubscription", 200] }, () => CancelSubscriptionInput$, () => CancelSubscriptionOutput$
|
|
240
|
+
];
|
|
241
|
+
export var CancelSubscriptionChange$ = [9, n0, _CSC,
|
|
242
|
+
{ [_h]: ["POST", "/v1/CancelSubscriptionChange", 200] }, () => CancelSubscriptionChangeInput$, () => CancelSubscriptionChangeOutput$
|
|
243
|
+
];
|
|
244
|
+
export var CreateSubscription$ = [9, n0, _CSr,
|
|
245
|
+
{ [_h]: ["POST", "/v1/CreateSubscription", 200] }, () => CreateSubscriptionInput$, () => CreateSubscriptionOutput$
|
|
246
|
+
];
|
|
247
|
+
export var DisassociateResourcesFromSubscription$ = [9, n0, _DRFS,
|
|
248
|
+
{ [_h]: ["POST", "/v1/DisassociateResourcesFromSubscription", 200] }, () => DisassociateResourcesFromSubscriptionInput$, () => DisassociateResourcesFromSubscriptionOutput$
|
|
249
|
+
];
|
|
250
|
+
export var GetSubscription$ = [9, n0, _GS,
|
|
251
|
+
{ [_h]: ["POST", "/v1/GetSubscription", 200] }, () => GetSubscriptionInput$, () => GetSubscriptionOutput$
|
|
252
|
+
];
|
|
253
|
+
export var ListSubscriptions$ = [9, n0, _LS,
|
|
254
|
+
{ [_h]: ["POST", "/v1/ListSubscriptions", 200] }, () => ListSubscriptionsInput$, () => ListSubscriptionsOutput$
|
|
255
|
+
];
|
|
256
|
+
export var UpdateSubscription$ = [9, n0, _US,
|
|
257
|
+
{ [_h]: ["POST", "/v1/UpdateSubscription", 200] }, () => UpdateSubscriptionInput$, () => UpdateSubscriptionOutput$
|
|
258
|
+
];
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
|
+
import { type ApprovePaidSubscriptionCommandInput, type ApprovePaidSubscriptionCommandOutput } from "./commands/ApprovePaidSubscriptionCommand";
|
|
3
|
+
import { type AssociateResourcesToSubscriptionCommandInput, type AssociateResourcesToSubscriptionCommandOutput } from "./commands/AssociateResourcesToSubscriptionCommand";
|
|
4
|
+
import { type CancelSubscriptionChangeCommandInput, type CancelSubscriptionChangeCommandOutput } from "./commands/CancelSubscriptionChangeCommand";
|
|
5
|
+
import { type CancelSubscriptionCommandInput, type CancelSubscriptionCommandOutput } from "./commands/CancelSubscriptionCommand";
|
|
6
|
+
import { type CreateSubscriptionCommandInput, type CreateSubscriptionCommandOutput } from "./commands/CreateSubscriptionCommand";
|
|
7
|
+
import { type DisassociateResourcesFromSubscriptionCommandInput, type DisassociateResourcesFromSubscriptionCommandOutput } from "./commands/DisassociateResourcesFromSubscriptionCommand";
|
|
8
|
+
import { type GetSubscriptionCommandInput, type GetSubscriptionCommandOutput } from "./commands/GetSubscriptionCommand";
|
|
9
|
+
import { type ListSubscriptionsCommandInput, type ListSubscriptionsCommandOutput } from "./commands/ListSubscriptionsCommand";
|
|
10
|
+
import { type UpdateSubscriptionCommandInput, type UpdateSubscriptionCommandOutput } from "./commands/UpdateSubscriptionCommand";
|
|
11
|
+
import { PricingPlanManagerClient } from "./PricingPlanManagerClient";
|
|
12
|
+
export interface PricingPlanManager {
|
|
13
|
+
/**
|
|
14
|
+
* @see {@link ApprovePaidSubscriptionCommand}
|
|
15
|
+
*/
|
|
16
|
+
approvePaidSubscription(args: ApprovePaidSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ApprovePaidSubscriptionCommandOutput>;
|
|
17
|
+
approvePaidSubscription(args: ApprovePaidSubscriptionCommandInput, cb: (err: any, data?: ApprovePaidSubscriptionCommandOutput) => void): void;
|
|
18
|
+
approvePaidSubscription(args: ApprovePaidSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ApprovePaidSubscriptionCommandOutput) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link AssociateResourcesToSubscriptionCommand}
|
|
21
|
+
*/
|
|
22
|
+
associateResourcesToSubscription(args: AssociateResourcesToSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<AssociateResourcesToSubscriptionCommandOutput>;
|
|
23
|
+
associateResourcesToSubscription(args: AssociateResourcesToSubscriptionCommandInput, cb: (err: any, data?: AssociateResourcesToSubscriptionCommandOutput) => void): void;
|
|
24
|
+
associateResourcesToSubscription(args: AssociateResourcesToSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateResourcesToSubscriptionCommandOutput) => void): void;
|
|
25
|
+
/**
|
|
26
|
+
* @see {@link CancelSubscriptionCommand}
|
|
27
|
+
*/
|
|
28
|
+
cancelSubscription(args: CancelSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<CancelSubscriptionCommandOutput>;
|
|
29
|
+
cancelSubscription(args: CancelSubscriptionCommandInput, cb: (err: any, data?: CancelSubscriptionCommandOutput) => void): void;
|
|
30
|
+
cancelSubscription(args: CancelSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelSubscriptionCommandOutput) => void): void;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link CancelSubscriptionChangeCommand}
|
|
33
|
+
*/
|
|
34
|
+
cancelSubscriptionChange(args: CancelSubscriptionChangeCommandInput, options?: __HttpHandlerOptions): Promise<CancelSubscriptionChangeCommandOutput>;
|
|
35
|
+
cancelSubscriptionChange(args: CancelSubscriptionChangeCommandInput, cb: (err: any, data?: CancelSubscriptionChangeCommandOutput) => void): void;
|
|
36
|
+
cancelSubscriptionChange(args: CancelSubscriptionChangeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelSubscriptionChangeCommandOutput) => void): void;
|
|
37
|
+
/**
|
|
38
|
+
* @see {@link CreateSubscriptionCommand}
|
|
39
|
+
*/
|
|
40
|
+
createSubscription(args: CreateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<CreateSubscriptionCommandOutput>;
|
|
41
|
+
createSubscription(args: CreateSubscriptionCommandInput, cb: (err: any, data?: CreateSubscriptionCommandOutput) => void): void;
|
|
42
|
+
createSubscription(args: CreateSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSubscriptionCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link DisassociateResourcesFromSubscriptionCommand}
|
|
45
|
+
*/
|
|
46
|
+
disassociateResourcesFromSubscription(args: DisassociateResourcesFromSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateResourcesFromSubscriptionCommandOutput>;
|
|
47
|
+
disassociateResourcesFromSubscription(args: DisassociateResourcesFromSubscriptionCommandInput, cb: (err: any, data?: DisassociateResourcesFromSubscriptionCommandOutput) => void): void;
|
|
48
|
+
disassociateResourcesFromSubscription(args: DisassociateResourcesFromSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateResourcesFromSubscriptionCommandOutput) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link GetSubscriptionCommand}
|
|
51
|
+
*/
|
|
52
|
+
getSubscription(args: GetSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetSubscriptionCommandOutput>;
|
|
53
|
+
getSubscription(args: GetSubscriptionCommandInput, cb: (err: any, data?: GetSubscriptionCommandOutput) => void): void;
|
|
54
|
+
getSubscription(args: GetSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSubscriptionCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link ListSubscriptionsCommand}
|
|
57
|
+
*/
|
|
58
|
+
listSubscriptions(): Promise<ListSubscriptionsCommandOutput>;
|
|
59
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSubscriptionsCommandOutput>;
|
|
60
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, cb: (err: any, data?: ListSubscriptionsCommandOutput) => void): void;
|
|
61
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSubscriptionsCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link UpdateSubscriptionCommand}
|
|
64
|
+
*/
|
|
65
|
+
updateSubscription(args: UpdateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSubscriptionCommandOutput>;
|
|
66
|
+
updateSubscription(args: UpdateSubscriptionCommandInput, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
|
|
67
|
+
updateSubscription(args: UpdateSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link ListSubscriptionsCommand}
|
|
70
|
+
* @param args - command input.
|
|
71
|
+
* @param paginationConfig - optional pagination config.
|
|
72
|
+
* @returns AsyncIterable of {@link ListSubscriptionsCommandOutput}.
|
|
73
|
+
*/
|
|
74
|
+
paginateListSubscriptions(args?: ListSubscriptionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSubscriptionsCommandOutput>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* <p>Manages flat-rate pricing subscriptions for supported AWS services. Use this API to create, approve, update, and cancel subscriptions; associate and disassociate resources; and retrieve subscription details. With a flat-rate pricing subscription, you pay a fixed recurring fee for eligible resources instead of usage-based pricing.</p>
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class PricingPlanManager extends PricingPlanManagerClient implements PricingPlanManager {
|
|
81
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
2
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
6
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
7
|
+
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import type { ApprovePaidSubscriptionCommandInput, ApprovePaidSubscriptionCommandOutput } from "./commands/ApprovePaidSubscriptionCommand";
|
|
10
|
+
import type { AssociateResourcesToSubscriptionCommandInput, AssociateResourcesToSubscriptionCommandOutput } from "./commands/AssociateResourcesToSubscriptionCommand";
|
|
11
|
+
import type { CancelSubscriptionChangeCommandInput, CancelSubscriptionChangeCommandOutput } from "./commands/CancelSubscriptionChangeCommand";
|
|
12
|
+
import type { CancelSubscriptionCommandInput, CancelSubscriptionCommandOutput } from "./commands/CancelSubscriptionCommand";
|
|
13
|
+
import type { CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput } from "./commands/CreateSubscriptionCommand";
|
|
14
|
+
import type { DisassociateResourcesFromSubscriptionCommandInput, DisassociateResourcesFromSubscriptionCommandOutput } from "./commands/DisassociateResourcesFromSubscriptionCommand";
|
|
15
|
+
import type { GetSubscriptionCommandInput, GetSubscriptionCommandOutput } from "./commands/GetSubscriptionCommand";
|
|
16
|
+
import type { ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput } from "./commands/ListSubscriptionsCommand";
|
|
17
|
+
import type { UpdateSubscriptionCommandInput, UpdateSubscriptionCommandOutput } from "./commands/UpdateSubscriptionCommand";
|
|
18
|
+
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
19
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
20
|
+
export { __Client };
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type ServiceInputTypes = ApprovePaidSubscriptionCommandInput | AssociateResourcesToSubscriptionCommandInput | CancelSubscriptionChangeCommandInput | CancelSubscriptionCommandInput | CreateSubscriptionCommandInput | DisassociateResourcesFromSubscriptionCommandInput | GetSubscriptionCommandInput | ListSubscriptionsCommandInput | UpdateSubscriptionCommandInput;
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export type ServiceOutputTypes = ApprovePaidSubscriptionCommandOutput | AssociateResourcesToSubscriptionCommandOutput | CancelSubscriptionChangeCommandOutput | CancelSubscriptionCommandOutput | CreateSubscriptionCommandOutput | DisassociateResourcesFromSubscriptionCommandOutput | GetSubscriptionCommandOutput | ListSubscriptionsCommandOutput | UpdateSubscriptionCommandOutput;
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
33
|
+
/**
|
|
34
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
35
|
+
*/
|
|
36
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
37
|
+
/**
|
|
38
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
39
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
43
|
+
/**
|
|
44
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
urlParser?: __UrlParser;
|
|
48
|
+
/**
|
|
49
|
+
* A function that can calculate the length of a request body.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
53
|
+
/**
|
|
54
|
+
* A function that converts a stream into an array of bytes.
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
streamCollector?: __StreamCollector;
|
|
58
|
+
/**
|
|
59
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
base64Decoder?: __Decoder;
|
|
63
|
+
/**
|
|
64
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
base64Encoder?: __Encoder;
|
|
68
|
+
/**
|
|
69
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
utf8Decoder?: __Decoder;
|
|
73
|
+
/**
|
|
74
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
utf8Encoder?: __Encoder;
|
|
78
|
+
/**
|
|
79
|
+
* The runtime environment.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
runtime?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
85
|
+
* trait of an operation.
|
|
86
|
+
*/
|
|
87
|
+
disableHostPrefix?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Unique service identifier.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
serviceId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
95
|
+
*/
|
|
96
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* Enables FIPS compatible endpoints.
|
|
99
|
+
*/
|
|
100
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* The AWS region to which this client will send requests
|
|
103
|
+
*/
|
|
104
|
+
region?: string | __Provider<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Setting a client profile is similar to setting a value for the
|
|
107
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
108
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
109
|
+
*
|
|
110
|
+
* When set, and only for environments where an AWS configuration
|
|
111
|
+
* file exists, fields configurable by this file will be retrieved
|
|
112
|
+
* from the specified profile within that file.
|
|
113
|
+
* Conflicting code configuration and environment variables will
|
|
114
|
+
* still have higher priority.
|
|
115
|
+
*
|
|
116
|
+
* For client credential resolution that involves checking the AWS
|
|
117
|
+
* configuration file, the client's profile (this value) will be
|
|
118
|
+
* used unless a different profile is set in the credential
|
|
119
|
+
* provider options.
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
profile?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
128
|
+
/**
|
|
129
|
+
* Default credentials provider; Not available in browser runtime.
|
|
130
|
+
* @deprecated
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
134
|
+
/**
|
|
135
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
136
|
+
*/
|
|
137
|
+
maxAttempts?: number | __Provider<number>;
|
|
138
|
+
/**
|
|
139
|
+
* Specifies which retry algorithm to use.
|
|
140
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
retryMode?: string | __Provider<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Optional logger for logging debug/info/warn/error.
|
|
146
|
+
*/
|
|
147
|
+
logger?: __Logger;
|
|
148
|
+
/**
|
|
149
|
+
* Optional extensions
|
|
150
|
+
*/
|
|
151
|
+
extensions?: RuntimeExtension[];
|
|
152
|
+
/**
|
|
153
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
154
|
+
*/
|
|
155
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
export type PricingPlanManagerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*
|
|
164
|
+
* The configuration interface of PricingPlanManagerClient class constructor that set the region, credentials and other options.
|
|
165
|
+
*/
|
|
166
|
+
export interface PricingPlanManagerClientConfig extends PricingPlanManagerClientConfigType {
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
export type PricingPlanManagerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
*
|
|
175
|
+
* The resolved configuration interface of PricingPlanManagerClient class. This is resolved and normalized from the {@link PricingPlanManagerClientConfig | constructor configuration interface}.
|
|
176
|
+
*/
|
|
177
|
+
export interface PricingPlanManagerClientResolvedConfig extends PricingPlanManagerClientResolvedConfigType {
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* <p>Manages flat-rate pricing subscriptions for supported AWS services. Use this API to create, approve, update, and cancel subscriptions; associate and disassociate resources; and retrieve subscription details. With a flat-rate pricing subscription, you pay a fixed recurring fee for eligible resources instead of usage-based pricing.</p>
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
export declare class PricingPlanManagerClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PricingPlanManagerClientResolvedConfig> {
|
|
184
|
+
/**
|
|
185
|
+
* The resolved configuration of PricingPlanManagerClient class. This is resolved and normalized from the {@link PricingPlanManagerClientConfig | constructor configuration interface}.
|
|
186
|
+
*/
|
|
187
|
+
readonly config: PricingPlanManagerClientResolvedConfig;
|
|
188
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<PricingPlanManagerClientConfig>);
|
|
189
|
+
/**
|
|
190
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
191
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
192
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
193
|
+
*/
|
|
194
|
+
destroy(): void;
|
|
195
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { PricingPlanManagerHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: PricingPlanManagerHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): PricingPlanManagerHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: PricingPlanManagerHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type PricingPlanManagerClientResolvedConfig } from "../PricingPlanManagerClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface PricingPlanManagerHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface PricingPlanManagerHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<PricingPlanManagerClientResolvedConfig, HandlerExecutionContext, PricingPlanManagerHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultPricingPlanManagerHttpAuthSchemeParametersProvider: (config: PricingPlanManagerClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<PricingPlanManagerHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface PricingPlanManagerHttpAuthSchemeProvider extends HttpAuthSchemeProvider<PricingPlanManagerHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultPricingPlanManagerHttpAuthSchemeProvider: PricingPlanManagerHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: PricingPlanManagerHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: PricingPlanManagerHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import type { PricingPlanManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./PricingPlanManagerClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
7
|
+
new (input: I): import("@smithy/core/client").CommandImpl<I, O, PricingPlanManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, PricingPlanManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
9
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|