@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.
Files changed (163) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +321 -0
  3. package/dist-cjs/index.js +1555 -0
  4. package/dist-es/LambdaWeb.js +69 -0
  5. package/dist-es/LambdaWebClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateWebFunctionCommand.js +4 -0
  10. package/dist-es/commands/CreateWebFunctionEndpointCommand.js +4 -0
  11. package/dist-es/commands/CreateWebFunctionRevisionCommand.js +4 -0
  12. package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
  13. package/dist-es/commands/DeleteWebFunctionCommand.js +4 -0
  14. package/dist-es/commands/DeleteWebFunctionEndpointCommand.js +4 -0
  15. package/dist-es/commands/DeleteWebFunctionRevisionCommand.js +4 -0
  16. package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  17. package/dist-es/commands/GetWebAccountSettingsCommand.js +4 -0
  18. package/dist-es/commands/GetWebFunctionCommand.js +4 -0
  19. package/dist-es/commands/GetWebFunctionEndpointCommand.js +4 -0
  20. package/dist-es/commands/GetWebFunctionRevisionCommand.js +4 -0
  21. package/dist-es/commands/ListTagsCommand.js +4 -0
  22. package/dist-es/commands/ListWebFunctionEndpointsCommand.js +4 -0
  23. package/dist-es/commands/ListWebFunctionRevisionsCommand.js +4 -0
  24. package/dist-es/commands/ListWebFunctionsCommand.js +4 -0
  25. package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  26. package/dist-es/commands/TagResourceCommand.js +4 -0
  27. package/dist-es/commands/UntagResourceCommand.js +4 -0
  28. package/dist-es/commands/UpdateWebFunctionEndpointCommand.js +4 -0
  29. package/dist-es/commands/index.js +20 -0
  30. package/dist-es/endpoint/EndpointParameters.js +13 -0
  31. package/dist-es/endpoint/bdd.js +46 -0
  32. package/dist-es/endpoint/endpointResolver.js +14 -0
  33. package/dist-es/extensionConfiguration.js +1 -0
  34. package/dist-es/index.js +11 -0
  35. package/dist-es/models/LambdaWebServiceException.js +8 -0
  36. package/dist-es/models/enums.js +48 -0
  37. package/dist-es/models/errors.js +111 -0
  38. package/dist-es/models/models_0.js +1 -0
  39. package/dist-es/pagination/Interfaces.js +1 -0
  40. package/dist-es/pagination/ListWebFunctionEndpointsPaginator.js +4 -0
  41. package/dist-es/pagination/ListWebFunctionRevisionsPaginator.js +4 -0
  42. package/dist-es/pagination/ListWebFunctionsPaginator.js +4 -0
  43. package/dist-es/pagination/index.js +4 -0
  44. package/dist-es/runtimeConfig.browser.js +29 -0
  45. package/dist-es/runtimeConfig.js +43 -0
  46. package/dist-es/runtimeConfig.native.js +9 -0
  47. package/dist-es/runtimeConfig.shared.js +40 -0
  48. package/dist-es/runtimeExtensions.js +9 -0
  49. package/dist-es/schemas/schemas_0.js +593 -0
  50. package/dist-es/waiters/index.js +6 -0
  51. package/dist-es/waiters/waitForWebFunctionActive.js +58 -0
  52. package/dist-es/waiters/waitForWebFunctionDeleted.js +34 -0
  53. package/dist-es/waiters/waitForWebFunctionEndpointActive.js +58 -0
  54. package/dist-es/waiters/waitForWebFunctionEndpointDeleted.js +34 -0
  55. package/dist-es/waiters/waitForWebFunctionEndpointUpdated.js +49 -0
  56. package/dist-es/waiters/waitForWebFunctionRevisionActive.js +49 -0
  57. package/dist-types/LambdaWeb.d.ts +217 -0
  58. package/dist-types/LambdaWebClient.d.ts +206 -0
  59. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  60. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  61. package/dist-types/commandBuilder.d.ts +18 -0
  62. package/dist-types/commands/CreateWebFunctionCommand.d.ts +188 -0
  63. package/dist-types/commands/CreateWebFunctionEndpointCommand.d.ts +162 -0
  64. package/dist-types/commands/CreateWebFunctionRevisionCommand.d.ts +162 -0
  65. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
  66. package/dist-types/commands/DeleteWebFunctionCommand.d.ts +87 -0
  67. package/dist-types/commands/DeleteWebFunctionEndpointCommand.d.ts +88 -0
  68. package/dist-types/commands/DeleteWebFunctionRevisionCommand.d.ts +88 -0
  69. package/dist-types/commands/GetResourcePolicyCommand.d.ts +87 -0
  70. package/dist-types/commands/GetWebAccountSettingsCommand.d.ts +86 -0
  71. package/dist-types/commands/GetWebFunctionCommand.d.ts +91 -0
  72. package/dist-types/commands/GetWebFunctionEndpointCommand.d.ts +137 -0
  73. package/dist-types/commands/GetWebFunctionRevisionCommand.d.ts +128 -0
  74. package/dist-types/commands/ListTagsCommand.d.ts +88 -0
  75. package/dist-types/commands/ListWebFunctionEndpointsCommand.d.ts +128 -0
  76. package/dist-types/commands/ListWebFunctionRevisionsCommand.d.ts +106 -0
  77. package/dist-types/commands/ListWebFunctionsCommand.d.ts +102 -0
  78. package/dist-types/commands/PutResourcePolicyCommand.d.ts +95 -0
  79. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  80. package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
  81. package/dist-types/commands/UpdateWebFunctionEndpointCommand.d.ts +158 -0
  82. package/dist-types/commands/index.d.ts +20 -0
  83. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  84. package/dist-types/endpoint/bdd.d.ts +2 -0
  85. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  86. package/dist-types/extensionConfiguration.d.ts +9 -0
  87. package/dist-types/index.d.ts +19 -0
  88. package/dist-types/models/LambdaWebServiceException.d.ts +14 -0
  89. package/dist-types/models/enums.d.ts +120 -0
  90. package/dist-types/models/errors.d.ts +145 -0
  91. package/dist-types/models/models_0.d.ts +1554 -0
  92. package/dist-types/pagination/Interfaces.d.ts +8 -0
  93. package/dist-types/pagination/ListWebFunctionEndpointsPaginator.d.ts +7 -0
  94. package/dist-types/pagination/ListWebFunctionRevisionsPaginator.d.ts +7 -0
  95. package/dist-types/pagination/ListWebFunctionsPaginator.d.ts +7 -0
  96. package/dist-types/pagination/index.d.ts +4 -0
  97. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  98. package/dist-types/runtimeConfig.d.ts +57 -0
  99. package/dist-types/runtimeConfig.native.d.ts +56 -0
  100. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  101. package/dist-types/runtimeExtensions.d.ts +17 -0
  102. package/dist-types/schemas/schemas_0.d.ts +90 -0
  103. package/dist-types/ts3.4/LambdaWeb.d.ts +424 -0
  104. package/dist-types/ts3.4/LambdaWebClient.d.ts +215 -0
  105. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  106. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  107. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  108. package/dist-types/ts3.4/commands/CreateWebFunctionCommand.d.ts +39 -0
  109. package/dist-types/ts3.4/commands/CreateWebFunctionEndpointCommand.d.ts +42 -0
  110. package/dist-types/ts3.4/commands/CreateWebFunctionRevisionCommand.d.ts +42 -0
  111. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
  112. package/dist-types/ts3.4/commands/DeleteWebFunctionCommand.d.ts +38 -0
  113. package/dist-types/ts3.4/commands/DeleteWebFunctionEndpointCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/DeleteWebFunctionRevisionCommand.d.ts +38 -0
  115. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  116. package/dist-types/ts3.4/commands/GetWebAccountSettingsCommand.d.ts +39 -0
  117. package/dist-types/ts3.4/commands/GetWebFunctionCommand.d.ts +38 -0
  118. package/dist-types/ts3.4/commands/GetWebFunctionEndpointCommand.d.ts +39 -0
  119. package/dist-types/ts3.4/commands/GetWebFunctionRevisionCommand.d.ts +39 -0
  120. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +38 -0
  121. package/dist-types/ts3.4/commands/ListWebFunctionEndpointsCommand.d.ts +42 -0
  122. package/dist-types/ts3.4/commands/ListWebFunctionRevisionsCommand.d.ts +42 -0
  123. package/dist-types/ts3.4/commands/ListWebFunctionsCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  125. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  126. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  127. package/dist-types/ts3.4/commands/UpdateWebFunctionEndpointCommand.d.ts +42 -0
  128. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  129. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  130. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  131. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  132. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  133. package/dist-types/ts3.4/index.d.ts +14 -0
  134. package/dist-types/ts3.4/models/LambdaWebServiceException.d.ts +9 -0
  135. package/dist-types/ts3.4/models/enums.d.ts +57 -0
  136. package/dist-types/ts3.4/models/errors.d.ts +52 -0
  137. package/dist-types/ts3.4/models/models_0.d.ts +364 -0
  138. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  139. package/dist-types/ts3.4/pagination/ListWebFunctionEndpointsPaginator.d.ts +11 -0
  140. package/dist-types/ts3.4/pagination/ListWebFunctionRevisionsPaginator.d.ts +11 -0
  141. package/dist-types/ts3.4/pagination/ListWebFunctionsPaginator.d.ts +11 -0
  142. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  143. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  144. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  145. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  146. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  147. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  148. package/dist-types/ts3.4/schemas/schemas_0.d.ts +85 -0
  149. package/dist-types/ts3.4/waiters/index.d.ts +6 -0
  150. package/dist-types/ts3.4/waiters/waitForWebFunctionActive.d.ts +15 -0
  151. package/dist-types/ts3.4/waiters/waitForWebFunctionDeleted.d.ts +16 -0
  152. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
  153. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
  154. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
  155. package/dist-types/ts3.4/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
  156. package/dist-types/waiters/index.d.ts +6 -0
  157. package/dist-types/waiters/waitForWebFunctionActive.d.ts +15 -0
  158. package/dist-types/waiters/waitForWebFunctionDeleted.d.ts +16 -0
  159. package/dist-types/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
  160. package/dist-types/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
  161. package/dist-types/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
  162. package/dist-types/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
  163. package/package.json +69 -0
@@ -0,0 +1,69 @@
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
+ import { CreateWebFunctionCommand, } from "./commands/CreateWebFunctionCommand";
3
+ import { CreateWebFunctionEndpointCommand, } from "./commands/CreateWebFunctionEndpointCommand";
4
+ import { CreateWebFunctionRevisionCommand, } from "./commands/CreateWebFunctionRevisionCommand";
5
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
6
+ import { DeleteWebFunctionCommand, } from "./commands/DeleteWebFunctionCommand";
7
+ import { DeleteWebFunctionEndpointCommand, } from "./commands/DeleteWebFunctionEndpointCommand";
8
+ import { DeleteWebFunctionRevisionCommand, } from "./commands/DeleteWebFunctionRevisionCommand";
9
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
10
+ import { GetWebAccountSettingsCommand, } from "./commands/GetWebAccountSettingsCommand";
11
+ import { GetWebFunctionCommand, } from "./commands/GetWebFunctionCommand";
12
+ import { GetWebFunctionEndpointCommand, } from "./commands/GetWebFunctionEndpointCommand";
13
+ import { GetWebFunctionRevisionCommand, } from "./commands/GetWebFunctionRevisionCommand";
14
+ import { ListTagsCommand } from "./commands/ListTagsCommand";
15
+ import { ListWebFunctionEndpointsCommand, } from "./commands/ListWebFunctionEndpointsCommand";
16
+ import { ListWebFunctionRevisionsCommand, } from "./commands/ListWebFunctionRevisionsCommand";
17
+ import { ListWebFunctionsCommand, } from "./commands/ListWebFunctionsCommand";
18
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
19
+ import { TagResourceCommand, } from "./commands/TagResourceCommand";
20
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
+ import { UpdateWebFunctionEndpointCommand, } from "./commands/UpdateWebFunctionEndpointCommand";
22
+ import { LambdaWebClient } from "./LambdaWebClient";
23
+ import { paginateListWebFunctionEndpoints } from "./pagination/ListWebFunctionEndpointsPaginator";
24
+ import { paginateListWebFunctionRevisions } from "./pagination/ListWebFunctionRevisionsPaginator";
25
+ import { paginateListWebFunctions } from "./pagination/ListWebFunctionsPaginator";
26
+ import { waitUntilWebFunctionActive } from "./waiters/waitForWebFunctionActive";
27
+ import { waitUntilWebFunctionDeleted } from "./waiters/waitForWebFunctionDeleted";
28
+ import { waitUntilWebFunctionEndpointActive } from "./waiters/waitForWebFunctionEndpointActive";
29
+ import { waitUntilWebFunctionEndpointDeleted } from "./waiters/waitForWebFunctionEndpointDeleted";
30
+ import { waitUntilWebFunctionEndpointUpdated } from "./waiters/waitForWebFunctionEndpointUpdated";
31
+ import { waitUntilWebFunctionRevisionActive } from "./waiters/waitForWebFunctionRevisionActive";
32
+ const commands = {
33
+ CreateWebFunctionCommand,
34
+ CreateWebFunctionEndpointCommand,
35
+ CreateWebFunctionRevisionCommand,
36
+ DeleteResourcePolicyCommand,
37
+ DeleteWebFunctionCommand,
38
+ DeleteWebFunctionEndpointCommand,
39
+ DeleteWebFunctionRevisionCommand,
40
+ GetResourcePolicyCommand,
41
+ GetWebAccountSettingsCommand,
42
+ GetWebFunctionCommand,
43
+ GetWebFunctionEndpointCommand,
44
+ GetWebFunctionRevisionCommand,
45
+ ListTagsCommand,
46
+ ListWebFunctionEndpointsCommand,
47
+ ListWebFunctionRevisionsCommand,
48
+ ListWebFunctionsCommand,
49
+ PutResourcePolicyCommand,
50
+ TagResourceCommand,
51
+ UntagResourceCommand,
52
+ UpdateWebFunctionEndpointCommand,
53
+ };
54
+ const paginators = {
55
+ paginateListWebFunctionEndpoints,
56
+ paginateListWebFunctionRevisions,
57
+ paginateListWebFunctions,
58
+ };
59
+ const waiters = {
60
+ waitUntilWebFunctionActive,
61
+ waitUntilWebFunctionDeleted,
62
+ waitUntilWebFunctionEndpointActive,
63
+ waitUntilWebFunctionEndpointDeleted,
64
+ waitUntilWebFunctionEndpointUpdated,
65
+ waitUntilWebFunctionRevisionActive,
66
+ };
67
+ export class LambdaWeb extends LambdaWebClient {
68
+ }
69
+ createAggregatedClient(commands, LambdaWeb, { paginators, waiters });
@@ -0,0 +1,47 @@
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
2
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
3
+ import { Client as __Client, } from "@smithy/core/client";
4
+ import { resolveRegionConfig } from "@smithy/core/config";
5
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
6
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
7
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
8
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
9
+ import { defaultLambdaWebHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
10
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
11
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
13
+ export { __Client };
14
+ export class LambdaWebClient extends __Client {
15
+ config;
16
+ constructor(...[configuration]) {
17
+ const _config_0 = __getRuntimeConfig(configuration || {});
18
+ super(_config_0);
19
+ this.initConfig = _config_0;
20
+ const _config_1 = resolveClientEndpointParameters(_config_0);
21
+ const _config_2 = resolveUserAgentConfig(_config_1);
22
+ const _config_3 = resolveRetryConfig(_config_2);
23
+ const _config_4 = resolveRegionConfig(_config_3);
24
+ const _config_5 = resolveHostHeaderConfig(_config_4);
25
+ const _config_6 = resolveEndpointConfig(_config_5);
26
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
+ this.config = _config_8;
29
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
30
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
31
+ this.middlewareStack.use(getRetryPlugin(this.config));
32
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
33
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
34
+ this.middlewareStack.use(getLoggerPlugin(this.config));
35
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
36
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
37
+ httpAuthSchemeParametersProvider: defaultLambdaWebHttpAuthSchemeParametersProvider,
38
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
39
+ "aws.auth#sigv4": config.credentials,
40
+ }),
41
+ }));
42
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
43
+ }
44
+ destroy() {
45
+ super.destroy();
46
+ }
47
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,40 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultLambdaWebHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
9
+ };
10
+ };
11
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
+ return {
13
+ schemeId: "aws.auth#sigv4",
14
+ signingProperties: {
15
+ name: "lambda",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
24
+ };
25
+ }
26
+ export const defaultLambdaWebHttpAuthSchemeProvider = (authParameters) => {
27
+ const options = [];
28
+ switch (authParameters.operation) {
29
+ default: {
30
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
+ }
32
+ }
33
+ return options;
34
+ };
35
+ export const resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
37
+ return Object.assign(config_0, {
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
+ });
40
+ };
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "LambdaWeb", "LambdaWebClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateWebFunction$ } from "../schemas/schemas_0";
3
+ export class CreateWebFunctionCommand extends command(_ep0, _mw0, "CreateWebFunction", CreateWebFunction$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateWebFunctionEndpoint$ } from "../schemas/schemas_0";
3
+ export class CreateWebFunctionEndpointCommand extends command(_ep0, _mw0, "CreateWebFunctionEndpoint", CreateWebFunctionEndpoint$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateWebFunctionRevision$ } from "../schemas/schemas_0";
3
+ export class CreateWebFunctionRevisionCommand extends command(_ep0, _mw0, "CreateWebFunctionRevision", CreateWebFunctionRevision$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteResourcePolicy$ } from "../schemas/schemas_0";
3
+ export class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteWebFunction$ } from "../schemas/schemas_0";
3
+ export class DeleteWebFunctionCommand extends command(_ep0, _mw0, "DeleteWebFunction", DeleteWebFunction$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteWebFunctionEndpoint$ } from "../schemas/schemas_0";
3
+ export class DeleteWebFunctionEndpointCommand extends command(_ep0, _mw0, "DeleteWebFunctionEndpoint", DeleteWebFunctionEndpoint$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteWebFunctionRevision$ } from "../schemas/schemas_0";
3
+ export class DeleteWebFunctionRevisionCommand extends command(_ep0, _mw0, "DeleteWebFunctionRevision", DeleteWebFunctionRevision$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetResourcePolicy$ } from "../schemas/schemas_0";
3
+ export class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetWebAccountSettings$ } from "../schemas/schemas_0";
3
+ export class GetWebAccountSettingsCommand extends command(_ep0, _mw0, "GetWebAccountSettings", GetWebAccountSettings$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetWebFunction$ } from "../schemas/schemas_0";
3
+ export class GetWebFunctionCommand extends command(_ep0, _mw0, "GetWebFunction", GetWebFunction$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetWebFunctionEndpoint$ } from "../schemas/schemas_0";
3
+ export class GetWebFunctionEndpointCommand extends command(_ep0, _mw0, "GetWebFunctionEndpoint", GetWebFunctionEndpoint$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetWebFunctionRevision$ } from "../schemas/schemas_0";
3
+ export class GetWebFunctionRevisionCommand extends command(_ep0, _mw0, "GetWebFunctionRevision", GetWebFunctionRevision$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListTags$ } from "../schemas/schemas_0";
3
+ export class ListTagsCommand extends command(_ep0, _mw0, "ListTags", ListTags$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListWebFunctionEndpoints$ } from "../schemas/schemas_0";
3
+ export class ListWebFunctionEndpointsCommand extends command(_ep0, _mw0, "ListWebFunctionEndpoints", ListWebFunctionEndpoints$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListWebFunctionRevisions$ } from "../schemas/schemas_0";
3
+ export class ListWebFunctionRevisionsCommand extends command(_ep0, _mw0, "ListWebFunctionRevisions", ListWebFunctionRevisions$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListWebFunctions$ } from "../schemas/schemas_0";
3
+ export class ListWebFunctionsCommand extends command(_ep0, _mw0, "ListWebFunctions", ListWebFunctions$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { PutResourcePolicy$ } from "../schemas/schemas_0";
3
+ export class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { TagResource$ } from "../schemas/schemas_0";
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UntagResource$ } from "../schemas/schemas_0";
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateWebFunctionEndpoint$ } from "../schemas/schemas_0";
3
+ export class UpdateWebFunctionEndpointCommand extends command(_ep0, _mw0, "UpdateWebFunctionEndpoint", UpdateWebFunctionEndpoint$) {
4
+ }
@@ -0,0 +1,20 @@
1
+ export * from "./CreateWebFunctionCommand";
2
+ export * from "./CreateWebFunctionEndpointCommand";
3
+ export * from "./CreateWebFunctionRevisionCommand";
4
+ export * from "./DeleteResourcePolicyCommand";
5
+ export * from "./DeleteWebFunctionCommand";
6
+ export * from "./DeleteWebFunctionEndpointCommand";
7
+ export * from "./DeleteWebFunctionRevisionCommand";
8
+ export * from "./GetResourcePolicyCommand";
9
+ export * from "./GetWebAccountSettingsCommand";
10
+ export * from "./GetWebFunctionCommand";
11
+ export * from "./GetWebFunctionEndpointCommand";
12
+ export * from "./GetWebFunctionRevisionCommand";
13
+ export * from "./ListTagsCommand";
14
+ export * from "./ListWebFunctionEndpointsCommand";
15
+ export * from "./ListWebFunctionRevisionsCommand";
16
+ export * from "./ListWebFunctionsCommand";
17
+ export * from "./PutResourcePolicyCommand";
18
+ export * from "./TagResourceCommand";
19
+ export * from "./UntagResourceCommand";
20
+ export * from "./UpdateWebFunctionEndpointCommand";
@@ -0,0 +1,13 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
4
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
5
+ defaultSigningName: "lambda",
6
+ });
7
+ };
8
+ export const commonParams = {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
@@ -0,0 +1,46 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const k = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [g]],
7
+ [c, j],
8
+ ["aws.partition", j, d],
9
+ [e, [{ [k]: "UseFIPS" }, b]],
10
+ [e, [{ [k]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
13
+ ],
14
+ results: [
15
+ [a],
16
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
17
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
18
+ [g, i],
19
+ ["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
20
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
21
+ ["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", i],
22
+ [a, "FIPS is enabled but this partition does not support FIPS"],
23
+ ["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
+ [a, "DualStack is enabled but this partition does not support DualStack"],
25
+ ["https://lambda.{Region}.{PartitionResult#dnsSuffix}", i],
26
+ [a, "Invalid Configuration: Missing Region"]
27
+ ]
28
+ };
29
+ const root = 2;
30
+ const r = 100_000_000;
31
+ const nodes = new Int32Array([
32
+ -1, 1, -1,
33
+ 0, 12, 3,
34
+ 1, 4, r + 11,
35
+ 2, 5, r + 11,
36
+ 3, 8, 6,
37
+ 4, 7, r + 10,
38
+ 5, r + 8, r + 9,
39
+ 4, 10, 9,
40
+ 6, r + 6, r + 7,
41
+ 5, 11, r + 5,
42
+ 6, r + 4, r + 5,
43
+ 3, r + 1, 13,
44
+ 4, r + 2, r + 3,
45
+ ]);
46
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/core/client";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
+ import { bdd } from "./bdd";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export * from "./LambdaWebClient";
2
+ export * from "./LambdaWeb";
3
+ export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
7
+ export * from "./schemas/schemas_0";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
11
+ export { LambdaWebServiceException } from "./models/LambdaWebServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
+ export { __ServiceException };
3
+ export class LambdaWebServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, LambdaWebServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1,48 @@
1
+ export const ApplicationLogLevel = {
2
+ DEBUG: "DEBUG",
3
+ ERROR: "ERROR",
4
+ FATAL: "FATAL",
5
+ INFO: "INFO",
6
+ TRACE: "TRACE",
7
+ WARN: "WARN",
8
+ };
9
+ export const AuthType = {
10
+ APPLICATION_MANAGED: "ApplicationManaged",
11
+ IAM_AUTH: "IamAuth",
12
+ };
13
+ export const AutoDeploymentMode = {
14
+ DISABLED: "Disabled",
15
+ LATEST_REVISION: "LatestRevision",
16
+ };
17
+ export const EndpointType = {
18
+ HOME_REGION: "HomeRegion",
19
+ MULTI_REGION: "MultiRegion",
20
+ PER_REGION: "PerRegion",
21
+ };
22
+ export const SystemLogLevel = {
23
+ DEBUG: "DEBUG",
24
+ INFO: "INFO",
25
+ WARN: "WARN",
26
+ };
27
+ export const EndpointState = {
28
+ ACTIVE: "Active",
29
+ DELETING: "Deleting",
30
+ FAILED: "Failed",
31
+ PENDING: "Pending",
32
+ };
33
+ export const EndpointUpdateStatus = {
34
+ FAILED: "Failed",
35
+ IN_PROGRESS: "InProgress",
36
+ SUCCESSFUL: "Successful",
37
+ };
38
+ export const RevisionState = {
39
+ ACTIVE: "Active",
40
+ FAILED: "Failed",
41
+ PENDING: "Pending",
42
+ };
43
+ export const FunctionState = {
44
+ ACTIVE: "Active",
45
+ DELETING: "Deleting",
46
+ FAILED: "Failed",
47
+ PENDING: "Pending",
48
+ };
@@ -0,0 +1,111 @@
1
+ import { LambdaWebServiceException as __BaseException } from "./LambdaWebServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ resourceType;
19
+ constructor(opts) {
20
+ super({
21
+ name: "ConflictException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, ConflictException.prototype);
26
+ this.resourceId = opts.resourceId;
27
+ this.resourceType = opts.resourceType;
28
+ }
29
+ }
30
+ export class InternalServerException extends __BaseException {
31
+ name = "InternalServerException";
32
+ $fault = "server";
33
+ $retryable = {};
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerException.prototype);
41
+ }
42
+ }
43
+ export class ResourceNotFoundException extends __BaseException {
44
+ name = "ResourceNotFoundException";
45
+ $fault = "client";
46
+ resourceId;
47
+ resourceType;
48
+ constructor(opts) {
49
+ super({
50
+ name: "ResourceNotFoundException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
55
+ this.resourceId = opts.resourceId;
56
+ this.resourceType = opts.resourceType;
57
+ }
58
+ }
59
+ export class ServiceQuotaExceededException extends __BaseException {
60
+ name = "ServiceQuotaExceededException";
61
+ $fault = "client";
62
+ resourceId;
63
+ resourceType;
64
+ serviceCode;
65
+ quotaCode;
66
+ constructor(opts) {
67
+ super({
68
+ name: "ServiceQuotaExceededException",
69
+ $fault: "client",
70
+ ...opts,
71
+ });
72
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
73
+ this.resourceId = opts.resourceId;
74
+ this.resourceType = opts.resourceType;
75
+ this.serviceCode = opts.serviceCode;
76
+ this.quotaCode = opts.quotaCode;
77
+ }
78
+ }
79
+ export class ThrottlingException extends __BaseException {
80
+ name = "ThrottlingException";
81
+ $fault = "client";
82
+ $retryable = {
83
+ throttling: true,
84
+ };
85
+ retryAfterSeconds;
86
+ serviceCode;
87
+ quotaCode;
88
+ constructor(opts) {
89
+ super({
90
+ name: "ThrottlingException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
95
+ this.retryAfterSeconds = opts.retryAfterSeconds;
96
+ this.serviceCode = opts.serviceCode;
97
+ this.quotaCode = opts.quotaCode;
98
+ }
99
+ }
100
+ export class ValidationException extends __BaseException {
101
+ name = "ValidationException";
102
+ $fault = "client";
103
+ constructor(opts) {
104
+ super({
105
+ name: "ValidationException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ Object.setPrototypeOf(this, ValidationException.prototype);
110
+ }
111
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListWebFunctionEndpointsCommand, } from "../commands/ListWebFunctionEndpointsCommand";
3
+ import { LambdaWebClient } from "../LambdaWebClient";
4
+ export const paginateListWebFunctionEndpoints = createPaginator(LambdaWebClient, ListWebFunctionEndpointsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListWebFunctionRevisionsCommand, } from "../commands/ListWebFunctionRevisionsCommand";
3
+ import { LambdaWebClient } from "../LambdaWebClient";
4
+ export const paginateListWebFunctionRevisions = createPaginator(LambdaWebClient, ListWebFunctionRevisionsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListWebFunctionsCommand, } from "../commands/ListWebFunctionsCommand";
3
+ import { LambdaWebClient } from "../LambdaWebClient";
4
+ export const paginateListWebFunctions = createPaginator(LambdaWebClient, ListWebFunctionsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListWebFunctionEndpointsPaginator";
3
+ export * from "./ListWebFunctionRevisionsPaginator";
4
+ export * from "./ListWebFunctionsPaginator";