@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,58 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { GetWebFunctionEndpointCommand, } from "../commands/GetWebFunctionEndpointCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetWebFunctionEndpointCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.state;
11
+ };
12
+ if (returnComparator() === "Active") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.state;
20
+ };
21
+ if (returnComparator() === "Failed") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.state;
29
+ };
30
+ if (returnComparator() === "Deleting") {
31
+ return { state: WaiterState.FAILURE, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ try {
36
+ const returnComparator = () => {
37
+ return result.state;
38
+ };
39
+ if (returnComparator() === "Pending") {
40
+ return { state: WaiterState.RETRY, reason };
41
+ }
42
+ }
43
+ catch (e) { }
44
+ }
45
+ catch (exception) {
46
+ reason = exception;
47
+ }
48
+ return { state: WaiterState.RETRY, reason };
49
+ };
50
+ export const waitForWebFunctionEndpointActive = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
52
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ };
54
+ export const waitUntilWebFunctionEndpointActive = async (params, input) => {
55
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
56
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
57
+ return checkExceptions(result);
58
+ };
@@ -0,0 +1,34 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { GetWebFunctionEndpointCommand, } from "../commands/GetWebFunctionEndpointCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetWebFunctionEndpointCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.state;
11
+ };
12
+ if (returnComparator() === "Deleting") {
13
+ return { state: WaiterState.RETRY, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ }
18
+ catch (exception) {
19
+ reason = exception;
20
+ if (exception.name === "ResourceNotFoundException") {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ return { state: WaiterState.RETRY, reason };
25
+ };
26
+ export const waitForWebFunctionEndpointDeleted = async (params, input) => {
27
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
28
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
29
+ };
30
+ export const waitUntilWebFunctionEndpointDeleted = async (params, input) => {
31
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
32
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
33
+ return checkExceptions(result);
34
+ };
@@ -0,0 +1,49 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { GetWebFunctionEndpointCommand, } from "../commands/GetWebFunctionEndpointCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetWebFunctionEndpointCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.updateStatus;
11
+ };
12
+ if (returnComparator() === "Successful") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.updateStatus;
20
+ };
21
+ if (returnComparator() === "Failed") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.updateStatus;
29
+ };
30
+ if (returnComparator() === "InProgress") {
31
+ return { state: WaiterState.RETRY, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ }
36
+ catch (exception) {
37
+ reason = exception;
38
+ }
39
+ return { state: WaiterState.RETRY, reason };
40
+ };
41
+ export const waitForWebFunctionEndpointUpdated = async (params, input) => {
42
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
43
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
+ };
45
+ export const waitUntilWebFunctionEndpointUpdated = async (params, input) => {
46
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
47
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
+ return checkExceptions(result);
49
+ };
@@ -0,0 +1,49 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { GetWebFunctionRevisionCommand, } from "../commands/GetWebFunctionRevisionCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetWebFunctionRevisionCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.state;
11
+ };
12
+ if (returnComparator() === "Active") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.state;
20
+ };
21
+ if (returnComparator() === "Failed") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.state;
29
+ };
30
+ if (returnComparator() === "Pending") {
31
+ return { state: WaiterState.RETRY, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ }
36
+ catch (exception) {
37
+ reason = exception;
38
+ }
39
+ return { state: WaiterState.RETRY, reason };
40
+ };
41
+ export const waitForWebFunctionRevisionActive = async (params, input) => {
42
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
43
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
+ };
45
+ export const waitUntilWebFunctionRevisionActive = async (params, input) => {
46
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
47
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
+ return checkExceptions(result);
49
+ };
@@ -0,0 +1,217 @@
1
+ import { type WaiterResult } from "@smithy/core/client";
2
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
3
+ import { type CreateWebFunctionCommandInput, type CreateWebFunctionCommandOutput } from "./commands/CreateWebFunctionCommand";
4
+ import { type CreateWebFunctionEndpointCommandInput, type CreateWebFunctionEndpointCommandOutput } from "./commands/CreateWebFunctionEndpointCommand";
5
+ import { type CreateWebFunctionRevisionCommandInput, type CreateWebFunctionRevisionCommandOutput } from "./commands/CreateWebFunctionRevisionCommand";
6
+ import { type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
7
+ import { type DeleteWebFunctionCommandInput, type DeleteWebFunctionCommandOutput } from "./commands/DeleteWebFunctionCommand";
8
+ import { type DeleteWebFunctionEndpointCommandInput, type DeleteWebFunctionEndpointCommandOutput } from "./commands/DeleteWebFunctionEndpointCommand";
9
+ import { type DeleteWebFunctionRevisionCommandInput, type DeleteWebFunctionRevisionCommandOutput } from "./commands/DeleteWebFunctionRevisionCommand";
10
+ import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
11
+ import { type GetWebAccountSettingsCommandInput, type GetWebAccountSettingsCommandOutput } from "./commands/GetWebAccountSettingsCommand";
12
+ import { type GetWebFunctionCommandInput, type GetWebFunctionCommandOutput } from "./commands/GetWebFunctionCommand";
13
+ import { type GetWebFunctionEndpointCommandInput, type GetWebFunctionEndpointCommandOutput } from "./commands/GetWebFunctionEndpointCommand";
14
+ import { type GetWebFunctionRevisionCommandInput, type GetWebFunctionRevisionCommandOutput } from "./commands/GetWebFunctionRevisionCommand";
15
+ import { type ListTagsCommandInput, type ListTagsCommandOutput } from "./commands/ListTagsCommand";
16
+ import { type ListWebFunctionEndpointsCommandInput, type ListWebFunctionEndpointsCommandOutput } from "./commands/ListWebFunctionEndpointsCommand";
17
+ import { type ListWebFunctionRevisionsCommandInput, type ListWebFunctionRevisionsCommandOutput } from "./commands/ListWebFunctionRevisionsCommand";
18
+ import { type ListWebFunctionsCommandInput, type ListWebFunctionsCommandOutput } from "./commands/ListWebFunctionsCommand";
19
+ import { type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
20
+ import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
+ import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
+ import { type UpdateWebFunctionEndpointCommandInput, type UpdateWebFunctionEndpointCommandOutput } from "./commands/UpdateWebFunctionEndpointCommand";
23
+ import { LambdaWebClient } from "./LambdaWebClient";
24
+ import type { ResourceNotFoundException } from "./models/errors";
25
+ /**
26
+ * @public
27
+ */
28
+ export interface LambdaWebRequestOptions extends __HttpHandlerOptions {
29
+ metricsRecorder?: __MetricsRecorder<unknown>;
30
+ }
31
+ export interface LambdaWeb {
32
+ /**
33
+ * @see {@link CreateWebFunctionCommand}
34
+ */
35
+ createWebFunction(args: CreateWebFunctionCommandInput, options?: LambdaWebRequestOptions): Promise<CreateWebFunctionCommandOutput>;
36
+ createWebFunction(args: CreateWebFunctionCommandInput, cb: (err: any, data?: CreateWebFunctionCommandOutput) => void): void;
37
+ createWebFunction(args: CreateWebFunctionCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: CreateWebFunctionCommandOutput) => void): void;
38
+ /**
39
+ * @see {@link CreateWebFunctionEndpointCommand}
40
+ */
41
+ createWebFunctionEndpoint(args: CreateWebFunctionEndpointCommandInput, options?: LambdaWebRequestOptions): Promise<CreateWebFunctionEndpointCommandOutput>;
42
+ createWebFunctionEndpoint(args: CreateWebFunctionEndpointCommandInput, cb: (err: any, data?: CreateWebFunctionEndpointCommandOutput) => void): void;
43
+ createWebFunctionEndpoint(args: CreateWebFunctionEndpointCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: CreateWebFunctionEndpointCommandOutput) => void): void;
44
+ /**
45
+ * @see {@link CreateWebFunctionRevisionCommand}
46
+ */
47
+ createWebFunctionRevision(args: CreateWebFunctionRevisionCommandInput, options?: LambdaWebRequestOptions): Promise<CreateWebFunctionRevisionCommandOutput>;
48
+ createWebFunctionRevision(args: CreateWebFunctionRevisionCommandInput, cb: (err: any, data?: CreateWebFunctionRevisionCommandOutput) => void): void;
49
+ createWebFunctionRevision(args: CreateWebFunctionRevisionCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: CreateWebFunctionRevisionCommandOutput) => void): void;
50
+ /**
51
+ * @see {@link DeleteResourcePolicyCommand}
52
+ */
53
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: LambdaWebRequestOptions): Promise<DeleteResourcePolicyCommandOutput>;
54
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
55
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
56
+ /**
57
+ * @see {@link DeleteWebFunctionCommand}
58
+ */
59
+ deleteWebFunction(args: DeleteWebFunctionCommandInput, options?: LambdaWebRequestOptions): Promise<DeleteWebFunctionCommandOutput>;
60
+ deleteWebFunction(args: DeleteWebFunctionCommandInput, cb: (err: any, data?: DeleteWebFunctionCommandOutput) => void): void;
61
+ deleteWebFunction(args: DeleteWebFunctionCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: DeleteWebFunctionCommandOutput) => void): void;
62
+ /**
63
+ * @see {@link DeleteWebFunctionEndpointCommand}
64
+ */
65
+ deleteWebFunctionEndpoint(args: DeleteWebFunctionEndpointCommandInput, options?: LambdaWebRequestOptions): Promise<DeleteWebFunctionEndpointCommandOutput>;
66
+ deleteWebFunctionEndpoint(args: DeleteWebFunctionEndpointCommandInput, cb: (err: any, data?: DeleteWebFunctionEndpointCommandOutput) => void): void;
67
+ deleteWebFunctionEndpoint(args: DeleteWebFunctionEndpointCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: DeleteWebFunctionEndpointCommandOutput) => void): void;
68
+ /**
69
+ * @see {@link DeleteWebFunctionRevisionCommand}
70
+ */
71
+ deleteWebFunctionRevision(args: DeleteWebFunctionRevisionCommandInput, options?: LambdaWebRequestOptions): Promise<DeleteWebFunctionRevisionCommandOutput>;
72
+ deleteWebFunctionRevision(args: DeleteWebFunctionRevisionCommandInput, cb: (err: any, data?: DeleteWebFunctionRevisionCommandOutput) => void): void;
73
+ deleteWebFunctionRevision(args: DeleteWebFunctionRevisionCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: DeleteWebFunctionRevisionCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link GetResourcePolicyCommand}
76
+ */
77
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: LambdaWebRequestOptions): Promise<GetResourcePolicyCommandOutput>;
78
+ getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
79
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
80
+ /**
81
+ * @see {@link GetWebAccountSettingsCommand}
82
+ */
83
+ getWebAccountSettings(): Promise<GetWebAccountSettingsCommandOutput>;
84
+ getWebAccountSettings(args: GetWebAccountSettingsCommandInput, options?: LambdaWebRequestOptions): Promise<GetWebAccountSettingsCommandOutput>;
85
+ getWebAccountSettings(args: GetWebAccountSettingsCommandInput, cb: (err: any, data?: GetWebAccountSettingsCommandOutput) => void): void;
86
+ getWebAccountSettings(args: GetWebAccountSettingsCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: GetWebAccountSettingsCommandOutput) => void): void;
87
+ /**
88
+ * @see {@link GetWebFunctionCommand}
89
+ */
90
+ getWebFunction(args: GetWebFunctionCommandInput, options?: LambdaWebRequestOptions): Promise<GetWebFunctionCommandOutput>;
91
+ getWebFunction(args: GetWebFunctionCommandInput, cb: (err: any, data?: GetWebFunctionCommandOutput) => void): void;
92
+ getWebFunction(args: GetWebFunctionCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: GetWebFunctionCommandOutput) => void): void;
93
+ /**
94
+ * @see {@link GetWebFunctionEndpointCommand}
95
+ */
96
+ getWebFunctionEndpoint(args: GetWebFunctionEndpointCommandInput, options?: LambdaWebRequestOptions): Promise<GetWebFunctionEndpointCommandOutput>;
97
+ getWebFunctionEndpoint(args: GetWebFunctionEndpointCommandInput, cb: (err: any, data?: GetWebFunctionEndpointCommandOutput) => void): void;
98
+ getWebFunctionEndpoint(args: GetWebFunctionEndpointCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: GetWebFunctionEndpointCommandOutput) => void): void;
99
+ /**
100
+ * @see {@link GetWebFunctionRevisionCommand}
101
+ */
102
+ getWebFunctionRevision(args: GetWebFunctionRevisionCommandInput, options?: LambdaWebRequestOptions): Promise<GetWebFunctionRevisionCommandOutput>;
103
+ getWebFunctionRevision(args: GetWebFunctionRevisionCommandInput, cb: (err: any, data?: GetWebFunctionRevisionCommandOutput) => void): void;
104
+ getWebFunctionRevision(args: GetWebFunctionRevisionCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: GetWebFunctionRevisionCommandOutput) => void): void;
105
+ /**
106
+ * @see {@link ListTagsCommand}
107
+ */
108
+ listTags(args: ListTagsCommandInput, options?: LambdaWebRequestOptions): Promise<ListTagsCommandOutput>;
109
+ listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
110
+ listTags(args: ListTagsCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
111
+ /**
112
+ * @see {@link ListWebFunctionEndpointsCommand}
113
+ */
114
+ listWebFunctionEndpoints(args: ListWebFunctionEndpointsCommandInput, options?: LambdaWebRequestOptions): Promise<ListWebFunctionEndpointsCommandOutput>;
115
+ listWebFunctionEndpoints(args: ListWebFunctionEndpointsCommandInput, cb: (err: any, data?: ListWebFunctionEndpointsCommandOutput) => void): void;
116
+ listWebFunctionEndpoints(args: ListWebFunctionEndpointsCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: ListWebFunctionEndpointsCommandOutput) => void): void;
117
+ /**
118
+ * @see {@link ListWebFunctionRevisionsCommand}
119
+ */
120
+ listWebFunctionRevisions(args: ListWebFunctionRevisionsCommandInput, options?: LambdaWebRequestOptions): Promise<ListWebFunctionRevisionsCommandOutput>;
121
+ listWebFunctionRevisions(args: ListWebFunctionRevisionsCommandInput, cb: (err: any, data?: ListWebFunctionRevisionsCommandOutput) => void): void;
122
+ listWebFunctionRevisions(args: ListWebFunctionRevisionsCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: ListWebFunctionRevisionsCommandOutput) => void): void;
123
+ /**
124
+ * @see {@link ListWebFunctionsCommand}
125
+ */
126
+ listWebFunctions(): Promise<ListWebFunctionsCommandOutput>;
127
+ listWebFunctions(args: ListWebFunctionsCommandInput, options?: LambdaWebRequestOptions): Promise<ListWebFunctionsCommandOutput>;
128
+ listWebFunctions(args: ListWebFunctionsCommandInput, cb: (err: any, data?: ListWebFunctionsCommandOutput) => void): void;
129
+ listWebFunctions(args: ListWebFunctionsCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: ListWebFunctionsCommandOutput) => void): void;
130
+ /**
131
+ * @see {@link PutResourcePolicyCommand}
132
+ */
133
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: LambdaWebRequestOptions): Promise<PutResourcePolicyCommandOutput>;
134
+ putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
135
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
136
+ /**
137
+ * @see {@link TagResourceCommand}
138
+ */
139
+ tagResource(args: TagResourceCommandInput, options?: LambdaWebRequestOptions): Promise<TagResourceCommandOutput>;
140
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
141
+ tagResource(args: TagResourceCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
142
+ /**
143
+ * @see {@link UntagResourceCommand}
144
+ */
145
+ untagResource(args: UntagResourceCommandInput, options?: LambdaWebRequestOptions): Promise<UntagResourceCommandOutput>;
146
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
147
+ untagResource(args: UntagResourceCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
148
+ /**
149
+ * @see {@link UpdateWebFunctionEndpointCommand}
150
+ */
151
+ updateWebFunctionEndpoint(args: UpdateWebFunctionEndpointCommandInput, options?: LambdaWebRequestOptions): Promise<UpdateWebFunctionEndpointCommandOutput>;
152
+ updateWebFunctionEndpoint(args: UpdateWebFunctionEndpointCommandInput, cb: (err: any, data?: UpdateWebFunctionEndpointCommandOutput) => void): void;
153
+ updateWebFunctionEndpoint(args: UpdateWebFunctionEndpointCommandInput, options: LambdaWebRequestOptions, cb: (err: any, data?: UpdateWebFunctionEndpointCommandOutput) => void): void;
154
+ /**
155
+ * @see {@link ListWebFunctionEndpointsCommand}
156
+ * @param args - command input.
157
+ * @param paginationConfig - optional pagination config.
158
+ * @returns AsyncIterable of {@link ListWebFunctionEndpointsCommandOutput}.
159
+ */
160
+ paginateListWebFunctionEndpoints(args: ListWebFunctionEndpointsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWebFunctionEndpointsCommandOutput>;
161
+ /**
162
+ * @see {@link ListWebFunctionRevisionsCommand}
163
+ * @param args - command input.
164
+ * @param paginationConfig - optional pagination config.
165
+ * @returns AsyncIterable of {@link ListWebFunctionRevisionsCommandOutput}.
166
+ */
167
+ paginateListWebFunctionRevisions(args: ListWebFunctionRevisionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWebFunctionRevisionsCommandOutput>;
168
+ /**
169
+ * @see {@link ListWebFunctionsCommand}
170
+ * @param args - command input.
171
+ * @param paginationConfig - optional pagination config.
172
+ * @returns AsyncIterable of {@link ListWebFunctionsCommandOutput}.
173
+ */
174
+ paginateListWebFunctions(args?: ListWebFunctionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWebFunctionsCommandOutput>;
175
+ /**
176
+ * @see {@link GetWebFunctionCommand}
177
+ * @param args - command input.
178
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
179
+ */
180
+ waitUntilWebFunctionActive(args: GetWebFunctionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LambdaWeb>, "client">): Promise<WaiterResult<GetWebFunctionCommandOutput>>;
181
+ /**
182
+ * @see {@link GetWebFunctionCommand}
183
+ * @param args - command input.
184
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
185
+ */
186
+ waitUntilWebFunctionDeleted(args: GetWebFunctionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LambdaWeb>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
187
+ /**
188
+ * @see {@link GetWebFunctionEndpointCommand}
189
+ * @param args - command input.
190
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
191
+ */
192
+ waitUntilWebFunctionEndpointActive(args: GetWebFunctionEndpointCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LambdaWeb>, "client">): Promise<WaiterResult<GetWebFunctionEndpointCommandOutput>>;
193
+ /**
194
+ * @see {@link GetWebFunctionEndpointCommand}
195
+ * @param args - command input.
196
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
197
+ */
198
+ waitUntilWebFunctionEndpointDeleted(args: GetWebFunctionEndpointCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LambdaWeb>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
199
+ /**
200
+ * @see {@link GetWebFunctionEndpointCommand}
201
+ * @param args - command input.
202
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
203
+ */
204
+ waitUntilWebFunctionEndpointUpdated(args: GetWebFunctionEndpointCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LambdaWeb>, "client">): Promise<WaiterResult<GetWebFunctionEndpointCommandOutput>>;
205
+ /**
206
+ * @see {@link GetWebFunctionRevisionCommand}
207
+ * @param args - command input.
208
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
209
+ */
210
+ waitUntilWebFunctionRevisionActive(args: GetWebFunctionRevisionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LambdaWeb>, "client">): Promise<WaiterResult<GetWebFunctionRevisionCommandOutput>>;
211
+ }
212
+ /**
213
+ * <p>AWS Lambda Web Functions let you run web applications and APIs as HTTP servers on Lambda. A web function has one or more immutable revisions (code and configuration) and one or more endpoints that expose it over HTTPS.</p>
214
+ * @public
215
+ */
216
+ export declare class LambdaWeb extends LambdaWebClient implements LambdaWeb {
217
+ }
@@ -0,0 +1,206 @@
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
2
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
3
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
4
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
5
+ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
6
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
7
+ import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
+ import type { CreateWebFunctionCommandInput, CreateWebFunctionCommandOutput } from "./commands/CreateWebFunctionCommand";
10
+ import type { CreateWebFunctionEndpointCommandInput, CreateWebFunctionEndpointCommandOutput } from "./commands/CreateWebFunctionEndpointCommand";
11
+ import type { CreateWebFunctionRevisionCommandInput, CreateWebFunctionRevisionCommandOutput } from "./commands/CreateWebFunctionRevisionCommand";
12
+ import type { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
13
+ import type { DeleteWebFunctionCommandInput, DeleteWebFunctionCommandOutput } from "./commands/DeleteWebFunctionCommand";
14
+ import type { DeleteWebFunctionEndpointCommandInput, DeleteWebFunctionEndpointCommandOutput } from "./commands/DeleteWebFunctionEndpointCommand";
15
+ import type { DeleteWebFunctionRevisionCommandInput, DeleteWebFunctionRevisionCommandOutput } from "./commands/DeleteWebFunctionRevisionCommand";
16
+ import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
17
+ import type { GetWebAccountSettingsCommandInput, GetWebAccountSettingsCommandOutput } from "./commands/GetWebAccountSettingsCommand";
18
+ import type { GetWebFunctionCommandInput, GetWebFunctionCommandOutput } from "./commands/GetWebFunctionCommand";
19
+ import type { GetWebFunctionEndpointCommandInput, GetWebFunctionEndpointCommandOutput } from "./commands/GetWebFunctionEndpointCommand";
20
+ import type { GetWebFunctionRevisionCommandInput, GetWebFunctionRevisionCommandOutput } from "./commands/GetWebFunctionRevisionCommand";
21
+ import type { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
22
+ import type { ListWebFunctionEndpointsCommandInput, ListWebFunctionEndpointsCommandOutput } from "./commands/ListWebFunctionEndpointsCommand";
23
+ import type { ListWebFunctionRevisionsCommandInput, ListWebFunctionRevisionsCommandOutput } from "./commands/ListWebFunctionRevisionsCommand";
24
+ import type { ListWebFunctionsCommandInput, ListWebFunctionsCommandOutput } from "./commands/ListWebFunctionsCommand";
25
+ import type { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
26
+ import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
27
+ import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
28
+ import type { UpdateWebFunctionEndpointCommandInput, UpdateWebFunctionEndpointCommandOutput } from "./commands/UpdateWebFunctionEndpointCommand";
29
+ import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
30
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
31
+ export { __Client };
32
+ /**
33
+ * @public
34
+ */
35
+ export type ServiceInputTypes = CreateWebFunctionCommandInput | CreateWebFunctionEndpointCommandInput | CreateWebFunctionRevisionCommandInput | DeleteResourcePolicyCommandInput | DeleteWebFunctionCommandInput | DeleteWebFunctionEndpointCommandInput | DeleteWebFunctionRevisionCommandInput | GetResourcePolicyCommandInput | GetWebAccountSettingsCommandInput | GetWebFunctionCommandInput | GetWebFunctionEndpointCommandInput | GetWebFunctionRevisionCommandInput | ListTagsCommandInput | ListWebFunctionEndpointsCommandInput | ListWebFunctionRevisionsCommandInput | ListWebFunctionsCommandInput | PutResourcePolicyCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateWebFunctionEndpointCommandInput;
36
+ /**
37
+ * @public
38
+ */
39
+ export type ServiceOutputTypes = CreateWebFunctionCommandOutput | CreateWebFunctionEndpointCommandOutput | CreateWebFunctionRevisionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteWebFunctionCommandOutput | DeleteWebFunctionEndpointCommandOutput | DeleteWebFunctionRevisionCommandOutput | GetResourcePolicyCommandOutput | GetWebAccountSettingsCommandOutput | GetWebFunctionCommandOutput | GetWebFunctionEndpointCommandOutput | GetWebFunctionRevisionCommandOutput | ListTagsCommandOutput | ListWebFunctionEndpointsCommandOutput | ListWebFunctionRevisionsCommandOutput | ListWebFunctionsCommandOutput | PutResourcePolicyCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateWebFunctionEndpointCommandOutput;
40
+ /**
41
+ * @public
42
+ */
43
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
44
+ /**
45
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
46
+ */
47
+ requestHandler?: __HttpHandlerUserInput;
48
+ /**
49
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
50
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
51
+ * @internal
52
+ */
53
+ sha256?: __ChecksumConstructor | __HashConstructor;
54
+ /**
55
+ * The function that will be used to convert strings into HTTP endpoints.
56
+ * @internal
57
+ */
58
+ urlParser?: __UrlParser;
59
+ /**
60
+ * A function that can calculate the length of a request body.
61
+ * @internal
62
+ */
63
+ bodyLengthChecker?: __BodyLengthCalculator;
64
+ /**
65
+ * A function that converts a stream into an array of bytes.
66
+ * @internal
67
+ */
68
+ streamCollector?: __StreamCollector;
69
+ /**
70
+ * The function that will be used to convert a base64-encoded string to a byte array.
71
+ * @internal
72
+ */
73
+ base64Decoder?: __Decoder;
74
+ /**
75
+ * The function that will be used to convert binary data to a base64-encoded string.
76
+ * @internal
77
+ */
78
+ base64Encoder?: __Encoder;
79
+ /**
80
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
81
+ * @internal
82
+ */
83
+ utf8Decoder?: __Decoder;
84
+ /**
85
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
86
+ * @internal
87
+ */
88
+ utf8Encoder?: __Encoder;
89
+ /**
90
+ * The runtime environment.
91
+ * @internal
92
+ */
93
+ runtime?: string;
94
+ /**
95
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
96
+ * trait of an operation.
97
+ */
98
+ disableHostPrefix?: boolean;
99
+ /**
100
+ * Unique service identifier.
101
+ * @internal
102
+ */
103
+ serviceId?: string;
104
+ /**
105
+ * Enables IPv6/IPv4 dualstack endpoint.
106
+ */
107
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
108
+ /**
109
+ * Enables FIPS compatible endpoints.
110
+ */
111
+ useFipsEndpoint?: boolean | __Provider<boolean>;
112
+ /**
113
+ * The AWS region to which this client will send requests
114
+ */
115
+ region?: string | __Provider<string>;
116
+ /**
117
+ * Setting a client profile is similar to setting a value for the
118
+ * AWS_PROFILE environment variable. Setting a profile on a client
119
+ * in code only affects the single client instance, unlike AWS_PROFILE.
120
+ *
121
+ * When set, and only for environments where an AWS configuration
122
+ * file exists, fields configurable by this file will be retrieved
123
+ * from the specified profile within that file.
124
+ * Conflicting code configuration and environment variables will
125
+ * still have higher priority.
126
+ *
127
+ * For client credential resolution that involves checking the AWS
128
+ * configuration file, the client's profile (this value) will be
129
+ * used unless a different profile is set in the credential
130
+ * provider options.
131
+ *
132
+ */
133
+ profile?: string;
134
+ /**
135
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
136
+ * @internal
137
+ */
138
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
139
+ /**
140
+ * Default credentials provider; Not available in browser runtime.
141
+ * @deprecated
142
+ * @internal
143
+ */
144
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
145
+ /**
146
+ * Value for how many times a request will be made at most in case of retry.
147
+ */
148
+ maxAttempts?: number | __Provider<number>;
149
+ /**
150
+ * Specifies which retry algorithm to use.
151
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
152
+ *
153
+ */
154
+ retryMode?: string | __Provider<string>;
155
+ /**
156
+ * Optional logger for logging debug/info/warn/error.
157
+ */
158
+ logger?: __Logger;
159
+ /**
160
+ * Optional extensions
161
+ */
162
+ extensions?: RuntimeExtension[];
163
+ /**
164
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
165
+ */
166
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
167
+ }
168
+ /**
169
+ * @public
170
+ */
171
+ export type LambdaWebClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
172
+ /**
173
+ * @public
174
+ *
175
+ * The configuration interface of LambdaWebClient class constructor that set the region, credentials and other options.
176
+ */
177
+ export interface LambdaWebClientConfig extends LambdaWebClientConfigType {
178
+ }
179
+ /**
180
+ * @public
181
+ */
182
+ export type LambdaWebClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
183
+ /**
184
+ * @public
185
+ *
186
+ * The resolved configuration interface of LambdaWebClient class. This is resolved and normalized from the {@link LambdaWebClientConfig | constructor configuration interface}.
187
+ */
188
+ export interface LambdaWebClientResolvedConfig extends LambdaWebClientResolvedConfigType {
189
+ }
190
+ /**
191
+ * <p>AWS Lambda Web Functions let you run web applications and APIs as HTTP servers on Lambda. A web function has one or more immutable revisions (code and configuration) and one or more endpoints that expose it over HTTPS.</p>
192
+ * @public
193
+ */
194
+ export declare class LambdaWebClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LambdaWebClientResolvedConfig> {
195
+ /**
196
+ * The resolved configuration of LambdaWebClient class. This is resolved and normalized from the {@link LambdaWebClientConfig | constructor configuration interface}.
197
+ */
198
+ readonly config: LambdaWebClientResolvedConfig;
199
+ constructor(...[configuration]: __CheckOptionalClientConfig<LambdaWebClientConfig>);
200
+ /**
201
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
202
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
203
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
204
+ */
205
+ destroy(): void;
206
+ }
@@ -0,0 +1,29 @@
1
+ import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import type { LambdaWebHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: LambdaWebHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): LambdaWebHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: LambdaWebHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;