@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,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { type LambdaWebClientResolvedConfig } from "../LambdaWebClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface LambdaWebHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface LambdaWebHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<LambdaWebClientResolvedConfig, HandlerExecutionContext, LambdaWebHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultLambdaWebHttpAuthSchemeParametersProvider: (config: LambdaWebClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<LambdaWebHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface LambdaWebHttpAuthSchemeProvider extends HttpAuthSchemeProvider<LambdaWebHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultLambdaWebHttpAuthSchemeProvider: LambdaWebHttpAuthSchemeProvider;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: LambdaWebHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: LambdaWebHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { LambdaWebClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./LambdaWebClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, LambdaWebClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, LambdaWebClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -0,0 +1,188 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateWebFunctionRequest, CreateWebFunctionResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateWebFunctionCommand}.
11
+ */
12
+ export interface CreateWebFunctionCommandInput extends CreateWebFunctionRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateWebFunctionCommand}.
18
+ */
19
+ export interface CreateWebFunctionCommandOutput extends CreateWebFunctionResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateWebFunctionCommand_base: {
22
+ new (input: CreateWebFunctionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionCommandInput, CreateWebFunctionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateWebFunctionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionCommandInput, CreateWebFunctionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a web function with an initial revision and endpoint. To create a web function, you provide the function name, revision configuration (code and service settings), and endpoint configuration.</p> <p>To use this operation, you must have the <code>CreateWebFunction</code> permission on the web function. You don't need separate permissions for the initial revision or endpoint.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaWebClient, CreateWebFunctionCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
+ * // const { LambdaWebClient, CreateWebFunctionCommand } = require("@aws-sdk/client-lambda-web"); // CommonJS import
33
+ * // import type { LambdaWebClientConfig } from "@aws-sdk/client-lambda-web";
34
+ * const config = {}; // type is LambdaWebClientConfig
35
+ * const client = new LambdaWebClient(config);
36
+ * const input = { // CreateWebFunctionRequest
37
+ * functionName: "STRING_VALUE", // required
38
+ * revisionConfig: { // RevisionConfig
39
+ * description: "STRING_VALUE",
40
+ * kmsKeyArn: "STRING_VALUE",
41
+ * buildConfig: { // BuildConfig
42
+ * codeConfig: { // CodeConfig
43
+ * s3Object: { // S3Object
44
+ * bucket: "STRING_VALUE", // required
45
+ * key: "STRING_VALUE", // required
46
+ * versionId: "STRING_VALUE",
47
+ * },
48
+ * },
49
+ * runtimeConfig: { // RuntimeConfig
50
+ * runtime: "STRING_VALUE", // required
51
+ * },
52
+ * },
53
+ * serviceConfig: { // ServiceConfig
54
+ * executionRoleArn: "STRING_VALUE", // required
55
+ * timeoutSeconds: Number("int"),
56
+ * maxConcurrencyPerEnvironment: Number("int"),
57
+ * environmentVariables: { // EnvironmentVariables
58
+ * "<keys>": "STRING_VALUE",
59
+ * },
60
+ * telemetryConfig: { // TelemetryConfig
61
+ * loggingConfig: { // LoggingConfig
62
+ * logGroup: "STRING_VALUE",
63
+ * applicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
64
+ * systemLogLevel: "DEBUG" || "INFO" || "WARN",
65
+ * },
66
+ * },
67
+ * },
68
+ * },
69
+ * endpointConfig: { // EndpointConfig
70
+ * endpointName: "STRING_VALUE", // required
71
+ * description: "STRING_VALUE",
72
+ * endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
73
+ * authType: "ApplicationManaged" || "IamAuth", // required
74
+ * autoDeploymentMode: "LatestRevision" || "Disabled",
75
+ * regions: [ // RegionList
76
+ * "STRING_VALUE",
77
+ * ],
78
+ * scalingConfig: { // ScalingConfig
79
+ * maxEnvironments: Number("int"),
80
+ * },
81
+ * throttleConfig: { // ThrottleConfig
82
+ * rateLimit: Number("int"),
83
+ * },
84
+ * },
85
+ * tags: { // Tags
86
+ * "<keys>": "STRING_VALUE",
87
+ * },
88
+ * };
89
+ * const command = new CreateWebFunctionCommand(input);
90
+ * const response = await client.send(command);
91
+ * // { // CreateWebFunctionResponse
92
+ * // functionName: "STRING_VALUE", // required
93
+ * // functionArn: "STRING_VALUE", // required
94
+ * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
95
+ * // stateReason: "STRING_VALUE", // required
96
+ * // createdAt: new Date("TIMESTAMP"), // required
97
+ * // updatedAt: new Date("TIMESTAMP"), // required
98
+ * // revision: { // FunctionRevisionSummary
99
+ * // revisionArn: "STRING_VALUE", // required
100
+ * // revisionId: "STRING_VALUE", // required
101
+ * // description: "STRING_VALUE",
102
+ * // state: "Pending" || "Active" || "Failed", // required
103
+ * // stateReason: "STRING_VALUE", // required
104
+ * // createdAt: new Date("TIMESTAMP"), // required
105
+ * // },
106
+ * // endpoint: { // FunctionEndpointSummary
107
+ * // endpointArn: "STRING_VALUE", // required
108
+ * // endpointName: "STRING_VALUE", // required
109
+ * // description: "STRING_VALUE",
110
+ * // endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
111
+ * // domainName: "STRING_VALUE", // required
112
+ * // authType: "ApplicationManaged" || "IamAuth", // required
113
+ * // autoDeploymentMode: "LatestRevision" || "Disabled", // required
114
+ * // revisionWeights: [ // RevisionWeightList // required
115
+ * // { // RevisionWeight
116
+ * // revisionId: "STRING_VALUE", // required
117
+ * // weight: Number("int"), // required
118
+ * // },
119
+ * // ],
120
+ * // regions: [ // RegionList // required
121
+ * // "STRING_VALUE",
122
+ * // ],
123
+ * // scalingConfig: { // ScalingConfig
124
+ * // maxEnvironments: Number("int"),
125
+ * // },
126
+ * // throttleConfig: { // ThrottleConfig
127
+ * // rateLimit: Number("int"),
128
+ * // },
129
+ * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
130
+ * // stateReason: "STRING_VALUE", // required
131
+ * // updateStatus: "InProgress" || "Successful" || "Failed",
132
+ * // updateStatusReason: "STRING_VALUE",
133
+ * // createdAt: new Date("TIMESTAMP"), // required
134
+ * // updatedAt: new Date("TIMESTAMP"), // required
135
+ * // },
136
+ * // tags: { // Tags
137
+ * // "<keys>": "STRING_VALUE",
138
+ * // },
139
+ * // };
140
+ *
141
+ * ```
142
+ *
143
+ * @param CreateWebFunctionCommandInput - {@link CreateWebFunctionCommandInput}
144
+ * @returns {@link CreateWebFunctionCommandOutput}
145
+ * @see {@link CreateWebFunctionCommandInput} for command's `input` shape.
146
+ * @see {@link CreateWebFunctionCommandOutput} for command's `response` shape.
147
+ * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
148
+ *
149
+ * @throws {@link AccessDeniedException} (client fault)
150
+ * <p>You do not have sufficient permissions to perform this operation.</p>
151
+ *
152
+ * @throws {@link ConflictException} (client fault)
153
+ * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
154
+ *
155
+ * @throws {@link InternalServerException} (server fault)
156
+ * <p>An internal server error occurred. Try again later.</p>
157
+ *
158
+ * @throws {@link ResourceNotFoundException} (client fault)
159
+ * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
160
+ *
161
+ * @throws {@link ServiceQuotaExceededException} (client fault)
162
+ * <p>A service quota was exceeded. Request a quota increase or reduce usage and try again.</p>
163
+ *
164
+ * @throws {@link ThrottlingException} (client fault)
165
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
166
+ *
167
+ * @throws {@link ValidationException} (client fault)
168
+ * <p>The request failed validation. Check the request parameters and try again.</p>
169
+ *
170
+ * @throws {@link LambdaWebServiceException}
171
+ * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
172
+ *
173
+ *
174
+ * @public
175
+ */
176
+ export declare class CreateWebFunctionCommand extends CreateWebFunctionCommand_base {
177
+ /** @internal type navigation helper, not in runtime. */
178
+ protected static __types: {
179
+ api: {
180
+ input: CreateWebFunctionRequest;
181
+ output: CreateWebFunctionResponse;
182
+ };
183
+ sdk: {
184
+ input: CreateWebFunctionCommandInput;
185
+ output: CreateWebFunctionCommandOutput;
186
+ };
187
+ };
188
+ }
@@ -0,0 +1,162 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateWebFunctionEndpointRequest, CreateWebFunctionEndpointResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateWebFunctionEndpointCommand}.
11
+ */
12
+ export interface CreateWebFunctionEndpointCommandInput extends CreateWebFunctionEndpointRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateWebFunctionEndpointCommand}.
18
+ */
19
+ export interface CreateWebFunctionEndpointCommandOutput extends CreateWebFunctionEndpointResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateWebFunctionEndpointCommand_base: {
22
+ new (input: CreateWebFunctionEndpointCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionEndpointCommandInput, CreateWebFunctionEndpointCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateWebFunctionEndpointCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionEndpointCommandInput, CreateWebFunctionEndpointCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates an endpoint for a web function. An endpoint exposes the web function over HTTPS and routes traffic to one or more revisions.</p> <p>To use this operation, you must have the <code>CreateWebFunctionEndpoint</code> permission on the web function, not on the endpoint being created.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaWebClient, CreateWebFunctionEndpointCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
+ * // const { LambdaWebClient, CreateWebFunctionEndpointCommand } = 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 = { // CreateWebFunctionEndpointRequest
37
+ * functionName: "STRING_VALUE", // required
38
+ * endpointName: "STRING_VALUE", // required
39
+ * description: "STRING_VALUE",
40
+ * endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
41
+ * authType: "ApplicationManaged" || "IamAuth", // required
42
+ * autoDeploymentMode: "LatestRevision" || "Disabled",
43
+ * revisionWeights: [ // RevisionWeightList
44
+ * { // RevisionWeight
45
+ * revisionId: "STRING_VALUE", // required
46
+ * weight: Number("int"), // required
47
+ * },
48
+ * ],
49
+ * regions: [ // RegionList
50
+ * "STRING_VALUE",
51
+ * ],
52
+ * scalingConfig: { // ScalingConfig
53
+ * maxEnvironments: Number("int"),
54
+ * },
55
+ * throttleConfig: { // ThrottleConfig
56
+ * rateLimit: Number("int"),
57
+ * },
58
+ * };
59
+ * const command = new CreateWebFunctionEndpointCommand(input);
60
+ * const response = await client.send(command);
61
+ * // { // CreateWebFunctionEndpointResponse
62
+ * // functionArn: "STRING_VALUE", // required
63
+ * // endpointArn: "STRING_VALUE", // required
64
+ * // endpointName: "STRING_VALUE", // required
65
+ * // description: "STRING_VALUE",
66
+ * // endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
67
+ * // domainName: "STRING_VALUE", // required
68
+ * // authType: "ApplicationManaged" || "IamAuth", // required
69
+ * // autoDeploymentMode: "LatestRevision" || "Disabled", // required
70
+ * // revisionWeights: [ // RevisionWeightList // required
71
+ * // { // RevisionWeight
72
+ * // revisionId: "STRING_VALUE", // required
73
+ * // weight: Number("int"), // required
74
+ * // },
75
+ * // ],
76
+ * // regions: [ // RegionList // required
77
+ * // "STRING_VALUE",
78
+ * // ],
79
+ * // scalingConfig: { // ScalingConfig
80
+ * // maxEnvironments: Number("int"),
81
+ * // },
82
+ * // throttleConfig: { // ThrottleConfig
83
+ * // rateLimit: Number("int"),
84
+ * // },
85
+ * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
86
+ * // stateReason: "STRING_VALUE", // required
87
+ * // updateStatus: "InProgress" || "Successful" || "Failed",
88
+ * // updateStatusReason: "STRING_VALUE",
89
+ * // regionalEndpoints: { // RegionalEndpoints // required
90
+ * // "<keys>": { // RegionalEndpoint
91
+ * // domainName: "STRING_VALUE",
92
+ * // authType: "ApplicationManaged" || "IamAuth", // required
93
+ * // revisionWeights: [ // required
94
+ * // {
95
+ * // revisionId: "STRING_VALUE", // required
96
+ * // weight: Number("int"), // required
97
+ * // },
98
+ * // ],
99
+ * // scalingConfig: {
100
+ * // maxEnvironments: Number("int"),
101
+ * // },
102
+ * // throttleConfig: {
103
+ * // rateLimit: Number("int"),
104
+ * // },
105
+ * // state: "Pending" || "Active" || "Failed" || "Deleting", // required
106
+ * // stateReason: "STRING_VALUE", // required
107
+ * // updateStatus: "InProgress" || "Successful" || "Failed",
108
+ * // updateStatusReason: "STRING_VALUE",
109
+ * // },
110
+ * // },
111
+ * // createdAt: new Date("TIMESTAMP"), // required
112
+ * // updatedAt: new Date("TIMESTAMP"), // required
113
+ * // };
114
+ *
115
+ * ```
116
+ *
117
+ * @param CreateWebFunctionEndpointCommandInput - {@link CreateWebFunctionEndpointCommandInput}
118
+ * @returns {@link CreateWebFunctionEndpointCommandOutput}
119
+ * @see {@link CreateWebFunctionEndpointCommandInput} for command's `input` shape.
120
+ * @see {@link CreateWebFunctionEndpointCommandOutput} for command's `response` shape.
121
+ * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
122
+ *
123
+ * @throws {@link AccessDeniedException} (client fault)
124
+ * <p>You do not have sufficient permissions to perform this operation.</p>
125
+ *
126
+ * @throws {@link ConflictException} (client fault)
127
+ * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
128
+ *
129
+ * @throws {@link InternalServerException} (server fault)
130
+ * <p>An internal server error occurred. Try again later.</p>
131
+ *
132
+ * @throws {@link ResourceNotFoundException} (client fault)
133
+ * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
134
+ *
135
+ * @throws {@link ServiceQuotaExceededException} (client fault)
136
+ * <p>A service quota was exceeded. Request a quota increase or reduce usage and try again.</p>
137
+ *
138
+ * @throws {@link ThrottlingException} (client fault)
139
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
140
+ *
141
+ * @throws {@link ValidationException} (client fault)
142
+ * <p>The request failed validation. Check the request parameters and try again.</p>
143
+ *
144
+ * @throws {@link LambdaWebServiceException}
145
+ * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
146
+ *
147
+ *
148
+ * @public
149
+ */
150
+ export declare class CreateWebFunctionEndpointCommand extends CreateWebFunctionEndpointCommand_base {
151
+ /** @internal type navigation helper, not in runtime. */
152
+ protected static __types: {
153
+ api: {
154
+ input: CreateWebFunctionEndpointRequest;
155
+ output: CreateWebFunctionEndpointResponse;
156
+ };
157
+ sdk: {
158
+ input: CreateWebFunctionEndpointCommandInput;
159
+ output: CreateWebFunctionEndpointCommandOutput;
160
+ };
161
+ };
162
+ }
@@ -0,0 +1,162 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateWebFunctionRevisionRequest, CreateWebFunctionRevisionResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateWebFunctionRevisionCommand}.
11
+ */
12
+ export interface CreateWebFunctionRevisionCommandInput extends CreateWebFunctionRevisionRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateWebFunctionRevisionCommand}.
18
+ */
19
+ export interface CreateWebFunctionRevisionCommandOutput extends CreateWebFunctionRevisionResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateWebFunctionRevisionCommand_base: {
22
+ new (input: CreateWebFunctionRevisionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionRevisionCommandInput, CreateWebFunctionRevisionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateWebFunctionRevisionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionRevisionCommandInput, CreateWebFunctionRevisionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates an immutable revision for a web function. A revision represents a specific version of the function code and configuration.</p> <p>To use this operation, you must have the <code>CreateWebFunctionRevision</code> permission on the web function, not on the revision being created.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaWebClient, CreateWebFunctionRevisionCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
32
+ * // const { LambdaWebClient, CreateWebFunctionRevisionCommand } = 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 = { // CreateWebFunctionRevisionRequest
37
+ * functionName: "STRING_VALUE", // required
38
+ * description: "STRING_VALUE",
39
+ * kmsKeyArn: "STRING_VALUE",
40
+ * buildConfig: { // BuildConfig
41
+ * codeConfig: { // CodeConfig
42
+ * s3Object: { // S3Object
43
+ * bucket: "STRING_VALUE", // required
44
+ * key: "STRING_VALUE", // required
45
+ * versionId: "STRING_VALUE",
46
+ * },
47
+ * },
48
+ * runtimeConfig: { // RuntimeConfig
49
+ * runtime: "STRING_VALUE", // required
50
+ * },
51
+ * },
52
+ * serviceConfig: { // ServiceConfig
53
+ * executionRoleArn: "STRING_VALUE", // required
54
+ * timeoutSeconds: Number("int"),
55
+ * maxConcurrencyPerEnvironment: Number("int"),
56
+ * environmentVariables: { // EnvironmentVariables
57
+ * "<keys>": "STRING_VALUE",
58
+ * },
59
+ * telemetryConfig: { // TelemetryConfig
60
+ * loggingConfig: { // LoggingConfig
61
+ * logGroup: "STRING_VALUE",
62
+ * applicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
63
+ * systemLogLevel: "DEBUG" || "INFO" || "WARN",
64
+ * },
65
+ * },
66
+ * },
67
+ * };
68
+ * const command = new CreateWebFunctionRevisionCommand(input);
69
+ * const response = await client.send(command);
70
+ * // { // CreateWebFunctionRevisionResponse
71
+ * // functionArn: "STRING_VALUE", // required
72
+ * // revisionArn: "STRING_VALUE", // required
73
+ * // revisionId: "STRING_VALUE", // required
74
+ * // description: "STRING_VALUE",
75
+ * // kmsKeyArn: "STRING_VALUE",
76
+ * // buildConfig: { // BuildConfig
77
+ * // codeConfig: { // CodeConfig
78
+ * // s3Object: { // S3Object
79
+ * // bucket: "STRING_VALUE", // required
80
+ * // key: "STRING_VALUE", // required
81
+ * // versionId: "STRING_VALUE",
82
+ * // },
83
+ * // },
84
+ * // runtimeConfig: { // RuntimeConfig
85
+ * // runtime: "STRING_VALUE", // required
86
+ * // },
87
+ * // },
88
+ * // serviceConfig: { // ServiceConfig
89
+ * // executionRoleArn: "STRING_VALUE", // required
90
+ * // timeoutSeconds: Number("int"),
91
+ * // maxConcurrencyPerEnvironment: Number("int"),
92
+ * // environmentVariables: { // EnvironmentVariables
93
+ * // "<keys>": "STRING_VALUE",
94
+ * // },
95
+ * // telemetryConfig: { // TelemetryConfig
96
+ * // loggingConfig: { // LoggingConfig
97
+ * // logGroup: "STRING_VALUE",
98
+ * // applicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
99
+ * // systemLogLevel: "DEBUG" || "INFO" || "WARN",
100
+ * // },
101
+ * // },
102
+ * // },
103
+ * // state: "Pending" || "Active" || "Failed", // required
104
+ * // stateReason: "STRING_VALUE", // required
105
+ * // errors: [ // RevisionErrors
106
+ * // { // RevisionError
107
+ * // attribute: "STRING_VALUE", // required
108
+ * // errorCode: "STRING_VALUE", // required
109
+ * // errorMessage: "STRING_VALUE", // required
110
+ * // },
111
+ * // ],
112
+ * // createdAt: new Date("TIMESTAMP"), // required
113
+ * // };
114
+ *
115
+ * ```
116
+ *
117
+ * @param CreateWebFunctionRevisionCommandInput - {@link CreateWebFunctionRevisionCommandInput}
118
+ * @returns {@link CreateWebFunctionRevisionCommandOutput}
119
+ * @see {@link CreateWebFunctionRevisionCommandInput} for command's `input` shape.
120
+ * @see {@link CreateWebFunctionRevisionCommandOutput} for command's `response` shape.
121
+ * @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
122
+ *
123
+ * @throws {@link AccessDeniedException} (client fault)
124
+ * <p>You do not have sufficient permissions to perform this operation.</p>
125
+ *
126
+ * @throws {@link ConflictException} (client fault)
127
+ * <p>The request conflicts with the current state of the resource. Resolve the conflict and try again.</p>
128
+ *
129
+ * @throws {@link InternalServerException} (server fault)
130
+ * <p>An internal server error occurred. Try again later.</p>
131
+ *
132
+ * @throws {@link ResourceNotFoundException} (client fault)
133
+ * <p>The specified resource was not found. Verify the resource identifier and try again.</p>
134
+ *
135
+ * @throws {@link ServiceQuotaExceededException} (client fault)
136
+ * <p>A service quota was exceeded. Request a quota increase or reduce usage and try again.</p>
137
+ *
138
+ * @throws {@link ThrottlingException} (client fault)
139
+ * <p>The request was throttled. Reduce the frequency of requests and try again.</p>
140
+ *
141
+ * @throws {@link ValidationException} (client fault)
142
+ * <p>The request failed validation. Check the request parameters and try again.</p>
143
+ *
144
+ * @throws {@link LambdaWebServiceException}
145
+ * <p>Base exception class for all service exceptions from LambdaWeb service.</p>
146
+ *
147
+ *
148
+ * @public
149
+ */
150
+ export declare class CreateWebFunctionRevisionCommand extends CreateWebFunctionRevisionCommand_base {
151
+ /** @internal type navigation helper, not in runtime. */
152
+ protected static __types: {
153
+ api: {
154
+ input: CreateWebFunctionRevisionRequest;
155
+ output: CreateWebFunctionRevisionResponse;
156
+ };
157
+ sdk: {
158
+ input: CreateWebFunctionRevisionCommandInput;
159
+ output: CreateWebFunctionRevisionCommandOutput;
160
+ };
161
+ };
162
+ }