@aws-sdk/client-lambda 3.1075.0 → 3.1077.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 (38) hide show
  1. package/dist-cjs/index.js +4275 -16
  2. package/dist-es/models/enums.js +4 -0
  3. package/dist-es/runtimeConfig.browser.js +0 -2
  4. package/dist-es/runtimeConfig.js +1 -2
  5. package/dist-es/runtimeConfig.native.js +0 -2
  6. package/dist-es/runtimeConfig.shared.js +2 -0
  7. package/dist-es/schemas/schemas_0.js +24 -11
  8. package/dist-types/commands/CreateFunctionCommand.d.ts +1 -0
  9. package/dist-types/commands/GetFunctionCommand.d.ts +9 -0
  10. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +5 -0
  11. package/dist-types/commands/GetLayerVersionCommand.d.ts +5 -0
  12. package/dist-types/commands/PublishLayerVersionCommand.d.ts +6 -0
  13. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +1 -0
  14. package/dist-types/models/enums.d.ts +18 -0
  15. package/dist-types/models/models_0.d.ts +68 -1
  16. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  17. package/dist-types/runtimeConfig.d.ts +2 -2
  18. package/dist-types/runtimeConfig.native.d.ts +2 -2
  19. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  20. package/dist-types/schemas/schemas_0.d.ts +2 -0
  21. package/dist-types/ts3.4/models/enums.d.ts +6 -0
  22. package/dist-types/ts3.4/models/models_0.d.ts +16 -0
  23. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
  24. package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
  25. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
  26. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  27. package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
  28. package/package.json +9 -11
  29. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  30. package/dist-cjs/endpoint/bdd.js +0 -46
  31. package/dist-cjs/endpoint/endpointResolver.js +0 -14
  32. package/dist-cjs/models/LambdaServiceException.js +0 -8
  33. package/dist-cjs/models/errors.js +0 -865
  34. package/dist-cjs/runtimeConfig.browser.js +0 -34
  35. package/dist-cjs/runtimeConfig.js +0 -47
  36. package/dist-cjs/runtimeConfig.native.js +0 -12
  37. package/dist-cjs/runtimeConfig.shared.js +0 -38
  38. package/dist-cjs/schemas/schemas_0.js +0 -3086
@@ -155,6 +155,7 @@ export declare var FilterCriteria$: StaticStructureSchema;
155
155
  export declare var FilterCriteriaError$: StaticStructureSchema;
156
156
  export declare var FunctionCode$: StaticStructureSchema;
157
157
  export declare var FunctionCodeLocation$: StaticStructureSchema;
158
+ export declare var FunctionCodeLocationError$: StaticStructureSchema;
158
159
  export declare var FunctionConfiguration$: StaticStructureSchema;
159
160
  export declare var FunctionEventInvokeConfig$: StaticStructureSchema;
160
161
  export declare var FunctionScalingConfig$: StaticStructureSchema;
@@ -276,6 +277,7 @@ export declare var PutRuntimeManagementConfigRequest$: StaticStructureSchema;
276
277
  export declare var PutRuntimeManagementConfigResponse$: StaticStructureSchema;
277
278
  export declare var RemoveLayerVersionPermissionRequest$: StaticStructureSchema;
278
279
  export declare var RemovePermissionRequest$: StaticStructureSchema;
280
+ export declare var ResolvedS3Object$: StaticStructureSchema;
279
281
  export declare var RetryDetails$: StaticStructureSchema;
280
282
  export declare var RuntimeVersionConfig$: StaticStructureSchema;
281
283
  export declare var RuntimeVersionError$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
3
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
4
- "version": "3.1075.0",
4
+ "version": "3.1077.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -25,19 +25,17 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@aws-crypto/sha256-browser": "5.2.0",
29
- "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.23",
31
- "@aws-sdk/credential-provider-node": "^3.972.58",
32
- "@aws-sdk/types": "^3.973.13",
33
- "@smithy/core": "^3.24.6",
34
- "@smithy/fetch-http-handler": "^5.4.6",
35
- "@smithy/node-http-handler": "^4.7.6",
36
- "@smithy/types": "^4.14.3",
28
+ "@aws-sdk/core": "^3.974.25",
29
+ "@aws-sdk/credential-provider-node": "^3.972.60",
30
+ "@aws-sdk/types": "^3.973.14",
31
+ "@smithy/core": "^3.28.0",
32
+ "@smithy/fetch-http-handler": "^5.6.1",
33
+ "@smithy/node-http-handler": "^4.9.1",
34
+ "@smithy/types": "^4.15.0",
37
35
  "tslib": "^2.6.2"
38
36
  },
39
37
  "devDependencies": {
40
- "@smithy/snapshot-testing": "^2.1.7",
38
+ "@smithy/snapshot-testing": "^2.2.4",
41
39
  "@tsconfig/node20": "20.1.8",
42
40
  "@types/node": "^20.14.8",
43
41
  "concurrently": "7.0.0",
@@ -1,40 +0,0 @@
1
- const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
- exports.defaultLambdaHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
- return {
5
- operation: getSmithyContext(context).operation,
6
- region: await normalizeProvider(config.region)() || (() => {
7
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
- })(),
9
- };
10
- };
11
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
- return {
13
- schemeId: "aws.auth#sigv4",
14
- signingProperties: {
15
- name: "lambda",
16
- region: authParameters.region,
17
- },
18
- propertiesExtractor: (config, context) => ({
19
- signingProperties: {
20
- config,
21
- context,
22
- },
23
- }),
24
- };
25
- }
26
- exports.defaultLambdaHttpAuthSchemeProvider = (authParameters) => {
27
- const options = [];
28
- switch (authParameters.operation) {
29
- default: {
30
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
- }
32
- }
33
- return options;
34
- };
35
- exports.resolveHttpAuthSchemeConfig = (config) => {
36
- const config_0 = resolveAwsSdkSigV4Config(config);
37
- return Object.assign(config_0, {
38
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
- });
40
- };
@@ -1,46 +0,0 @@
1
- const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
2
- const k = "ref";
3
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
- const _data = {
5
- conditions: [
6
- [c, [g]],
7
- [c, j],
8
- ["aws.partition", j, d],
9
- [e, [{ [k]: "UseFIPS" }, b]],
10
- [e, [{ [k]: "UseDualStack" }, b]],
11
- [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
- [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
13
- ],
14
- results: [
15
- [a],
16
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
17
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
18
- [g, i],
19
- ["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
20
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
21
- ["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", i],
22
- [a, "FIPS is enabled but this partition does not support FIPS"],
23
- ["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
- [a, "DualStack is enabled but this partition does not support DualStack"],
25
- ["https://lambda.{Region}.{PartitionResult#dnsSuffix}", i],
26
- [a, "Invalid Configuration: Missing Region"]
27
- ]
28
- };
29
- const root = 2;
30
- const r = 100_000_000;
31
- const nodes = new Int32Array([
32
- -1, 1, -1,
33
- 0, 12, 3,
34
- 1, 4, r + 11,
35
- 2, 5, r + 11,
36
- 3, 8, 6,
37
- 4, 7, r + 10,
38
- 5, r + 8, r + 9,
39
- 4, 10, 9,
40
- 6, r + 6, r + 7,
41
- 5, 11, r + 5,
42
- 6, r + 4, r + 5,
43
- 3, r + 1, 13,
44
- 4, r + 2, r + 3,
45
- ]);
46
- exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,14 +0,0 @@
1
- const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
- const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
- const { bdd } = require("./bdd");
4
- const cache = new EndpointCache({
5
- size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
- });
8
- exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
- endpointParams: endpointParams,
11
- logger: context.logger,
12
- }));
13
- };
14
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,8 +0,0 @@
1
- const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
- exports.__ServiceException = __ServiceException;
3
- exports.LambdaServiceException = class LambdaServiceException extends __ServiceException {
4
- constructor(options) {
5
- super(options);
6
- Object.setPrototypeOf(this, LambdaServiceException.prototype);
7
- }
8
- };