@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,102 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListWebFunctionsRequest, ListWebFunctionsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListWebFunctionsCommand}.
11
+ */
12
+ export interface ListWebFunctionsCommandInput extends ListWebFunctionsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListWebFunctionsCommand}.
18
+ */
19
+ export interface ListWebFunctionsCommandOutput extends ListWebFunctionsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListWebFunctionsCommand_base: {
22
+ new (input: ListWebFunctionsCommandInput): import("@smithy/core/client").CommandImpl<ListWebFunctionsCommandInput, ListWebFunctionsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListWebFunctionsCommandInput]): import("@smithy/core/client").CommandImpl<ListWebFunctionsCommandInput, ListWebFunctionsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Lists web functions in your account. We recommend using pagination to ensure that the operation returns quickly and successfully.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaWebClient, ListWebFunctionsCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
+ * // const { LambdaWebClient, ListWebFunctionsCommand } = 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 = { // ListWebFunctionsRequest
37
+ * filters: [ // FilterList
38
+ * { // Filter
39
+ * name: "STRING_VALUE", // required
40
+ * values: [ // FilterValueList // required
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * },
44
+ * ],
45
+ * maxResults: Number("int"),
46
+ * nextToken: "STRING_VALUE",
47
+ * };
48
+ * const command = new ListWebFunctionsCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // ListWebFunctionsResponse
51
+ * // functions: [ // FunctionSummaryList // required
52
+ * // { // FunctionSummary
53
+ * // functionName: "STRING_VALUE", // required
54
+ * // functionArn: "STRING_VALUE", // required
55
+ * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
56
+ * // stateReason: "STRING_VALUE", // required
57
+ * // createdAt: new Date("TIMESTAMP"), // required
58
+ * // updatedAt: new Date("TIMESTAMP"), // required
59
+ * // },
60
+ * // ],
61
+ * // nextToken: "STRING_VALUE",
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param ListWebFunctionsCommandInput - {@link ListWebFunctionsCommandInput}
67
+ * @returns {@link ListWebFunctionsCommandOutput}
68
+ * @see {@link ListWebFunctionsCommandInput} for command's `input` shape.
69
+ * @see {@link ListWebFunctionsCommandOutput} for command's `response` shape.
70
+ * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
71
+ *
72
+ * @throws {@link AccessDeniedException} (client fault)
73
+ * <p>You do not have sufficient permissions to perform this operation.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>An internal server error occurred. Try again later.</p>
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>The request failed validation. Check the request parameters and try again.</p>
83
+ *
84
+ * @throws {@link LambdaWebServiceException}
85
+ * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
86
+ *
87
+ *
88
+ * @public
89
+ */
90
+ export declare class ListWebFunctionsCommand extends ListWebFunctionsCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: ListWebFunctionsRequest;
95
+ output: ListWebFunctionsResponse;
96
+ };
97
+ sdk: {
98
+ input: ListWebFunctionsCommandInput;
99
+ output: ListWebFunctionsCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -0,0 +1,95 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link PutResourcePolicyCommand}.
11
+ */
12
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link PutResourcePolicyCommand}.
18
+ */
19
+ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
20
+ }
21
+ declare const PutResourcePolicyCommand_base: {
22
+ new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Adds or updates a resource-based policy on a web function. A resource-based policy grants permissions to other AWS accounts or services to perform actions on the web function.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaWebClient, PutResourcePolicyCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
+ * // const { LambdaWebClient, PutResourcePolicyCommand } = 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 = { // PutResourcePolicyRequest
37
+ * resourceArn: "STRING_VALUE", // required
38
+ * policy: "STRING_VALUE", // required
39
+ * revisionId: "STRING_VALUE",
40
+ * };
41
+ * const command = new PutResourcePolicyCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // PutResourcePolicyResponse
44
+ * // policy: "STRING_VALUE", // required
45
+ * // revisionId: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
51
+ * @returns {@link PutResourcePolicyCommandOutput}
52
+ * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
53
+ * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
54
+ * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You do not have sufficient permissions to perform this operation.</p>
58
+ *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>An internal server error occurred. Try again later.</p>
64
+ *
65
+ * @throws {@link ResourceNotFoundException} (client fault)
66
+ * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
67
+ *
68
+ * @throws {@link ServiceQuotaExceededException} (client fault)
69
+ * <p>A service quota was exceeded. Request a quota increase or reduce usage and try again.</p>
70
+ *
71
+ * @throws {@link ThrottlingException} (client fault)
72
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ * <p>The request failed validation. Check the request parameters and try again.</p>
76
+ *
77
+ * @throws {@link LambdaWebServiceException}
78
+ * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
79
+ *
80
+ *
81
+ * @public
82
+ */
83
+ export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
84
+ /** @internal type navigation helper, not in runtime. */
85
+ protected static __types: {
86
+ api: {
87
+ input: PutResourcePolicyRequest;
88
+ output: PutResourcePolicyResponse;
89
+ };
90
+ sdk: {
91
+ input: PutResourcePolicyCommandInput;
92
+ output: PutResourcePolicyCommandOutput;
93
+ };
94
+ };
95
+ }
@@ -0,0 +1,93 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { TagResourceRequest } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link TagResourceCommand}.
11
+ */
12
+ export interface TagResourceCommandInput extends TagResourceRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link TagResourceCommand}.
18
+ */
19
+ export interface TagResourceCommandOutput extends __MetadataBearer {
20
+ }
21
+ declare const TagResourceCommand_base: {
22
+ new (input: TagResourceCommandInput): import("@smithy/core/client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: TagResourceCommandInput): import("@smithy/core/client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Adds tags to a web function. If a tag key already exists, the existing value is overwritten with the new value.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaWebClient, TagResourceCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
+ * // const { LambdaWebClient, TagResourceCommand } = 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 = { // TagResourceRequest
37
+ * resource: "STRING_VALUE", // required
38
+ * tags: { // Tags // required
39
+ * "<keys>": "STRING_VALUE",
40
+ * },
41
+ * };
42
+ * const command = new TagResourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
49
+ * @returns {@link TagResourceCommandOutput}
50
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
51
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
52
+ * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient permissions to perform this operation.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>An internal server error occurred. Try again later.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
65
+ *
66
+ * @throws {@link ServiceQuotaExceededException} (client fault)
67
+ * <p>A service quota was exceeded. Request a quota increase or reduce usage and try again.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The request failed validation. Check the request parameters and try again.</p>
74
+ *
75
+ * @throws {@link LambdaWebServiceException}
76
+ * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class TagResourceCommand extends TagResourceCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: TagResourceRequest;
86
+ output: {};
87
+ };
88
+ sdk: {
89
+ input: TagResourceCommandInput;
90
+ output: TagResourceCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -0,0 +1,90 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UntagResourceRequest } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UntagResourceCommand}.
11
+ */
12
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UntagResourceCommand}.
18
+ */
19
+ export interface UntagResourceCommandOutput extends __MetadataBearer {
20
+ }
21
+ declare const UntagResourceCommand_base: {
22
+ new (input: UntagResourceCommandInput): import("@smithy/core/client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UntagResourceCommandInput): import("@smithy/core/client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Removes tags from a web function.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaWebClient, UntagResourceCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
+ * // const { LambdaWebClient, UntagResourceCommand } = 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 = { // UntagResourceRequest
37
+ * resource: "STRING_VALUE", // required
38
+ * tagKeys: [ // TagKeyList // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * };
42
+ * const command = new UntagResourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
49
+ * @returns {@link UntagResourceCommandOutput}
50
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
51
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
52
+ * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient permissions to perform this operation.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>An internal server error occurred. Try again later.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The request failed validation. Check the request parameters and try again.</p>
71
+ *
72
+ * @throws {@link LambdaWebServiceException}
73
+ * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
74
+ *
75
+ *
76
+ * @public
77
+ */
78
+ export declare class UntagResourceCommand extends UntagResourceCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: UntagResourceRequest;
83
+ output: {};
84
+ };
85
+ sdk: {
86
+ input: UntagResourceCommandInput;
87
+ output: UntagResourceCommandOutput;
88
+ };
89
+ };
90
+ }
@@ -0,0 +1,158 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateWebFunctionEndpointRequest, UpdateWebFunctionEndpointResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateWebFunctionEndpointCommand}.
11
+ */
12
+ export interface UpdateWebFunctionEndpointCommandInput extends UpdateWebFunctionEndpointRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateWebFunctionEndpointCommand}.
18
+ */
19
+ export interface UpdateWebFunctionEndpointCommandOutput extends UpdateWebFunctionEndpointResponse, __MetadataBearer {
20
+ }
21
+ declare const UpdateWebFunctionEndpointCommand_base: {
22
+ new (input: UpdateWebFunctionEndpointCommandInput): import("@smithy/core/client").CommandImpl<UpdateWebFunctionEndpointCommandInput, UpdateWebFunctionEndpointCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateWebFunctionEndpointCommandInput): import("@smithy/core/client").CommandImpl<UpdateWebFunctionEndpointCommandInput, UpdateWebFunctionEndpointCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates the configuration of a web function endpoint. You can modify the authorization type, auto-deployment mode, revision weights, scaling, and throttling settings.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaWebClient, UpdateWebFunctionEndpointCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
+ * // const { LambdaWebClient, UpdateWebFunctionEndpointCommand } = 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 = { // UpdateWebFunctionEndpointRequest
37
+ * functionName: "STRING_VALUE", // required
38
+ * endpointName: "STRING_VALUE", // required
39
+ * description: "STRING_VALUE",
40
+ * authType: "ApplicationManaged" || "IamAuth",
41
+ * autoDeploymentMode: "LatestRevision" || "Disabled",
42
+ * revisionWeights: [ // RevisionWeightList
43
+ * { // RevisionWeight
44
+ * revisionId: "STRING_VALUE", // required
45
+ * weight: Number("int"), // required
46
+ * },
47
+ * ],
48
+ * scalingConfig: { // ScalingConfig
49
+ * maxEnvironments: Number("int"),
50
+ * },
51
+ * throttleConfig: { // ThrottleConfig
52
+ * rateLimit: Number("int"),
53
+ * },
54
+ * };
55
+ * const command = new UpdateWebFunctionEndpointCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // UpdateWebFunctionEndpointResponse
58
+ * // functionArn: "STRING_VALUE", // required
59
+ * // endpointArn: "STRING_VALUE", // required
60
+ * // endpointName: "STRING_VALUE", // required
61
+ * // description: "STRING_VALUE",
62
+ * // endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
63
+ * // domainName: "STRING_VALUE", // required
64
+ * // authType: "ApplicationManaged" || "IamAuth", // required
65
+ * // autoDeploymentMode: "LatestRevision" || "Disabled", // required
66
+ * // revisionWeights: [ // RevisionWeightList // required
67
+ * // { // RevisionWeight
68
+ * // revisionId: "STRING_VALUE", // required
69
+ * // weight: Number("int"), // required
70
+ * // },
71
+ * // ],
72
+ * // regions: [ // RegionList // required
73
+ * // "STRING_VALUE",
74
+ * // ],
75
+ * // scalingConfig: { // ScalingConfig
76
+ * // maxEnvironments: Number("int"),
77
+ * // },
78
+ * // throttleConfig: { // ThrottleConfig
79
+ * // rateLimit: Number("int"),
80
+ * // },
81
+ * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
82
+ * // stateReason: "STRING_VALUE", // required
83
+ * // updateStatus: "InProgress" || "Successful" || "Failed",
84
+ * // updateStatusReason: "STRING_VALUE",
85
+ * // regionalEndpoints: { // RegionalEndpoints // required
86
+ * // "<keys>": { // RegionalEndpoint
87
+ * // domainName: "STRING_VALUE",
88
+ * // authType: "ApplicationManaged" || "IamAuth", // required
89
+ * // revisionWeights: [ // required
90
+ * // {
91
+ * // revisionId: "STRING_VALUE", // required
92
+ * // weight: Number("int"), // required
93
+ * // },
94
+ * // ],
95
+ * // scalingConfig: {
96
+ * // maxEnvironments: Number("int"),
97
+ * // },
98
+ * // throttleConfig: {
99
+ * // rateLimit: Number("int"),
100
+ * // },
101
+ * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
102
+ * // stateReason: "STRING_VALUE", // required
103
+ * // updateStatus: "InProgress" || "Successful" || "Failed",
104
+ * // updateStatusReason: "STRING_VALUE",
105
+ * // },
106
+ * // },
107
+ * // createdAt: new Date("TIMESTAMP"), // required
108
+ * // updatedAt: new Date("TIMESTAMP"), // required
109
+ * // };
110
+ *
111
+ * ```
112
+ *
113
+ * @param UpdateWebFunctionEndpointCommandInput - {@link UpdateWebFunctionEndpointCommandInput}
114
+ * @returns {@link UpdateWebFunctionEndpointCommandOutput}
115
+ * @see {@link UpdateWebFunctionEndpointCommandInput} for command's `input` shape.
116
+ * @see {@link UpdateWebFunctionEndpointCommandOutput} for command's `response` shape.
117
+ * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
118
+ *
119
+ * @throws {@link AccessDeniedException} (client fault)
120
+ * <p>You do not have sufficient permissions to perform this operation.</p>
121
+ *
122
+ * @throws {@link ConflictException} (client fault)
123
+ * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
124
+ *
125
+ * @throws {@link InternalServerException} (server fault)
126
+ * <p>An internal server error occurred. Try again later.</p>
127
+ *
128
+ * @throws {@link ResourceNotFoundException} (client fault)
129
+ * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
130
+ *
131
+ * @throws {@link ServiceQuotaExceededException} (client fault)
132
+ * <p>A service quota was exceeded. Request a quota increase or reduce usage and try again.</p>
133
+ *
134
+ * @throws {@link ThrottlingException} (client fault)
135
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
136
+ *
137
+ * @throws {@link ValidationException} (client fault)
138
+ * <p>The request failed validation. Check the request parameters and try again.</p>
139
+ *
140
+ * @throws {@link LambdaWebServiceException}
141
+ * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
142
+ *
143
+ *
144
+ * @public
145
+ */
146
+ export declare class UpdateWebFunctionEndpointCommand extends UpdateWebFunctionEndpointCommand_base {
147
+ /** @internal type navigation helper, not in runtime. */
148
+ protected static __types: {
149
+ api: {
150
+ input: UpdateWebFunctionEndpointRequest;
151
+ output: UpdateWebFunctionEndpointResponse;
152
+ };
153
+ sdk: {
154
+ input: UpdateWebFunctionEndpointCommandInput;
155
+ output: UpdateWebFunctionEndpointCommandOutput;
156
+ };
157
+ };
158
+ }
@@ -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,50 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | undefined | Provider<string | undefined>;
7
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ /**
12
+ * @public
13
+ */
14
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
15
+ defaultSigningName: string;
16
+ };
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare const commonParams: {
25
+ readonly UseFIPS: {
26
+ readonly type: "builtInParams";
27
+ readonly name: "useFipsEndpoint";
28
+ };
29
+ readonly Endpoint: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "endpoint";
32
+ };
33
+ readonly Region: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "region";
36
+ };
37
+ readonly UseDualStack: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "useDualstackEndpoint";
40
+ };
41
+ };
42
+ /**
43
+ * @internal
44
+ */
45
+ export interface EndpointParameters extends __EndpointParameters {
46
+ Region?: string | undefined;
47
+ UseDualStack?: boolean | undefined;
48
+ UseFIPS?: boolean | undefined;
49
+ Endpoint?: string | undefined;
50
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface LambdaWebExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * <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>
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export * from "./LambdaWebClient";
7
+ export * from "./LambdaWeb";
8
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
+ export type { RuntimeExtension } from "./runtimeExtensions";
10
+ export type { LambdaWebExtensionConfiguration } from "./extensionConfiguration";
11
+ export * from "./commands";
12
+ export { Command as $Command } from "@smithy/core/client";
13
+ export * from "./pagination";
14
+ export * from "./waiters";
15
+ export * from "./schemas/schemas_0";
16
+ export * from "./models/enums";
17
+ export * from "./models/errors";
18
+ export * from "./models/models_0";
19
+ export { LambdaWebServiceException } from "./models/LambdaWebServiceException";