@aws-sdk/client-rbin 3.1074.0 → 3.1076.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/dist-cjs/index.js +602 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/RbinServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -79
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -323
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
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");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
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");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultRbinHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "rbin",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultRbinHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,508 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const k = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [g]],
|
|
79
|
+
[c, j],
|
|
80
|
+
["aws.partition", j, d],
|
|
81
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
85
|
+
],
|
|
86
|
+
results: [
|
|
87
|
+
[a],
|
|
88
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
89
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
90
|
+
[g, i],
|
|
91
|
+
["https://rbin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
92
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
93
|
+
["https://rbin-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
94
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
95
|
+
["https://rbin.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
96
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
97
|
+
["https://rbin.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
98
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
const root = 2;
|
|
102
|
+
const r = 100_000_000;
|
|
103
|
+
const nodes = new Int32Array([
|
|
104
|
+
-1, 1, -1,
|
|
105
|
+
0, 12, 3,
|
|
106
|
+
1, 4, r + 11,
|
|
107
|
+
2, 5, r + 11,
|
|
108
|
+
3, 8, 6,
|
|
109
|
+
4, 7, r + 10,
|
|
110
|
+
5, r + 8, r + 9,
|
|
111
|
+
4, 10, 9,
|
|
112
|
+
6, r + 6, r + 7,
|
|
113
|
+
5, 11, r + 5,
|
|
114
|
+
6, r + 4, r + 5,
|
|
115
|
+
3, r + 1, 13,
|
|
116
|
+
4, r + 2, r + 3,
|
|
117
|
+
]);
|
|
118
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
119
|
+
|
|
120
|
+
const cache = new EndpointCache({
|
|
121
|
+
size: 50,
|
|
122
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
123
|
+
});
|
|
124
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
125
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
126
|
+
endpointParams: endpointParams,
|
|
127
|
+
logger: context.logger,
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
131
|
+
|
|
132
|
+
class RbinServiceException extends ServiceException {
|
|
133
|
+
constructor(options) {
|
|
134
|
+
super(options);
|
|
135
|
+
Object.setPrototypeOf(this, RbinServiceException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class InternalServerException extends RbinServiceException {
|
|
140
|
+
name = "InternalServerException";
|
|
141
|
+
$fault = "server";
|
|
142
|
+
Message;
|
|
143
|
+
constructor(opts) {
|
|
144
|
+
super({
|
|
145
|
+
name: "InternalServerException",
|
|
146
|
+
$fault: "server",
|
|
147
|
+
...opts,
|
|
148
|
+
});
|
|
149
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
150
|
+
this.Message = opts.Message;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
class ServiceQuotaExceededException extends RbinServiceException {
|
|
154
|
+
name = "ServiceQuotaExceededException";
|
|
155
|
+
$fault = "client";
|
|
156
|
+
Message;
|
|
157
|
+
Reason;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "ServiceQuotaExceededException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
165
|
+
this.Message = opts.Message;
|
|
166
|
+
this.Reason = opts.Reason;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class ValidationException extends RbinServiceException {
|
|
170
|
+
name = "ValidationException";
|
|
171
|
+
$fault = "client";
|
|
172
|
+
Message;
|
|
173
|
+
Reason;
|
|
174
|
+
constructor(opts) {
|
|
175
|
+
super({
|
|
176
|
+
name: "ValidationException",
|
|
177
|
+
$fault: "client",
|
|
178
|
+
...opts,
|
|
179
|
+
});
|
|
180
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
181
|
+
this.Message = opts.Message;
|
|
182
|
+
this.Reason = opts.Reason;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class ConflictException extends RbinServiceException {
|
|
186
|
+
name = "ConflictException";
|
|
187
|
+
$fault = "client";
|
|
188
|
+
Message;
|
|
189
|
+
Reason;
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "ConflictException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
197
|
+
this.Message = opts.Message;
|
|
198
|
+
this.Reason = opts.Reason;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
class ResourceNotFoundException extends RbinServiceException {
|
|
202
|
+
name = "ResourceNotFoundException";
|
|
203
|
+
$fault = "client";
|
|
204
|
+
Message;
|
|
205
|
+
Reason;
|
|
206
|
+
constructor(opts) {
|
|
207
|
+
super({
|
|
208
|
+
name: "ResourceNotFoundException",
|
|
209
|
+
$fault: "client",
|
|
210
|
+
...opts,
|
|
211
|
+
});
|
|
212
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
213
|
+
this.Message = opts.Message;
|
|
214
|
+
this.Reason = opts.Reason;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const _CE = "ConflictException";
|
|
219
|
+
const _CR = "CreateRule";
|
|
220
|
+
const _CRR = "CreateRuleRequest";
|
|
221
|
+
const _CRRr = "CreateRuleResponse";
|
|
222
|
+
const _D = "Description";
|
|
223
|
+
const _DR = "DeleteRule";
|
|
224
|
+
const _DRR = "DeleteRuleRequest";
|
|
225
|
+
const _DRRe = "DeleteRuleResponse";
|
|
226
|
+
const _ERT = "ExcludeResourceTags";
|
|
227
|
+
const _GR = "GetRule";
|
|
228
|
+
const _GRR = "GetRuleRequest";
|
|
229
|
+
const _GRRe = "GetRuleResponse";
|
|
230
|
+
const _I = "Identifier";
|
|
231
|
+
const _ISE = "InternalServerException";
|
|
232
|
+
const _K = "Key";
|
|
233
|
+
const _LC = "LockConfiguration";
|
|
234
|
+
const _LET = "LockEndTime";
|
|
235
|
+
const _LR = "ListRules";
|
|
236
|
+
const _LRR = "ListRulesRequest";
|
|
237
|
+
const _LRRi = "ListRulesResponse";
|
|
238
|
+
const _LRRo = "LockRuleRequest";
|
|
239
|
+
const _LRRoc = "LockRuleResponse";
|
|
240
|
+
const _LRo = "LockRule";
|
|
241
|
+
const _LS = "LockState";
|
|
242
|
+
const _LTFR = "ListTagsForResource";
|
|
243
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
244
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
245
|
+
const _M = "Message";
|
|
246
|
+
const _MR = "MaxResults";
|
|
247
|
+
const _NT = "NextToken";
|
|
248
|
+
const _R = "Reason";
|
|
249
|
+
const _RA = "RuleArn";
|
|
250
|
+
const _RAe = "ResourceArn";
|
|
251
|
+
const _RNFE = "ResourceNotFoundException";
|
|
252
|
+
const _RP = "RetentionPeriod";
|
|
253
|
+
const _RPU = "RetentionPeriodUnit";
|
|
254
|
+
const _RPV = "RetentionPeriodValue";
|
|
255
|
+
const _RS = "RuleSummary";
|
|
256
|
+
const _RSL = "RuleSummaryList";
|
|
257
|
+
const _RT = "ResourceType";
|
|
258
|
+
const _RTK = "ResourceTagKey";
|
|
259
|
+
const _RTV = "ResourceTagValue";
|
|
260
|
+
const _RTe = "ResourceTags";
|
|
261
|
+
const _RTes = "ResourceTag";
|
|
262
|
+
const _Ru = "Rules";
|
|
263
|
+
const _S = "Status";
|
|
264
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
265
|
+
const _T = "Tags";
|
|
266
|
+
const _TK = "TagKeys";
|
|
267
|
+
const _TL = "TagList";
|
|
268
|
+
const _TR = "TagResource";
|
|
269
|
+
const _TRR = "TagResourceRequest";
|
|
270
|
+
const _TRRa = "TagResourceResponse";
|
|
271
|
+
const _Ta = "Tag";
|
|
272
|
+
const _UD = "UnlockDelay";
|
|
273
|
+
const _UDU = "UnlockDelayUnit";
|
|
274
|
+
const _UDV = "UnlockDelayValue";
|
|
275
|
+
const _UR = "UnlockRule";
|
|
276
|
+
const _URR = "UnlockRuleRequest";
|
|
277
|
+
const _URRn = "UnlockRuleResponse";
|
|
278
|
+
const _URRnt = "UntagResourceRequest";
|
|
279
|
+
const _URRnta = "UntagResourceResponse";
|
|
280
|
+
const _URRp = "UpdateRuleRequest";
|
|
281
|
+
const _URRpd = "UpdateRuleResponse";
|
|
282
|
+
const _URn = "UntagResource";
|
|
283
|
+
const _URp = "UpdateRule";
|
|
284
|
+
const _V = "Value";
|
|
285
|
+
const _VE = "ValidationException";
|
|
286
|
+
const _c = "client";
|
|
287
|
+
const _e = "error";
|
|
288
|
+
const _h = "http";
|
|
289
|
+
const _hE = "httpError";
|
|
290
|
+
const _hQ = "httpQuery";
|
|
291
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rbin";
|
|
292
|
+
const _se = "server";
|
|
293
|
+
const _tK = "tagKeys";
|
|
294
|
+
const n0 = "com.amazonaws.rbin";
|
|
295
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
296
|
+
var RbinServiceException$ = [-3, _s, "RbinServiceException", 0, [], []];
|
|
297
|
+
_s_registry.registerError(RbinServiceException$, RbinServiceException);
|
|
298
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
299
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
300
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
301
|
+
[_M, _R],
|
|
302
|
+
[0, 0]
|
|
303
|
+
];
|
|
304
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
305
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
306
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
307
|
+
[_M],
|
|
308
|
+
[0]
|
|
309
|
+
];
|
|
310
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
311
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
312
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
313
|
+
[_M, _R],
|
|
314
|
+
[0, 0]
|
|
315
|
+
];
|
|
316
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
317
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
318
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
319
|
+
[_M, _R],
|
|
320
|
+
[0, 0]
|
|
321
|
+
];
|
|
322
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
323
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
324
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
325
|
+
[_M, _R],
|
|
326
|
+
[0, 0]
|
|
327
|
+
];
|
|
328
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
329
|
+
const errorTypeRegistries = [
|
|
330
|
+
_s_registry,
|
|
331
|
+
n0_registry,
|
|
332
|
+
];
|
|
333
|
+
var CreateRuleRequest$ = [3, n0, _CRR,
|
|
334
|
+
0,
|
|
335
|
+
[_RP, _RT, _D, _T, _RTe, _LC, _ERT],
|
|
336
|
+
[() => RetentionPeriod$, 0, 0, () => TagList, () => ResourceTags, () => LockConfiguration$, () => ExcludeResourceTags], 2
|
|
337
|
+
];
|
|
338
|
+
var CreateRuleResponse$ = [3, n0, _CRRr,
|
|
339
|
+
0,
|
|
340
|
+
[_I, _RP, _D, _T, _RT, _RTe, _S, _LC, _LS, _RA, _ERT],
|
|
341
|
+
[0, () => RetentionPeriod$, 0, () => TagList, 0, () => ResourceTags, 0, () => LockConfiguration$, 0, 0, () => ExcludeResourceTags]
|
|
342
|
+
];
|
|
343
|
+
var DeleteRuleRequest$ = [3, n0, _DRR,
|
|
344
|
+
0,
|
|
345
|
+
[_I],
|
|
346
|
+
[[0, 1]], 1
|
|
347
|
+
];
|
|
348
|
+
var DeleteRuleResponse$ = [3, n0, _DRRe,
|
|
349
|
+
0,
|
|
350
|
+
[],
|
|
351
|
+
[]
|
|
352
|
+
];
|
|
353
|
+
var GetRuleRequest$ = [3, n0, _GRR,
|
|
354
|
+
0,
|
|
355
|
+
[_I],
|
|
356
|
+
[[0, 1]], 1
|
|
357
|
+
];
|
|
358
|
+
var GetRuleResponse$ = [3, n0, _GRRe,
|
|
359
|
+
0,
|
|
360
|
+
[_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
|
|
361
|
+
[0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
|
|
362
|
+
];
|
|
363
|
+
var ListRulesRequest$ = [3, n0, _LRR,
|
|
364
|
+
0,
|
|
365
|
+
[_RT, _MR, _NT, _RTe, _LS, _ERT],
|
|
366
|
+
[0, 1, 0, () => ResourceTags, 0, () => ExcludeResourceTags], 1
|
|
367
|
+
];
|
|
368
|
+
var ListRulesResponse$ = [3, n0, _LRRi,
|
|
369
|
+
0,
|
|
370
|
+
[_Ru, _NT],
|
|
371
|
+
[() => RuleSummaryList, 0]
|
|
372
|
+
];
|
|
373
|
+
var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
374
|
+
0,
|
|
375
|
+
[_RAe],
|
|
376
|
+
[[0, 1]], 1
|
|
377
|
+
];
|
|
378
|
+
var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
379
|
+
0,
|
|
380
|
+
[_T],
|
|
381
|
+
[() => TagList]
|
|
382
|
+
];
|
|
383
|
+
var LockConfiguration$ = [3, n0, _LC,
|
|
384
|
+
0,
|
|
385
|
+
[_UD],
|
|
386
|
+
[() => UnlockDelay$], 1
|
|
387
|
+
];
|
|
388
|
+
var LockRuleRequest$ = [3, n0, _LRRo,
|
|
389
|
+
0,
|
|
390
|
+
[_I, _LC],
|
|
391
|
+
[[0, 1], () => LockConfiguration$], 2
|
|
392
|
+
];
|
|
393
|
+
var LockRuleResponse$ = [3, n0, _LRRoc,
|
|
394
|
+
0,
|
|
395
|
+
[_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _RA, _ERT],
|
|
396
|
+
[0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 0, () => ExcludeResourceTags]
|
|
397
|
+
];
|
|
398
|
+
var ResourceTag$ = [3, n0, _RTes,
|
|
399
|
+
0,
|
|
400
|
+
[_RTK, _RTV],
|
|
401
|
+
[0, 0], 1
|
|
402
|
+
];
|
|
403
|
+
var RetentionPeriod$ = [3, n0, _RP,
|
|
404
|
+
0,
|
|
405
|
+
[_RPV, _RPU],
|
|
406
|
+
[1, 0], 2
|
|
407
|
+
];
|
|
408
|
+
var RuleSummary$ = [3, n0, _RS,
|
|
409
|
+
0,
|
|
410
|
+
[_I, _D, _RP, _LS, _RA],
|
|
411
|
+
[0, 0, () => RetentionPeriod$, 0, 0]
|
|
412
|
+
];
|
|
413
|
+
var Tag$ = [3, n0, _Ta,
|
|
414
|
+
0,
|
|
415
|
+
[_K, _V],
|
|
416
|
+
[0, 0], 2
|
|
417
|
+
];
|
|
418
|
+
var TagResourceRequest$ = [3, n0, _TRR,
|
|
419
|
+
0,
|
|
420
|
+
[_RAe, _T],
|
|
421
|
+
[[0, 1], () => TagList], 2
|
|
422
|
+
];
|
|
423
|
+
var TagResourceResponse$ = [3, n0, _TRRa,
|
|
424
|
+
0,
|
|
425
|
+
[],
|
|
426
|
+
[]
|
|
427
|
+
];
|
|
428
|
+
var UnlockDelay$ = [3, n0, _UD,
|
|
429
|
+
0,
|
|
430
|
+
[_UDV, _UDU],
|
|
431
|
+
[1, 0], 2
|
|
432
|
+
];
|
|
433
|
+
var UnlockRuleRequest$ = [3, n0, _URR,
|
|
434
|
+
0,
|
|
435
|
+
[_I],
|
|
436
|
+
[[0, 1]], 1
|
|
437
|
+
];
|
|
438
|
+
var UnlockRuleResponse$ = [3, n0, _URRn,
|
|
439
|
+
0,
|
|
440
|
+
[_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
|
|
441
|
+
[0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
|
|
442
|
+
];
|
|
443
|
+
var UntagResourceRequest$ = [3, n0, _URRnt,
|
|
444
|
+
0,
|
|
445
|
+
[_RAe, _TK],
|
|
446
|
+
[[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
|
|
447
|
+
];
|
|
448
|
+
var UntagResourceResponse$ = [3, n0, _URRnta,
|
|
449
|
+
0,
|
|
450
|
+
[],
|
|
451
|
+
[]
|
|
452
|
+
];
|
|
453
|
+
var UpdateRuleRequest$ = [3, n0, _URRp,
|
|
454
|
+
0,
|
|
455
|
+
[_I, _RP, _D, _RT, _RTe, _ERT],
|
|
456
|
+
[[0, 1], () => RetentionPeriod$, 0, 0, () => ResourceTags, () => ExcludeResourceTags], 1
|
|
457
|
+
];
|
|
458
|
+
var UpdateRuleResponse$ = [3, n0, _URRpd,
|
|
459
|
+
0,
|
|
460
|
+
[_I, _RP, _D, _RT, _RTe, _S, _LS, _LET, _RA, _ERT],
|
|
461
|
+
[0, () => RetentionPeriod$, 0, 0, () => ResourceTags, 0, 0, 4, 0, () => ExcludeResourceTags]
|
|
462
|
+
];
|
|
463
|
+
var ExcludeResourceTags = [1, n0, _ERT,
|
|
464
|
+
0, () => ResourceTag$
|
|
465
|
+
];
|
|
466
|
+
var ResourceTags = [1, n0, _RTe,
|
|
467
|
+
0, () => ResourceTag$
|
|
468
|
+
];
|
|
469
|
+
var RuleSummaryList = [1, n0, _RSL,
|
|
470
|
+
0, () => RuleSummary$
|
|
471
|
+
];
|
|
472
|
+
var TagList = [1, n0, _TL,
|
|
473
|
+
0, () => Tag$
|
|
474
|
+
];
|
|
475
|
+
var CreateRule$ = [9, n0, _CR,
|
|
476
|
+
{ [_h]: ["POST", "/rules", 201] }, () => CreateRuleRequest$, () => CreateRuleResponse$
|
|
477
|
+
];
|
|
478
|
+
var DeleteRule$ = [9, n0, _DR,
|
|
479
|
+
{ [_h]: ["DELETE", "/rules/{Identifier}", 204] }, () => DeleteRuleRequest$, () => DeleteRuleResponse$
|
|
480
|
+
];
|
|
481
|
+
var GetRule$ = [9, n0, _GR,
|
|
482
|
+
{ [_h]: ["GET", "/rules/{Identifier}", 200] }, () => GetRuleRequest$, () => GetRuleResponse$
|
|
483
|
+
];
|
|
484
|
+
var ListRules$ = [9, n0, _LR,
|
|
485
|
+
{ [_h]: ["POST", "/list-rules", 200] }, () => ListRulesRequest$, () => ListRulesResponse$
|
|
486
|
+
];
|
|
487
|
+
var ListTagsForResource$ = [9, n0, _LTFR,
|
|
488
|
+
{ [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
|
|
489
|
+
];
|
|
490
|
+
var LockRule$ = [9, n0, _LRo,
|
|
491
|
+
{ [_h]: ["PATCH", "/rules/{Identifier}/lock", 200] }, () => LockRuleRequest$, () => LockRuleResponse$
|
|
492
|
+
];
|
|
493
|
+
var TagResource$ = [9, n0, _TR,
|
|
494
|
+
{ [_h]: ["POST", "/tags/{ResourceArn}", 201] }, () => TagResourceRequest$, () => TagResourceResponse$
|
|
495
|
+
];
|
|
496
|
+
var UnlockRule$ = [9, n0, _UR,
|
|
497
|
+
{ [_h]: ["PATCH", "/rules/{Identifier}/unlock", 200] }, () => UnlockRuleRequest$, () => UnlockRuleResponse$
|
|
498
|
+
];
|
|
499
|
+
var UntagResource$ = [9, n0, _URn,
|
|
500
|
+
{ [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
501
|
+
];
|
|
502
|
+
var UpdateRule$ = [9, n0, _URp,
|
|
503
|
+
{ [_h]: ["PATCH", "/rules/{Identifier}", 200] }, () => UpdateRuleRequest$, () => UpdateRuleResponse$
|
|
504
|
+
];
|
|
505
|
+
|
|
506
|
+
const getRuntimeConfig$1 = (config) => {
|
|
507
|
+
return {
|
|
508
|
+
apiVersion: "2021-06-15",
|
|
509
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
510
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
511
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
512
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
513
|
+
extensions: config?.extensions ?? [],
|
|
514
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRbinHttpAuthSchemeProvider,
|
|
515
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
516
|
+
{
|
|
517
|
+
schemeId: "aws.auth#sigv4",
|
|
518
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
519
|
+
signer: new AwsSdkSigV4Signer(),
|
|
520
|
+
},
|
|
521
|
+
],
|
|
522
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
523
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
524
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
525
|
+
defaultNamespace: "com.amazonaws.rbin",
|
|
526
|
+
errorTypeRegistries,
|
|
527
|
+
version: "2021-06-15",
|
|
528
|
+
serviceTarget: "AmazonRecycleBin",
|
|
529
|
+
},
|
|
530
|
+
serviceId: config?.serviceId ?? "rbin",
|
|
531
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
532
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
533
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
const getRuntimeConfig = (config) => {
|
|
538
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
539
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
540
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
541
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
542
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
543
|
+
const loaderConfig = {
|
|
544
|
+
profile: config?.profile,
|
|
545
|
+
logger: clientSharedValues.logger,
|
|
546
|
+
};
|
|
547
|
+
return {
|
|
548
|
+
...clientSharedValues,
|
|
549
|
+
...config,
|
|
550
|
+
runtime: "node",
|
|
551
|
+
defaultsMode,
|
|
552
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
553
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
554
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
555
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
556
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
557
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
558
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
559
|
+
retryMode: config?.retryMode ??
|
|
560
|
+
loadConfig({
|
|
561
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
562
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
563
|
+
}, config),
|
|
564
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
565
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
566
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
567
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
568
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
|
|
34
572
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
573
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
574
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -286,25 +824,74 @@ const ResourceNotFoundExceptionReason = {
|
|
|
286
824
|
RULE_NOT_FOUND: "RULE_NOT_FOUND",
|
|
287
825
|
};
|
|
288
826
|
|
|
827
|
+
exports.ConflictException = ConflictException;
|
|
828
|
+
exports.ConflictException$ = ConflictException$;
|
|
289
829
|
exports.ConflictExceptionReason = ConflictExceptionReason;
|
|
830
|
+
exports.CreateRule$ = CreateRule$;
|
|
290
831
|
exports.CreateRuleCommand = CreateRuleCommand;
|
|
832
|
+
exports.CreateRuleRequest$ = CreateRuleRequest$;
|
|
833
|
+
exports.CreateRuleResponse$ = CreateRuleResponse$;
|
|
834
|
+
exports.DeleteRule$ = DeleteRule$;
|
|
291
835
|
exports.DeleteRuleCommand = DeleteRuleCommand;
|
|
836
|
+
exports.DeleteRuleRequest$ = DeleteRuleRequest$;
|
|
837
|
+
exports.DeleteRuleResponse$ = DeleteRuleResponse$;
|
|
838
|
+
exports.GetRule$ = GetRule$;
|
|
292
839
|
exports.GetRuleCommand = GetRuleCommand;
|
|
840
|
+
exports.GetRuleRequest$ = GetRuleRequest$;
|
|
841
|
+
exports.GetRuleResponse$ = GetRuleResponse$;
|
|
842
|
+
exports.InternalServerException = InternalServerException;
|
|
843
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
844
|
+
exports.ListRules$ = ListRules$;
|
|
293
845
|
exports.ListRulesCommand = ListRulesCommand;
|
|
846
|
+
exports.ListRulesRequest$ = ListRulesRequest$;
|
|
847
|
+
exports.ListRulesResponse$ = ListRulesResponse$;
|
|
848
|
+
exports.ListTagsForResource$ = ListTagsForResource$;
|
|
294
849
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
850
|
+
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
851
|
+
exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
|
|
852
|
+
exports.LockConfiguration$ = LockConfiguration$;
|
|
853
|
+
exports.LockRule$ = LockRule$;
|
|
295
854
|
exports.LockRuleCommand = LockRuleCommand;
|
|
855
|
+
exports.LockRuleRequest$ = LockRuleRequest$;
|
|
856
|
+
exports.LockRuleResponse$ = LockRuleResponse$;
|
|
296
857
|
exports.LockState = LockState;
|
|
297
858
|
exports.Rbin = Rbin;
|
|
298
859
|
exports.RbinClient = RbinClient;
|
|
860
|
+
exports.RbinServiceException = RbinServiceException;
|
|
861
|
+
exports.RbinServiceException$ = RbinServiceException$;
|
|
862
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
863
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
299
864
|
exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
|
|
865
|
+
exports.ResourceTag$ = ResourceTag$;
|
|
300
866
|
exports.ResourceType = ResourceType;
|
|
867
|
+
exports.RetentionPeriod$ = RetentionPeriod$;
|
|
301
868
|
exports.RetentionPeriodUnit = RetentionPeriodUnit;
|
|
302
869
|
exports.RuleStatus = RuleStatus;
|
|
870
|
+
exports.RuleSummary$ = RuleSummary$;
|
|
871
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
872
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
303
873
|
exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
|
|
874
|
+
exports.Tag$ = Tag$;
|
|
875
|
+
exports.TagResource$ = TagResource$;
|
|
304
876
|
exports.TagResourceCommand = TagResourceCommand;
|
|
877
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
878
|
+
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
879
|
+
exports.UnlockDelay$ = UnlockDelay$;
|
|
305
880
|
exports.UnlockDelayUnit = UnlockDelayUnit;
|
|
881
|
+
exports.UnlockRule$ = UnlockRule$;
|
|
306
882
|
exports.UnlockRuleCommand = UnlockRuleCommand;
|
|
883
|
+
exports.UnlockRuleRequest$ = UnlockRuleRequest$;
|
|
884
|
+
exports.UnlockRuleResponse$ = UnlockRuleResponse$;
|
|
885
|
+
exports.UntagResource$ = UntagResource$;
|
|
307
886
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
887
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
888
|
+
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
889
|
+
exports.UpdateRule$ = UpdateRule$;
|
|
308
890
|
exports.UpdateRuleCommand = UpdateRuleCommand;
|
|
891
|
+
exports.UpdateRuleRequest$ = UpdateRuleRequest$;
|
|
892
|
+
exports.UpdateRuleResponse$ = UpdateRuleResponse$;
|
|
893
|
+
exports.ValidationException = ValidationException;
|
|
894
|
+
exports.ValidationException$ = ValidationException$;
|
|
309
895
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
896
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
310
897
|
exports.paginateListRules = paginateListRules;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: RbinClientConfig) => {
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: RbinClientConfig) => {
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: RbinClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|