@aws-sdk/client-lambda 3.928.0 → 3.930.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 (92) hide show
  1. package/dist-cjs/index.js +3678 -3911
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/LambdaClient.js +2 -0
  4. package/dist-es/commands/AddLayerVersionPermissionCommand.js +3 -9
  5. package/dist-es/commands/AddPermissionCommand.js +3 -9
  6. package/dist-es/commands/CreateAliasCommand.js +3 -9
  7. package/dist-es/commands/CreateCodeSigningConfigCommand.js +3 -9
  8. package/dist-es/commands/CreateEventSourceMappingCommand.js +3 -9
  9. package/dist-es/commands/CreateFunctionCommand.js +3 -10
  10. package/dist-es/commands/CreateFunctionUrlConfigCommand.js +3 -9
  11. package/dist-es/commands/DeleteAliasCommand.js +3 -9
  12. package/dist-es/commands/DeleteCodeSigningConfigCommand.js +3 -9
  13. package/dist-es/commands/DeleteEventSourceMappingCommand.js +3 -9
  14. package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +3 -9
  15. package/dist-es/commands/DeleteFunctionCommand.js +3 -9
  16. package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +3 -9
  17. package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +3 -9
  18. package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +3 -9
  19. package/dist-es/commands/DeleteLayerVersionCommand.js +3 -9
  20. package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +3 -9
  21. package/dist-es/commands/GetAccountSettingsCommand.js +3 -9
  22. package/dist-es/commands/GetAliasCommand.js +3 -9
  23. package/dist-es/commands/GetCodeSigningConfigCommand.js +3 -9
  24. package/dist-es/commands/GetEventSourceMappingCommand.js +3 -9
  25. package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +3 -9
  26. package/dist-es/commands/GetFunctionCommand.js +3 -10
  27. package/dist-es/commands/GetFunctionConcurrencyCommand.js +3 -9
  28. package/dist-es/commands/GetFunctionConfigurationCommand.js +3 -10
  29. package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +3 -9
  30. package/dist-es/commands/GetFunctionRecursionConfigCommand.js +3 -9
  31. package/dist-es/commands/GetFunctionUrlConfigCommand.js +3 -9
  32. package/dist-es/commands/GetLayerVersionByArnCommand.js +3 -9
  33. package/dist-es/commands/GetLayerVersionCommand.js +3 -9
  34. package/dist-es/commands/GetLayerVersionPolicyCommand.js +3 -9
  35. package/dist-es/commands/GetPolicyCommand.js +3 -9
  36. package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +3 -9
  37. package/dist-es/commands/GetRuntimeManagementConfigCommand.js +3 -9
  38. package/dist-es/commands/InvokeAsyncCommand.js +3 -10
  39. package/dist-es/commands/InvokeCommand.js +3 -10
  40. package/dist-es/commands/InvokeWithResponseStreamCommand.js +3 -10
  41. package/dist-es/commands/ListAliasesCommand.js +3 -9
  42. package/dist-es/commands/ListCodeSigningConfigsCommand.js +3 -9
  43. package/dist-es/commands/ListEventSourceMappingsCommand.js +3 -9
  44. package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +3 -9
  45. package/dist-es/commands/ListFunctionUrlConfigsCommand.js +3 -9
  46. package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +3 -9
  47. package/dist-es/commands/ListFunctionsCommand.js +3 -10
  48. package/dist-es/commands/ListLayerVersionsCommand.js +3 -9
  49. package/dist-es/commands/ListLayersCommand.js +3 -9
  50. package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +3 -9
  51. package/dist-es/commands/ListTagsCommand.js +3 -9
  52. package/dist-es/commands/ListVersionsByFunctionCommand.js +3 -10
  53. package/dist-es/commands/PublishLayerVersionCommand.js +3 -10
  54. package/dist-es/commands/PublishVersionCommand.js +3 -10
  55. package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +3 -9
  56. package/dist-es/commands/PutFunctionConcurrencyCommand.js +3 -9
  57. package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +3 -9
  58. package/dist-es/commands/PutFunctionRecursionConfigCommand.js +3 -9
  59. package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +3 -9
  60. package/dist-es/commands/PutRuntimeManagementConfigCommand.js +3 -9
  61. package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +3 -9
  62. package/dist-es/commands/RemovePermissionCommand.js +3 -9
  63. package/dist-es/commands/TagResourceCommand.js +3 -9
  64. package/dist-es/commands/UntagResourceCommand.js +3 -9
  65. package/dist-es/commands/UpdateAliasCommand.js +3 -9
  66. package/dist-es/commands/UpdateCodeSigningConfigCommand.js +3 -9
  67. package/dist-es/commands/UpdateEventSourceMappingCommand.js +3 -9
  68. package/dist-es/commands/UpdateFunctionCodeCommand.js +3 -10
  69. package/dist-es/commands/UpdateFunctionConfigurationCommand.js +3 -10
  70. package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +3 -9
  71. package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +3 -9
  72. package/dist-es/models/models_0.js +0 -118
  73. package/dist-es/runtimeConfig.shared.js +2 -0
  74. package/dist-es/schemas/schemas_0.js +3462 -0
  75. package/dist-types/LambdaClient.d.ts +10 -1
  76. package/dist-types/models/models_0.d.ts +4 -97
  77. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  78. package/dist-types/runtimeConfig.d.ts +1 -0
  79. package/dist-types/runtimeConfig.native.d.ts +1 -0
  80. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  81. package/dist-types/schemas/schemas_0.d.ts +319 -0
  82. package/dist-types/ts3.4/LambdaClient.d.ts +4 -0
  83. package/dist-types/ts3.4/models/models_0.d.ts +0 -72
  84. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  85. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  86. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  87. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  88. package/dist-types/ts3.4/schemas/schemas_0.d.ts +326 -0
  89. package/package.json +38 -38
  90. package/dist-es/protocols/Aws_restJson1.js +0 -3196
  91. package/dist-types/protocols/Aws_restJson1.d.ts +0 -614
  92. 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";
@@ -818,16 +817,6 @@ export const ResponseStreamingInvocationType = {
818
817
  DryRun: "DryRun",
819
818
  RequestResponse: "RequestResponse",
820
819
  };
821
- export var InvokeWithResponseStreamResponseEvent;
822
- (function (InvokeWithResponseStreamResponseEvent) {
823
- InvokeWithResponseStreamResponseEvent.visit = (value, visitor) => {
824
- if (value.PayloadChunk !== undefined)
825
- return visitor.PayloadChunk(value.PayloadChunk);
826
- if (value.InvokeComplete !== undefined)
827
- return visitor.InvokeComplete(value.InvokeComplete);
828
- return visitor._(value.$unknown[0], value.$unknown[1]);
829
- };
830
- })(InvokeWithResponseStreamResponseEvent || (InvokeWithResponseStreamResponseEvent = {}));
831
820
  export const FunctionVersion = {
832
821
  ALL: "ALL",
833
822
  };
@@ -850,110 +839,3 @@ export class ProvisionedConcurrencyConfigNotFoundException extends __BaseExcepti
850
839
  this.Type = opts.Type;
851
840
  }
852
841
  }
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,