@aws-sdk/client-lambda-web 3.1145.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 +321 -0
- package/dist-cjs/index.js +1555 -0
- package/dist-es/LambdaWeb.js +69 -0
- package/dist-es/LambdaWebClient.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/CreateWebFunctionCommand.js +4 -0
- package/dist-es/commands/CreateWebFunctionEndpointCommand.js +4 -0
- package/dist-es/commands/CreateWebFunctionRevisionCommand.js +4 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
- package/dist-es/commands/DeleteWebFunctionCommand.js +4 -0
- package/dist-es/commands/DeleteWebFunctionEndpointCommand.js +4 -0
- package/dist-es/commands/DeleteWebFunctionRevisionCommand.js +4 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/dist-es/commands/GetWebAccountSettingsCommand.js +4 -0
- package/dist-es/commands/GetWebFunctionCommand.js +4 -0
- package/dist-es/commands/GetWebFunctionEndpointCommand.js +4 -0
- package/dist-es/commands/GetWebFunctionRevisionCommand.js +4 -0
- package/dist-es/commands/ListTagsCommand.js +4 -0
- package/dist-es/commands/ListWebFunctionEndpointsCommand.js +4 -0
- package/dist-es/commands/ListWebFunctionRevisionsCommand.js +4 -0
- package/dist-es/commands/ListWebFunctionsCommand.js +4 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateWebFunctionEndpointCommand.js +4 -0
- package/dist-es/commands/index.js +20 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/bdd.js +46 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +11 -0
- package/dist-es/models/LambdaWebServiceException.js +8 -0
- package/dist-es/models/enums.js +48 -0
- package/dist-es/models/errors.js +111 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListWebFunctionEndpointsPaginator.js +4 -0
- package/dist-es/pagination/ListWebFunctionRevisionsPaginator.js +4 -0
- package/dist-es/pagination/ListWebFunctionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -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 +593 -0
- package/dist-es/waiters/index.js +6 -0
- package/dist-es/waiters/waitForWebFunctionActive.js +58 -0
- package/dist-es/waiters/waitForWebFunctionDeleted.js +34 -0
- package/dist-es/waiters/waitForWebFunctionEndpointActive.js +58 -0
- package/dist-es/waiters/waitForWebFunctionEndpointDeleted.js +34 -0
- package/dist-es/waiters/waitForWebFunctionEndpointUpdated.js +49 -0
- package/dist-es/waiters/waitForWebFunctionRevisionActive.js +49 -0
- package/dist-types/LambdaWeb.d.ts +217 -0
- package/dist-types/LambdaWebClient.d.ts +206 -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/CreateWebFunctionCommand.d.ts +188 -0
- package/dist-types/commands/CreateWebFunctionEndpointCommand.d.ts +162 -0
- package/dist-types/commands/CreateWebFunctionRevisionCommand.d.ts +162 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
- package/dist-types/commands/DeleteWebFunctionCommand.d.ts +87 -0
- package/dist-types/commands/DeleteWebFunctionEndpointCommand.d.ts +88 -0
- package/dist-types/commands/DeleteWebFunctionRevisionCommand.d.ts +88 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +87 -0
- package/dist-types/commands/GetWebAccountSettingsCommand.d.ts +86 -0
- package/dist-types/commands/GetWebFunctionCommand.d.ts +91 -0
- package/dist-types/commands/GetWebFunctionEndpointCommand.d.ts +137 -0
- package/dist-types/commands/GetWebFunctionRevisionCommand.d.ts +128 -0
- package/dist-types/commands/ListTagsCommand.d.ts +88 -0
- package/dist-types/commands/ListWebFunctionEndpointsCommand.d.ts +128 -0
- package/dist-types/commands/ListWebFunctionRevisionsCommand.d.ts +106 -0
- package/dist-types/commands/ListWebFunctionsCommand.d.ts +102 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +95 -0
- package/dist-types/commands/TagResourceCommand.d.ts +93 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UpdateWebFunctionEndpointCommand.d.ts +158 -0
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -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 +19 -0
- package/dist-types/models/LambdaWebServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +120 -0
- package/dist-types/models/errors.d.ts +145 -0
- package/dist-types/models/models_0.d.ts +1554 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListWebFunctionEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWebFunctionRevisionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWebFunctionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -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 +90 -0
- package/dist-types/ts3.4/LambdaWeb.d.ts +424 -0
- package/dist-types/ts3.4/LambdaWebClient.d.ts +215 -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/CreateWebFunctionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateWebFunctionEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateWebFunctionRevisionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWebFunctionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWebFunctionEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWebFunctionRevisionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetWebAccountSettingsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetWebFunctionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetWebFunctionEndpointCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetWebFunctionRevisionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListWebFunctionEndpointsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListWebFunctionRevisionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListWebFunctionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateWebFunctionEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -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 +14 -0
- package/dist-types/ts3.4/models/LambdaWebServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +57 -0
- package/dist-types/ts3.4/models/errors.d.ts +52 -0
- package/dist-types/ts3.4/models/models_0.d.ts +364 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListWebFunctionEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWebFunctionRevisionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWebFunctionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -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 +85 -0
- package/dist-types/ts3.4/waiters/index.d.ts +6 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionActive.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionDeleted.d.ts +16 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
- package/dist-types/waiters/index.d.ts +6 -0
- package/dist-types/waiters/waitForWebFunctionActive.d.ts +15 -0
- package/dist-types/waiters/waitForWebFunctionDeleted.d.ts +16 -0
- package/dist-types/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
- package/dist-types/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
- package/dist-types/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
- package/dist-types/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
- package/package.json +69 -0
|
@@ -0,0 +1,1555 @@
|
|
|
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, createWaiter, checkExceptions, WaiterState, 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 defaultLambdaWebHttpAuthSchemeParametersProvider = 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: "lambda",
|
|
32
|
+
region: authParameters.region,
|
|
33
|
+
},
|
|
34
|
+
propertiesExtractor: (config, context) => ({
|
|
35
|
+
signingProperties: {
|
|
36
|
+
config,
|
|
37
|
+
context,
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const defaultLambdaWebHttpAuthSchemeProvider = (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
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
61
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
62
|
+
defaultSigningName: "lambda",
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
const commonParams = {
|
|
66
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
67
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
68
|
+
Region: { type: "builtInParams", name: "region" },
|
|
69
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var version = "3.0.0";
|
|
73
|
+
var packageInfo = {
|
|
74
|
+
version: version};
|
|
75
|
+
|
|
76
|
+
const k = "ref";
|
|
77
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
78
|
+
const _data = {
|
|
79
|
+
conditions: [
|
|
80
|
+
[c, [g]],
|
|
81
|
+
[c, j],
|
|
82
|
+
["aws.partition", j, d],
|
|
83
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
84
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
85
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
86
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
87
|
+
],
|
|
88
|
+
results: [
|
|
89
|
+
[a],
|
|
90
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
91
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
92
|
+
[g, i],
|
|
93
|
+
["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
94
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
95
|
+
["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
96
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
97
|
+
["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
98
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
99
|
+
["https://lambda.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
100
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
101
|
+
]
|
|
102
|
+
};
|
|
103
|
+
const root = 2;
|
|
104
|
+
const r = 100_000_000;
|
|
105
|
+
const nodes = new Int32Array([
|
|
106
|
+
-1, 1, -1,
|
|
107
|
+
0, 12, 3,
|
|
108
|
+
1, 4, r + 11,
|
|
109
|
+
2, 5, r + 11,
|
|
110
|
+
3, 8, 6,
|
|
111
|
+
4, 7, r + 10,
|
|
112
|
+
5, r + 8, r + 9,
|
|
113
|
+
4, 10, 9,
|
|
114
|
+
6, r + 6, r + 7,
|
|
115
|
+
5, 11, r + 5,
|
|
116
|
+
6, r + 4, r + 5,
|
|
117
|
+
3, r + 1, 13,
|
|
118
|
+
4, r + 2, r + 3,
|
|
119
|
+
]);
|
|
120
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
121
|
+
|
|
122
|
+
const cache = new EndpointCache({
|
|
123
|
+
size: 50,
|
|
124
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
125
|
+
});
|
|
126
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
127
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
128
|
+
endpointParams: endpointParams,
|
|
129
|
+
logger: context.logger,
|
|
130
|
+
}));
|
|
131
|
+
};
|
|
132
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
133
|
+
|
|
134
|
+
class LambdaWebServiceException extends ServiceException {
|
|
135
|
+
constructor(options) {
|
|
136
|
+
super(options);
|
|
137
|
+
Object.setPrototypeOf(this, LambdaWebServiceException.prototype);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
class AccessDeniedException extends LambdaWebServiceException {
|
|
142
|
+
name = "AccessDeniedException";
|
|
143
|
+
$fault = "client";
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "AccessDeniedException",
|
|
147
|
+
$fault: "client",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
class ConflictException extends LambdaWebServiceException {
|
|
154
|
+
name = "ConflictException";
|
|
155
|
+
$fault = "client";
|
|
156
|
+
resourceId;
|
|
157
|
+
resourceType;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "ConflictException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
165
|
+
this.resourceId = opts.resourceId;
|
|
166
|
+
this.resourceType = opts.resourceType;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class InternalServerException extends LambdaWebServiceException {
|
|
170
|
+
name = "InternalServerException";
|
|
171
|
+
$fault = "server";
|
|
172
|
+
$retryable = {};
|
|
173
|
+
constructor(opts) {
|
|
174
|
+
super({
|
|
175
|
+
name: "InternalServerException",
|
|
176
|
+
$fault: "server",
|
|
177
|
+
...opts,
|
|
178
|
+
});
|
|
179
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
class ResourceNotFoundException extends LambdaWebServiceException {
|
|
183
|
+
name = "ResourceNotFoundException";
|
|
184
|
+
$fault = "client";
|
|
185
|
+
resourceId;
|
|
186
|
+
resourceType;
|
|
187
|
+
constructor(opts) {
|
|
188
|
+
super({
|
|
189
|
+
name: "ResourceNotFoundException",
|
|
190
|
+
$fault: "client",
|
|
191
|
+
...opts,
|
|
192
|
+
});
|
|
193
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
194
|
+
this.resourceId = opts.resourceId;
|
|
195
|
+
this.resourceType = opts.resourceType;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
class ServiceQuotaExceededException extends LambdaWebServiceException {
|
|
199
|
+
name = "ServiceQuotaExceededException";
|
|
200
|
+
$fault = "client";
|
|
201
|
+
resourceId;
|
|
202
|
+
resourceType;
|
|
203
|
+
serviceCode;
|
|
204
|
+
quotaCode;
|
|
205
|
+
constructor(opts) {
|
|
206
|
+
super({
|
|
207
|
+
name: "ServiceQuotaExceededException",
|
|
208
|
+
$fault: "client",
|
|
209
|
+
...opts,
|
|
210
|
+
});
|
|
211
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
212
|
+
this.resourceId = opts.resourceId;
|
|
213
|
+
this.resourceType = opts.resourceType;
|
|
214
|
+
this.serviceCode = opts.serviceCode;
|
|
215
|
+
this.quotaCode = opts.quotaCode;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
class ThrottlingException extends LambdaWebServiceException {
|
|
219
|
+
name = "ThrottlingException";
|
|
220
|
+
$fault = "client";
|
|
221
|
+
$retryable = {
|
|
222
|
+
throttling: true,
|
|
223
|
+
};
|
|
224
|
+
retryAfterSeconds;
|
|
225
|
+
serviceCode;
|
|
226
|
+
quotaCode;
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "ThrottlingException",
|
|
230
|
+
$fault: "client",
|
|
231
|
+
...opts,
|
|
232
|
+
});
|
|
233
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
234
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
235
|
+
this.serviceCode = opts.serviceCode;
|
|
236
|
+
this.quotaCode = opts.quotaCode;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
class ValidationException extends LambdaWebServiceException {
|
|
240
|
+
name = "ValidationException";
|
|
241
|
+
$fault = "client";
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "ValidationException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts,
|
|
247
|
+
});
|
|
248
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
const _ADE = "AccessDeniedException";
|
|
253
|
+
const _AQ = "AccountQuotas";
|
|
254
|
+
const _AU = "AccountUsage";
|
|
255
|
+
const _BC = "BuildConfig";
|
|
256
|
+
const _CC = "CodeConfig";
|
|
257
|
+
const _CE = "ConflictException";
|
|
258
|
+
const _CWF = "CreateWebFunction";
|
|
259
|
+
const _CWFE = "CreateWebFunctionEndpoint";
|
|
260
|
+
const _CWFER = "CreateWebFunctionEndpointRequest";
|
|
261
|
+
const _CWFERr = "CreateWebFunctionEndpointResponse";
|
|
262
|
+
const _CWFR = "CreateWebFunctionRequest";
|
|
263
|
+
const _CWFRR = "CreateWebFunctionRevisionRequest";
|
|
264
|
+
const _CWFRRr = "CreateWebFunctionRevisionResponse";
|
|
265
|
+
const _CWFRr = "CreateWebFunctionResponse";
|
|
266
|
+
const _CWFRre = "CreateWebFunctionRevision";
|
|
267
|
+
const _DRP = "DeleteResourcePolicy";
|
|
268
|
+
const _DRPR = "DeleteResourcePolicyRequest";
|
|
269
|
+
const _DWF = "DeleteWebFunction";
|
|
270
|
+
const _DWFE = "DeleteWebFunctionEndpoint";
|
|
271
|
+
const _DWFER = "DeleteWebFunctionEndpointRequest";
|
|
272
|
+
const _DWFR = "DeleteWebFunctionRequest";
|
|
273
|
+
const _DWFRR = "DeleteWebFunctionRevisionRequest";
|
|
274
|
+
const _DWFRe = "DeleteWebFunctionRevision";
|
|
275
|
+
const _EC = "EndpointConfig";
|
|
276
|
+
const _EV = "EnvironmentVariables";
|
|
277
|
+
const _F = "Filter";
|
|
278
|
+
const _FES = "FunctionEndpointSummary";
|
|
279
|
+
const _FESL = "FunctionEndpointSummaryList";
|
|
280
|
+
const _FL = "FilterList";
|
|
281
|
+
const _FRS = "FunctionRevisionSummary";
|
|
282
|
+
const _FRSL = "FunctionRevisionSummaryList";
|
|
283
|
+
const _FS = "FunctionSummary";
|
|
284
|
+
const _FSL = "FunctionSummaryList";
|
|
285
|
+
const _GRP = "GetResourcePolicy";
|
|
286
|
+
const _GRPR = "GetResourcePolicyRequest";
|
|
287
|
+
const _GRPRe = "GetResourcePolicyResponse";
|
|
288
|
+
const _GWAS = "GetWebAccountSettings";
|
|
289
|
+
const _GWASR = "GetWebAccountSettingsRequest";
|
|
290
|
+
const _GWASRe = "GetWebAccountSettingsResponse";
|
|
291
|
+
const _GWF = "GetWebFunction";
|
|
292
|
+
const _GWFE = "GetWebFunctionEndpoint";
|
|
293
|
+
const _GWFER = "GetWebFunctionEndpointRequest";
|
|
294
|
+
const _GWFERe = "GetWebFunctionEndpointResponse";
|
|
295
|
+
const _GWFR = "GetWebFunctionRequest";
|
|
296
|
+
const _GWFRR = "GetWebFunctionRevisionRequest";
|
|
297
|
+
const _GWFRRe = "GetWebFunctionRevisionResponse";
|
|
298
|
+
const _GWFRe = "GetWebFunctionResponse";
|
|
299
|
+
const _GWFRet = "GetWebFunctionRevision";
|
|
300
|
+
const _ISE = "InternalServerException";
|
|
301
|
+
const _LC = "LoggingConfig";
|
|
302
|
+
const _LT = "ListTags";
|
|
303
|
+
const _LTR = "ListTagsRequest";
|
|
304
|
+
const _LTRi = "ListTagsResponse";
|
|
305
|
+
const _LWF = "ListWebFunctions";
|
|
306
|
+
const _LWFE = "ListWebFunctionEndpoints";
|
|
307
|
+
const _LWFER = "ListWebFunctionEndpointsRequest";
|
|
308
|
+
const _LWFERi = "ListWebFunctionEndpointsResponse";
|
|
309
|
+
const _LWFR = "ListWebFunctionsRequest";
|
|
310
|
+
const _LWFRR = "ListWebFunctionRevisionsRequest";
|
|
311
|
+
const _LWFRRi = "ListWebFunctionRevisionsResponse";
|
|
312
|
+
const _LWFRi = "ListWebFunctionsResponse";
|
|
313
|
+
const _LWFRis = "ListWebFunctionRevisions";
|
|
314
|
+
const _P = "Policy";
|
|
315
|
+
const _PRP = "PutResourcePolicy";
|
|
316
|
+
const _PRPR = "PutResourcePolicyRequest";
|
|
317
|
+
const _PRPRu = "PutResourcePolicyResponse";
|
|
318
|
+
const _RA = "Retry-After";
|
|
319
|
+
const _RC = "RevisionConfig";
|
|
320
|
+
const _RCu = "RuntimeConfig";
|
|
321
|
+
const _RE = "RegionalEndpoint";
|
|
322
|
+
const _REe = "RevisionError";
|
|
323
|
+
const _REeg = "RegionalEndpoints";
|
|
324
|
+
const _REev = "RevisionErrors";
|
|
325
|
+
const _RI = "RevisionId";
|
|
326
|
+
const _RNFE = "ResourceNotFoundException";
|
|
327
|
+
const _RW = "RevisionWeight";
|
|
328
|
+
const _RWL = "RevisionWeightList";
|
|
329
|
+
const _SC = "ScalingConfig";
|
|
330
|
+
const _SCe = "ServiceConfig";
|
|
331
|
+
const _SO = "S3Object";
|
|
332
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
333
|
+
const _T = "Tags";
|
|
334
|
+
const _TC = "TelemetryConfig";
|
|
335
|
+
const _TCh = "ThrottleConfig";
|
|
336
|
+
const _TE = "ThrottlingException";
|
|
337
|
+
const _TR = "TagResource";
|
|
338
|
+
const _TRR = "TagResourceRequest";
|
|
339
|
+
const _UR = "UntagResource";
|
|
340
|
+
const _URR = "UntagResourceRequest";
|
|
341
|
+
const _UWFE = "UpdateWebFunctionEndpoint";
|
|
342
|
+
const _UWFER = "UpdateWebFunctionEndpointRequest";
|
|
343
|
+
const _UWFERp = "UpdateWebFunctionEndpointResponse";
|
|
344
|
+
const _VE = "ValidationException";
|
|
345
|
+
const _a = "attribute";
|
|
346
|
+
const _aDM = "autoDeploymentMode";
|
|
347
|
+
const _aLL = "applicationLogLevel";
|
|
348
|
+
const _aQ = "accountQuotas";
|
|
349
|
+
const _aT = "authType";
|
|
350
|
+
const _aU = "accountUsage";
|
|
351
|
+
const _b = "bucket";
|
|
352
|
+
const _bC = "buildConfig";
|
|
353
|
+
const _c = "client";
|
|
354
|
+
const _cA = "createdAt";
|
|
355
|
+
const _cC = "codeConfig";
|
|
356
|
+
const _d = "description";
|
|
357
|
+
const _dN = "domainName";
|
|
358
|
+
const _e = "error";
|
|
359
|
+
const _eA = "endpointArn";
|
|
360
|
+
const _eC = "endpointConfig";
|
|
361
|
+
const _eCr = "errorCode";
|
|
362
|
+
const _eM = "errorMessage";
|
|
363
|
+
const _eN = "endpointName";
|
|
364
|
+
const _eRA = "executionRoleArn";
|
|
365
|
+
const _eT = "endpointType";
|
|
366
|
+
const _eV = "environmentVariables";
|
|
367
|
+
const _en = "endpoint";
|
|
368
|
+
const _end = "endpoints";
|
|
369
|
+
const _er = "errors";
|
|
370
|
+
const _f = "filters";
|
|
371
|
+
const _fA = "functionArn";
|
|
372
|
+
const _fC = "functionCount";
|
|
373
|
+
const _fN = "functionName";
|
|
374
|
+
const _fu = "functions";
|
|
375
|
+
const _h = "http";
|
|
376
|
+
const _hE = "httpError";
|
|
377
|
+
const _hH = "httpHeader";
|
|
378
|
+
const _hQ = "httpQuery";
|
|
379
|
+
const _jN = "jsonName";
|
|
380
|
+
const _k = "key";
|
|
381
|
+
const _kKA = "kmsKeyArn";
|
|
382
|
+
const _lC = "loggingConfig";
|
|
383
|
+
const _lG = "logGroup";
|
|
384
|
+
const _m = "message";
|
|
385
|
+
const _mCPE = "maxConcurrencyPerEnvironment";
|
|
386
|
+
const _mE = "maxEnvironments";
|
|
387
|
+
const _mEPF = "maxEndpointsPerFunction";
|
|
388
|
+
const _mR = "maxResults";
|
|
389
|
+
const _mRPF = "maxRevisionsPerFunction";
|
|
390
|
+
const _mTAVC = "maxTotalArmVCpus";
|
|
391
|
+
const _mTRL = "maxTotalRateLimit";
|
|
392
|
+
const _n = "name";
|
|
393
|
+
const _nT = "nextToken";
|
|
394
|
+
const _p = "policy";
|
|
395
|
+
const _qC = "quotaCode";
|
|
396
|
+
const _r = "regions";
|
|
397
|
+
const _rA = "revisionArn";
|
|
398
|
+
const _rAS = "retryAfterSeconds";
|
|
399
|
+
const _rAe = "resourceArn";
|
|
400
|
+
const _rC = "runtimeConfig";
|
|
401
|
+
const _rCe = "revisionConfig";
|
|
402
|
+
const _rE = "regionalEndpoints";
|
|
403
|
+
const _rI = "resourceId";
|
|
404
|
+
const _rIe = "revisionId";
|
|
405
|
+
const _rL = "rateLimit";
|
|
406
|
+
const _rT = "resourceType";
|
|
407
|
+
const _rW = "revisionWeights";
|
|
408
|
+
const _re = "revision";
|
|
409
|
+
const _res = "resource";
|
|
410
|
+
const _rev = "revisions";
|
|
411
|
+
const _ru = "runtime";
|
|
412
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb";
|
|
413
|
+
const _sC = "serviceCode";
|
|
414
|
+
const _sCc = "scalingConfig";
|
|
415
|
+
const _sCe = "serviceConfig";
|
|
416
|
+
const _sLL = "systemLogLevel";
|
|
417
|
+
const _sO = "s3Object";
|
|
418
|
+
const _sR = "stateReason";
|
|
419
|
+
const _se = "server";
|
|
420
|
+
const _st = "state";
|
|
421
|
+
const _t = "tags";
|
|
422
|
+
const _tC = "throttleConfig";
|
|
423
|
+
const _tCe = "telemetryConfig";
|
|
424
|
+
const _tK = "tagKeys";
|
|
425
|
+
const _tS = "timeoutSeconds";
|
|
426
|
+
const _uA = "updatedAt";
|
|
427
|
+
const _uS = "updateStatus";
|
|
428
|
+
const _uSR = "updateStatusReason";
|
|
429
|
+
const _v = "values";
|
|
430
|
+
const _vI = "versionId";
|
|
431
|
+
const _w = "weight";
|
|
432
|
+
const n0 = "com.amazonaws.lambdaweb";
|
|
433
|
+
const _s_registry = new TypeRegistry(_s);
|
|
434
|
+
var LambdaWebServiceException$ = [-3, _s, "LambdaWebServiceException", 0, [], []];
|
|
435
|
+
_s_registry.registerError(LambdaWebServiceException$, LambdaWebServiceException);
|
|
436
|
+
const n0_registry = new TypeRegistry(n0);
|
|
437
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
438
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
439
|
+
[_m],
|
|
440
|
+
[0], 1
|
|
441
|
+
];
|
|
442
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
443
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
444
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
445
|
+
[_m, _rI, _rT],
|
|
446
|
+
[0, 0, 0], 1
|
|
447
|
+
];
|
|
448
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
449
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
450
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
451
|
+
[_m],
|
|
452
|
+
[0]
|
|
453
|
+
];
|
|
454
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
455
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
456
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
457
|
+
[_m, _rI, _rT],
|
|
458
|
+
[0, 0, 0], 1
|
|
459
|
+
];
|
|
460
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
461
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
462
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
463
|
+
[_m, _rI, _rT, _sC, _qC],
|
|
464
|
+
[0, 0, 0, 0, 0], 1
|
|
465
|
+
];
|
|
466
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
467
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
468
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
469
|
+
[_m, _rAS, _sC, _qC],
|
|
470
|
+
[0, [1, { [_hH]: _RA }], 0, 0], 1
|
|
471
|
+
];
|
|
472
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
473
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
474
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
475
|
+
[_m],
|
|
476
|
+
[0], 1
|
|
477
|
+
];
|
|
478
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
479
|
+
const errorTypeRegistries = [
|
|
480
|
+
_s_registry,
|
|
481
|
+
n0_registry,
|
|
482
|
+
];
|
|
483
|
+
var AccountQuotas$ = [3, n0, _AQ,
|
|
484
|
+
0,
|
|
485
|
+
[_mTAVC, _mTRL, _mRPF, _mEPF],
|
|
486
|
+
[1, 1, 1, 1], 4
|
|
487
|
+
];
|
|
488
|
+
var AccountUsage$ = [3, n0, _AU,
|
|
489
|
+
0,
|
|
490
|
+
[_fC],
|
|
491
|
+
[1], 1
|
|
492
|
+
];
|
|
493
|
+
var BuildConfig$ = [3, n0, _BC,
|
|
494
|
+
0,
|
|
495
|
+
[_cC, _rC],
|
|
496
|
+
[() => CodeConfig$, () => RuntimeConfig$], 2
|
|
497
|
+
];
|
|
498
|
+
var CodeConfig$ = [3, n0, _CC,
|
|
499
|
+
0,
|
|
500
|
+
[_sO],
|
|
501
|
+
[() => S3Object$], 1
|
|
502
|
+
];
|
|
503
|
+
var CreateWebFunctionEndpointRequest$ = [3, n0, _CWFER,
|
|
504
|
+
0,
|
|
505
|
+
[_fN, _eN, _eT, _aT, _d, _aDM, _rW, _r, _sCc, _tC],
|
|
506
|
+
[[0, 1], 0, 0, 0, 0, 0, () => RevisionWeightList, 64 | 0, () => ScalingConfig$, () => ThrottleConfig$], 4
|
|
507
|
+
];
|
|
508
|
+
var CreateWebFunctionEndpointResponse$ = [3, n0, _CWFERr,
|
|
509
|
+
0,
|
|
510
|
+
[_fA, _eA, _eN, _eT, _dN, _aT, _aDM, _rW, _r, _st, _sR, _rE, _cA, _uA, _d, _sCc, _tC, _uS, _uSR],
|
|
511
|
+
[0, 0, 0, 0, 0, 0, 0, () => RevisionWeightList, 64 | 0, 0, 0, () => RegionalEndpoints, 5, 5, 0, () => ScalingConfig$, () => ThrottleConfig$, 0, 0], 14
|
|
512
|
+
];
|
|
513
|
+
var CreateWebFunctionRequest$ = [3, n0, _CWFR,
|
|
514
|
+
0,
|
|
515
|
+
[_fN, _rCe, _eC, _t],
|
|
516
|
+
[0, [() => RevisionConfig$, 0], () => EndpointConfig$, 128 | 0], 1
|
|
517
|
+
];
|
|
518
|
+
var CreateWebFunctionResponse$ = [3, n0, _CWFRr,
|
|
519
|
+
0,
|
|
520
|
+
[_fN, _fA, _st, _sR, _cA, _uA, _re, _en, _t],
|
|
521
|
+
[0, 0, 0, 0, 5, 5, () => FunctionRevisionSummary$, () => FunctionEndpointSummary$, 128 | 0], 6
|
|
522
|
+
];
|
|
523
|
+
var CreateWebFunctionRevisionRequest$ = [3, n0, _CWFRR,
|
|
524
|
+
0,
|
|
525
|
+
[_fN, _bC, _sCe, _d, _kKA],
|
|
526
|
+
[[0, 1], () => BuildConfig$, [() => ServiceConfig$, 0], 0, 0], 3
|
|
527
|
+
];
|
|
528
|
+
var CreateWebFunctionRevisionResponse$ = [3, n0, _CWFRRr,
|
|
529
|
+
0,
|
|
530
|
+
[_fA, _rA, _rIe, _bC, _sCe, _st, _sR, _cA, _d, _kKA, _er],
|
|
531
|
+
[0, 0, 0, () => BuildConfig$, [() => ServiceConfig$, 0], 0, 0, 5, 0, 0, () => RevisionErrors], 8
|
|
532
|
+
];
|
|
533
|
+
var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
|
|
534
|
+
0,
|
|
535
|
+
[_rAe, _rIe],
|
|
536
|
+
[[0, 1], [0, { [_hQ]: _RI }]], 1
|
|
537
|
+
];
|
|
538
|
+
var DeleteWebFunctionEndpointRequest$ = [3, n0, _DWFER,
|
|
539
|
+
0,
|
|
540
|
+
[_fN, _eN],
|
|
541
|
+
[[0, 1], [0, 1]], 2
|
|
542
|
+
];
|
|
543
|
+
var DeleteWebFunctionRequest$ = [3, n0, _DWFR,
|
|
544
|
+
0,
|
|
545
|
+
[_fN],
|
|
546
|
+
[[0, 1]], 1
|
|
547
|
+
];
|
|
548
|
+
var DeleteWebFunctionRevisionRequest$ = [3, n0, _DWFRR,
|
|
549
|
+
0,
|
|
550
|
+
[_fN, _rIe],
|
|
551
|
+
[[0, 1], [0, 1]], 2
|
|
552
|
+
];
|
|
553
|
+
var EndpointConfig$ = [3, n0, _EC,
|
|
554
|
+
0,
|
|
555
|
+
[_eN, _eT, _aT, _d, _aDM, _r, _sCc, _tC],
|
|
556
|
+
[0, 0, 0, 0, 0, 64 | 0, () => ScalingConfig$, () => ThrottleConfig$], 3
|
|
557
|
+
];
|
|
558
|
+
var Filter$ = [3, n0, _F,
|
|
559
|
+
0,
|
|
560
|
+
[_n, _v],
|
|
561
|
+
[0, 64 | 0], 2
|
|
562
|
+
];
|
|
563
|
+
var FunctionEndpointSummary$ = [3, n0, _FES,
|
|
564
|
+
0,
|
|
565
|
+
[_eA, _eN, _eT, _dN, _aT, _aDM, _rW, _r, _st, _sR, _cA, _uA, _d, _sCc, _tC, _uS, _uSR],
|
|
566
|
+
[0, 0, 0, 0, 0, 0, () => RevisionWeightList, 64 | 0, 0, 0, 5, 5, 0, () => ScalingConfig$, () => ThrottleConfig$, 0, 0], 12
|
|
567
|
+
];
|
|
568
|
+
var FunctionRevisionSummary$ = [3, n0, _FRS,
|
|
569
|
+
0,
|
|
570
|
+
[_rA, _rIe, _st, _sR, _cA, _d],
|
|
571
|
+
[0, 0, 0, 0, 5, 0], 5
|
|
572
|
+
];
|
|
573
|
+
var FunctionSummary$ = [3, n0, _FS,
|
|
574
|
+
0,
|
|
575
|
+
[_fN, _fA, _st, _sR, _cA, _uA],
|
|
576
|
+
[0, 0, 0, 0, 5, 5], 6
|
|
577
|
+
];
|
|
578
|
+
var GetResourcePolicyRequest$ = [3, n0, _GRPR,
|
|
579
|
+
0,
|
|
580
|
+
[_rAe],
|
|
581
|
+
[[0, 1]], 1
|
|
582
|
+
];
|
|
583
|
+
var GetResourcePolicyResponse$ = [3, n0, _GRPRe,
|
|
584
|
+
0,
|
|
585
|
+
[_p, _rIe],
|
|
586
|
+
[[0, { [_jN]: _P }], [0, { [_jN]: _RI }]], 2
|
|
587
|
+
];
|
|
588
|
+
var GetWebAccountSettingsRequest$ = [3, n0, _GWASR,
|
|
589
|
+
0,
|
|
590
|
+
[],
|
|
591
|
+
[]
|
|
592
|
+
];
|
|
593
|
+
var GetWebAccountSettingsResponse$ = [3, n0, _GWASRe,
|
|
594
|
+
0,
|
|
595
|
+
[_aQ, _aU],
|
|
596
|
+
[() => AccountQuotas$, () => AccountUsage$], 2
|
|
597
|
+
];
|
|
598
|
+
var GetWebFunctionEndpointRequest$ = [3, n0, _GWFER,
|
|
599
|
+
0,
|
|
600
|
+
[_fN, _eN],
|
|
601
|
+
[[0, 1], [0, 1]], 2
|
|
602
|
+
];
|
|
603
|
+
var GetWebFunctionEndpointResponse$ = [3, n0, _GWFERe,
|
|
604
|
+
0,
|
|
605
|
+
[_fA, _eA, _eN, _eT, _dN, _aT, _aDM, _rW, _r, _st, _sR, _rE, _cA, _uA, _d, _sCc, _tC, _uS, _uSR],
|
|
606
|
+
[0, 0, 0, 0, 0, 0, 0, () => RevisionWeightList, 64 | 0, 0, 0, () => RegionalEndpoints, 5, 5, 0, () => ScalingConfig$, () => ThrottleConfig$, 0, 0], 14
|
|
607
|
+
];
|
|
608
|
+
var GetWebFunctionRequest$ = [3, n0, _GWFR,
|
|
609
|
+
0,
|
|
610
|
+
[_fN],
|
|
611
|
+
[[0, 1]], 1
|
|
612
|
+
];
|
|
613
|
+
var GetWebFunctionResponse$ = [3, n0, _GWFRe,
|
|
614
|
+
0,
|
|
615
|
+
[_fN, _fA, _st, _sR, _cA, _uA],
|
|
616
|
+
[0, 0, 0, 0, 5, 5], 6
|
|
617
|
+
];
|
|
618
|
+
var GetWebFunctionRevisionRequest$ = [3, n0, _GWFRR,
|
|
619
|
+
0,
|
|
620
|
+
[_fN, _rIe],
|
|
621
|
+
[[0, 1], [0, 1]], 2
|
|
622
|
+
];
|
|
623
|
+
var GetWebFunctionRevisionResponse$ = [3, n0, _GWFRRe,
|
|
624
|
+
0,
|
|
625
|
+
[_fA, _rA, _rIe, _bC, _sCe, _st, _sR, _cA, _d, _kKA, _er],
|
|
626
|
+
[0, 0, 0, () => BuildConfig$, [() => ServiceConfig$, 0], 0, 0, 5, 0, 0, () => RevisionErrors], 8
|
|
627
|
+
];
|
|
628
|
+
var ListTagsRequest$ = [3, n0, _LTR,
|
|
629
|
+
0,
|
|
630
|
+
[_res],
|
|
631
|
+
[[0, 1]], 1
|
|
632
|
+
];
|
|
633
|
+
var ListTagsResponse$ = [3, n0, _LTRi,
|
|
634
|
+
0,
|
|
635
|
+
[_t],
|
|
636
|
+
[[128 | 0, { [_jN]: _T }]]
|
|
637
|
+
];
|
|
638
|
+
var ListWebFunctionEndpointsRequest$ = [3, n0, _LWFER,
|
|
639
|
+
0,
|
|
640
|
+
[_fN, _f, _mR, _nT],
|
|
641
|
+
[[0, 1], () => FilterList, 1, 0], 1
|
|
642
|
+
];
|
|
643
|
+
var ListWebFunctionEndpointsResponse$ = [3, n0, _LWFERi,
|
|
644
|
+
0,
|
|
645
|
+
[_end, _nT],
|
|
646
|
+
[() => FunctionEndpointSummaryList, 0], 1
|
|
647
|
+
];
|
|
648
|
+
var ListWebFunctionRevisionsRequest$ = [3, n0, _LWFRR,
|
|
649
|
+
0,
|
|
650
|
+
[_fN, _f, _mR, _nT],
|
|
651
|
+
[[0, 1], () => FilterList, 1, 0], 1
|
|
652
|
+
];
|
|
653
|
+
var ListWebFunctionRevisionsResponse$ = [3, n0, _LWFRRi,
|
|
654
|
+
0,
|
|
655
|
+
[_rev, _nT],
|
|
656
|
+
[() => FunctionRevisionSummaryList, 0], 1
|
|
657
|
+
];
|
|
658
|
+
var ListWebFunctionsRequest$ = [3, n0, _LWFR,
|
|
659
|
+
0,
|
|
660
|
+
[_f, _mR, _nT],
|
|
661
|
+
[() => FilterList, 1, 0]
|
|
662
|
+
];
|
|
663
|
+
var ListWebFunctionsResponse$ = [3, n0, _LWFRi,
|
|
664
|
+
0,
|
|
665
|
+
[_fu, _nT],
|
|
666
|
+
[() => FunctionSummaryList, 0], 1
|
|
667
|
+
];
|
|
668
|
+
var LoggingConfig$ = [3, n0, _LC,
|
|
669
|
+
0,
|
|
670
|
+
[_lG, _aLL, _sLL],
|
|
671
|
+
[0, 0, 0]
|
|
672
|
+
];
|
|
673
|
+
var PutResourcePolicyRequest$ = [3, n0, _PRPR,
|
|
674
|
+
0,
|
|
675
|
+
[_rAe, _p, _rIe],
|
|
676
|
+
[[0, 1], [0, { [_jN]: _P }], [0, { [_jN]: _RI }]], 2
|
|
677
|
+
];
|
|
678
|
+
var PutResourcePolicyResponse$ = [3, n0, _PRPRu,
|
|
679
|
+
0,
|
|
680
|
+
[_p, _rIe],
|
|
681
|
+
[[0, { [_jN]: _P }], [0, { [_jN]: _RI }]], 2
|
|
682
|
+
];
|
|
683
|
+
var RegionalEndpoint$ = [3, n0, _RE,
|
|
684
|
+
0,
|
|
685
|
+
[_aT, _rW, _st, _sR, _dN, _sCc, _tC, _uS, _uSR],
|
|
686
|
+
[0, () => RevisionWeightList, 0, 0, 0, () => ScalingConfig$, () => ThrottleConfig$, 0, 0], 4
|
|
687
|
+
];
|
|
688
|
+
var RevisionConfig$ = [3, n0, _RC,
|
|
689
|
+
0,
|
|
690
|
+
[_bC, _sCe, _d, _kKA],
|
|
691
|
+
[() => BuildConfig$, [() => ServiceConfig$, 0], 0, 0], 2
|
|
692
|
+
];
|
|
693
|
+
var RevisionError$ = [3, n0, _REe,
|
|
694
|
+
0,
|
|
695
|
+
[_a, _eCr, _eM],
|
|
696
|
+
[0, 0, 0], 3
|
|
697
|
+
];
|
|
698
|
+
var RevisionWeight$ = [3, n0, _RW,
|
|
699
|
+
0,
|
|
700
|
+
[_rIe, _w],
|
|
701
|
+
[0, 1], 2
|
|
702
|
+
];
|
|
703
|
+
var RuntimeConfig$ = [3, n0, _RCu,
|
|
704
|
+
0,
|
|
705
|
+
[_ru],
|
|
706
|
+
[0], 1
|
|
707
|
+
];
|
|
708
|
+
var S3Object$ = [3, n0, _SO,
|
|
709
|
+
0,
|
|
710
|
+
[_b, _k, _vI],
|
|
711
|
+
[0, 0, 0], 2
|
|
712
|
+
];
|
|
713
|
+
var ScalingConfig$ = [3, n0, _SC,
|
|
714
|
+
0,
|
|
715
|
+
[_mE],
|
|
716
|
+
[1]
|
|
717
|
+
];
|
|
718
|
+
var ServiceConfig$ = [3, n0, _SCe,
|
|
719
|
+
0,
|
|
720
|
+
[_eRA, _tS, _mCPE, _eV, _tCe],
|
|
721
|
+
[0, 1, 1, [() => EnvironmentVariables, 0], () => TelemetryConfig$], 1
|
|
722
|
+
];
|
|
723
|
+
var TagResourceRequest$ = [3, n0, _TRR,
|
|
724
|
+
0,
|
|
725
|
+
[_res, _t],
|
|
726
|
+
[[0, 1], [128 | 0, { [_jN]: _T }]], 2
|
|
727
|
+
];
|
|
728
|
+
var TelemetryConfig$ = [3, n0, _TC,
|
|
729
|
+
0,
|
|
730
|
+
[_lC],
|
|
731
|
+
[() => LoggingConfig$]
|
|
732
|
+
];
|
|
733
|
+
var ThrottleConfig$ = [3, n0, _TCh,
|
|
734
|
+
0,
|
|
735
|
+
[_rL],
|
|
736
|
+
[1]
|
|
737
|
+
];
|
|
738
|
+
var UntagResourceRequest$ = [3, n0, _URR,
|
|
739
|
+
0,
|
|
740
|
+
[_res, _tK],
|
|
741
|
+
[[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
|
|
742
|
+
];
|
|
743
|
+
var UpdateWebFunctionEndpointRequest$ = [3, n0, _UWFER,
|
|
744
|
+
0,
|
|
745
|
+
[_fN, _eN, _d, _aT, _aDM, _rW, _sCc, _tC],
|
|
746
|
+
[[0, 1], [0, 1], 0, 0, 0, () => RevisionWeightList, () => ScalingConfig$, () => ThrottleConfig$], 2
|
|
747
|
+
];
|
|
748
|
+
var UpdateWebFunctionEndpointResponse$ = [3, n0, _UWFERp,
|
|
749
|
+
0,
|
|
750
|
+
[_fA, _eA, _eN, _eT, _dN, _aT, _aDM, _rW, _r, _st, _sR, _rE, _cA, _uA, _d, _sCc, _tC, _uS, _uSR],
|
|
751
|
+
[0, 0, 0, 0, 0, 0, 0, () => RevisionWeightList, 64 | 0, 0, 0, () => RegionalEndpoints, 5, 5, 0, () => ScalingConfig$, () => ThrottleConfig$, 0, 0], 14
|
|
752
|
+
];
|
|
753
|
+
var __Unit = "unit";
|
|
754
|
+
var FilterList = [1, n0, _FL,
|
|
755
|
+
0, () => Filter$
|
|
756
|
+
];
|
|
757
|
+
var FunctionEndpointSummaryList = [1, n0, _FESL,
|
|
758
|
+
0, () => FunctionEndpointSummary$
|
|
759
|
+
];
|
|
760
|
+
var FunctionRevisionSummaryList = [1, n0, _FRSL,
|
|
761
|
+
0, () => FunctionRevisionSummary$
|
|
762
|
+
];
|
|
763
|
+
var FunctionSummaryList = [1, n0, _FSL,
|
|
764
|
+
0, () => FunctionSummary$
|
|
765
|
+
];
|
|
766
|
+
var RevisionErrors = [1, n0, _REev,
|
|
767
|
+
0, () => RevisionError$
|
|
768
|
+
];
|
|
769
|
+
var RevisionWeightList = [1, n0, _RWL,
|
|
770
|
+
0, () => RevisionWeight$
|
|
771
|
+
];
|
|
772
|
+
var EnvironmentVariables = [2, n0, _EV,
|
|
773
|
+
8, 0, 0
|
|
774
|
+
];
|
|
775
|
+
var RegionalEndpoints = [2, n0, _REeg,
|
|
776
|
+
0, 0, () => RegionalEndpoint$
|
|
777
|
+
];
|
|
778
|
+
var CreateWebFunction$ = [9, n0, _CWF,
|
|
779
|
+
{ [_h]: ["PUT", "/2025-03-07/web-functions", 202] }, () => CreateWebFunctionRequest$, () => CreateWebFunctionResponse$
|
|
780
|
+
];
|
|
781
|
+
var CreateWebFunctionEndpoint$ = [9, n0, _CWFE,
|
|
782
|
+
{ [_h]: ["PUT", "/2025-03-07/web-functions/{functionName}/endpoints", 202] }, () => CreateWebFunctionEndpointRequest$, () => CreateWebFunctionEndpointResponse$
|
|
783
|
+
];
|
|
784
|
+
var CreateWebFunctionRevision$ = [9, n0, _CWFRre,
|
|
785
|
+
{ [_h]: ["POST", "/2025-03-07/web-functions/{functionName}/revisions", 202] }, () => CreateWebFunctionRevisionRequest$, () => CreateWebFunctionRevisionResponse$
|
|
786
|
+
];
|
|
787
|
+
var DeleteResourcePolicy$ = [9, n0, _DRP,
|
|
788
|
+
{ [_h]: ["DELETE", "/2025-03-07/resource-policy/{resourceArn}", 204] }, () => DeleteResourcePolicyRequest$, () => __Unit
|
|
789
|
+
];
|
|
790
|
+
var DeleteWebFunction$ = [9, n0, _DWF,
|
|
791
|
+
{ [_h]: ["DELETE", "/2025-03-07/web-functions/{functionName}", 204] }, () => DeleteWebFunctionRequest$, () => __Unit
|
|
792
|
+
];
|
|
793
|
+
var DeleteWebFunctionEndpoint$ = [9, n0, _DWFE,
|
|
794
|
+
{ [_h]: ["DELETE", "/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}", 204] }, () => DeleteWebFunctionEndpointRequest$, () => __Unit
|
|
795
|
+
];
|
|
796
|
+
var DeleteWebFunctionRevision$ = [9, n0, _DWFRe,
|
|
797
|
+
{ [_h]: ["DELETE", "/2025-03-07/web-functions/{functionName}/revisions/{revisionId}", 204] }, () => DeleteWebFunctionRevisionRequest$, () => __Unit
|
|
798
|
+
];
|
|
799
|
+
var GetResourcePolicy$ = [9, n0, _GRP,
|
|
800
|
+
{ [_h]: ["GET", "/2025-03-07/resource-policy/{resourceArn}", 200] }, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$
|
|
801
|
+
];
|
|
802
|
+
var GetWebAccountSettings$ = [9, n0, _GWAS,
|
|
803
|
+
{ [_h]: ["GET", "/2025-03-07/web-account-settings", 200] }, () => GetWebAccountSettingsRequest$, () => GetWebAccountSettingsResponse$
|
|
804
|
+
];
|
|
805
|
+
var GetWebFunction$ = [9, n0, _GWF,
|
|
806
|
+
{ [_h]: ["GET", "/2025-03-07/web-functions/{functionName}", 200] }, () => GetWebFunctionRequest$, () => GetWebFunctionResponse$
|
|
807
|
+
];
|
|
808
|
+
var GetWebFunctionEndpoint$ = [9, n0, _GWFE,
|
|
809
|
+
{ [_h]: ["GET", "/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}", 200] }, () => GetWebFunctionEndpointRequest$, () => GetWebFunctionEndpointResponse$
|
|
810
|
+
];
|
|
811
|
+
var GetWebFunctionRevision$ = [9, n0, _GWFRet,
|
|
812
|
+
{ [_h]: ["GET", "/2025-03-07/web-functions/{functionName}/revisions/{revisionId}", 200] }, () => GetWebFunctionRevisionRequest$, () => GetWebFunctionRevisionResponse$
|
|
813
|
+
];
|
|
814
|
+
var ListTags$ = [9, n0, _LT,
|
|
815
|
+
{ [_h]: ["GET", "/2025-03-07/tags/{resource}", 200] }, () => ListTagsRequest$, () => ListTagsResponse$
|
|
816
|
+
];
|
|
817
|
+
var ListWebFunctionEndpoints$ = [9, n0, _LWFE,
|
|
818
|
+
{ [_h]: ["POST", "/2025-03-07/web-functions/{functionName}/list-endpoints", 200] }, () => ListWebFunctionEndpointsRequest$, () => ListWebFunctionEndpointsResponse$
|
|
819
|
+
];
|
|
820
|
+
var ListWebFunctionRevisions$ = [9, n0, _LWFRis,
|
|
821
|
+
{ [_h]: ["POST", "/2025-03-07/web-functions/{functionName}/list-revisions", 200] }, () => ListWebFunctionRevisionsRequest$, () => ListWebFunctionRevisionsResponse$
|
|
822
|
+
];
|
|
823
|
+
var ListWebFunctions$ = [9, n0, _LWF,
|
|
824
|
+
{ [_h]: ["POST", "/2025-03-07/web-functions", 200] }, () => ListWebFunctionsRequest$, () => ListWebFunctionsResponse$
|
|
825
|
+
];
|
|
826
|
+
var PutResourcePolicy$ = [9, n0, _PRP,
|
|
827
|
+
{ [_h]: ["PUT", "/2025-03-07/resource-policy/{resourceArn}", 200] }, () => PutResourcePolicyRequest$, () => PutResourcePolicyResponse$
|
|
828
|
+
];
|
|
829
|
+
var TagResource$ = [9, n0, _TR,
|
|
830
|
+
{ [_h]: ["POST", "/2025-03-07/tags/{resource}", 204] }, () => TagResourceRequest$, () => __Unit
|
|
831
|
+
];
|
|
832
|
+
var UntagResource$ = [9, n0, _UR,
|
|
833
|
+
{ [_h]: ["DELETE", "/2025-03-07/tags/{resource}", 204] }, () => UntagResourceRequest$, () => __Unit
|
|
834
|
+
];
|
|
835
|
+
var UpdateWebFunctionEndpoint$ = [9, n0, _UWFE,
|
|
836
|
+
{ [_h]: ["PATCH", "/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}", 202] }, () => UpdateWebFunctionEndpointRequest$, () => UpdateWebFunctionEndpointResponse$
|
|
837
|
+
];
|
|
838
|
+
|
|
839
|
+
const getRuntimeConfig$1 = (config) => {
|
|
840
|
+
return {
|
|
841
|
+
apiVersion: "2025-03-07",
|
|
842
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
843
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
844
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
845
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
846
|
+
extensions: config?.extensions ?? [],
|
|
847
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultLambdaWebHttpAuthSchemeProvider,
|
|
848
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
849
|
+
{
|
|
850
|
+
schemeId: "aws.auth#sigv4",
|
|
851
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
852
|
+
signer: new AwsSdkSigV4Signer(),
|
|
853
|
+
},
|
|
854
|
+
],
|
|
855
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
856
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
857
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
858
|
+
defaultNamespace: "com.amazonaws.lambdaweb",
|
|
859
|
+
errorTypeRegistries,
|
|
860
|
+
version: "2025-03-07",
|
|
861
|
+
serviceTarget: "LambdaWeb",
|
|
862
|
+
},
|
|
863
|
+
serviceId: config?.serviceId ?? "Lambda Web",
|
|
864
|
+
sha256: config?.sha256 ?? Sha256,
|
|
865
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
866
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
867
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
const getRuntimeConfig = (config) => {
|
|
872
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
873
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
874
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
875
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
876
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
877
|
+
const loaderConfig = {
|
|
878
|
+
profile: config?.profile,
|
|
879
|
+
logger: clientSharedValues.logger,
|
|
880
|
+
};
|
|
881
|
+
return {
|
|
882
|
+
...clientSharedValues,
|
|
883
|
+
...config,
|
|
884
|
+
runtime: "node",
|
|
885
|
+
defaultsMode,
|
|
886
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
887
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
888
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
889
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
890
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
891
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
892
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
893
|
+
retryMode: config?.retryMode ??
|
|
894
|
+
loadConfig({
|
|
895
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
896
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
897
|
+
}, config),
|
|
898
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
899
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
900
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
901
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
906
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
907
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
908
|
+
let _credentials = runtimeConfig.credentials;
|
|
909
|
+
return {
|
|
910
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
911
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
912
|
+
if (index === -1) {
|
|
913
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
914
|
+
}
|
|
915
|
+
else {
|
|
916
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
httpAuthSchemes() {
|
|
920
|
+
return _httpAuthSchemes;
|
|
921
|
+
},
|
|
922
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
923
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
924
|
+
},
|
|
925
|
+
httpAuthSchemeProvider() {
|
|
926
|
+
return _httpAuthSchemeProvider;
|
|
927
|
+
},
|
|
928
|
+
setCredentials(credentials) {
|
|
929
|
+
_credentials = credentials;
|
|
930
|
+
},
|
|
931
|
+
credentials() {
|
|
932
|
+
return _credentials;
|
|
933
|
+
},
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
937
|
+
return {
|
|
938
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
939
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
940
|
+
credentials: config.credentials(),
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
945
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
946
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
947
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
class LambdaWebClient extends Client {
|
|
951
|
+
config;
|
|
952
|
+
constructor(...[configuration]) {
|
|
953
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
954
|
+
super(_config_0);
|
|
955
|
+
this.initConfig = _config_0;
|
|
956
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
957
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
958
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
959
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
960
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
961
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
962
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
963
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
964
|
+
this.config = _config_8;
|
|
965
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
966
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
967
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
968
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
969
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
970
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
971
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
972
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
973
|
+
httpAuthSchemeParametersProvider: defaultLambdaWebHttpAuthSchemeParametersProvider,
|
|
974
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
975
|
+
"aws.auth#sigv4": config.credentials,
|
|
976
|
+
}),
|
|
977
|
+
}));
|
|
978
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
979
|
+
}
|
|
980
|
+
destroy() {
|
|
981
|
+
super.destroy();
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
const command = makeBuilder(commonParams, "LambdaWeb", "LambdaWebClient", getEndpointPlugin);
|
|
986
|
+
const _ep0 = {};
|
|
987
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
988
|
+
|
|
989
|
+
class CreateWebFunctionCommand extends command(_ep0, _mw0, "CreateWebFunction", CreateWebFunction$) {
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
class CreateWebFunctionEndpointCommand extends command(_ep0, _mw0, "CreateWebFunctionEndpoint", CreateWebFunctionEndpoint$) {
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
class CreateWebFunctionRevisionCommand extends command(_ep0, _mw0, "CreateWebFunctionRevision", CreateWebFunctionRevision$) {
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
class DeleteWebFunctionCommand extends command(_ep0, _mw0, "DeleteWebFunction", DeleteWebFunction$) {
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
class DeleteWebFunctionEndpointCommand extends command(_ep0, _mw0, "DeleteWebFunctionEndpoint", DeleteWebFunctionEndpoint$) {
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
class DeleteWebFunctionRevisionCommand extends command(_ep0, _mw0, "DeleteWebFunctionRevision", DeleteWebFunctionRevision$) {
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
class GetWebAccountSettingsCommand extends command(_ep0, _mw0, "GetWebAccountSettings", GetWebAccountSettings$) {
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
class GetWebFunctionCommand extends command(_ep0, _mw0, "GetWebFunction", GetWebFunction$) {
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
class GetWebFunctionEndpointCommand extends command(_ep0, _mw0, "GetWebFunctionEndpoint", GetWebFunctionEndpoint$) {
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
class GetWebFunctionRevisionCommand extends command(_ep0, _mw0, "GetWebFunctionRevision", GetWebFunctionRevision$) {
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
class ListTagsCommand extends command(_ep0, _mw0, "ListTags", ListTags$) {
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
class ListWebFunctionEndpointsCommand extends command(_ep0, _mw0, "ListWebFunctionEndpoints", ListWebFunctionEndpoints$) {
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
class ListWebFunctionRevisionsCommand extends command(_ep0, _mw0, "ListWebFunctionRevisions", ListWebFunctionRevisions$) {
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
class ListWebFunctionsCommand extends command(_ep0, _mw0, "ListWebFunctions", ListWebFunctions$) {
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
class UpdateWebFunctionEndpointCommand extends command(_ep0, _mw0, "UpdateWebFunctionEndpoint", UpdateWebFunctionEndpoint$) {
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
const paginateListWebFunctionEndpoints = createPaginator(LambdaWebClient, ListWebFunctionEndpointsCommand, "nextToken", "nextToken", "maxResults");
|
|
1050
|
+
|
|
1051
|
+
const paginateListWebFunctionRevisions = createPaginator(LambdaWebClient, ListWebFunctionRevisionsCommand, "nextToken", "nextToken", "maxResults");
|
|
1052
|
+
|
|
1053
|
+
const paginateListWebFunctions = createPaginator(LambdaWebClient, ListWebFunctionsCommand, "nextToken", "nextToken", "maxResults");
|
|
1054
|
+
|
|
1055
|
+
const checkState$5 = async (client, input) => {
|
|
1056
|
+
let reason;
|
|
1057
|
+
try {
|
|
1058
|
+
let result = await client.send(new GetWebFunctionCommand(input));
|
|
1059
|
+
reason = result;
|
|
1060
|
+
try {
|
|
1061
|
+
const returnComparator = () => {
|
|
1062
|
+
return result.state;
|
|
1063
|
+
};
|
|
1064
|
+
if (returnComparator() === "Active") {
|
|
1065
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
catch (e) { }
|
|
1069
|
+
try {
|
|
1070
|
+
const returnComparator = () => {
|
|
1071
|
+
return result.state;
|
|
1072
|
+
};
|
|
1073
|
+
if (returnComparator() === "Failed") {
|
|
1074
|
+
return { state: WaiterState.FAILURE, reason };
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
catch (e) { }
|
|
1078
|
+
try {
|
|
1079
|
+
const returnComparator = () => {
|
|
1080
|
+
return result.state;
|
|
1081
|
+
};
|
|
1082
|
+
if (returnComparator() === "Deleting") {
|
|
1083
|
+
return { state: WaiterState.FAILURE, reason };
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
catch (e) { }
|
|
1087
|
+
try {
|
|
1088
|
+
const returnComparator = () => {
|
|
1089
|
+
return result.state;
|
|
1090
|
+
};
|
|
1091
|
+
if (returnComparator() === "Pending") {
|
|
1092
|
+
return { state: WaiterState.RETRY, reason };
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
catch (e) { }
|
|
1096
|
+
}
|
|
1097
|
+
catch (exception) {
|
|
1098
|
+
reason = exception;
|
|
1099
|
+
}
|
|
1100
|
+
return { state: WaiterState.RETRY, reason };
|
|
1101
|
+
};
|
|
1102
|
+
const waitForWebFunctionActive = async (params, input) => {
|
|
1103
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1104
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
1105
|
+
};
|
|
1106
|
+
const waitUntilWebFunctionActive = async (params, input) => {
|
|
1107
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1108
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
1109
|
+
return checkExceptions(result);
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
const checkState$4 = async (client, input) => {
|
|
1113
|
+
let reason;
|
|
1114
|
+
try {
|
|
1115
|
+
let result = await client.send(new GetWebFunctionCommand(input));
|
|
1116
|
+
reason = result;
|
|
1117
|
+
try {
|
|
1118
|
+
const returnComparator = () => {
|
|
1119
|
+
return result.state;
|
|
1120
|
+
};
|
|
1121
|
+
if (returnComparator() === "Deleting") {
|
|
1122
|
+
return { state: WaiterState.RETRY, reason };
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
catch (e) { }
|
|
1126
|
+
}
|
|
1127
|
+
catch (exception) {
|
|
1128
|
+
reason = exception;
|
|
1129
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
1130
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
return { state: WaiterState.RETRY, reason };
|
|
1134
|
+
};
|
|
1135
|
+
const waitForWebFunctionDeleted = async (params, input) => {
|
|
1136
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1137
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
1138
|
+
};
|
|
1139
|
+
const waitUntilWebFunctionDeleted = async (params, input) => {
|
|
1140
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1141
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
1142
|
+
return checkExceptions(result);
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
const checkState$3 = async (client, input) => {
|
|
1146
|
+
let reason;
|
|
1147
|
+
try {
|
|
1148
|
+
let result = await client.send(new GetWebFunctionEndpointCommand(input));
|
|
1149
|
+
reason = result;
|
|
1150
|
+
try {
|
|
1151
|
+
const returnComparator = () => {
|
|
1152
|
+
return result.state;
|
|
1153
|
+
};
|
|
1154
|
+
if (returnComparator() === "Active") {
|
|
1155
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
catch (e) { }
|
|
1159
|
+
try {
|
|
1160
|
+
const returnComparator = () => {
|
|
1161
|
+
return result.state;
|
|
1162
|
+
};
|
|
1163
|
+
if (returnComparator() === "Failed") {
|
|
1164
|
+
return { state: WaiterState.FAILURE, reason };
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
catch (e) { }
|
|
1168
|
+
try {
|
|
1169
|
+
const returnComparator = () => {
|
|
1170
|
+
return result.state;
|
|
1171
|
+
};
|
|
1172
|
+
if (returnComparator() === "Deleting") {
|
|
1173
|
+
return { state: WaiterState.FAILURE, reason };
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
catch (e) { }
|
|
1177
|
+
try {
|
|
1178
|
+
const returnComparator = () => {
|
|
1179
|
+
return result.state;
|
|
1180
|
+
};
|
|
1181
|
+
if (returnComparator() === "Pending") {
|
|
1182
|
+
return { state: WaiterState.RETRY, reason };
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
catch (e) { }
|
|
1186
|
+
}
|
|
1187
|
+
catch (exception) {
|
|
1188
|
+
reason = exception;
|
|
1189
|
+
}
|
|
1190
|
+
return { state: WaiterState.RETRY, reason };
|
|
1191
|
+
};
|
|
1192
|
+
const waitForWebFunctionEndpointActive = async (params, input) => {
|
|
1193
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1194
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
1195
|
+
};
|
|
1196
|
+
const waitUntilWebFunctionEndpointActive = async (params, input) => {
|
|
1197
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1198
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
1199
|
+
return checkExceptions(result);
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1202
|
+
const checkState$2 = async (client, input) => {
|
|
1203
|
+
let reason;
|
|
1204
|
+
try {
|
|
1205
|
+
let result = await client.send(new GetWebFunctionEndpointCommand(input));
|
|
1206
|
+
reason = result;
|
|
1207
|
+
try {
|
|
1208
|
+
const returnComparator = () => {
|
|
1209
|
+
return result.state;
|
|
1210
|
+
};
|
|
1211
|
+
if (returnComparator() === "Deleting") {
|
|
1212
|
+
return { state: WaiterState.RETRY, reason };
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
catch (e) { }
|
|
1216
|
+
}
|
|
1217
|
+
catch (exception) {
|
|
1218
|
+
reason = exception;
|
|
1219
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
1220
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
return { state: WaiterState.RETRY, reason };
|
|
1224
|
+
};
|
|
1225
|
+
const waitForWebFunctionEndpointDeleted = async (params, input) => {
|
|
1226
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1227
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
1228
|
+
};
|
|
1229
|
+
const waitUntilWebFunctionEndpointDeleted = async (params, input) => {
|
|
1230
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1231
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
1232
|
+
return checkExceptions(result);
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
const checkState$1 = async (client, input) => {
|
|
1236
|
+
let reason;
|
|
1237
|
+
try {
|
|
1238
|
+
let result = await client.send(new GetWebFunctionEndpointCommand(input));
|
|
1239
|
+
reason = result;
|
|
1240
|
+
try {
|
|
1241
|
+
const returnComparator = () => {
|
|
1242
|
+
return result.updateStatus;
|
|
1243
|
+
};
|
|
1244
|
+
if (returnComparator() === "Successful") {
|
|
1245
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
catch (e) { }
|
|
1249
|
+
try {
|
|
1250
|
+
const returnComparator = () => {
|
|
1251
|
+
return result.updateStatus;
|
|
1252
|
+
};
|
|
1253
|
+
if (returnComparator() === "Failed") {
|
|
1254
|
+
return { state: WaiterState.FAILURE, reason };
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
catch (e) { }
|
|
1258
|
+
try {
|
|
1259
|
+
const returnComparator = () => {
|
|
1260
|
+
return result.updateStatus;
|
|
1261
|
+
};
|
|
1262
|
+
if (returnComparator() === "InProgress") {
|
|
1263
|
+
return { state: WaiterState.RETRY, reason };
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
catch (e) { }
|
|
1267
|
+
}
|
|
1268
|
+
catch (exception) {
|
|
1269
|
+
reason = exception;
|
|
1270
|
+
}
|
|
1271
|
+
return { state: WaiterState.RETRY, reason };
|
|
1272
|
+
};
|
|
1273
|
+
const waitForWebFunctionEndpointUpdated = async (params, input) => {
|
|
1274
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1275
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
1276
|
+
};
|
|
1277
|
+
const waitUntilWebFunctionEndpointUpdated = async (params, input) => {
|
|
1278
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1279
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
1280
|
+
return checkExceptions(result);
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
const checkState = async (client, input) => {
|
|
1284
|
+
let reason;
|
|
1285
|
+
try {
|
|
1286
|
+
let result = await client.send(new GetWebFunctionRevisionCommand(input));
|
|
1287
|
+
reason = result;
|
|
1288
|
+
try {
|
|
1289
|
+
const returnComparator = () => {
|
|
1290
|
+
return result.state;
|
|
1291
|
+
};
|
|
1292
|
+
if (returnComparator() === "Active") {
|
|
1293
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
catch (e) { }
|
|
1297
|
+
try {
|
|
1298
|
+
const returnComparator = () => {
|
|
1299
|
+
return result.state;
|
|
1300
|
+
};
|
|
1301
|
+
if (returnComparator() === "Failed") {
|
|
1302
|
+
return { state: WaiterState.FAILURE, reason };
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
catch (e) { }
|
|
1306
|
+
try {
|
|
1307
|
+
const returnComparator = () => {
|
|
1308
|
+
return result.state;
|
|
1309
|
+
};
|
|
1310
|
+
if (returnComparator() === "Pending") {
|
|
1311
|
+
return { state: WaiterState.RETRY, reason };
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
catch (e) { }
|
|
1315
|
+
}
|
|
1316
|
+
catch (exception) {
|
|
1317
|
+
reason = exception;
|
|
1318
|
+
}
|
|
1319
|
+
return { state: WaiterState.RETRY, reason };
|
|
1320
|
+
};
|
|
1321
|
+
const waitForWebFunctionRevisionActive = async (params, input) => {
|
|
1322
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1323
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1324
|
+
};
|
|
1325
|
+
const waitUntilWebFunctionRevisionActive = async (params, input) => {
|
|
1326
|
+
const serviceDefaults = { minDelay: 1, maxDelay: 300 };
|
|
1327
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1328
|
+
return checkExceptions(result);
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
const commands = {
|
|
1332
|
+
CreateWebFunctionCommand,
|
|
1333
|
+
CreateWebFunctionEndpointCommand,
|
|
1334
|
+
CreateWebFunctionRevisionCommand,
|
|
1335
|
+
DeleteResourcePolicyCommand,
|
|
1336
|
+
DeleteWebFunctionCommand,
|
|
1337
|
+
DeleteWebFunctionEndpointCommand,
|
|
1338
|
+
DeleteWebFunctionRevisionCommand,
|
|
1339
|
+
GetResourcePolicyCommand,
|
|
1340
|
+
GetWebAccountSettingsCommand,
|
|
1341
|
+
GetWebFunctionCommand,
|
|
1342
|
+
GetWebFunctionEndpointCommand,
|
|
1343
|
+
GetWebFunctionRevisionCommand,
|
|
1344
|
+
ListTagsCommand,
|
|
1345
|
+
ListWebFunctionEndpointsCommand,
|
|
1346
|
+
ListWebFunctionRevisionsCommand,
|
|
1347
|
+
ListWebFunctionsCommand,
|
|
1348
|
+
PutResourcePolicyCommand,
|
|
1349
|
+
TagResourceCommand,
|
|
1350
|
+
UntagResourceCommand,
|
|
1351
|
+
UpdateWebFunctionEndpointCommand,
|
|
1352
|
+
};
|
|
1353
|
+
const paginators = {
|
|
1354
|
+
paginateListWebFunctionEndpoints,
|
|
1355
|
+
paginateListWebFunctionRevisions,
|
|
1356
|
+
paginateListWebFunctions,
|
|
1357
|
+
};
|
|
1358
|
+
const waiters = {
|
|
1359
|
+
waitUntilWebFunctionActive,
|
|
1360
|
+
waitUntilWebFunctionDeleted,
|
|
1361
|
+
waitUntilWebFunctionEndpointActive,
|
|
1362
|
+
waitUntilWebFunctionEndpointDeleted,
|
|
1363
|
+
waitUntilWebFunctionEndpointUpdated,
|
|
1364
|
+
waitUntilWebFunctionRevisionActive,
|
|
1365
|
+
};
|
|
1366
|
+
class LambdaWeb extends LambdaWebClient {
|
|
1367
|
+
}
|
|
1368
|
+
createAggregatedClient(commands, LambdaWeb, { paginators, waiters });
|
|
1369
|
+
|
|
1370
|
+
const ApplicationLogLevel = {
|
|
1371
|
+
DEBUG: "DEBUG",
|
|
1372
|
+
ERROR: "ERROR",
|
|
1373
|
+
FATAL: "FATAL",
|
|
1374
|
+
INFO: "INFO",
|
|
1375
|
+
TRACE: "TRACE",
|
|
1376
|
+
WARN: "WARN",
|
|
1377
|
+
};
|
|
1378
|
+
const AuthType = {
|
|
1379
|
+
APPLICATION_MANAGED: "ApplicationManaged",
|
|
1380
|
+
IAM_AUTH: "IamAuth",
|
|
1381
|
+
};
|
|
1382
|
+
const AutoDeploymentMode = {
|
|
1383
|
+
DISABLED: "Disabled",
|
|
1384
|
+
LATEST_REVISION: "LatestRevision",
|
|
1385
|
+
};
|
|
1386
|
+
const EndpointType = {
|
|
1387
|
+
HOME_REGION: "HomeRegion",
|
|
1388
|
+
MULTI_REGION: "MultiRegion",
|
|
1389
|
+
PER_REGION: "PerRegion",
|
|
1390
|
+
};
|
|
1391
|
+
const SystemLogLevel = {
|
|
1392
|
+
DEBUG: "DEBUG",
|
|
1393
|
+
INFO: "INFO",
|
|
1394
|
+
WARN: "WARN",
|
|
1395
|
+
};
|
|
1396
|
+
const EndpointState = {
|
|
1397
|
+
ACTIVE: "Active",
|
|
1398
|
+
DELETING: "Deleting",
|
|
1399
|
+
FAILED: "Failed",
|
|
1400
|
+
PENDING: "Pending",
|
|
1401
|
+
};
|
|
1402
|
+
const EndpointUpdateStatus = {
|
|
1403
|
+
FAILED: "Failed",
|
|
1404
|
+
IN_PROGRESS: "InProgress",
|
|
1405
|
+
SUCCESSFUL: "Successful",
|
|
1406
|
+
};
|
|
1407
|
+
const RevisionState = {
|
|
1408
|
+
ACTIVE: "Active",
|
|
1409
|
+
FAILED: "Failed",
|
|
1410
|
+
PENDING: "Pending",
|
|
1411
|
+
};
|
|
1412
|
+
const FunctionState = {
|
|
1413
|
+
ACTIVE: "Active",
|
|
1414
|
+
DELETING: "Deleting",
|
|
1415
|
+
FAILED: "Failed",
|
|
1416
|
+
PENDING: "Pending",
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1420
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
1421
|
+
exports.AccountQuotas$ = AccountQuotas$;
|
|
1422
|
+
exports.AccountUsage$ = AccountUsage$;
|
|
1423
|
+
exports.ApplicationLogLevel = ApplicationLogLevel;
|
|
1424
|
+
exports.AuthType = AuthType;
|
|
1425
|
+
exports.AutoDeploymentMode = AutoDeploymentMode;
|
|
1426
|
+
exports.BuildConfig$ = BuildConfig$;
|
|
1427
|
+
exports.CodeConfig$ = CodeConfig$;
|
|
1428
|
+
exports.ConflictException = ConflictException;
|
|
1429
|
+
exports.ConflictException$ = ConflictException$;
|
|
1430
|
+
exports.CreateWebFunction$ = CreateWebFunction$;
|
|
1431
|
+
exports.CreateWebFunctionCommand = CreateWebFunctionCommand;
|
|
1432
|
+
exports.CreateWebFunctionEndpoint$ = CreateWebFunctionEndpoint$;
|
|
1433
|
+
exports.CreateWebFunctionEndpointCommand = CreateWebFunctionEndpointCommand;
|
|
1434
|
+
exports.CreateWebFunctionEndpointRequest$ = CreateWebFunctionEndpointRequest$;
|
|
1435
|
+
exports.CreateWebFunctionEndpointResponse$ = CreateWebFunctionEndpointResponse$;
|
|
1436
|
+
exports.CreateWebFunctionRequest$ = CreateWebFunctionRequest$;
|
|
1437
|
+
exports.CreateWebFunctionResponse$ = CreateWebFunctionResponse$;
|
|
1438
|
+
exports.CreateWebFunctionRevision$ = CreateWebFunctionRevision$;
|
|
1439
|
+
exports.CreateWebFunctionRevisionCommand = CreateWebFunctionRevisionCommand;
|
|
1440
|
+
exports.CreateWebFunctionRevisionRequest$ = CreateWebFunctionRevisionRequest$;
|
|
1441
|
+
exports.CreateWebFunctionRevisionResponse$ = CreateWebFunctionRevisionResponse$;
|
|
1442
|
+
exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;
|
|
1443
|
+
exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
|
|
1444
|
+
exports.DeleteResourcePolicyRequest$ = DeleteResourcePolicyRequest$;
|
|
1445
|
+
exports.DeleteWebFunction$ = DeleteWebFunction$;
|
|
1446
|
+
exports.DeleteWebFunctionCommand = DeleteWebFunctionCommand;
|
|
1447
|
+
exports.DeleteWebFunctionEndpoint$ = DeleteWebFunctionEndpoint$;
|
|
1448
|
+
exports.DeleteWebFunctionEndpointCommand = DeleteWebFunctionEndpointCommand;
|
|
1449
|
+
exports.DeleteWebFunctionEndpointRequest$ = DeleteWebFunctionEndpointRequest$;
|
|
1450
|
+
exports.DeleteWebFunctionRequest$ = DeleteWebFunctionRequest$;
|
|
1451
|
+
exports.DeleteWebFunctionRevision$ = DeleteWebFunctionRevision$;
|
|
1452
|
+
exports.DeleteWebFunctionRevisionCommand = DeleteWebFunctionRevisionCommand;
|
|
1453
|
+
exports.DeleteWebFunctionRevisionRequest$ = DeleteWebFunctionRevisionRequest$;
|
|
1454
|
+
exports.EndpointConfig$ = EndpointConfig$;
|
|
1455
|
+
exports.EndpointState = EndpointState;
|
|
1456
|
+
exports.EndpointType = EndpointType;
|
|
1457
|
+
exports.EndpointUpdateStatus = EndpointUpdateStatus;
|
|
1458
|
+
exports.Filter$ = Filter$;
|
|
1459
|
+
exports.FunctionEndpointSummary$ = FunctionEndpointSummary$;
|
|
1460
|
+
exports.FunctionRevisionSummary$ = FunctionRevisionSummary$;
|
|
1461
|
+
exports.FunctionState = FunctionState;
|
|
1462
|
+
exports.FunctionSummary$ = FunctionSummary$;
|
|
1463
|
+
exports.GetResourcePolicy$ = GetResourcePolicy$;
|
|
1464
|
+
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
1465
|
+
exports.GetResourcePolicyRequest$ = GetResourcePolicyRequest$;
|
|
1466
|
+
exports.GetResourcePolicyResponse$ = GetResourcePolicyResponse$;
|
|
1467
|
+
exports.GetWebAccountSettings$ = GetWebAccountSettings$;
|
|
1468
|
+
exports.GetWebAccountSettingsCommand = GetWebAccountSettingsCommand;
|
|
1469
|
+
exports.GetWebAccountSettingsRequest$ = GetWebAccountSettingsRequest$;
|
|
1470
|
+
exports.GetWebAccountSettingsResponse$ = GetWebAccountSettingsResponse$;
|
|
1471
|
+
exports.GetWebFunction$ = GetWebFunction$;
|
|
1472
|
+
exports.GetWebFunctionCommand = GetWebFunctionCommand;
|
|
1473
|
+
exports.GetWebFunctionEndpoint$ = GetWebFunctionEndpoint$;
|
|
1474
|
+
exports.GetWebFunctionEndpointCommand = GetWebFunctionEndpointCommand;
|
|
1475
|
+
exports.GetWebFunctionEndpointRequest$ = GetWebFunctionEndpointRequest$;
|
|
1476
|
+
exports.GetWebFunctionEndpointResponse$ = GetWebFunctionEndpointResponse$;
|
|
1477
|
+
exports.GetWebFunctionRequest$ = GetWebFunctionRequest$;
|
|
1478
|
+
exports.GetWebFunctionResponse$ = GetWebFunctionResponse$;
|
|
1479
|
+
exports.GetWebFunctionRevision$ = GetWebFunctionRevision$;
|
|
1480
|
+
exports.GetWebFunctionRevisionCommand = GetWebFunctionRevisionCommand;
|
|
1481
|
+
exports.GetWebFunctionRevisionRequest$ = GetWebFunctionRevisionRequest$;
|
|
1482
|
+
exports.GetWebFunctionRevisionResponse$ = GetWebFunctionRevisionResponse$;
|
|
1483
|
+
exports.InternalServerException = InternalServerException;
|
|
1484
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
1485
|
+
exports.LambdaWeb = LambdaWeb;
|
|
1486
|
+
exports.LambdaWebClient = LambdaWebClient;
|
|
1487
|
+
exports.LambdaWebServiceException = LambdaWebServiceException;
|
|
1488
|
+
exports.LambdaWebServiceException$ = LambdaWebServiceException$;
|
|
1489
|
+
exports.ListTags$ = ListTags$;
|
|
1490
|
+
exports.ListTagsCommand = ListTagsCommand;
|
|
1491
|
+
exports.ListTagsRequest$ = ListTagsRequest$;
|
|
1492
|
+
exports.ListTagsResponse$ = ListTagsResponse$;
|
|
1493
|
+
exports.ListWebFunctionEndpoints$ = ListWebFunctionEndpoints$;
|
|
1494
|
+
exports.ListWebFunctionEndpointsCommand = ListWebFunctionEndpointsCommand;
|
|
1495
|
+
exports.ListWebFunctionEndpointsRequest$ = ListWebFunctionEndpointsRequest$;
|
|
1496
|
+
exports.ListWebFunctionEndpointsResponse$ = ListWebFunctionEndpointsResponse$;
|
|
1497
|
+
exports.ListWebFunctionRevisions$ = ListWebFunctionRevisions$;
|
|
1498
|
+
exports.ListWebFunctionRevisionsCommand = ListWebFunctionRevisionsCommand;
|
|
1499
|
+
exports.ListWebFunctionRevisionsRequest$ = ListWebFunctionRevisionsRequest$;
|
|
1500
|
+
exports.ListWebFunctionRevisionsResponse$ = ListWebFunctionRevisionsResponse$;
|
|
1501
|
+
exports.ListWebFunctions$ = ListWebFunctions$;
|
|
1502
|
+
exports.ListWebFunctionsCommand = ListWebFunctionsCommand;
|
|
1503
|
+
exports.ListWebFunctionsRequest$ = ListWebFunctionsRequest$;
|
|
1504
|
+
exports.ListWebFunctionsResponse$ = ListWebFunctionsResponse$;
|
|
1505
|
+
exports.LoggingConfig$ = LoggingConfig$;
|
|
1506
|
+
exports.PutResourcePolicy$ = PutResourcePolicy$;
|
|
1507
|
+
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
1508
|
+
exports.PutResourcePolicyRequest$ = PutResourcePolicyRequest$;
|
|
1509
|
+
exports.PutResourcePolicyResponse$ = PutResourcePolicyResponse$;
|
|
1510
|
+
exports.RegionalEndpoint$ = RegionalEndpoint$;
|
|
1511
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1512
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
1513
|
+
exports.RevisionConfig$ = RevisionConfig$;
|
|
1514
|
+
exports.RevisionError$ = RevisionError$;
|
|
1515
|
+
exports.RevisionState = RevisionState;
|
|
1516
|
+
exports.RevisionWeight$ = RevisionWeight$;
|
|
1517
|
+
exports.RuntimeConfig$ = RuntimeConfig$;
|
|
1518
|
+
exports.S3Object$ = S3Object$;
|
|
1519
|
+
exports.ScalingConfig$ = ScalingConfig$;
|
|
1520
|
+
exports.ServiceConfig$ = ServiceConfig$;
|
|
1521
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1522
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
1523
|
+
exports.SystemLogLevel = SystemLogLevel;
|
|
1524
|
+
exports.TagResource$ = TagResource$;
|
|
1525
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1526
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
1527
|
+
exports.TelemetryConfig$ = TelemetryConfig$;
|
|
1528
|
+
exports.ThrottleConfig$ = ThrottleConfig$;
|
|
1529
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1530
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
1531
|
+
exports.UntagResource$ = UntagResource$;
|
|
1532
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1533
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
1534
|
+
exports.UpdateWebFunctionEndpoint$ = UpdateWebFunctionEndpoint$;
|
|
1535
|
+
exports.UpdateWebFunctionEndpointCommand = UpdateWebFunctionEndpointCommand;
|
|
1536
|
+
exports.UpdateWebFunctionEndpointRequest$ = UpdateWebFunctionEndpointRequest$;
|
|
1537
|
+
exports.UpdateWebFunctionEndpointResponse$ = UpdateWebFunctionEndpointResponse$;
|
|
1538
|
+
exports.ValidationException = ValidationException;
|
|
1539
|
+
exports.ValidationException$ = ValidationException$;
|
|
1540
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
1541
|
+
exports.paginateListWebFunctionEndpoints = paginateListWebFunctionEndpoints;
|
|
1542
|
+
exports.paginateListWebFunctionRevisions = paginateListWebFunctionRevisions;
|
|
1543
|
+
exports.paginateListWebFunctions = paginateListWebFunctions;
|
|
1544
|
+
exports.waitForWebFunctionActive = waitForWebFunctionActive;
|
|
1545
|
+
exports.waitForWebFunctionDeleted = waitForWebFunctionDeleted;
|
|
1546
|
+
exports.waitForWebFunctionEndpointActive = waitForWebFunctionEndpointActive;
|
|
1547
|
+
exports.waitForWebFunctionEndpointDeleted = waitForWebFunctionEndpointDeleted;
|
|
1548
|
+
exports.waitForWebFunctionEndpointUpdated = waitForWebFunctionEndpointUpdated;
|
|
1549
|
+
exports.waitForWebFunctionRevisionActive = waitForWebFunctionRevisionActive;
|
|
1550
|
+
exports.waitUntilWebFunctionActive = waitUntilWebFunctionActive;
|
|
1551
|
+
exports.waitUntilWebFunctionDeleted = waitUntilWebFunctionDeleted;
|
|
1552
|
+
exports.waitUntilWebFunctionEndpointActive = waitUntilWebFunctionEndpointActive;
|
|
1553
|
+
exports.waitUntilWebFunctionEndpointDeleted = waitUntilWebFunctionEndpointDeleted;
|
|
1554
|
+
exports.waitUntilWebFunctionEndpointUpdated = waitUntilWebFunctionEndpointUpdated;
|
|
1555
|
+
exports.waitUntilWebFunctionRevisionActive = waitUntilWebFunctionRevisionActive;
|