@aws-sdk/client-lambda 3.653.0 → 3.655.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 (152) hide show
  1. package/dist-cjs/index.js +31 -24
  2. package/dist-es/models/models_0.js +14 -14
  3. package/dist-es/protocols/Aws_restJson1.js +10 -3
  4. package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +11 -0
  5. package/dist-types/commands/AddPermissionCommand.d.ts +17 -1
  6. package/dist-types/commands/CreateAliasCommand.d.ts +11 -0
  7. package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +14 -0
  8. package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +15 -0
  9. package/dist-types/commands/CreateFunctionCommand.d.ts +11 -0
  10. package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +11 -0
  11. package/dist-types/commands/DeleteAliasCommand.d.ts +11 -0
  12. package/dist-types/commands/DeleteCodeSigningConfigCommand.d.ts +11 -0
  13. package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +12 -0
  14. package/dist-types/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +11 -0
  15. package/dist-types/commands/DeleteFunctionCommand.d.ts +11 -0
  16. package/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +11 -0
  17. package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +11 -0
  18. package/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +11 -0
  19. package/dist-types/commands/DeleteLayerVersionCommand.d.ts +11 -0
  20. package/dist-types/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +11 -0
  21. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +16 -1
  22. package/dist-types/commands/GetAccountSettingsCommand.d.ts +11 -0
  23. package/dist-types/commands/GetAliasCommand.d.ts +11 -0
  24. package/dist-types/commands/GetCodeSigningConfigCommand.d.ts +11 -0
  25. package/dist-types/commands/GetEventSourceMappingCommand.d.ts +12 -0
  26. package/dist-types/commands/GetFunctionCodeSigningConfigCommand.d.ts +11 -0
  27. package/dist-types/commands/GetFunctionCommand.d.ts +11 -0
  28. package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +11 -0
  29. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +11 -0
  30. package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +11 -0
  31. package/dist-types/commands/GetFunctionRecursionConfigCommand.d.ts +11 -0
  32. package/dist-types/commands/GetFunctionUrlConfigCommand.d.ts +11 -0
  33. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +11 -0
  34. package/dist-types/commands/GetLayerVersionCommand.d.ts +11 -0
  35. package/dist-types/commands/GetLayerVersionPolicyCommand.d.ts +11 -0
  36. package/dist-types/commands/GetPolicyCommand.d.ts +11 -0
  37. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +11 -0
  38. package/dist-types/commands/GetPublicAccessBlockConfigCommand.d.ts +16 -1
  39. package/dist-types/commands/GetResourcePolicyCommand.d.ts +16 -1
  40. package/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +11 -0
  41. package/dist-types/commands/InvokeAsyncCommand.d.ts +11 -0
  42. package/dist-types/commands/InvokeCommand.d.ts +11 -0
  43. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +11 -0
  44. package/dist-types/commands/ListAliasesCommand.d.ts +11 -0
  45. package/dist-types/commands/ListCodeSigningConfigsCommand.d.ts +11 -0
  46. package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +12 -0
  47. package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +11 -0
  48. package/dist-types/commands/ListFunctionUrlConfigsCommand.d.ts +11 -0
  49. package/dist-types/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +11 -0
  50. package/dist-types/commands/ListFunctionsCommand.d.ts +11 -0
  51. package/dist-types/commands/ListLayerVersionsCommand.d.ts +11 -0
  52. package/dist-types/commands/ListLayersCommand.d.ts +11 -0
  53. package/dist-types/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +11 -0
  54. package/dist-types/commands/ListTagsCommand.d.ts +13 -2
  55. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +11 -0
  56. package/dist-types/commands/PublishLayerVersionCommand.d.ts +11 -0
  57. package/dist-types/commands/PublishVersionCommand.d.ts +11 -0
  58. package/dist-types/commands/PutFunctionCodeSigningConfigCommand.d.ts +11 -0
  59. package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +11 -0
  60. package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +11 -0
  61. package/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +11 -0
  62. package/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +11 -0
  63. package/dist-types/commands/PutPublicAccessBlockConfigCommand.d.ts +16 -1
  64. package/dist-types/commands/PutResourcePolicyCommand.d.ts +16 -1
  65. package/dist-types/commands/PutRuntimeManagementConfigCommand.d.ts +11 -0
  66. package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +11 -0
  67. package/dist-types/commands/RemovePermissionCommand.d.ts +16 -0
  68. package/dist-types/commands/TagResourceCommand.d.ts +12 -1
  69. package/dist-types/commands/UntagResourceCommand.d.ts +12 -1
  70. package/dist-types/commands/UpdateAliasCommand.d.ts +11 -0
  71. package/dist-types/commands/UpdateCodeSigningConfigCommand.d.ts +11 -0
  72. package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +12 -0
  73. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +11 -0
  74. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +11 -0
  75. package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +11 -0
  76. package/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +11 -0
  77. package/dist-types/models/models_0.d.ts +42 -27
  78. package/dist-types/ts3.4/commands/AddLayerVersionPermissionCommand.d.ts +12 -1
  79. package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +12 -1
  80. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +12 -1
  81. package/dist-types/ts3.4/commands/CreateCodeSigningConfigCommand.d.ts +12 -1
  82. package/dist-types/ts3.4/commands/CreateEventSourceMappingCommand.d.ts +12 -1
  83. package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +12 -1
  84. package/dist-types/ts3.4/commands/CreateFunctionUrlConfigCommand.d.ts +12 -1
  85. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +12 -1
  86. package/dist-types/ts3.4/commands/DeleteCodeSigningConfigCommand.d.ts +12 -1
  87. package/dist-types/ts3.4/commands/DeleteEventSourceMappingCommand.d.ts +12 -1
  88. package/dist-types/ts3.4/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +12 -1
  89. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +12 -1
  90. package/dist-types/ts3.4/commands/DeleteFunctionConcurrencyCommand.d.ts +12 -1
  91. package/dist-types/ts3.4/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +12 -1
  92. package/dist-types/ts3.4/commands/DeleteFunctionUrlConfigCommand.d.ts +12 -1
  93. package/dist-types/ts3.4/commands/DeleteLayerVersionCommand.d.ts +12 -1
  94. package/dist-types/ts3.4/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +12 -1
  95. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +12 -1
  96. package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +12 -1
  97. package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +12 -1
  98. package/dist-types/ts3.4/commands/GetCodeSigningConfigCommand.d.ts +12 -1
  99. package/dist-types/ts3.4/commands/GetEventSourceMappingCommand.d.ts +12 -1
  100. package/dist-types/ts3.4/commands/GetFunctionCodeSigningConfigCommand.d.ts +12 -1
  101. package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +12 -1
  102. package/dist-types/ts3.4/commands/GetFunctionConcurrencyCommand.d.ts +12 -1
  103. package/dist-types/ts3.4/commands/GetFunctionConfigurationCommand.d.ts +12 -1
  104. package/dist-types/ts3.4/commands/GetFunctionEventInvokeConfigCommand.d.ts +12 -1
  105. package/dist-types/ts3.4/commands/GetFunctionRecursionConfigCommand.d.ts +12 -1
  106. package/dist-types/ts3.4/commands/GetFunctionUrlConfigCommand.d.ts +12 -1
  107. package/dist-types/ts3.4/commands/GetLayerVersionByArnCommand.d.ts +12 -1
  108. package/dist-types/ts3.4/commands/GetLayerVersionCommand.d.ts +12 -1
  109. package/dist-types/ts3.4/commands/GetLayerVersionPolicyCommand.d.ts +12 -1
  110. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +12 -1
  111. package/dist-types/ts3.4/commands/GetProvisionedConcurrencyConfigCommand.d.ts +12 -1
  112. package/dist-types/ts3.4/commands/GetPublicAccessBlockConfigCommand.d.ts +12 -1
  113. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +12 -1
  114. package/dist-types/ts3.4/commands/GetRuntimeManagementConfigCommand.d.ts +12 -1
  115. package/dist-types/ts3.4/commands/InvokeAsyncCommand.d.ts +12 -1
  116. package/dist-types/ts3.4/commands/InvokeCommand.d.ts +12 -1
  117. package/dist-types/ts3.4/commands/InvokeWithResponseStreamCommand.d.ts +12 -1
  118. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +12 -1
  119. package/dist-types/ts3.4/commands/ListCodeSigningConfigsCommand.d.ts +12 -1
  120. package/dist-types/ts3.4/commands/ListEventSourceMappingsCommand.d.ts +12 -1
  121. package/dist-types/ts3.4/commands/ListFunctionEventInvokeConfigsCommand.d.ts +12 -1
  122. package/dist-types/ts3.4/commands/ListFunctionUrlConfigsCommand.d.ts +12 -1
  123. package/dist-types/ts3.4/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +12 -1
  124. package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +12 -1
  125. package/dist-types/ts3.4/commands/ListLayerVersionsCommand.d.ts +12 -1
  126. package/dist-types/ts3.4/commands/ListLayersCommand.d.ts +12 -1
  127. package/dist-types/ts3.4/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +12 -1
  128. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +12 -1
  129. package/dist-types/ts3.4/commands/ListVersionsByFunctionCommand.d.ts +12 -1
  130. package/dist-types/ts3.4/commands/PublishLayerVersionCommand.d.ts +12 -1
  131. package/dist-types/ts3.4/commands/PublishVersionCommand.d.ts +12 -1
  132. package/dist-types/ts3.4/commands/PutFunctionCodeSigningConfigCommand.d.ts +12 -1
  133. package/dist-types/ts3.4/commands/PutFunctionConcurrencyCommand.d.ts +12 -1
  134. package/dist-types/ts3.4/commands/PutFunctionEventInvokeConfigCommand.d.ts +12 -1
  135. package/dist-types/ts3.4/commands/PutFunctionRecursionConfigCommand.d.ts +12 -1
  136. package/dist-types/ts3.4/commands/PutProvisionedConcurrencyConfigCommand.d.ts +12 -1
  137. package/dist-types/ts3.4/commands/PutPublicAccessBlockConfigCommand.d.ts +12 -1
  138. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +12 -1
  139. package/dist-types/ts3.4/commands/PutRuntimeManagementConfigCommand.d.ts +12 -1
  140. package/dist-types/ts3.4/commands/RemoveLayerVersionPermissionCommand.d.ts +12 -1
  141. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +12 -1
  142. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +12 -1
  143. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +12 -1
  144. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +12 -1
  145. package/dist-types/ts3.4/commands/UpdateCodeSigningConfigCommand.d.ts +12 -1
  146. package/dist-types/ts3.4/commands/UpdateEventSourceMappingCommand.d.ts +12 -1
  147. package/dist-types/ts3.4/commands/UpdateFunctionCodeCommand.d.ts +12 -1
  148. package/dist-types/ts3.4/commands/UpdateFunctionConfigurationCommand.d.ts +12 -1
  149. package/dist-types/ts3.4/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +12 -1
  150. package/dist-types/ts3.4/commands/UpdateFunctionUrlConfigCommand.d.ts +12 -1
  151. package/dist-types/ts3.4/models/models_0.d.ts +12 -9
  152. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -527,6 +527,25 @@ var FunctionUrlAuthType = {
527
527
  AWS_IAM: "AWS_IAM",
528
528
  NONE: "NONE"
529
529
  };
530
+ var _PublicPolicyException = class _PublicPolicyException extends LambdaServiceException {
531
+ /**
532
+ * @internal
533
+ */
534
+ constructor(opts) {
535
+ super({
536
+ name: "PublicPolicyException",
537
+ $fault: "client",
538
+ ...opts
539
+ });
540
+ this.name = "PublicPolicyException";
541
+ this.$fault = "client";
542
+ Object.setPrototypeOf(this, _PublicPolicyException.prototype);
543
+ this.Type = opts.Type;
544
+ this.Message = opts.Message;
545
+ }
546
+ };
547
+ __name(_PublicPolicyException, "PublicPolicyException");
548
+ var PublicPolicyException = _PublicPolicyException;
530
549
  var ApplicationLogLevel = {
531
550
  Debug: "DEBUG",
532
551
  Error: "ERROR",
@@ -1321,25 +1340,6 @@ var InvokeWithResponseStreamResponseEvent;
1321
1340
  var FunctionVersion = {
1322
1341
  ALL: "ALL"
1323
1342
  };
1324
- var _PublicPolicyException = class _PublicPolicyException extends LambdaServiceException {
1325
- /**
1326
- * @internal
1327
- */
1328
- constructor(opts) {
1329
- super({
1330
- name: "PublicPolicyException",
1331
- $fault: "client",
1332
- ...opts
1333
- });
1334
- this.name = "PublicPolicyException";
1335
- this.$fault = "client";
1336
- Object.setPrototypeOf(this, _PublicPolicyException.prototype);
1337
- this.Type = opts.Type;
1338
- this.Message = opts.Message;
1339
- }
1340
- };
1341
- __name(_PublicPolicyException, "PublicPolicyException");
1342
- var PublicPolicyException = _PublicPolicyException;
1343
1343
  var FunctionCodeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1344
1344
  ...obj,
1345
1345
  ...obj.ZipFile && { ZipFile: import_smithy_client.SENSITIVE_STRING }
@@ -1529,7 +1529,8 @@ var se_CreateCodeSigningConfigCommand = /* @__PURE__ */ __name(async (input, con
1529
1529
  (0, import_smithy_client.take)(input, {
1530
1530
  AllowedPublishers: (_) => (0, import_smithy_client._json)(_),
1531
1531
  CodeSigningPolicies: (_) => (0, import_smithy_client._json)(_),
1532
- Description: []
1532
+ Description: [],
1533
+ Tags: (_) => (0, import_smithy_client._json)(_)
1533
1534
  })
1534
1535
  );
1535
1536
  b.m("POST").h(headers).b(body);
@@ -1566,6 +1567,7 @@ var se_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (input, co
1566
1567
  SourceAccessConfigurations: (_) => (0, import_smithy_client._json)(_),
1567
1568
  StartingPosition: [],
1568
1569
  StartingPositionTimestamp: (_) => _.getTime() / 1e3,
1570
+ Tags: (_) => (0, import_smithy_client._json)(_),
1569
1571
  Topics: (_) => (0, import_smithy_client._json)(_),
1570
1572
  TumblingWindowInSeconds: []
1571
1573
  })
@@ -2640,6 +2642,7 @@ var de_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
2640
2642
  DestinationConfig: import_smithy_client._json,
2641
2643
  DocumentDBEventSourceConfig: import_smithy_client._json,
2642
2644
  EventSourceArn: import_smithy_client.expectString,
2645
+ EventSourceMappingArn: import_smithy_client.expectString,
2643
2646
  FilterCriteria: import_smithy_client._json,
2644
2647
  FilterCriteriaError: import_smithy_client._json,
2645
2648
  FunctionArn: import_smithy_client.expectString,
@@ -2770,6 +2773,7 @@ var de_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
2770
2773
  DestinationConfig: import_smithy_client._json,
2771
2774
  DocumentDBEventSourceConfig: import_smithy_client._json,
2772
2775
  EventSourceArn: import_smithy_client.expectString,
2776
+ EventSourceMappingArn: import_smithy_client.expectString,
2773
2777
  FilterCriteria: import_smithy_client._json,
2774
2778
  FilterCriteriaError: import_smithy_client._json,
2775
2779
  FunctionArn: import_smithy_client.expectString,
@@ -2940,6 +2944,7 @@ var de_GetEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, cont
2940
2944
  DestinationConfig: import_smithy_client._json,
2941
2945
  DocumentDBEventSourceConfig: import_smithy_client._json,
2942
2946
  EventSourceArn: import_smithy_client.expectString,
2947
+ EventSourceMappingArn: import_smithy_client.expectString,
2943
2948
  FilterCriteria: import_smithy_client._json,
2944
2949
  FilterCriteriaError: import_smithy_client._json,
2945
2950
  FunctionArn: import_smithy_client.expectString,
@@ -3761,6 +3766,7 @@ var de_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
3761
3766
  DestinationConfig: import_smithy_client._json,
3762
3767
  DocumentDBEventSourceConfig: import_smithy_client._json,
3763
3768
  EventSourceArn: import_smithy_client.expectString,
3769
+ EventSourceMappingArn: import_smithy_client.expectString,
3764
3770
  FilterCriteria: import_smithy_client._json,
3765
3771
  FilterCriteriaError: import_smithy_client._json,
3766
3772
  FunctionArn: import_smithy_client.expectString,
@@ -3952,6 +3958,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3952
3958
  case "TooManyRequestsException":
3953
3959
  case "com.amazonaws.lambda#TooManyRequestsException":
3954
3960
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3961
+ case "PublicPolicyException":
3962
+ case "com.amazonaws.lambda#PublicPolicyException":
3963
+ throw await de_PublicPolicyExceptionRes(parsedOutput, context);
3955
3964
  case "CodeSigningConfigNotFoundException":
3956
3965
  case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
3957
3966
  throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
@@ -4045,9 +4054,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
4045
4054
  case "UnsupportedMediaTypeException":
4046
4055
  case "com.amazonaws.lambda#UnsupportedMediaTypeException":
4047
4056
  throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
4048
- case "PublicPolicyException":
4049
- case "com.amazonaws.lambda#PublicPolicyException":
4050
- throw await de_PublicPolicyExceptionRes(parsedOutput, context);
4051
4057
  default:
4052
4058
  const parsedBody = parsedOutput.body;
4053
4059
  return throwDefaultError({
@@ -4703,6 +4709,7 @@ var de_EventSourceMappingConfiguration = /* @__PURE__ */ __name((output, context
4703
4709
  DestinationConfig: import_smithy_client._json,
4704
4710
  DocumentDBEventSourceConfig: import_smithy_client._json,
4705
4711
  EventSourceArn: import_smithy_client.expectString,
4712
+ EventSourceMappingArn: import_smithy_client.expectString,
4706
4713
  FilterCriteria: import_smithy_client._json,
4707
4714
  FilterCriteriaError: import_smithy_client._json,
4708
4715
  FunctionArn: import_smithy_client.expectString,
@@ -6323,6 +6330,7 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6323
6330
  ThrottleReason,
6324
6331
  TooManyRequestsException,
6325
6332
  FunctionUrlAuthType,
6333
+ PublicPolicyException,
6326
6334
  ApplicationLogLevel,
6327
6335
  Architecture,
6328
6336
  CodeSigningPolicy,
@@ -6382,7 +6390,6 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6382
6390
  ResponseStreamingInvocationType,
6383
6391
  InvokeWithResponseStreamResponseEvent,
6384
6392
  FunctionVersion,
6385
- PublicPolicyException,
6386
6393
  FunctionCodeFilterSensitiveLog,
6387
6394
  EnvironmentFilterSensitiveLog,
6388
6395
  CreateFunctionRequestFilterSensitiveLog,
@@ -107,6 +107,20 @@ export const FunctionUrlAuthType = {
107
107
  AWS_IAM: "AWS_IAM",
108
108
  NONE: "NONE",
109
109
  };
110
+ export class PublicPolicyException extends __BaseException {
111
+ constructor(opts) {
112
+ super({
113
+ name: "PublicPolicyException",
114
+ $fault: "client",
115
+ ...opts,
116
+ });
117
+ this.name = "PublicPolicyException";
118
+ this.$fault = "client";
119
+ Object.setPrototypeOf(this, PublicPolicyException.prototype);
120
+ this.Type = opts.Type;
121
+ this.Message = opts.Message;
122
+ }
123
+ }
110
124
  export const ApplicationLogLevel = {
111
125
  Debug: "DEBUG",
112
126
  Error: "ERROR",
@@ -746,20 +760,6 @@ export var InvokeWithResponseStreamResponseEvent;
746
760
  export const FunctionVersion = {
747
761
  ALL: "ALL",
748
762
  };
749
- export class PublicPolicyException extends __BaseException {
750
- constructor(opts) {
751
- super({
752
- name: "PublicPolicyException",
753
- $fault: "client",
754
- ...opts,
755
- });
756
- this.name = "PublicPolicyException";
757
- this.$fault = "client";
758
- Object.setPrototypeOf(this, PublicPolicyException.prototype);
759
- this.Type = opts.Type;
760
- this.Message = opts.Message;
761
- }
762
- }
763
763
  export const FunctionCodeFilterSensitiveLog = (obj) => ({
764
764
  ...obj,
765
765
  ...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
@@ -77,6 +77,7 @@ export const se_CreateCodeSigningConfigCommand = async (input, context) => {
77
77
  AllowedPublishers: (_) => _json(_),
78
78
  CodeSigningPolicies: (_) => _json(_),
79
79
  Description: [],
80
+ Tags: (_) => _json(_),
80
81
  }));
81
82
  b.m("POST").h(headers).b(body);
82
83
  return b.build();
@@ -111,6 +112,7 @@ export const se_CreateEventSourceMappingCommand = async (input, context) => {
111
112
  SourceAccessConfigurations: (_) => _json(_),
112
113
  StartingPosition: [],
113
114
  StartingPositionTimestamp: (_) => _.getTime() / 1000,
115
+ Tags: (_) => _json(_),
114
116
  Topics: (_) => _json(_),
115
117
  TumblingWindowInSeconds: [],
116
118
  }));
@@ -1144,6 +1146,7 @@ export const de_CreateEventSourceMappingCommand = async (output, context) => {
1144
1146
  DestinationConfig: _json,
1145
1147
  DocumentDBEventSourceConfig: _json,
1146
1148
  EventSourceArn: __expectString,
1149
+ EventSourceMappingArn: __expectString,
1147
1150
  FilterCriteria: _json,
1148
1151
  FilterCriteriaError: _json,
1149
1152
  FunctionArn: __expectString,
@@ -1274,6 +1277,7 @@ export const de_DeleteEventSourceMappingCommand = async (output, context) => {
1274
1277
  DestinationConfig: _json,
1275
1278
  DocumentDBEventSourceConfig: _json,
1276
1279
  EventSourceArn: __expectString,
1280
+ EventSourceMappingArn: __expectString,
1277
1281
  FilterCriteria: _json,
1278
1282
  FilterCriteriaError: _json,
1279
1283
  FunctionArn: __expectString,
@@ -1444,6 +1448,7 @@ export const de_GetEventSourceMappingCommand = async (output, context) => {
1444
1448
  DestinationConfig: _json,
1445
1449
  DocumentDBEventSourceConfig: _json,
1446
1450
  EventSourceArn: __expectString,
1451
+ EventSourceMappingArn: __expectString,
1447
1452
  FilterCriteria: _json,
1448
1453
  FilterCriteriaError: _json,
1449
1454
  FunctionArn: __expectString,
@@ -2265,6 +2270,7 @@ export const de_UpdateEventSourceMappingCommand = async (output, context) => {
2265
2270
  DestinationConfig: _json,
2266
2271
  DocumentDBEventSourceConfig: _json,
2267
2272
  EventSourceArn: __expectString,
2273
+ EventSourceMappingArn: __expectString,
2268
2274
  FilterCriteria: _json,
2269
2275
  FilterCriteriaError: _json,
2270
2276
  FunctionArn: __expectString,
@@ -2456,6 +2462,9 @@ const de_CommandError = async (output, context) => {
2456
2462
  case "TooManyRequestsException":
2457
2463
  case "com.amazonaws.lambda#TooManyRequestsException":
2458
2464
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2465
+ case "PublicPolicyException":
2466
+ case "com.amazonaws.lambda#PublicPolicyException":
2467
+ throw await de_PublicPolicyExceptionRes(parsedOutput, context);
2459
2468
  case "CodeSigningConfigNotFoundException":
2460
2469
  case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
2461
2470
  throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
@@ -2549,9 +2558,6 @@ const de_CommandError = async (output, context) => {
2549
2558
  case "UnsupportedMediaTypeException":
2550
2559
  case "com.amazonaws.lambda#UnsupportedMediaTypeException":
2551
2560
  throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
2552
- case "PublicPolicyException":
2553
- case "com.amazonaws.lambda#PublicPolicyException":
2554
- throw await de_PublicPolicyExceptionRes(parsedOutput, context);
2555
2561
  default:
2556
2562
  const parsedBody = parsedOutput.body;
2557
2563
  return throwDefaultError({
@@ -3209,6 +3215,7 @@ const de_EventSourceMappingConfiguration = (output, context) => {
3209
3215
  DestinationConfig: _json,
3210
3216
  DocumentDBEventSourceConfig: _json,
3211
3217
  EventSourceArn: __expectString,
3218
+ EventSourceMappingArn: __expectString,
3212
3219
  FilterCriteria: _json,
3213
3220
  FilterCriteriaError: _json,
3214
3221
  FunctionArn: __expectString,
@@ -100,4 +100,15 @@ declare const AddLayerVersionPermissionCommand_base: {
100
100
  * @public
101
101
  */
102
102
  export declare class AddLayerVersionPermissionCommand extends AddLayerVersionPermissionCommand_base {
103
+ /** @internal type navigation helper, not in runtime. */
104
+ protected static __types: {
105
+ api: {
106
+ input: AddLayerVersionPermissionRequest;
107
+ output: AddLayerVersionPermissionResponse;
108
+ };
109
+ sdk: {
110
+ input: AddLayerVersionPermissionCommandInput;
111
+ output: AddLayerVersionPermissionCommandOutput;
112
+ };
113
+ };
103
114
  }
@@ -27,7 +27,7 @@ declare const AddPermissionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Grants an Amazon Web Servicesservice, Amazon Web Services account, or Amazon Web Services organization
30
+ * <p>Grants a <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">principal</a>
31
31
  * permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict
32
32
  * access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name
33
33
  * (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies
@@ -92,6 +92,11 @@ declare const AddPermissionCommand_base: {
92
92
  * </li>
93
93
  * </ul>
94
94
  *
95
+ * @throws {@link PublicPolicyException} (client fault)
96
+ * <p>Lambda prevented your policy from being created because it would grant public access to your function. If you intended to
97
+ * create a public policy, use the <a>PutPublicAccessBlockConfig</a> API action to configure your function's public-access settings
98
+ * to allow public policies.</p>
99
+ *
95
100
  * @throws {@link ResourceConflictException} (client fault)
96
101
  * <p>The resource already exists, or another operation is in progress.</p>
97
102
  *
@@ -110,4 +115,15 @@ declare const AddPermissionCommand_base: {
110
115
  * @public
111
116
  */
112
117
  export declare class AddPermissionCommand extends AddPermissionCommand_base {
118
+ /** @internal type navigation helper, not in runtime. */
119
+ protected static __types: {
120
+ api: {
121
+ input: AddPermissionRequest;
122
+ output: AddPermissionResponse;
123
+ };
124
+ sdk: {
125
+ input: AddPermissionCommandInput;
126
+ output: AddPermissionCommandOutput;
127
+ };
128
+ };
113
129
  }
@@ -94,4 +94,15 @@ declare const CreateAliasCommand_base: {
94
94
  * @public
95
95
  */
96
96
  export declare class CreateAliasCommand extends CreateAliasCommand_base {
97
+ /** @internal type navigation helper, not in runtime. */
98
+ protected static __types: {
99
+ api: {
100
+ input: CreateAliasRequest;
101
+ output: AliasConfiguration;
102
+ };
103
+ sdk: {
104
+ input: CreateAliasCommandInput;
105
+ output: CreateAliasCommandOutput;
106
+ };
107
+ };
97
108
  }
@@ -46,6 +46,9 @@ declare const CreateCodeSigningConfigCommand_base: {
46
46
  * CodeSigningPolicies: { // CodeSigningPolicies
47
47
  * UntrustedArtifactOnDeployment: "Warn" || "Enforce",
48
48
  * },
49
+ * Tags: { // Tags
50
+ * "<keys>": "STRING_VALUE",
51
+ * },
49
52
  * };
50
53
  * const command = new CreateCodeSigningConfigCommand(input);
51
54
  * const response = await client.send(command);
@@ -86,4 +89,15 @@ declare const CreateCodeSigningConfigCommand_base: {
86
89
  * @public
87
90
  */
88
91
  export declare class CreateCodeSigningConfigCommand extends CreateCodeSigningConfigCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: CreateCodeSigningConfigRequest;
96
+ output: CreateCodeSigningConfigResponse;
97
+ };
98
+ sdk: {
99
+ input: CreateCodeSigningConfigCommandInput;
100
+ output: CreateCodeSigningConfigCommandOutput;
101
+ };
102
+ };
89
103
  }
@@ -174,6 +174,9 @@ declare const CreateEventSourceMappingCommand_base: {
174
174
  * MaximumRecordAgeInSeconds: Number("int"),
175
175
  * BisectBatchOnFunctionError: true || false,
176
176
  * MaximumRetryAttempts: Number("int"),
177
+ * Tags: { // Tags
178
+ * "<keys>": "STRING_VALUE",
179
+ * },
177
180
  * TumblingWindowInSeconds: Number("int"),
178
181
  * Topics: [ // Topics
179
182
  * "STRING_VALUE",
@@ -288,6 +291,7 @@ declare const CreateEventSourceMappingCommand_base: {
288
291
  * // ErrorCode: "STRING_VALUE",
289
292
  * // Message: "STRING_VALUE",
290
293
  * // },
294
+ * // EventSourceMappingArn: "STRING_VALUE",
291
295
  * // };
292
296
  *
293
297
  * ```
@@ -319,4 +323,15 @@ declare const CreateEventSourceMappingCommand_base: {
319
323
  * @public
320
324
  */
321
325
  export declare class CreateEventSourceMappingCommand extends CreateEventSourceMappingCommand_base {
326
+ /** @internal type navigation helper, not in runtime. */
327
+ protected static __types: {
328
+ api: {
329
+ input: CreateEventSourceMappingRequest;
330
+ output: EventSourceMappingConfiguration;
331
+ };
332
+ sdk: {
333
+ input: CreateEventSourceMappingCommandInput;
334
+ output: CreateEventSourceMappingCommandOutput;
335
+ };
336
+ };
322
337
  }
@@ -296,4 +296,15 @@ declare const CreateFunctionCommand_base: {
296
296
  * @public
297
297
  */
298
298
  export declare class CreateFunctionCommand extends CreateFunctionCommand_base {
299
+ /** @internal type navigation helper, not in runtime. */
300
+ protected static __types: {
301
+ api: {
302
+ input: CreateFunctionRequest;
303
+ output: FunctionConfiguration;
304
+ };
305
+ sdk: {
306
+ input: CreateFunctionCommandInput;
307
+ output: CreateFunctionCommandOutput;
308
+ };
309
+ };
299
310
  }
@@ -112,4 +112,15 @@ declare const CreateFunctionUrlConfigCommand_base: {
112
112
  * @public
113
113
  */
114
114
  export declare class CreateFunctionUrlConfigCommand extends CreateFunctionUrlConfigCommand_base {
115
+ /** @internal type navigation helper, not in runtime. */
116
+ protected static __types: {
117
+ api: {
118
+ input: CreateFunctionUrlConfigRequest;
119
+ output: CreateFunctionUrlConfigResponse;
120
+ };
121
+ sdk: {
122
+ input: CreateFunctionUrlConfigCommandInput;
123
+ output: CreateFunctionUrlConfigCommandOutput;
124
+ };
125
+ };
115
126
  }
@@ -68,4 +68,15 @@ declare const DeleteAliasCommand_base: {
68
68
  * @public
69
69
  */
70
70
  export declare class DeleteAliasCommand extends DeleteAliasCommand_base {
71
+ /** @internal type navigation helper, not in runtime. */
72
+ protected static __types: {
73
+ api: {
74
+ input: DeleteAliasRequest;
75
+ output: {};
76
+ };
77
+ sdk: {
78
+ input: DeleteAliasCommandInput;
79
+ output: DeleteAliasCommandOutput;
80
+ };
81
+ };
71
82
  }
@@ -68,4 +68,15 @@ declare const DeleteCodeSigningConfigCommand_base: {
68
68
  * @public
69
69
  */
70
70
  export declare class DeleteCodeSigningConfigCommand extends DeleteCodeSigningConfigCommand_base {
71
+ /** @internal type navigation helper, not in runtime. */
72
+ protected static __types: {
73
+ api: {
74
+ input: DeleteCodeSigningConfigRequest;
75
+ output: {};
76
+ };
77
+ sdk: {
78
+ input: DeleteCodeSigningConfigCommandInput;
79
+ output: DeleteCodeSigningConfigCommandOutput;
80
+ };
81
+ };
71
82
  }
@@ -115,6 +115,7 @@ declare const DeleteEventSourceMappingCommand_base: {
115
115
  * // ErrorCode: "STRING_VALUE",
116
116
  * // Message: "STRING_VALUE",
117
117
  * // },
118
+ * // EventSourceMappingArn: "STRING_VALUE",
118
119
  * // };
119
120
  *
120
121
  * ```
@@ -150,4 +151,15 @@ declare const DeleteEventSourceMappingCommand_base: {
150
151
  * @public
151
152
  */
152
153
  export declare class DeleteEventSourceMappingCommand extends DeleteEventSourceMappingCommand_base {
154
+ /** @internal type navigation helper, not in runtime. */
155
+ protected static __types: {
156
+ api: {
157
+ input: DeleteEventSourceMappingRequest;
158
+ output: EventSourceMappingConfiguration;
159
+ };
160
+ sdk: {
161
+ input: DeleteEventSourceMappingCommandInput;
162
+ output: DeleteEventSourceMappingCommandOutput;
163
+ };
164
+ };
153
165
  }
@@ -73,4 +73,15 @@ declare const DeleteFunctionCodeSigningConfigCommand_base: {
73
73
  * @public
74
74
  */
75
75
  export declare class DeleteFunctionCodeSigningConfigCommand extends DeleteFunctionCodeSigningConfigCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: DeleteFunctionCodeSigningConfigRequest;
80
+ output: {};
81
+ };
82
+ sdk: {
83
+ input: DeleteFunctionCodeSigningConfigCommandInput;
84
+ output: DeleteFunctionCodeSigningConfigCommandOutput;
85
+ };
86
+ };
76
87
  }
@@ -75,4 +75,15 @@ declare const DeleteFunctionCommand_base: {
75
75
  * @public
76
76
  */
77
77
  export declare class DeleteFunctionCommand extends DeleteFunctionCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: DeleteFunctionRequest;
82
+ output: {};
83
+ };
84
+ sdk: {
85
+ input: DeleteFunctionCommandInput;
86
+ output: DeleteFunctionCommandOutput;
87
+ };
88
+ };
78
89
  }
@@ -70,4 +70,15 @@ declare const DeleteFunctionConcurrencyCommand_base: {
70
70
  * @public
71
71
  */
72
72
  export declare class DeleteFunctionConcurrencyCommand extends DeleteFunctionConcurrencyCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: DeleteFunctionConcurrencyRequest;
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: DeleteFunctionConcurrencyCommandInput;
81
+ output: DeleteFunctionConcurrencyCommandOutput;
82
+ };
83
+ };
73
84
  }
@@ -72,4 +72,15 @@ declare const DeleteFunctionEventInvokeConfigCommand_base: {
72
72
  * @public
73
73
  */
74
74
  export declare class DeleteFunctionEventInvokeConfigCommand extends DeleteFunctionEventInvokeConfigCommand_base {
75
+ /** @internal type navigation helper, not in runtime. */
76
+ protected static __types: {
77
+ api: {
78
+ input: DeleteFunctionEventInvokeConfigRequest;
79
+ output: {};
80
+ };
81
+ sdk: {
82
+ input: DeleteFunctionEventInvokeConfigCommandInput;
83
+ output: DeleteFunctionEventInvokeConfigCommandOutput;
84
+ };
85
+ };
75
86
  }
@@ -69,4 +69,15 @@ declare const DeleteFunctionUrlConfigCommand_base: {
69
69
  * @public
70
70
  */
71
71
  export declare class DeleteFunctionUrlConfigCommand extends DeleteFunctionUrlConfigCommand_base {
72
+ /** @internal type navigation helper, not in runtime. */
73
+ protected static __types: {
74
+ api: {
75
+ input: DeleteFunctionUrlConfigRequest;
76
+ output: {};
77
+ };
78
+ sdk: {
79
+ input: DeleteFunctionUrlConfigCommandInput;
80
+ output: DeleteFunctionUrlConfigCommandOutput;
81
+ };
82
+ };
72
83
  }
@@ -64,4 +64,15 @@ declare const DeleteLayerVersionCommand_base: {
64
64
  * @public
65
65
  */
66
66
  export declare class DeleteLayerVersionCommand extends DeleteLayerVersionCommand_base {
67
+ /** @internal type navigation helper, not in runtime. */
68
+ protected static __types: {
69
+ api: {
70
+ input: DeleteLayerVersionRequest;
71
+ output: {};
72
+ };
73
+ sdk: {
74
+ input: DeleteLayerVersionCommandInput;
75
+ output: DeleteLayerVersionCommandOutput;
76
+ };
77
+ };
67
78
  }
@@ -71,4 +71,15 @@ declare const DeleteProvisionedConcurrencyConfigCommand_base: {
71
71
  * @public
72
72
  */
73
73
  export declare class DeleteProvisionedConcurrencyConfigCommand extends DeleteProvisionedConcurrencyConfigCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: DeleteProvisionedConcurrencyConfigRequest;
78
+ output: {};
79
+ };
80
+ sdk: {
81
+ input: DeleteProvisionedConcurrencyConfigCommandInput;
82
+ output: DeleteProvisionedConcurrencyConfigCommandOutput;
83
+ };
84
+ };
74
85
  }
@@ -27,7 +27,11 @@ declare const DeleteResourcePolicyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> from a function.</p>
30
+ * <note>
31
+ * <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be
32
+ * available in all Amazon Web Services Regions until September 30, 2024.</p>
33
+ * </note>
34
+ * <p>Deletes a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> from a function.</p>
31
35
  * @example
32
36
  * Use a bare-bones client and the command you need to make an API call.
33
37
  * ```javascript
@@ -84,4 +88,15 @@ declare const DeleteResourcePolicyCommand_base: {
84
88
  * @public
85
89
  */
86
90
  export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: DeleteResourcePolicyRequest;
95
+ output: {};
96
+ };
97
+ sdk: {
98
+ input: DeleteResourcePolicyCommandInput;
99
+ output: DeleteResourcePolicyCommandOutput;
100
+ };
101
+ };
87
102
  }
@@ -71,4 +71,15 @@ declare const GetAccountSettingsCommand_base: {
71
71
  * @public
72
72
  */
73
73
  export declare class GetAccountSettingsCommand extends GetAccountSettingsCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: {};
78
+ output: GetAccountSettingsResponse;
79
+ };
80
+ sdk: {
81
+ input: GetAccountSettingsCommandInput;
82
+ output: GetAccountSettingsCommandOutput;
83
+ };
84
+ };
74
85
  }
@@ -79,4 +79,15 @@ declare const GetAliasCommand_base: {
79
79
  * @public
80
80
  */
81
81
  export declare class GetAliasCommand extends GetAliasCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: GetAliasRequest;
86
+ output: AliasConfiguration;
87
+ };
88
+ sdk: {
89
+ input: GetAliasCommandInput;
90
+ output: GetAliasCommandOutput;
91
+ };
92
+ };
82
93
  }