@aws-sdk/client-lambda 3.927.0 → 3.929.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.
- package/dist-cjs/index.js +3678 -3901
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/LambdaClient.js +2 -0
- package/dist-es/commands/AddLayerVersionPermissionCommand.js +3 -9
- package/dist-es/commands/AddPermissionCommand.js +3 -9
- package/dist-es/commands/CreateAliasCommand.js +3 -9
- package/dist-es/commands/CreateCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/CreateEventSourceMappingCommand.js +3 -9
- package/dist-es/commands/CreateFunctionCommand.js +3 -10
- package/dist-es/commands/CreateFunctionUrlConfigCommand.js +3 -9
- package/dist-es/commands/DeleteAliasCommand.js +3 -9
- package/dist-es/commands/DeleteCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/DeleteEventSourceMappingCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +3 -9
- package/dist-es/commands/DeleteLayerVersionCommand.js +3 -9
- package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +3 -9
- package/dist-es/commands/GetAccountSettingsCommand.js +3 -9
- package/dist-es/commands/GetAliasCommand.js +3 -9
- package/dist-es/commands/GetCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/GetEventSourceMappingCommand.js +3 -9
- package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/GetFunctionCommand.js +3 -10
- package/dist-es/commands/GetFunctionConcurrencyCommand.js +3 -9
- package/dist-es/commands/GetFunctionConfigurationCommand.js +3 -10
- package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +3 -9
- package/dist-es/commands/GetFunctionRecursionConfigCommand.js +3 -9
- package/dist-es/commands/GetFunctionUrlConfigCommand.js +3 -9
- package/dist-es/commands/GetLayerVersionByArnCommand.js +3 -9
- package/dist-es/commands/GetLayerVersionCommand.js +3 -9
- package/dist-es/commands/GetLayerVersionPolicyCommand.js +3 -9
- package/dist-es/commands/GetPolicyCommand.js +3 -9
- package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +3 -9
- package/dist-es/commands/GetRuntimeManagementConfigCommand.js +3 -9
- package/dist-es/commands/InvokeAsyncCommand.js +3 -10
- package/dist-es/commands/InvokeCommand.js +3 -10
- package/dist-es/commands/InvokeWithResponseStreamCommand.js +3 -10
- package/dist-es/commands/ListAliasesCommand.js +3 -9
- package/dist-es/commands/ListCodeSigningConfigsCommand.js +3 -9
- package/dist-es/commands/ListEventSourceMappingsCommand.js +3 -9
- package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +3 -9
- package/dist-es/commands/ListFunctionUrlConfigsCommand.js +3 -9
- package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/ListFunctionsCommand.js +3 -10
- package/dist-es/commands/ListLayerVersionsCommand.js +3 -9
- package/dist-es/commands/ListLayersCommand.js +3 -9
- package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +3 -9
- package/dist-es/commands/ListTagsCommand.js +3 -9
- package/dist-es/commands/ListVersionsByFunctionCommand.js +3 -10
- package/dist-es/commands/PublishLayerVersionCommand.js +3 -10
- package/dist-es/commands/PublishVersionCommand.js +3 -10
- package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/PutFunctionConcurrencyCommand.js +3 -9
- package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +3 -9
- package/dist-es/commands/PutFunctionRecursionConfigCommand.js +3 -9
- package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +3 -9
- package/dist-es/commands/PutRuntimeManagementConfigCommand.js +3 -9
- package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +3 -9
- package/dist-es/commands/RemovePermissionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAliasCommand.js +3 -9
- package/dist-es/commands/UpdateCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/UpdateEventSourceMappingCommand.js +3 -9
- package/dist-es/commands/UpdateFunctionCodeCommand.js +3 -10
- package/dist-es/commands/UpdateFunctionConfigurationCommand.js +3 -10
- package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +3 -9
- package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -108
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +3462 -0
- package/dist-types/LambdaClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -96
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +319 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -68
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +326 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -3196
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -614
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -824
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { LambdaServiceException as __BaseException } from "./LambdaServiceException";
|
|
3
2
|
export class InvalidParameterValueException extends __BaseException {
|
|
4
3
|
name = "InvalidParameterValueException";
|
|
@@ -850,110 +849,3 @@ export class ProvisionedConcurrencyConfigNotFoundException extends __BaseExcepti
|
|
|
850
849
|
this.Type = opts.Type;
|
|
851
850
|
}
|
|
852
851
|
}
|
|
853
|
-
export const FunctionCodeFilterSensitiveLog = (obj) => ({
|
|
854
|
-
...obj,
|
|
855
|
-
...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
|
|
856
|
-
});
|
|
857
|
-
export const EnvironmentFilterSensitiveLog = (obj) => ({
|
|
858
|
-
...obj,
|
|
859
|
-
...(obj.Variables && { Variables: SENSITIVE_STRING }),
|
|
860
|
-
});
|
|
861
|
-
export const CreateFunctionRequestFilterSensitiveLog = (obj) => ({
|
|
862
|
-
...obj,
|
|
863
|
-
...(obj.Code && { Code: FunctionCodeFilterSensitiveLog(obj.Code) }),
|
|
864
|
-
...(obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }),
|
|
865
|
-
});
|
|
866
|
-
export const EnvironmentErrorFilterSensitiveLog = (obj) => ({
|
|
867
|
-
...obj,
|
|
868
|
-
...(obj.Message && { Message: SENSITIVE_STRING }),
|
|
869
|
-
});
|
|
870
|
-
export const EnvironmentResponseFilterSensitiveLog = (obj) => ({
|
|
871
|
-
...obj,
|
|
872
|
-
...(obj.Variables && { Variables: SENSITIVE_STRING }),
|
|
873
|
-
...(obj.Error && { Error: EnvironmentErrorFilterSensitiveLog(obj.Error) }),
|
|
874
|
-
});
|
|
875
|
-
export const ImageConfigErrorFilterSensitiveLog = (obj) => ({
|
|
876
|
-
...obj,
|
|
877
|
-
...(obj.Message && { Message: SENSITIVE_STRING }),
|
|
878
|
-
});
|
|
879
|
-
export const ImageConfigResponseFilterSensitiveLog = (obj) => ({
|
|
880
|
-
...obj,
|
|
881
|
-
...(obj.Error && { Error: ImageConfigErrorFilterSensitiveLog(obj.Error) }),
|
|
882
|
-
});
|
|
883
|
-
export const RuntimeVersionErrorFilterSensitiveLog = (obj) => ({
|
|
884
|
-
...obj,
|
|
885
|
-
...(obj.Message && { Message: SENSITIVE_STRING }),
|
|
886
|
-
});
|
|
887
|
-
export const RuntimeVersionConfigFilterSensitiveLog = (obj) => ({
|
|
888
|
-
...obj,
|
|
889
|
-
...(obj.Error && { Error: RuntimeVersionErrorFilterSensitiveLog(obj.Error) }),
|
|
890
|
-
});
|
|
891
|
-
export const FunctionConfigurationFilterSensitiveLog = (obj) => ({
|
|
892
|
-
...obj,
|
|
893
|
-
...(obj.Environment && { Environment: EnvironmentResponseFilterSensitiveLog(obj.Environment) }),
|
|
894
|
-
...(obj.ImageConfigResponse && {
|
|
895
|
-
ImageConfigResponse: ImageConfigResponseFilterSensitiveLog(obj.ImageConfigResponse),
|
|
896
|
-
}),
|
|
897
|
-
...(obj.RuntimeVersionConfig && {
|
|
898
|
-
RuntimeVersionConfig: RuntimeVersionConfigFilterSensitiveLog(obj.RuntimeVersionConfig),
|
|
899
|
-
}),
|
|
900
|
-
});
|
|
901
|
-
export const GetFunctionResponseFilterSensitiveLog = (obj) => ({
|
|
902
|
-
...obj,
|
|
903
|
-
...(obj.Configuration && { Configuration: FunctionConfigurationFilterSensitiveLog(obj.Configuration) }),
|
|
904
|
-
});
|
|
905
|
-
export const InvocationRequestFilterSensitiveLog = (obj) => ({
|
|
906
|
-
...obj,
|
|
907
|
-
...(obj.Payload && { Payload: SENSITIVE_STRING }),
|
|
908
|
-
});
|
|
909
|
-
export const InvocationResponseFilterSensitiveLog = (obj) => ({
|
|
910
|
-
...obj,
|
|
911
|
-
...(obj.Payload && { Payload: SENSITIVE_STRING }),
|
|
912
|
-
});
|
|
913
|
-
export const InvokeAsyncRequestFilterSensitiveLog = (obj) => ({
|
|
914
|
-
...obj,
|
|
915
|
-
});
|
|
916
|
-
export const InvokeWithResponseStreamRequestFilterSensitiveLog = (obj) => ({
|
|
917
|
-
...obj,
|
|
918
|
-
...(obj.Payload && { Payload: SENSITIVE_STRING }),
|
|
919
|
-
});
|
|
920
|
-
export const InvokeResponseStreamUpdateFilterSensitiveLog = (obj) => ({
|
|
921
|
-
...obj,
|
|
922
|
-
...(obj.Payload && { Payload: SENSITIVE_STRING }),
|
|
923
|
-
});
|
|
924
|
-
export const InvokeWithResponseStreamResponseEventFilterSensitiveLog = (obj) => {
|
|
925
|
-
if (obj.PayloadChunk !== undefined)
|
|
926
|
-
return { PayloadChunk: InvokeResponseStreamUpdateFilterSensitiveLog(obj.PayloadChunk) };
|
|
927
|
-
if (obj.InvokeComplete !== undefined)
|
|
928
|
-
return { InvokeComplete: obj.InvokeComplete };
|
|
929
|
-
if (obj.$unknown !== undefined)
|
|
930
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
931
|
-
};
|
|
932
|
-
export const InvokeWithResponseStreamResponseFilterSensitiveLog = (obj) => ({
|
|
933
|
-
...obj,
|
|
934
|
-
...(obj.EventStream && { EventStream: "STREAMING_CONTENT" }),
|
|
935
|
-
});
|
|
936
|
-
export const ListFunctionsResponseFilterSensitiveLog = (obj) => ({
|
|
937
|
-
...obj,
|
|
938
|
-
...(obj.Functions && { Functions: obj.Functions.map((item) => FunctionConfigurationFilterSensitiveLog(item)) }),
|
|
939
|
-
});
|
|
940
|
-
export const UpdateFunctionCodeRequestFilterSensitiveLog = (obj) => ({
|
|
941
|
-
...obj,
|
|
942
|
-
...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
|
|
943
|
-
});
|
|
944
|
-
export const UpdateFunctionConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
945
|
-
...obj,
|
|
946
|
-
...(obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }),
|
|
947
|
-
});
|
|
948
|
-
export const ListVersionsByFunctionResponseFilterSensitiveLog = (obj) => ({
|
|
949
|
-
...obj,
|
|
950
|
-
...(obj.Versions && { Versions: obj.Versions.map((item) => FunctionConfigurationFilterSensitiveLog(item)) }),
|
|
951
|
-
});
|
|
952
|
-
export const LayerVersionContentInputFilterSensitiveLog = (obj) => ({
|
|
953
|
-
...obj,
|
|
954
|
-
...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
|
|
955
|
-
});
|
|
956
|
-
export const PublishLayerVersionRequestFilterSensitiveLog = (obj) => ({
|
|
957
|
-
...obj,
|
|
958
|
-
...(obj.Content && { Content: LayerVersionContentInputFilterSensitiveLog(obj.Content) }),
|
|
959
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.lambda" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Lambda",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|