@aws-sdk/client-lambda-web 3.1146.0 → 3.1148.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 (122) hide show
  1. package/README.md +8 -141
  2. package/dist-cjs/index.js +4 -1117
  3. package/dist-es/LambdaWeb.js +1 -61
  4. package/dist-es/commands/index.js +0 -19
  5. package/dist-es/index.js +0 -3
  6. package/dist-es/models/errors.js +0 -64
  7. package/dist-es/schemas/schemas_0.js +1 -514
  8. package/dist-types/LambdaWeb.d.ts +2 -195
  9. package/dist-types/LambdaWebClient.d.ts +3 -22
  10. package/dist-types/commandBuilder.d.ts +4 -4
  11. package/dist-types/commands/GetWebAccountSettingsCommand.d.ts +2 -2
  12. package/dist-types/commands/index.d.ts +0 -19
  13. package/dist-types/index.d.ts +1 -4
  14. package/dist-types/models/errors.d.ts +0 -88
  15. package/dist-types/models/models_0.d.ts +7 -1503
  16. package/dist-types/schemas/schemas_0.d.ts +0 -73
  17. package/dist-types/ts3.4/LambdaWeb.d.ts +0 -395
  18. package/dist-types/ts3.4/LambdaWebClient.d.ts +2 -112
  19. package/dist-types/ts3.4/commandBuilder.d.ts +9 -10
  20. package/dist-types/ts3.4/commands/GetWebAccountSettingsCommand.d.ts +4 -4
  21. package/dist-types/ts3.4/commands/index.d.ts +0 -19
  22. package/dist-types/ts3.4/index.d.ts +0 -3
  23. package/dist-types/ts3.4/models/errors.d.ts +0 -28
  24. package/dist-types/ts3.4/models/models_0.d.ts +0 -350
  25. package/dist-types/ts3.4/schemas/schemas_0.d.ts +0 -73
  26. package/package.json +1 -1
  27. package/dist-es/commands/CreateWebFunctionCommand.js +0 -4
  28. package/dist-es/commands/CreateWebFunctionEndpointCommand.js +0 -4
  29. package/dist-es/commands/CreateWebFunctionRevisionCommand.js +0 -4
  30. package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -4
  31. package/dist-es/commands/DeleteWebFunctionCommand.js +0 -4
  32. package/dist-es/commands/DeleteWebFunctionEndpointCommand.js +0 -4
  33. package/dist-es/commands/DeleteWebFunctionRevisionCommand.js +0 -4
  34. package/dist-es/commands/GetResourcePolicyCommand.js +0 -4
  35. package/dist-es/commands/GetWebFunctionCommand.js +0 -4
  36. package/dist-es/commands/GetWebFunctionEndpointCommand.js +0 -4
  37. package/dist-es/commands/GetWebFunctionRevisionCommand.js +0 -4
  38. package/dist-es/commands/ListTagsCommand.js +0 -4
  39. package/dist-es/commands/ListWebFunctionEndpointsCommand.js +0 -4
  40. package/dist-es/commands/ListWebFunctionRevisionsCommand.js +0 -4
  41. package/dist-es/commands/ListWebFunctionsCommand.js +0 -4
  42. package/dist-es/commands/PutResourcePolicyCommand.js +0 -4
  43. package/dist-es/commands/TagResourceCommand.js +0 -4
  44. package/dist-es/commands/UntagResourceCommand.js +0 -4
  45. package/dist-es/commands/UpdateWebFunctionEndpointCommand.js +0 -4
  46. package/dist-es/models/enums.js +0 -48
  47. package/dist-es/pagination/Interfaces.js +0 -1
  48. package/dist-es/pagination/ListWebFunctionEndpointsPaginator.js +0 -4
  49. package/dist-es/pagination/ListWebFunctionRevisionsPaginator.js +0 -4
  50. package/dist-es/pagination/ListWebFunctionsPaginator.js +0 -4
  51. package/dist-es/pagination/index.js +0 -4
  52. package/dist-es/waiters/index.js +0 -6
  53. package/dist-es/waiters/waitForWebFunctionActive.js +0 -58
  54. package/dist-es/waiters/waitForWebFunctionDeleted.js +0 -34
  55. package/dist-es/waiters/waitForWebFunctionEndpointActive.js +0 -58
  56. package/dist-es/waiters/waitForWebFunctionEndpointDeleted.js +0 -34
  57. package/dist-es/waiters/waitForWebFunctionEndpointUpdated.js +0 -49
  58. package/dist-es/waiters/waitForWebFunctionRevisionActive.js +0 -49
  59. package/dist-types/commands/CreateWebFunctionCommand.d.ts +0 -188
  60. package/dist-types/commands/CreateWebFunctionEndpointCommand.d.ts +0 -162
  61. package/dist-types/commands/CreateWebFunctionRevisionCommand.d.ts +0 -162
  62. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +0 -88
  63. package/dist-types/commands/DeleteWebFunctionCommand.d.ts +0 -87
  64. package/dist-types/commands/DeleteWebFunctionEndpointCommand.d.ts +0 -88
  65. package/dist-types/commands/DeleteWebFunctionRevisionCommand.d.ts +0 -88
  66. package/dist-types/commands/GetResourcePolicyCommand.d.ts +0 -87
  67. package/dist-types/commands/GetWebFunctionCommand.d.ts +0 -91
  68. package/dist-types/commands/GetWebFunctionEndpointCommand.d.ts +0 -137
  69. package/dist-types/commands/GetWebFunctionRevisionCommand.d.ts +0 -128
  70. package/dist-types/commands/ListTagsCommand.d.ts +0 -88
  71. package/dist-types/commands/ListWebFunctionEndpointsCommand.d.ts +0 -128
  72. package/dist-types/commands/ListWebFunctionRevisionsCommand.d.ts +0 -106
  73. package/dist-types/commands/ListWebFunctionsCommand.d.ts +0 -102
  74. package/dist-types/commands/PutResourcePolicyCommand.d.ts +0 -95
  75. package/dist-types/commands/TagResourceCommand.d.ts +0 -93
  76. package/dist-types/commands/UntagResourceCommand.d.ts +0 -90
  77. package/dist-types/commands/UpdateWebFunctionEndpointCommand.d.ts +0 -158
  78. package/dist-types/models/enums.d.ts +0 -120
  79. package/dist-types/pagination/Interfaces.d.ts +0 -8
  80. package/dist-types/pagination/ListWebFunctionEndpointsPaginator.d.ts +0 -7
  81. package/dist-types/pagination/ListWebFunctionRevisionsPaginator.d.ts +0 -7
  82. package/dist-types/pagination/ListWebFunctionsPaginator.d.ts +0 -7
  83. package/dist-types/pagination/index.d.ts +0 -4
  84. package/dist-types/ts3.4/commands/CreateWebFunctionCommand.d.ts +0 -39
  85. package/dist-types/ts3.4/commands/CreateWebFunctionEndpointCommand.d.ts +0 -42
  86. package/dist-types/ts3.4/commands/CreateWebFunctionRevisionCommand.d.ts +0 -42
  87. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +0 -38
  88. package/dist-types/ts3.4/commands/DeleteWebFunctionCommand.d.ts +0 -38
  89. package/dist-types/ts3.4/commands/DeleteWebFunctionEndpointCommand.d.ts +0 -38
  90. package/dist-types/ts3.4/commands/DeleteWebFunctionRevisionCommand.d.ts +0 -38
  91. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +0 -39
  92. package/dist-types/ts3.4/commands/GetWebFunctionCommand.d.ts +0 -38
  93. package/dist-types/ts3.4/commands/GetWebFunctionEndpointCommand.d.ts +0 -39
  94. package/dist-types/ts3.4/commands/GetWebFunctionRevisionCommand.d.ts +0 -39
  95. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +0 -38
  96. package/dist-types/ts3.4/commands/ListWebFunctionEndpointsCommand.d.ts +0 -42
  97. package/dist-types/ts3.4/commands/ListWebFunctionRevisionsCommand.d.ts +0 -42
  98. package/dist-types/ts3.4/commands/ListWebFunctionsCommand.d.ts +0 -38
  99. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +0 -39
  100. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +0 -38
  101. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +0 -38
  102. package/dist-types/ts3.4/commands/UpdateWebFunctionEndpointCommand.d.ts +0 -42
  103. package/dist-types/ts3.4/models/enums.d.ts +0 -57
  104. package/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -5
  105. package/dist-types/ts3.4/pagination/ListWebFunctionEndpointsPaginator.d.ts +0 -11
  106. package/dist-types/ts3.4/pagination/ListWebFunctionRevisionsPaginator.d.ts +0 -11
  107. package/dist-types/ts3.4/pagination/ListWebFunctionsPaginator.d.ts +0 -11
  108. package/dist-types/ts3.4/pagination/index.d.ts +0 -4
  109. package/dist-types/ts3.4/waiters/index.d.ts +0 -6
  110. package/dist-types/ts3.4/waiters/waitForWebFunctionActive.d.ts +0 -15
  111. package/dist-types/ts3.4/waiters/waitForWebFunctionDeleted.d.ts +0 -16
  112. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointActive.d.ts +0 -15
  113. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointDeleted.d.ts +0 -16
  114. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointUpdated.d.ts +0 -15
  115. package/dist-types/ts3.4/waiters/waitForWebFunctionRevisionActive.d.ts +0 -15
  116. package/dist-types/waiters/index.d.ts +0 -6
  117. package/dist-types/waiters/waitForWebFunctionActive.d.ts +0 -15
  118. package/dist-types/waiters/waitForWebFunctionDeleted.d.ts +0 -16
  119. package/dist-types/waiters/waitForWebFunctionEndpointActive.d.ts +0 -15
  120. package/dist-types/waiters/waitForWebFunctionEndpointDeleted.d.ts +0 -16
  121. package/dist-types/waiters/waitForWebFunctionEndpointUpdated.d.ts +0 -15
  122. package/dist-types/waiters/waitForWebFunctionRevisionActive.d.ts +0 -15
@@ -1,4 +0,0 @@
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
- }
@@ -1,48 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
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");
@@ -1,4 +0,0 @@
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");
@@ -1,4 +0,0 @@
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");
@@ -1,4 +0,0 @@
1
- export * from "./Interfaces";
2
- export * from "./ListWebFunctionEndpointsPaginator";
3
- export * from "./ListWebFunctionRevisionsPaginator";
4
- export * from "./ListWebFunctionsPaginator";
@@ -1,6 +0,0 @@
1
- export * from "./waitForWebFunctionActive";
2
- export * from "./waitForWebFunctionDeleted";
3
- export * from "./waitForWebFunctionEndpointActive";
4
- export * from "./waitForWebFunctionEndpointDeleted";
5
- export * from "./waitForWebFunctionEndpointUpdated";
6
- export * from "./waitForWebFunctionRevisionActive";
@@ -1,58 +0,0 @@
1
- import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
- import { GetWebFunctionCommand, } from "../commands/GetWebFunctionCommand";
3
- const checkState = async (client, input) => {
4
- let reason;
5
- try {
6
- let result = await client.send(new GetWebFunctionCommand(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 waitForWebFunctionActive = async (params, input) => {
51
- const serviceDefaults = { minDelay: 1, maxDelay: 300 };
52
- return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
- };
54
- export const waitUntilWebFunctionActive = async (params, input) => {
55
- const serviceDefaults = { minDelay: 1, maxDelay: 300 };
56
- const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
57
- return checkExceptions(result);
58
- };
@@ -1,34 +0,0 @@
1
- import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
- import { GetWebFunctionCommand, } from "../commands/GetWebFunctionCommand";
3
- const checkState = async (client, input) => {
4
- let reason;
5
- try {
6
- let result = await client.send(new GetWebFunctionCommand(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 waitForWebFunctionDeleted = async (params, input) => {
27
- const serviceDefaults = { minDelay: 1, maxDelay: 300 };
28
- return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
29
- };
30
- export const waitUntilWebFunctionDeleted = async (params, input) => {
31
- const serviceDefaults = { minDelay: 1, maxDelay: 300 };
32
- const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
33
- return checkExceptions(result);
34
- };
@@ -1,58 +0,0 @@
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
- };
@@ -1,34 +0,0 @@
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
- };
@@ -1,49 +0,0 @@
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
- };
@@ -1,49 +0,0 @@
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
- };
@@ -1,188 +0,0 @@
1
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { CreateWebFunctionRequest, CreateWebFunctionResponse } from "../models/models_0";
3
- /**
4
- * @public
5
- */
6
- export type { __MetadataBearer };
7
- /**
8
- * @public
9
- *
10
- * The input for {@link CreateWebFunctionCommand}.
11
- */
12
- export interface CreateWebFunctionCommandInput extends CreateWebFunctionRequest {
13
- }
14
- /**
15
- * @public
16
- *
17
- * The output of {@link CreateWebFunctionCommand}.
18
- */
19
- export interface CreateWebFunctionCommandOutput extends CreateWebFunctionResponse, __MetadataBearer {
20
- }
21
- declare const CreateWebFunctionCommand_base: {
22
- new (input: CreateWebFunctionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionCommandInput, CreateWebFunctionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
- new (input: CreateWebFunctionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionCommandInput, CreateWebFunctionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
- };
26
- /**
27
- * <p>Creates a web function with an initial revision and endpoint. To create a web function, you provide the function name, revision configuration (code and service settings), and endpoint configuration.</p> <p>To use this operation, you must have the <code>CreateWebFunction</code> permission on the web function. You don't need separate permissions for the initial revision or endpoint.</p> <note> <p>This API is experimental and for internal AWS use only. It is not yet available to external customers.</p> </note>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { LambdaWebClient, CreateWebFunctionCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
- * // const { LambdaWebClient, CreateWebFunctionCommand } = require("@aws-sdk/client-lambda-web"); // CommonJS import
33
- * // import type { LambdaWebClientConfig } from "@aws-sdk/client-lambda-web";
34
- * const config = {}; // type is LambdaWebClientConfig
35
- * const client = new LambdaWebClient(config);
36
- * const input = { // CreateWebFunctionRequest
37
- * functionName: "STRING_VALUE", // required
38
- * revisionConfig: { // RevisionConfig
39
- * description: "STRING_VALUE",
40
- * kmsKeyArn: "STRING_VALUE",
41
- * buildConfig: { // BuildConfig
42
- * codeConfig: { // CodeConfig
43
- * s3Object: { // S3Object
44
- * bucket: "STRING_VALUE", // required
45
- * key: "STRING_VALUE", // required
46
- * versionId: "STRING_VALUE",
47
- * },
48
- * },
49
- * runtimeConfig: { // RuntimeConfig
50
- * runtime: "STRING_VALUE", // required
51
- * },
52
- * },
53
- * serviceConfig: { // ServiceConfig
54
- * executionRoleArn: "STRING_VALUE", // required
55
- * timeoutSeconds: Number("int"),
56
- * maxConcurrencyPerEnvironment: Number("int"),
57
- * environmentVariables: { // EnvironmentVariables
58
- * "<keys>": "STRING_VALUE",
59
- * },
60
- * telemetryConfig: { // TelemetryConfig
61
- * loggingConfig: { // LoggingConfig
62
- * logGroup: "STRING_VALUE",
63
- * applicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
64
- * systemLogLevel: "DEBUG" || "INFO" || "WARN",
65
- * },
66
- * },
67
- * },
68
- * },
69
- * endpointConfig: { // EndpointConfig
70
- * endpointName: "STRING_VALUE", // required
71
- * description: "STRING_VALUE",
72
- * endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
73
- * authType: "ApplicationManaged" || "IamAuth", // required
74
- * autoDeploymentMode: "LatestRevision" || "Disabled",
75
- * regions: [ // RegionList
76
- * "STRING_VALUE",
77
- * ],
78
- * scalingConfig: { // ScalingConfig
79
- * maxEnvironments: Number("int"),
80
- * },
81
- * throttleConfig: { // ThrottleConfig
82
- * rateLimit: Number("int"),
83
- * },
84
- * },
85
- * tags: { // Tags
86
- * "<keys>": "STRING_VALUE",
87
- * },
88
- * };
89
- * const command = new CreateWebFunctionCommand(input);
90
- * const response = await client.send(command);
91
- * // { // CreateWebFunctionResponse
92
- * // functionName: "STRING_VALUE", // required
93
- * // functionArn: "STRING_VALUE", // required
94
- * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
95
- * // stateReason: "STRING_VALUE", // required
96
- * // createdAt: new Date("TIMESTAMP"), // required
97
- * // updatedAt: new Date("TIMESTAMP"), // required
98
- * // revision: { // FunctionRevisionSummary
99
- * // revisionArn: "STRING_VALUE", // required
100
- * // revisionId: "STRING_VALUE", // required
101
- * // description: "STRING_VALUE",
102
- * // state: "Pending" || "Active" || "Failed", // required
103
- * // stateReason: "STRING_VALUE", // required
104
- * // createdAt: new Date("TIMESTAMP"), // required
105
- * // },
106
- * // endpoint: { // FunctionEndpointSummary
107
- * // endpointArn: "STRING_VALUE", // required
108
- * // endpointName: "STRING_VALUE", // required
109
- * // description: "STRING_VALUE",
110
- * // endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
111
- * // domainName: "STRING_VALUE", // required
112
- * // authType: "ApplicationManaged" || "IamAuth", // required
113
- * // autoDeploymentMode: "LatestRevision" || "Disabled", // required
114
- * // revisionWeights: [ // RevisionWeightList // required
115
- * // { // RevisionWeight
116
- * // revisionId: "STRING_VALUE", // required
117
- * // weight: Number("int"), // required
118
- * // },
119
- * // ],
120
- * // regions: [ // RegionList // required
121
- * // "STRING_VALUE",
122
- * // ],
123
- * // scalingConfig: { // ScalingConfig
124
- * // maxEnvironments: Number("int"),
125
- * // },
126
- * // throttleConfig: { // ThrottleConfig
127
- * // rateLimit: Number("int"),
128
- * // },
129
- * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
130
- * // stateReason: "STRING_VALUE", // required
131
- * // updateStatus: "InProgress" || "Successful" || "Failed",
132
- * // updateStatusReason: "STRING_VALUE",
133
- * // createdAt: new Date("TIMESTAMP"), // required
134
- * // updatedAt: new Date("TIMESTAMP"), // required
135
- * // },
136
- * // tags: { // Tags
137
- * // "<keys>": "STRING_VALUE",
138
- * // },
139
- * // };
140
- *
141
- * ```
142
- *
143
- * @param CreateWebFunctionCommandInput - {@link CreateWebFunctionCommandInput}
144
- * @returns {@link CreateWebFunctionCommandOutput}
145
- * @see {@link CreateWebFunctionCommandInput} for command's `input` shape.
146
- * @see {@link CreateWebFunctionCommandOutput} for command's `response` shape.
147
- * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
148
- *
149
- * @throws {@link AccessDeniedException} (client fault)
150
- * <p>You do not have sufficient permissions to perform this operation.</p>
151
- *
152
- * @throws {@link ConflictException} (client fault)
153
- * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
154
- *
155
- * @throws {@link InternalServerException} (server fault)
156
- * <p>An internal server error occurred. Try again later.</p>
157
- *
158
- * @throws {@link ResourceNotFoundException} (client fault)
159
- * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
160
- *
161
- * @throws {@link ServiceQuotaExceededException} (client fault)
162
- * <p>A service quota was exceeded. Request a quota increase or reduce usage and try again.</p>
163
- *
164
- * @throws {@link ThrottlingException} (client fault)
165
- * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
166
- *
167
- * @throws {@link ValidationException} (client fault)
168
- * <p>The request failed validation. Check the request parameters and try again.</p>
169
- *
170
- * @throws {@link LambdaWebServiceException}
171
- * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
172
- *
173
- *
174
- * @public
175
- */
176
- export declare class CreateWebFunctionCommand extends CreateWebFunctionCommand_base {
177
- /** @internal type navigation helper, not in runtime. */
178
- protected static __types: {
179
- api: {
180
- input: CreateWebFunctionRequest;
181
- output: CreateWebFunctionResponse;
182
- };
183
- sdk: {
184
- input: CreateWebFunctionCommandInput;
185
- output: CreateWebFunctionCommandOutput;
186
- };
187
- };
188
- }