@aws-sdk/client-lambda-web 3.1149.0 → 3.1150.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 +141 -8
  2. package/dist-cjs/index.js +1122 -4
  3. package/dist-es/LambdaWeb.js +61 -1
  4. package/dist-es/commands/CreateWebFunctionCommand.js +4 -0
  5. package/dist-es/commands/CreateWebFunctionEndpointCommand.js +4 -0
  6. package/dist-es/commands/CreateWebFunctionRevisionCommand.js +4 -0
  7. package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
  8. package/dist-es/commands/DeleteWebFunctionCommand.js +4 -0
  9. package/dist-es/commands/DeleteWebFunctionEndpointCommand.js +4 -0
  10. package/dist-es/commands/DeleteWebFunctionRevisionCommand.js +4 -0
  11. package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  12. package/dist-es/commands/GetWebFunctionCommand.js +4 -0
  13. package/dist-es/commands/GetWebFunctionEndpointCommand.js +4 -0
  14. package/dist-es/commands/GetWebFunctionRevisionCommand.js +4 -0
  15. package/dist-es/commands/ListTagsCommand.js +4 -0
  16. package/dist-es/commands/ListWebFunctionEndpointsCommand.js +4 -0
  17. package/dist-es/commands/ListWebFunctionRevisionsCommand.js +4 -0
  18. package/dist-es/commands/ListWebFunctionsCommand.js +4 -0
  19. package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  20. package/dist-es/commands/TagResourceCommand.js +4 -0
  21. package/dist-es/commands/UntagResourceCommand.js +4 -0
  22. package/dist-es/commands/UpdateWebFunctionEndpointCommand.js +4 -0
  23. package/dist-es/commands/index.js +19 -0
  24. package/dist-es/index.js +3 -0
  25. package/dist-es/models/enums.js +48 -0
  26. package/dist-es/models/errors.js +68 -0
  27. package/dist-es/pagination/Interfaces.js +1 -0
  28. package/dist-es/pagination/ListWebFunctionEndpointsPaginator.js +4 -0
  29. package/dist-es/pagination/ListWebFunctionRevisionsPaginator.js +4 -0
  30. package/dist-es/pagination/ListWebFunctionsPaginator.js +4 -0
  31. package/dist-es/pagination/index.js +4 -0
  32. package/dist-es/schemas/schemas_0.js +515 -1
  33. package/dist-es/waiters/index.js +6 -0
  34. package/dist-es/waiters/waitForWebFunctionActive.js +58 -0
  35. package/dist-es/waiters/waitForWebFunctionDeleted.js +34 -0
  36. package/dist-es/waiters/waitForWebFunctionEndpointActive.js +58 -0
  37. package/dist-es/waiters/waitForWebFunctionEndpointDeleted.js +34 -0
  38. package/dist-es/waiters/waitForWebFunctionEndpointUpdated.js +49 -0
  39. package/dist-es/waiters/waitForWebFunctionRevisionActive.js +49 -0
  40. package/dist-types/LambdaWeb.d.ts +195 -2
  41. package/dist-types/LambdaWebClient.d.ts +22 -3
  42. package/dist-types/commandBuilder.d.ts +4 -4
  43. package/dist-types/commands/CreateWebFunctionCommand.d.ts +189 -0
  44. package/dist-types/commands/CreateWebFunctionEndpointCommand.d.ts +162 -0
  45. package/dist-types/commands/CreateWebFunctionRevisionCommand.d.ts +164 -0
  46. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
  47. package/dist-types/commands/DeleteWebFunctionCommand.d.ts +87 -0
  48. package/dist-types/commands/DeleteWebFunctionEndpointCommand.d.ts +88 -0
  49. package/dist-types/commands/DeleteWebFunctionRevisionCommand.d.ts +88 -0
  50. package/dist-types/commands/GetResourcePolicyCommand.d.ts +87 -0
  51. package/dist-types/commands/GetWebAccountSettingsCommand.d.ts +6 -6
  52. package/dist-types/commands/GetWebFunctionCommand.d.ts +91 -0
  53. package/dist-types/commands/GetWebFunctionEndpointCommand.d.ts +137 -0
  54. package/dist-types/commands/GetWebFunctionRevisionCommand.d.ts +129 -0
  55. package/dist-types/commands/ListTagsCommand.d.ts +88 -0
  56. package/dist-types/commands/ListWebFunctionEndpointsCommand.d.ts +128 -0
  57. package/dist-types/commands/ListWebFunctionRevisionsCommand.d.ts +106 -0
  58. package/dist-types/commands/ListWebFunctionsCommand.d.ts +102 -0
  59. package/dist-types/commands/PutResourcePolicyCommand.d.ts +95 -0
  60. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  61. package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
  62. package/dist-types/commands/UpdateWebFunctionEndpointCommand.d.ts +158 -0
  63. package/dist-types/commands/index.d.ts +19 -0
  64. package/dist-types/index.d.ts +4 -1
  65. package/dist-types/models/enums.d.ts +120 -0
  66. package/dist-types/models/errors.d.ts +95 -3
  67. package/dist-types/models/models_0.d.ts +1507 -6
  68. package/dist-types/pagination/Interfaces.d.ts +8 -0
  69. package/dist-types/pagination/ListWebFunctionEndpointsPaginator.d.ts +7 -0
  70. package/dist-types/pagination/ListWebFunctionRevisionsPaginator.d.ts +7 -0
  71. package/dist-types/pagination/ListWebFunctionsPaginator.d.ts +7 -0
  72. package/dist-types/pagination/index.d.ts +4 -0
  73. package/dist-types/schemas/schemas_0.d.ts +73 -0
  74. package/dist-types/ts3.4/LambdaWeb.d.ts +395 -0
  75. package/dist-types/ts3.4/LambdaWebClient.d.ts +112 -2
  76. package/dist-types/ts3.4/commandBuilder.d.ts +10 -9
  77. package/dist-types/ts3.4/commands/CreateWebFunctionCommand.d.ts +39 -0
  78. package/dist-types/ts3.4/commands/CreateWebFunctionEndpointCommand.d.ts +42 -0
  79. package/dist-types/ts3.4/commands/CreateWebFunctionRevisionCommand.d.ts +42 -0
  80. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
  81. package/dist-types/ts3.4/commands/DeleteWebFunctionCommand.d.ts +38 -0
  82. package/dist-types/ts3.4/commands/DeleteWebFunctionEndpointCommand.d.ts +38 -0
  83. package/dist-types/ts3.4/commands/DeleteWebFunctionRevisionCommand.d.ts +38 -0
  84. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  85. package/dist-types/ts3.4/commands/GetWebAccountSettingsCommand.d.ts +4 -4
  86. package/dist-types/ts3.4/commands/GetWebFunctionCommand.d.ts +38 -0
  87. package/dist-types/ts3.4/commands/GetWebFunctionEndpointCommand.d.ts +39 -0
  88. package/dist-types/ts3.4/commands/GetWebFunctionRevisionCommand.d.ts +39 -0
  89. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +38 -0
  90. package/dist-types/ts3.4/commands/ListWebFunctionEndpointsCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/ListWebFunctionRevisionsCommand.d.ts +42 -0
  92. package/dist-types/ts3.4/commands/ListWebFunctionsCommand.d.ts +38 -0
  93. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  94. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  95. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  96. package/dist-types/ts3.4/commands/UpdateWebFunctionEndpointCommand.d.ts +42 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +19 -0
  98. package/dist-types/ts3.4/index.d.ts +3 -0
  99. package/dist-types/ts3.4/models/enums.d.ts +57 -0
  100. package/dist-types/ts3.4/models/errors.d.ts +32 -0
  101. package/dist-types/ts3.4/models/models_0.d.ts +351 -0
  102. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  103. package/dist-types/ts3.4/pagination/ListWebFunctionEndpointsPaginator.d.ts +11 -0
  104. package/dist-types/ts3.4/pagination/ListWebFunctionRevisionsPaginator.d.ts +11 -0
  105. package/dist-types/ts3.4/pagination/ListWebFunctionsPaginator.d.ts +11 -0
  106. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  107. package/dist-types/ts3.4/schemas/schemas_0.d.ts +73 -0
  108. package/dist-types/ts3.4/waiters/index.d.ts +6 -0
  109. package/dist-types/ts3.4/waiters/waitForWebFunctionActive.d.ts +15 -0
  110. package/dist-types/ts3.4/waiters/waitForWebFunctionDeleted.d.ts +16 -0
  111. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
  112. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
  113. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
  114. package/dist-types/ts3.4/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
  115. package/dist-types/waiters/index.d.ts +6 -0
  116. package/dist-types/waiters/waitForWebFunctionActive.d.ts +15 -0
  117. package/dist-types/waiters/waitForWebFunctionDeleted.d.ts +16 -0
  118. package/dist-types/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
  119. package/dist-types/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
  120. package/dist-types/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
  121. package/dist-types/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
  122. package/package.json +3 -3
@@ -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 don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
65
+ *
66
+ * @throws {@link ServiceQuotaExceededException} (client fault)
67
+ * <p>The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. 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 don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. 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 don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
121
+ *
122
+ * @throws {@link ConflictException} (client fault)
123
+ * <p>The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.</p>
124
+ *
125
+ * @throws {@link InternalServerException} (server fault)
126
+ * <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
127
+ *
128
+ * @throws {@link ResourceNotFoundException} (client fault)
129
+ * <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
130
+ *
131
+ * @throws {@link ServiceQuotaExceededException} (client fault)
132
+ * <p>The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.</p>
133
+ *
134
+ * @throws {@link ThrottlingException} (client fault)
135
+ * <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
136
+ *
137
+ * @throws {@link ValidationException} (client fault)
138
+ * <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. 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
+ }
@@ -1 +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";
1
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";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * <note> <p>The AWS Lambda Web Functions APIs (<code>LambdaWeb</code> namespace) are experimental and for internal AWS use only. They are not yet available to external customers.</p> </note>
2
+ * <p>With AWS Lambda Web Functions, you can run web applications and APIs as HTTP servers on AWS Lambda (Lambda) without provisioning or managing servers. Use web functions to run REST APIs, server-rendered web applications, and other HTTP workloads while Lambda handles scaling and availability.</p> <p>A web function has one or more immutable revisions (code and configuration) and one or more endpoints that expose it over HTTPS.</p>
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
@@ -10,7 +10,10 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { LambdaWebExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export { Command as $Command } from "@smithy/core/client";
13
+ export * from "./pagination";
14
+ export * from "./waiters";
13
15
  export * from "./schemas/schemas_0";
16
+ export * from "./models/enums";
14
17
  export * from "./models/errors";
15
18
  export * from "./models/models_0";
16
19
  export { LambdaWebServiceException } from "./models/LambdaWebServiceException";
@@ -0,0 +1,120 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ApplicationLogLevel: {
6
+ readonly DEBUG: "DEBUG";
7
+ readonly ERROR: "ERROR";
8
+ readonly FATAL: "FATAL";
9
+ readonly INFO: "INFO";
10
+ readonly TRACE: "TRACE";
11
+ readonly WARN: "WARN";
12
+ };
13
+ /**
14
+ * @public
15
+ */
16
+ export type ApplicationLogLevel = (typeof ApplicationLogLevel)[keyof typeof ApplicationLogLevel];
17
+ /**
18
+ * @public
19
+ * @enum
20
+ */
21
+ export declare const AuthType: {
22
+ readonly APPLICATION_MANAGED: "ApplicationManaged";
23
+ readonly IAM_AUTH: "IamAuth";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type AuthType = (typeof AuthType)[keyof typeof AuthType];
29
+ /**
30
+ * @public
31
+ * @enum
32
+ */
33
+ export declare const AutoDeploymentMode: {
34
+ readonly DISABLED: "Disabled";
35
+ readonly LATEST_REVISION: "LatestRevision";
36
+ };
37
+ /**
38
+ * @public
39
+ */
40
+ export type AutoDeploymentMode = (typeof AutoDeploymentMode)[keyof typeof AutoDeploymentMode];
41
+ /**
42
+ * @public
43
+ * @enum
44
+ */
45
+ export declare const EndpointType: {
46
+ readonly HOME_REGION: "HomeRegion";
47
+ readonly MULTI_REGION: "MultiRegion";
48
+ readonly PER_REGION: "PerRegion";
49
+ };
50
+ /**
51
+ * @public
52
+ */
53
+ export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];
54
+ /**
55
+ * @public
56
+ * @enum
57
+ */
58
+ export declare const SystemLogLevel: {
59
+ readonly DEBUG: "DEBUG";
60
+ readonly INFO: "INFO";
61
+ readonly WARN: "WARN";
62
+ };
63
+ /**
64
+ * @public
65
+ */
66
+ export type SystemLogLevel = (typeof SystemLogLevel)[keyof typeof SystemLogLevel];
67
+ /**
68
+ * @public
69
+ * @enum
70
+ */
71
+ export declare const EndpointState: {
72
+ readonly ACTIVE: "Active";
73
+ readonly DELETING: "Deleting";
74
+ readonly FAILED: "Failed";
75
+ readonly PENDING: "Pending";
76
+ };
77
+ /**
78
+ * @public
79
+ */
80
+ export type EndpointState = (typeof EndpointState)[keyof typeof EndpointState];
81
+ /**
82
+ * @public
83
+ * @enum
84
+ */
85
+ export declare const EndpointUpdateStatus: {
86
+ readonly FAILED: "Failed";
87
+ readonly IN_PROGRESS: "InProgress";
88
+ readonly SUCCESSFUL: "Successful";
89
+ };
90
+ /**
91
+ * @public
92
+ */
93
+ export type EndpointUpdateStatus = (typeof EndpointUpdateStatus)[keyof typeof EndpointUpdateStatus];
94
+ /**
95
+ * @public
96
+ * @enum
97
+ */
98
+ export declare const RevisionState: {
99
+ readonly ACTIVE: "Active";
100
+ readonly FAILED: "Failed";
101
+ readonly PENDING: "Pending";
102
+ };
103
+ /**
104
+ * @public
105
+ */
106
+ export type RevisionState = (typeof RevisionState)[keyof typeof RevisionState];
107
+ /**
108
+ * @public
109
+ * @enum
110
+ */
111
+ export declare const FunctionState: {
112
+ readonly ACTIVE: "Active";
113
+ readonly DELETING: "Deleting";
114
+ readonly FAILED: "Failed";
115
+ readonly PENDING: "Pending";
116
+ };
117
+ /**
118
+ * @public
119
+ */
120
+ export type FunctionState = (typeof FunctionState)[keyof typeof FunctionState];
@@ -1,7 +1,7 @@
1
1
  import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { LambdaWebServiceException as __BaseException } from "./LambdaWebServiceException";
3
3
  /**
4
- * <p>You do not have sufficient permissions to perform this operation.</p>
4
+ * <p>You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
5
5
  * @public
6
6
  */
7
7
  export declare class AccessDeniedException extends __BaseException {
@@ -14,7 +14,30 @@ export declare class AccessDeniedException extends __BaseException {
14
14
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
15
  }
16
16
  /**
17
- * <p>An internal server error occurred. Try again later.</p>
17
+ * <p>The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.</p>
18
+ * @public
19
+ */
20
+ export declare class ConflictException extends __BaseException {
21
+ static readonly shapeId: string;
22
+ readonly name: "ConflictException";
23
+ readonly $fault: "client";
24
+ /**
25
+ * <p>The identifier of the resource in conflict.</p>
26
+ * @public
27
+ */
28
+ resourceId?: string | undefined;
29
+ /**
30
+ * <p>The type of the resource in conflict.</p>
31
+ * @public
32
+ */
33
+ resourceType?: string | undefined;
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
18
41
  * @public
19
42
  */
20
43
  export declare class InternalServerException extends __BaseException {
@@ -28,7 +51,63 @@ export declare class InternalServerException extends __BaseException {
28
51
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
29
52
  }
30
53
  /**
31
- * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
54
+ * <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
55
+ * @public
56
+ */
57
+ export declare class ResourceNotFoundException extends __BaseException {
58
+ static readonly shapeId: string;
59
+ readonly name: "ResourceNotFoundException";
60
+ readonly $fault: "client";
61
+ /**
62
+ * <p>The identifier of the resource that was not found.</p>
63
+ * @public
64
+ */
65
+ resourceId?: string | undefined;
66
+ /**
67
+ * <p>The type of the resource that was not found.</p>
68
+ * @public
69
+ */
70
+ resourceType?: string | undefined;
71
+ /**
72
+ * @internal
73
+ */
74
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
75
+ }
76
+ /**
77
+ * <p>The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.</p>
78
+ * @public
79
+ */
80
+ export declare class ServiceQuotaExceededException extends __BaseException {
81
+ static readonly shapeId: string;
82
+ readonly name: "ServiceQuotaExceededException";
83
+ readonly $fault: "client";
84
+ /**
85
+ * <p>The identifier of the resource that exceeded the quota.</p>
86
+ * @public
87
+ */
88
+ resourceId?: string | undefined;
89
+ /**
90
+ * <p>The type of resource that exceeded the quota.</p>
91
+ * @public
92
+ */
93
+ resourceType?: string | undefined;
94
+ /**
95
+ * <p>The service code of the service that owns the quota.</p>
96
+ * @public
97
+ */
98
+ serviceCode?: string | undefined;
99
+ /**
100
+ * <p>The quota code of the exceeded quota.</p>
101
+ * @public
102
+ */
103
+ quotaCode?: string | undefined;
104
+ /**
105
+ * @internal
106
+ */
107
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
108
+ }
109
+ /**
110
+ * <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
32
111
  * @public
33
112
  */
34
113
  export declare class ThrottlingException extends __BaseException {
@@ -58,3 +137,16 @@ export declare class ThrottlingException extends __BaseException {
58
137
  */
59
138
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
60
139
  }
140
+ /**
141
+ * <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
142
+ * @public
143
+ */
144
+ export declare class ValidationException extends __BaseException {
145
+ static readonly shapeId: string;
146
+ readonly name: "ValidationException";
147
+ readonly $fault: "client";
148
+ /**
149
+ * @internal
150
+ */
151
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
152
+ }