@aws-sdk/client-lambda 3.1074.0 → 3.1076.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 (32) hide show
  1. package/dist-cjs/index.js +4274 -16
  2. package/dist-es/models/enums.js +4 -0
  3. package/dist-es/schemas/schemas_0.js +24 -11
  4. package/dist-types/commands/CreateFunctionCommand.d.ts +1 -0
  5. package/dist-types/commands/GetFunctionCommand.d.ts +9 -0
  6. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +5 -0
  7. package/dist-types/commands/GetLayerVersionCommand.d.ts +5 -0
  8. package/dist-types/commands/PublishLayerVersionCommand.d.ts +6 -0
  9. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +1 -0
  10. package/dist-types/models/enums.d.ts +18 -0
  11. package/dist-types/models/models_0.d.ts +68 -1
  12. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  13. package/dist-types/runtimeConfig.d.ts +1 -1
  14. package/dist-types/runtimeConfig.native.d.ts +1 -1
  15. package/dist-types/schemas/schemas_0.d.ts +2 -0
  16. package/dist-types/ts3.4/models/enums.d.ts +6 -0
  17. package/dist-types/ts3.4/models/models_0.d.ts +16 -0
  18. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
  19. package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
  20. package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
  21. package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
  22. package/package.json +9 -9
  23. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  24. package/dist-cjs/endpoint/bdd.js +0 -46
  25. package/dist-cjs/endpoint/endpointResolver.js +0 -14
  26. package/dist-cjs/models/LambdaServiceException.js +0 -8
  27. package/dist-cjs/models/errors.js +0 -865
  28. package/dist-cjs/runtimeConfig.browser.js +0 -34
  29. package/dist-cjs/runtimeConfig.js +0 -47
  30. package/dist-cjs/runtimeConfig.native.js +0 -12
  31. package/dist-cjs/runtimeConfig.shared.js +0 -38
  32. package/dist-cjs/schemas/schemas_0.js +0 -3086
@@ -126,6 +126,10 @@ export const EventSourcePosition = {
126
126
  LATEST: "LATEST",
127
127
  TRIM_HORIZON: "TRIM_HORIZON",
128
128
  };
129
+ export const S3ObjectStorageMode = {
130
+ Copy: "COPY",
131
+ Reference: "REFERENCE",
132
+ };
129
133
  export const LogFormat = {
130
134
  Json: "JSON",
131
135
  Text: "Text",
@@ -228,6 +228,7 @@ const _FAu = "FunctionArns";
228
228
  const _FC = "FunctionCount";
229
229
  const _FCE = "FilterCriteriaError";
230
230
  const _FCL = "FunctionCodeLocation";
231
+ const _FCLE = "FunctionCodeLocationError";
231
232
  const _FCi = "FilterCriteria";
232
233
  const _FCu = "FunctionCode";
233
234
  const _FCun = "FunctionConfiguration";
@@ -554,6 +555,7 @@ const _RPCE = "RequestedProvisionedConcurrentExecutions";
554
555
  const _RPID = "RetentionPeriodInDays";
555
556
  const _RPR = "RemovePermissionRequest";
556
557
  const _RSCT = "ResponseStreamContentType";
558
+ const _RSO = "ResolvedS3Object";
557
559
  const _RT = "RepositoryType";
558
560
  const _RTLE = "RequestTooLargeException";
559
561
  const _RVA = "RuntimeVersionArn";
@@ -604,6 +606,7 @@ const _SM = "ScalingMode";
604
606
  const _SMES = "SelfManagedEventSource";
605
607
  const _SMKESC = "SelfManagedKafkaEventSourceConfig";
606
608
  const _SO = "StepOptions";
609
+ const _SOSM = "S3ObjectStorageMode";
607
610
  const _SOV = "S3ObjectVersion";
608
611
  const _SP = "ScalingPolicies";
609
612
  const _SPT = "StartingPositionTimestamp";
@@ -1541,13 +1544,18 @@ export var FilterCriteriaError$ = [3, n0, _FCE,
1541
1544
  ];
1542
1545
  export var FunctionCode$ = [3, n0, _FCu,
1543
1546
  0,
1544
- [_ZF, _SB, _SK, _SOV, _IU, _SKMSKA],
1545
- [[() => _Blob, 0], 0, 0, 0, 0, 0]
1547
+ [_ZF, _SB, _SK, _SOV, _SOSM, _IU, _SKMSKA],
1548
+ [[() => _Blob, 0], 0, 0, 0, 0, 0, 0]
1546
1549
  ];
1547
1550
  export var FunctionCodeLocation$ = [3, n0, _FCL,
1548
1551
  0,
1549
- [_RT, _Lo, _IU, _RIU, _SKMSKA],
1550
- [0, 0, 0, 0, 0]
1552
+ [_RT, _Lo, _IU, _RIU, _RSO, _SKMSKA, _E],
1553
+ [0, 0, 0, 0, () => ResolvedS3Object$, 0, [() => FunctionCodeLocationError$, 0]]
1554
+ ];
1555
+ export var FunctionCodeLocationError$ = [3, n0, _FCLE,
1556
+ 0,
1557
+ [_EC, _M],
1558
+ [0, [() => SensitiveString, 0]]
1551
1559
  ];
1552
1560
  export var FunctionConfiguration$ = [3, n0, _FCun,
1553
1561
  0,
@@ -1692,7 +1700,7 @@ export var GetFunctionRequest$ = [3, n0, _GFR,
1692
1700
  export var GetFunctionResponse$ = [3, n0, _GFRe,
1693
1701
  0,
1694
1702
  [_Con, _Cod, _Ta, _TE, _C],
1695
- [[() => FunctionConfiguration$, 0], () => FunctionCodeLocation$, 128 | 0, () => TagsError$, () => Concurrency$]
1703
+ [[() => FunctionConfiguration$, 0], [() => FunctionCodeLocation$, 0], 128 | 0, () => TagsError$, () => Concurrency$]
1696
1704
  ];
1697
1705
  export var GetFunctionScalingConfigRequest$ = [3, n0, _GFSCR,
1698
1706
  0,
@@ -1866,13 +1874,13 @@ export var LayersListItem$ = [3, n0, _LLI,
1866
1874
  ];
1867
1875
  export var LayerVersionContentInput$ = [3, n0, _LVCI,
1868
1876
  0,
1869
- [_SB, _SK, _SOV, _ZF],
1870
- [0, 0, 0, [() => _Blob, 0]]
1877
+ [_SB, _SK, _SOV, _SOSM, _ZF],
1878
+ [0, 0, 0, 0, [() => _Blob, 0]]
1871
1879
  ];
1872
1880
  export var LayerVersionContentOutput$ = [3, n0, _LVCO,
1873
1881
  0,
1874
- [_Lo, _CSo, _CS, _SPVAi, _SJA],
1875
- [0, 0, 1, 0, 0]
1882
+ [_Lo, _CSo, _CS, _SPVAi, _SJA, _RSO],
1883
+ [0, 0, 1, 0, 0, () => ResolvedS3Object$]
1876
1884
  ];
1877
1885
  export var LayerVersionsListItem$ = [3, n0, _LVLI,
1878
1886
  0,
@@ -2154,6 +2162,11 @@ export var RemovePermissionRequest$ = [3, n0, _RPR,
2154
2162
  [_FN, _SI, _Q, _RI],
2155
2163
  [[0, 1], [0, 1], [0, { [_hQ]: _Q }], [0, { [_hQ]: _RI }]], 2
2156
2164
  ];
2165
+ export var ResolvedS3Object$ = [3, n0, _RSO,
2166
+ 0,
2167
+ [_SB, _SK, _SOV],
2168
+ [0, 0, 0]
2169
+ ];
2157
2170
  export var RetryDetails$ = [3, n0, _RD,
2158
2171
  0,
2159
2172
  [_CAu, _NADS],
@@ -2336,8 +2349,8 @@ export var UpdateEventSourceMappingRequest$ = [3, n0, _UESMR,
2336
2349
  ];
2337
2350
  export var UpdateFunctionCodeRequest$ = [3, n0, _UFCR,
2338
2351
  0,
2339
- [_FN, _ZF, _SB, _SK, _SOV, _IU, _Ar, _Pu, _PTu, _DR, _RI, _SKMSKA],
2340
- [[0, 1], [() => _Blob, 0], 0, 0, 0, 0, 64 | 0, 2, 0, 2, 0, 0], 1
2352
+ [_FN, _ZF, _SB, _SK, _SOV, _SOSM, _IU, _Ar, _Pu, _PTu, _DR, _RI, _SKMSKA],
2353
+ [[0, 1], [() => _Blob, 0], 0, 0, 0, 0, 0, 64 | 0, 2, 0, 2, 0, 0], 1
2341
2354
  ];
2342
2355
  export var UpdateFunctionConfigurationRequest$ = [3, n0, _UFCRp,
2343
2356
  0,
@@ -48,6 +48,7 @@ declare const CreateFunctionCommand_base: {
48
48
  * S3Bucket: "STRING_VALUE",
49
49
  * S3Key: "STRING_VALUE",
50
50
  * S3ObjectVersion: "STRING_VALUE",
51
+ * S3ObjectStorageMode: "COPY" || "REFERENCE",
51
52
  * ImageUri: "STRING_VALUE",
52
53
  * SourceKMSKeyArn: "STRING_VALUE",
53
54
  * },
@@ -168,7 +168,16 @@ declare const GetFunctionCommand_base: {
168
168
  * // Location: "STRING_VALUE",
169
169
  * // ImageUri: "STRING_VALUE",
170
170
  * // ResolvedImageUri: "STRING_VALUE",
171
+ * // ResolvedS3Object: { // ResolvedS3Object
172
+ * // S3Bucket: "STRING_VALUE",
173
+ * // S3Key: "STRING_VALUE",
174
+ * // S3ObjectVersion: "STRING_VALUE",
175
+ * // },
171
176
  * // SourceKMSKeyArn: "STRING_VALUE",
177
+ * // Error: { // FunctionCodeLocationError
178
+ * // ErrorCode: "STRING_VALUE",
179
+ * // Message: "STRING_VALUE",
180
+ * // },
172
181
  * // },
173
182
  * // Tags: { // Tags
174
183
  * // "<keys>": "STRING_VALUE",
@@ -50,6 +50,11 @@ declare const GetLayerVersionByArnCommand_base: {
50
50
  * // CodeSize: Number("long"),
51
51
  * // SigningProfileVersionArn: "STRING_VALUE",
52
52
  * // SigningJobArn: "STRING_VALUE",
53
+ * // ResolvedS3Object: { // ResolvedS3Object
54
+ * // S3Bucket: "STRING_VALUE",
55
+ * // S3Key: "STRING_VALUE",
56
+ * // S3ObjectVersion: "STRING_VALUE",
57
+ * // },
53
58
  * // },
54
59
  * // LayerArn: "STRING_VALUE",
55
60
  * // LayerVersionArn: "STRING_VALUE",
@@ -51,6 +51,11 @@ declare const GetLayerVersionCommand_base: {
51
51
  * // CodeSize: Number("long"),
52
52
  * // SigningProfileVersionArn: "STRING_VALUE",
53
53
  * // SigningJobArn: "STRING_VALUE",
54
+ * // ResolvedS3Object: { // ResolvedS3Object
55
+ * // S3Bucket: "STRING_VALUE",
56
+ * // S3Key: "STRING_VALUE",
57
+ * // S3ObjectVersion: "STRING_VALUE",
58
+ * // },
54
59
  * // },
55
60
  * // LayerArn: "STRING_VALUE",
56
61
  * // LayerVersionArn: "STRING_VALUE",
@@ -45,6 +45,7 @@ declare const PublishLayerVersionCommand_base: {
45
45
  * S3Bucket: "STRING_VALUE",
46
46
  * S3Key: "STRING_VALUE",
47
47
  * S3ObjectVersion: "STRING_VALUE",
48
+ * S3ObjectStorageMode: "COPY" || "REFERENCE",
48
49
  * ZipFile: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
49
50
  * },
50
51
  * CompatibleArchitectures: [ // CompatibleArchitectures
@@ -64,6 +65,11 @@ declare const PublishLayerVersionCommand_base: {
64
65
  * // CodeSize: Number("long"),
65
66
  * // SigningProfileVersionArn: "STRING_VALUE",
66
67
  * // SigningJobArn: "STRING_VALUE",
68
+ * // ResolvedS3Object: { // ResolvedS3Object
69
+ * // S3Bucket: "STRING_VALUE",
70
+ * // S3Key: "STRING_VALUE",
71
+ * // S3ObjectVersion: "STRING_VALUE",
72
+ * // },
67
73
  * // },
68
74
  * // LayerArn: "STRING_VALUE",
69
75
  * // LayerVersionArn: "STRING_VALUE",
@@ -44,6 +44,7 @@ declare const UpdateFunctionCodeCommand_base: {
44
44
  * S3Bucket: "STRING_VALUE",
45
45
  * S3Key: "STRING_VALUE",
46
46
  * S3ObjectVersion: "STRING_VALUE",
47
+ * S3ObjectStorageMode: "COPY" || "REFERENCE",
47
48
  * ImageUri: "STRING_VALUE",
48
49
  * Architectures: [ // ArchitecturesList
49
50
  * "x86_64" || "arm64",
@@ -316,6 +316,24 @@ export declare const EventSourcePosition: {
316
316
  * @public
317
317
  */
318
318
  export type EventSourcePosition = (typeof EventSourcePosition)[keyof typeof EventSourcePosition];
319
+ /**
320
+ * @public
321
+ * @enum
322
+ */
323
+ export declare const S3ObjectStorageMode: {
324
+ /**
325
+ * <p> <code>COPY</code> (default) uploads a copy of your deployment package to Lambda.</p>
326
+ */
327
+ readonly Copy: "COPY";
328
+ /**
329
+ * <p>Lambda references the deployment package from the specified Amazon S3 bucket.</p>
330
+ */
331
+ readonly Reference: "REFERENCE";
332
+ };
333
+ /**
334
+ * @public
335
+ */
336
+ export type S3ObjectStorageMode = (typeof S3ObjectStorageMode)[keyof typeof S3ObjectStorageMode];
319
337
  /**
320
338
  * @public
321
339
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { StreamingBlobTypes } from "@smithy/types";
2
- import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
2
+ import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
3
3
  /**
4
4
  * <p>Limits that are related to concurrency and storage. All file and storage sizes are in bytes.</p>
5
5
  * @public
@@ -2072,6 +2072,11 @@ export interface FunctionCode {
2072
2072
  * @public
2073
2073
  */
2074
2074
  S3ObjectVersion?: string | undefined;
2075
+ /**
2076
+ * <p>Specifies how the deployment package is stored. Use <code>COPY</code> (default) to upload a copy of your deployment package to Lambda. Use <code>REFERENCE</code> to have Lambda reference the deployment package from the specified Amazon S3 bucket.</p>
2077
+ * @public
2078
+ */
2079
+ S3ObjectStorageMode?: S3ObjectStorageMode | undefined;
2075
2080
  /**
2076
2081
  * <p>URI of a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container image</a> in the Amazon ECR registry.</p>
2077
2082
  * @public
@@ -2926,6 +2931,43 @@ export interface GetFunctionRequest {
2926
2931
  */
2927
2932
  Qualifier?: string | undefined;
2928
2933
  }
2934
+ /**
2935
+ * <p>Details about an error related to retrieving a function's deployment package.</p>
2936
+ * @public
2937
+ */
2938
+ export interface FunctionCodeLocationError {
2939
+ /**
2940
+ * <p>The error code for the failed retrieval.</p>
2941
+ * @public
2942
+ */
2943
+ ErrorCode?: string | undefined;
2944
+ /**
2945
+ * <p>A description of the error.</p>
2946
+ * @public
2947
+ */
2948
+ Message?: string | undefined;
2949
+ }
2950
+ /**
2951
+ * <p>Details about the resolved Amazon S3 object that contains a function's deployment package.</p>
2952
+ * @public
2953
+ */
2954
+ export interface ResolvedS3Object {
2955
+ /**
2956
+ * <p>The Amazon S3 bucket that contains the deployment package.</p>
2957
+ * @public
2958
+ */
2959
+ S3Bucket?: string | undefined;
2960
+ /**
2961
+ * <p>The Amazon S3 key of the deployment package.</p>
2962
+ * @public
2963
+ */
2964
+ S3Key?: string | undefined;
2965
+ /**
2966
+ * <p>The version of the deployment package object.</p>
2967
+ * @public
2968
+ */
2969
+ S3ObjectVersion?: string | undefined;
2970
+ }
2929
2971
  /**
2930
2972
  * <p>Details about a function's deployment package.</p>
2931
2973
  * @public
@@ -2951,11 +2993,21 @@ export interface FunctionCodeLocation {
2951
2993
  * @public
2952
2994
  */
2953
2995
  ResolvedImageUri?: string | undefined;
2996
+ /**
2997
+ * <p>The resolved Amazon S3 object that contains the deployment package.</p>
2998
+ * @public
2999
+ */
3000
+ ResolvedS3Object?: ResolvedS3Object | undefined;
2954
3001
  /**
2955
3002
  * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a>.</p>
2956
3003
  * @public
2957
3004
  */
2958
3005
  SourceKMSKeyArn?: string | undefined;
3006
+ /**
3007
+ * <p>An object that contains details about an error related to function deployment package retrieval.</p>
3008
+ * @public
3009
+ */
3010
+ Error?: FunctionCodeLocationError | undefined;
2959
3011
  }
2960
3012
  /**
2961
3013
  * @public
@@ -3882,6 +3934,11 @@ export interface UpdateFunctionCodeRequest {
3882
3934
  * @public
3883
3935
  */
3884
3936
  S3ObjectVersion?: string | undefined;
3937
+ /**
3938
+ * <p>Specifies how the deployment package is stored. Use <code>COPY</code> (default) to upload a copy of your deployment package to Lambda. Use <code>REFERENCE</code> to have Lambda reference the deployment package from the specified Amazon S3 bucket.</p>
3939
+ * @public
3940
+ */
3941
+ S3ObjectStorageMode?: S3ObjectStorageMode | undefined;
3885
3942
  /**
3886
3943
  * <p>URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.</p>
3887
3944
  * @public
@@ -5238,6 +5295,11 @@ export interface LayerVersionContentOutput {
5238
5295
  * @public
5239
5296
  */
5240
5297
  SigningJobArn?: string | undefined;
5298
+ /**
5299
+ * <p>Details about the resolved Amazon S3 object that contains a function's deployment package.</p>
5300
+ * @public
5301
+ */
5302
+ ResolvedS3Object?: ResolvedS3Object | undefined;
5241
5303
  }
5242
5304
  /**
5243
5305
  * @public
@@ -5394,6 +5456,11 @@ export interface LayerVersionContentInput {
5394
5456
  * @public
5395
5457
  */
5396
5458
  S3ObjectVersion?: string | undefined;
5459
+ /**
5460
+ * <p>The storage mode for a function's deployment package.</p>
5461
+ * @public
5462
+ */
5463
+ S3ObjectStorageMode?: S3ObjectStorageMode | undefined;
5397
5464
  /**
5398
5465
  * <p>The base64-encoded contents of the layer archive. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.</p>
5399
5466
  * @public
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
15
15
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
17
  sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
21
  cacheMiddleware?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
16
16
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
18
  sha256: import("@smithy/types").HashConstructor;
19
- streamCollector: import("@smithy/types").StreamCollector;
19
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
15
15
  apiVersion: string;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -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;
@@ -167,6 +167,12 @@ export declare const EventSourcePosition: {
167
167
  };
168
168
  export type EventSourcePosition =
169
169
  (typeof EventSourcePosition)[keyof typeof EventSourcePosition];
170
+ export declare const S3ObjectStorageMode: {
171
+ readonly Copy: "COPY";
172
+ readonly Reference: "REFERENCE";
173
+ };
174
+ export type S3ObjectStorageMode =
175
+ (typeof S3ObjectStorageMode)[keyof typeof S3ObjectStorageMode];
170
176
  export declare const LogFormat: {
171
177
  readonly Json: "JSON";
172
178
  readonly Text: "Text";
@@ -34,6 +34,7 @@ import {
34
34
  RecursiveLoop,
35
35
  ResponseStreamingInvocationType,
36
36
  Runtime,
37
+ S3ObjectStorageMode,
37
38
  SchemaRegistryEventRecordFormat,
38
39
  SnapStartApplyOn,
39
40
  SnapStartOptimizationStatus,
@@ -552,6 +553,7 @@ export interface FunctionCode {
552
553
  S3Bucket?: string | undefined;
553
554
  S3Key?: string | undefined;
554
555
  S3ObjectVersion?: string | undefined;
556
+ S3ObjectStorageMode?: S3ObjectStorageMode | undefined;
555
557
  ImageUri?: string | undefined;
556
558
  SourceKMSKeyArn?: string | undefined;
557
559
  }
@@ -749,12 +751,23 @@ export interface GetFunctionRequest {
749
751
  FunctionName: string | undefined;
750
752
  Qualifier?: string | undefined;
751
753
  }
754
+ export interface FunctionCodeLocationError {
755
+ ErrorCode?: string | undefined;
756
+ Message?: string | undefined;
757
+ }
758
+ export interface ResolvedS3Object {
759
+ S3Bucket?: string | undefined;
760
+ S3Key?: string | undefined;
761
+ S3ObjectVersion?: string | undefined;
762
+ }
752
763
  export interface FunctionCodeLocation {
753
764
  RepositoryType?: string | undefined;
754
765
  Location?: string | undefined;
755
766
  ImageUri?: string | undefined;
756
767
  ResolvedImageUri?: string | undefined;
768
+ ResolvedS3Object?: ResolvedS3Object | undefined;
757
769
  SourceKMSKeyArn?: string | undefined;
770
+ Error?: FunctionCodeLocationError | undefined;
758
771
  }
759
772
  export interface Concurrency {
760
773
  ReservedConcurrentExecutions?: number | undefined;
@@ -1004,6 +1017,7 @@ export interface UpdateFunctionCodeRequest {
1004
1017
  S3Bucket?: string | undefined;
1005
1018
  S3Key?: string | undefined;
1006
1019
  S3ObjectVersion?: string | undefined;
1020
+ S3ObjectStorageMode?: S3ObjectStorageMode | undefined;
1007
1021
  ImageUri?: string | undefined;
1008
1022
  Architectures?: Architecture[] | undefined;
1009
1023
  Publish?: boolean | undefined;
@@ -1324,6 +1338,7 @@ export interface LayerVersionContentOutput {
1324
1338
  CodeSize?: number | undefined;
1325
1339
  SigningProfileVersionArn?: string | undefined;
1326
1340
  SigningJobArn?: string | undefined;
1341
+ ResolvedS3Object?: ResolvedS3Object | undefined;
1327
1342
  }
1328
1343
  export interface GetLayerVersionResponse {
1329
1344
  Content?: LayerVersionContentOutput | undefined;
@@ -1362,6 +1377,7 @@ export interface LayerVersionContentInput {
1362
1377
  S3Bucket?: string | undefined;
1363
1378
  S3Key?: string | undefined;
1364
1379
  S3ObjectVersion?: string | undefined;
1380
+ S3ObjectStorageMode?: S3ObjectStorageMode | undefined;
1365
1381
  ZipFile?: Uint8Array | undefined;
1366
1382
  }
1367
1383
  export interface PublishLayerVersionRequest {
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
22
22
  | RequestHandler;
23
23
  retryMode: string | import("@smithy/types").Provider<string>;
24
24
  sha256: import("@smithy/types").HashConstructor;
25
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
26
32
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
27
33
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
28
34
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -23,7 +23,13 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
23
23
  | import("@smithy/core/protocols").HttpHandler<any>;
24
24
  retryMode: string | import("@smithy/types").Provider<string>;
25
25
  sha256: import("@smithy/types").HashConstructor;
26
- streamCollector: import("@smithy/types").StreamCollector;
26
+ streamCollector: (
27
+ stream:
28
+ | import("stream").Readable
29
+ | import("stream/web").ReadableStream
30
+ | ReadableStream
31
+ | Blob
32
+ ) => Promise<Uint8Array>;
27
33
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
34
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
35
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
20
20
  apiVersion: string;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
- streamCollector: import("@smithy/types").StreamCollector;
23
+ streamCollector: (
24
+ stream:
25
+ | import("stream").Readable
26
+ | import("stream/web").ReadableStream
27
+ | ReadableStream
28
+ | Blob
29
+ ) => Promise<Uint8Array>;
24
30
  base64Decoder: import("@smithy/types").Decoder;
25
31
  base64Encoder: (_input: Uint8Array | string) => string;
26
32
  utf8Decoder: import("@smithy/types").Decoder;
@@ -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.1074.0",
4
+ "version": "3.1076.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",
@@ -27,17 +27,17 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
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",
30
+ "@aws-sdk/core": "^3.974.24",
31
+ "@aws-sdk/credential-provider-node": "^3.972.59",
32
+ "@aws-sdk/types": "^3.973.14",
33
+ "@smithy/core": "^3.27.0",
34
+ "@smithy/fetch-http-handler": "^5.6.0",
35
+ "@smithy/node-http-handler": "^4.9.0",
36
+ "@smithy/types": "^4.15.0",
37
37
  "tslib": "^2.6.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@smithy/snapshot-testing": "^2.1.7",
40
+ "@smithy/snapshot-testing": "^2.2.3",
41
41
  "@tsconfig/node20": "20.1.8",
42
42
  "@types/node": "^20.14.8",
43
43
  "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);