@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,14 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from LambdaWeb service.
8
+ */
9
+ export declare class LambdaWebServiceException extends __ServiceException {
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(options: __ServiceExceptionOptions);
14
+ }
@@ -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];
@@ -0,0 +1,145 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import { LambdaWebServiceException as __BaseException } from "./LambdaWebServiceException";
3
+ /**
4
+ * <p>You do not have sufficient permissions to perform this operation.</p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
17
+ * @public
18
+ */
19
+ export declare class ConflictException extends __BaseException {
20
+ readonly name: "ConflictException";
21
+ readonly $fault: "client";
22
+ /**
23
+ * <p>The identifier of the resource in conflict.</p>
24
+ * @public
25
+ */
26
+ resourceId?: string | undefined;
27
+ /**
28
+ * <p>The type of the resource in conflict.</p>
29
+ * @public
30
+ */
31
+ resourceType?: string | undefined;
32
+ /**
33
+ * @internal
34
+ */
35
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
36
+ }
37
+ /**
38
+ * <p>An internal server error occurred. Try again later.</p>
39
+ * @public
40
+ */
41
+ export declare class InternalServerException extends __BaseException {
42
+ readonly name: "InternalServerException";
43
+ readonly $fault: "server";
44
+ $retryable: {};
45
+ /**
46
+ * @internal
47
+ */
48
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
49
+ }
50
+ /**
51
+ * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
52
+ * @public
53
+ */
54
+ export declare class ResourceNotFoundException extends __BaseException {
55
+ readonly name: "ResourceNotFoundException";
56
+ readonly $fault: "client";
57
+ /**
58
+ * <p>The identifier of the resource that was not found.</p>
59
+ * @public
60
+ */
61
+ resourceId?: string | undefined;
62
+ /**
63
+ * <p>The type of the resource that was not found.</p>
64
+ * @public
65
+ */
66
+ resourceType?: string | undefined;
67
+ /**
68
+ * @internal
69
+ */
70
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
71
+ }
72
+ /**
73
+ * <p>A service quota was exceeded. Request a quota increase or reduce usage and try again.</p>
74
+ * @public
75
+ */
76
+ export declare class ServiceQuotaExceededException extends __BaseException {
77
+ readonly name: "ServiceQuotaExceededException";
78
+ readonly $fault: "client";
79
+ /**
80
+ * <p>The identifier of the resource that exceeded the quota.</p>
81
+ * @public
82
+ */
83
+ resourceId?: string | undefined;
84
+ /**
85
+ * <p>The type of resource that exceeded the quota.</p>
86
+ * @public
87
+ */
88
+ resourceType?: string | undefined;
89
+ /**
90
+ * <p>The service code of the service that owns the quota.</p>
91
+ * @public
92
+ */
93
+ serviceCode?: string | undefined;
94
+ /**
95
+ * <p>The quota code of the exceeded quota.</p>
96
+ * @public
97
+ */
98
+ quotaCode?: string | undefined;
99
+ /**
100
+ * @internal
101
+ */
102
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
103
+ }
104
+ /**
105
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
106
+ * @public
107
+ */
108
+ export declare class ThrottlingException extends __BaseException {
109
+ readonly name: "ThrottlingException";
110
+ readonly $fault: "client";
111
+ $retryable: {
112
+ throttling: boolean;
113
+ };
114
+ /**
115
+ * <p>The number of seconds to wait before retrying the request.</p>
116
+ * @public
117
+ */
118
+ retryAfterSeconds?: number | undefined;
119
+ /**
120
+ * <p>The service code of the throttled service.</p>
121
+ * @public
122
+ */
123
+ serviceCode?: string | undefined;
124
+ /**
125
+ * <p>The quota code that was exceeded, if applicable.</p>
126
+ * @public
127
+ */
128
+ quotaCode?: string | undefined;
129
+ /**
130
+ * @internal
131
+ */
132
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
133
+ }
134
+ /**
135
+ * <p>The request failed validation. Check the request parameters and try again.</p>
136
+ * @public
137
+ */
138
+ export declare class ValidationException extends __BaseException {
139
+ readonly name: "ValidationException";
140
+ readonly $fault: "client";
141
+ /**
142
+ * @internal
143
+ */
144
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
145
+ }