@aws-sdk/client-lambda 3.651.1 → 3.653.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/README.md +40 -0
  2. package/dist-cjs/index.js +254 -0
  3. package/dist-es/Lambda.js +10 -0
  4. package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -0
  5. package/dist-es/commands/GetPublicAccessBlockConfigCommand.js +22 -0
  6. package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
  7. package/dist-es/commands/PutPublicAccessBlockConfigCommand.js +22 -0
  8. package/dist-es/commands/PutResourcePolicyCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +14 -0
  11. package/dist-es/protocols/Aws_restJson1.js +145 -1
  12. package/dist-types/Lambda.d.ts +35 -0
  13. package/dist-types/LambdaClient.d.ts +7 -2
  14. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +87 -0
  15. package/dist-types/commands/GetPublicAccessBlockConfigCommand.d.ts +75 -0
  16. package/dist-types/commands/GetResourcePolicyCommand.d.ts +73 -0
  17. package/dist-types/commands/PutPublicAccessBlockConfigCommand.d.ts +86 -0
  18. package/dist-types/commands/PutResourcePolicyCommand.d.ts +109 -0
  19. package/dist-types/commands/index.d.ts +5 -0
  20. package/dist-types/models/models_0.d.ts +174 -0
  21. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  22. package/dist-types/ts3.4/Lambda.d.ts +85 -0
  23. package/dist-types/ts3.4/LambdaClient.d.ts +30 -0
  24. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +35 -0
  25. package/dist-types/ts3.4/commands/GetPublicAccessBlockConfigCommand.d.ts +40 -0
  26. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +40 -0
  27. package/dist-types/ts3.4/commands/PutPublicAccessBlockConfigCommand.d.ts +40 -0
  28. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +40 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +46 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  32. package/package.json +1 -1
package/README.md CHANGED
@@ -403,6 +403,14 @@ DeleteProvisionedConcurrencyConfig
403
403
 
404
404
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/DeleteProvisionedConcurrencyConfigCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/DeleteProvisionedConcurrencyConfigCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/DeleteProvisionedConcurrencyConfigCommandOutput/)
405
405
 
406
+ </details>
407
+ <details>
408
+ <summary>
409
+ DeleteResourcePolicy
410
+ </summary>
411
+
412
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/DeleteResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/DeleteResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/DeleteResourcePolicyCommandOutput/)
413
+
406
414
  </details>
407
415
  <details>
408
416
  <summary>
@@ -531,6 +539,22 @@ GetProvisionedConcurrencyConfig
531
539
 
532
540
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/GetProvisionedConcurrencyConfigCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/GetProvisionedConcurrencyConfigCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/GetProvisionedConcurrencyConfigCommandOutput/)
533
541
 
542
+ </details>
543
+ <details>
544
+ <summary>
545
+ GetPublicAccessBlockConfig
546
+ </summary>
547
+
548
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/GetPublicAccessBlockConfigCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/GetPublicAccessBlockConfigCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/GetPublicAccessBlockConfigCommandOutput/)
549
+
550
+ </details>
551
+ <details>
552
+ <summary>
553
+ GetResourcePolicy
554
+ </summary>
555
+
556
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/GetResourcePolicyCommandOutput/)
557
+
534
558
  </details>
535
559
  <details>
536
560
  <summary>
@@ -715,6 +739,22 @@ PutProvisionedConcurrencyConfig
715
739
 
716
740
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/PutProvisionedConcurrencyConfigCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/PutProvisionedConcurrencyConfigCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/PutProvisionedConcurrencyConfigCommandOutput/)
717
741
 
742
+ </details>
743
+ <details>
744
+ <summary>
745
+ PutPublicAccessBlockConfig
746
+ </summary>
747
+
748
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/PutPublicAccessBlockConfigCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/PutPublicAccessBlockConfigCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/PutPublicAccessBlockConfigCommandOutput/)
749
+
750
+ </details>
751
+ <details>
752
+ <summary>
753
+ PutResourcePolicy
754
+ </summary>
755
+
756
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/PutResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/PutResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lambda/Interface/PutResourcePolicyCommandOutput/)
757
+
718
758
  </details>
719
759
  <details>
720
760
  <summary>
package/dist-cjs/index.js CHANGED
@@ -45,6 +45,7 @@ __export(src_exports, {
45
45
  DeleteFunctionUrlConfigCommand: () => DeleteFunctionUrlConfigCommand,
46
46
  DeleteLayerVersionCommand: () => DeleteLayerVersionCommand,
47
47
  DeleteProvisionedConcurrencyConfigCommand: () => DeleteProvisionedConcurrencyConfigCommand,
48
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
48
49
  EC2AccessDeniedException: () => EC2AccessDeniedException,
49
50
  EC2ThrottledException: () => EC2ThrottledException,
50
51
  EC2UnexpectedException: () => EC2UnexpectedException,
@@ -81,6 +82,8 @@ __export(src_exports, {
81
82
  GetLayerVersionPolicyCommand: () => GetLayerVersionPolicyCommand,
82
83
  GetPolicyCommand: () => GetPolicyCommand,
83
84
  GetProvisionedConcurrencyConfigCommand: () => GetProvisionedConcurrencyConfigCommand,
85
+ GetPublicAccessBlockConfigCommand: () => GetPublicAccessBlockConfigCommand,
86
+ GetResourcePolicyCommand: () => GetResourcePolicyCommand,
84
87
  GetRuntimeManagementConfigCommand: () => GetRuntimeManagementConfigCommand,
85
88
  ImageConfigErrorFilterSensitiveLog: () => ImageConfigErrorFilterSensitiveLog,
86
89
  ImageConfigResponseFilterSensitiveLog: () => ImageConfigResponseFilterSensitiveLog,
@@ -135,6 +138,7 @@ __export(src_exports, {
135
138
  PreconditionFailedException: () => PreconditionFailedException,
136
139
  ProvisionedConcurrencyConfigNotFoundException: () => ProvisionedConcurrencyConfigNotFoundException,
137
140
  ProvisionedConcurrencyStatusEnum: () => ProvisionedConcurrencyStatusEnum,
141
+ PublicPolicyException: () => PublicPolicyException,
138
142
  PublishLayerVersionCommand: () => PublishLayerVersionCommand,
139
143
  PublishLayerVersionRequestFilterSensitiveLog: () => PublishLayerVersionRequestFilterSensitiveLog,
140
144
  PublishVersionCommand: () => PublishVersionCommand,
@@ -143,6 +147,8 @@ __export(src_exports, {
143
147
  PutFunctionEventInvokeConfigCommand: () => PutFunctionEventInvokeConfigCommand,
144
148
  PutFunctionRecursionConfigCommand: () => PutFunctionRecursionConfigCommand,
145
149
  PutProvisionedConcurrencyConfigCommand: () => PutProvisionedConcurrencyConfigCommand,
150
+ PutPublicAccessBlockConfigCommand: () => PutPublicAccessBlockConfigCommand,
151
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
146
152
  PutRuntimeManagementConfigCommand: () => PutRuntimeManagementConfigCommand,
147
153
  RecursiveInvocationException: () => RecursiveInvocationException,
148
154
  RecursiveLoop: () => RecursiveLoop,
@@ -1315,6 +1321,25 @@ var InvokeWithResponseStreamResponseEvent;
1315
1321
  var FunctionVersion = {
1316
1322
  ALL: "ALL"
1317
1323
  };
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;
1318
1343
  var FunctionCodeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1319
1344
  ...obj,
1320
1345
  ...obj.ZipFile && { ZipFile: import_smithy_client.SENSITIVE_STRING }
@@ -1711,6 +1736,18 @@ var se_DeleteProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async
1711
1736
  b.m("DELETE").h(headers).q(query).b(body);
1712
1737
  return b.build();
1713
1738
  }, "se_DeleteProvisionedConcurrencyConfigCommand");
1739
+ var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1740
+ const b = (0, import_core.requestBuilder)(input, context);
1741
+ const headers = {};
1742
+ b.bp("/2024-09-16/resource-policy/{ResourceArn}");
1743
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1744
+ const query = (0, import_smithy_client.map)({
1745
+ [_RI]: [, input[_RI]]
1746
+ });
1747
+ let body;
1748
+ b.m("DELETE").h(headers).q(query).b(body);
1749
+ return b.build();
1750
+ }, "se_DeleteResourcePolicyCommand");
1714
1751
  var se_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
1715
1752
  const b = (0, import_core.requestBuilder)(input, context);
1716
1753
  const headers = {};
@@ -1878,6 +1915,24 @@ var se_GetProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (in
1878
1915
  b.m("GET").h(headers).q(query).b(body);
1879
1916
  return b.build();
1880
1917
  }, "se_GetProvisionedConcurrencyConfigCommand");
1918
+ var se_GetPublicAccessBlockConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
1919
+ const b = (0, import_core.requestBuilder)(input, context);
1920
+ const headers = {};
1921
+ b.bp("/2024-09-16/public-access-block/{ResourceArn}");
1922
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1923
+ let body;
1924
+ b.m("GET").h(headers).b(body);
1925
+ return b.build();
1926
+ }, "se_GetPublicAccessBlockConfigCommand");
1927
+ var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1928
+ const b = (0, import_core.requestBuilder)(input, context);
1929
+ const headers = {};
1930
+ b.bp("/2024-09-16/resource-policy/{ResourceArn}");
1931
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1932
+ let body;
1933
+ b.m("GET").h(headers).b(body);
1934
+ return b.build();
1935
+ }, "se_GetResourcePolicyCommand");
1881
1936
  var se_GetRuntimeManagementConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
1882
1937
  const b = (0, import_core.requestBuilder)(input, context);
1883
1938
  const headers = {};
@@ -2228,6 +2283,39 @@ var se_PutProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (in
2228
2283
  b.m("PUT").h(headers).q(query).b(body);
2229
2284
  return b.build();
2230
2285
  }, "se_PutProvisionedConcurrencyConfigCommand");
2286
+ var se_PutPublicAccessBlockConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
2287
+ const b = (0, import_core.requestBuilder)(input, context);
2288
+ const headers = {
2289
+ "content-type": "application/json"
2290
+ };
2291
+ b.bp("/2024-09-16/public-access-block/{ResourceArn}");
2292
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
2293
+ let body;
2294
+ body = JSON.stringify(
2295
+ (0, import_smithy_client.take)(input, {
2296
+ PublicAccessBlockConfig: (_) => (0, import_smithy_client._json)(_)
2297
+ })
2298
+ );
2299
+ b.m("PUT").h(headers).b(body);
2300
+ return b.build();
2301
+ }, "se_PutPublicAccessBlockConfigCommand");
2302
+ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
2303
+ const b = (0, import_core.requestBuilder)(input, context);
2304
+ const headers = {
2305
+ "content-type": "application/json"
2306
+ };
2307
+ b.bp("/2024-09-16/resource-policy/{ResourceArn}");
2308
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
2309
+ let body;
2310
+ body = JSON.stringify(
2311
+ (0, import_smithy_client.take)(input, {
2312
+ Policy: [],
2313
+ RevisionId: []
2314
+ })
2315
+ );
2316
+ b.m("PUT").h(headers).b(body);
2317
+ return b.build();
2318
+ }, "se_PutResourcePolicyCommand");
2231
2319
  var se_PutRuntimeManagementConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
2232
2320
  const b = (0, import_core.requestBuilder)(input, context);
2233
2321
  const headers = {
@@ -2779,6 +2867,16 @@ var de_DeleteProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async
2779
2867
  await (0, import_smithy_client.collectBody)(output.body, context);
2780
2868
  return contents;
2781
2869
  }, "de_DeleteProvisionedConcurrencyConfigCommand");
2870
+ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2871
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2872
+ return de_CommandError(output, context);
2873
+ }
2874
+ const contents = (0, import_smithy_client.map)({
2875
+ $metadata: deserializeMetadata(output)
2876
+ });
2877
+ await (0, import_smithy_client.collectBody)(output.body, context);
2878
+ return contents;
2879
+ }, "de_DeleteResourcePolicyCommand");
2782
2880
  var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2783
2881
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2784
2882
  return de_CommandError(output, context);
@@ -3109,6 +3207,35 @@ var de_GetProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (ou
3109
3207
  Object.assign(contents, doc);
3110
3208
  return contents;
3111
3209
  }, "de_GetProvisionedConcurrencyConfigCommand");
3210
+ var de_GetPublicAccessBlockConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
3211
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3212
+ return de_CommandError(output, context);
3213
+ }
3214
+ const contents = (0, import_smithy_client.map)({
3215
+ $metadata: deserializeMetadata(output)
3216
+ });
3217
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3218
+ const doc = (0, import_smithy_client.take)(data, {
3219
+ PublicAccessBlockConfig: import_smithy_client._json
3220
+ });
3221
+ Object.assign(contents, doc);
3222
+ return contents;
3223
+ }, "de_GetPublicAccessBlockConfigCommand");
3224
+ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
3225
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3226
+ return de_CommandError(output, context);
3227
+ }
3228
+ const contents = (0, import_smithy_client.map)({
3229
+ $metadata: deserializeMetadata(output)
3230
+ });
3231
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3232
+ const doc = (0, import_smithy_client.take)(data, {
3233
+ Policy: import_smithy_client.expectString,
3234
+ RevisionId: import_smithy_client.expectString
3235
+ });
3236
+ Object.assign(contents, doc);
3237
+ return contents;
3238
+ }, "de_GetResourcePolicyCommand");
3112
3239
  var de_GetRuntimeManagementConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
3113
3240
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3114
3241
  return de_CommandError(output, context);
@@ -3501,6 +3628,35 @@ var de_PutProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (ou
3501
3628
  Object.assign(contents, doc);
3502
3629
  return contents;
3503
3630
  }, "de_PutProvisionedConcurrencyConfigCommand");
3631
+ var de_PutPublicAccessBlockConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
3632
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3633
+ return de_CommandError(output, context);
3634
+ }
3635
+ const contents = (0, import_smithy_client.map)({
3636
+ $metadata: deserializeMetadata(output)
3637
+ });
3638
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3639
+ const doc = (0, import_smithy_client.take)(data, {
3640
+ PublicAccessBlockConfig: import_smithy_client._json
3641
+ });
3642
+ Object.assign(contents, doc);
3643
+ return contents;
3644
+ }, "de_PutPublicAccessBlockConfigCommand");
3645
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
3646
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3647
+ return de_CommandError(output, context);
3648
+ }
3649
+ const contents = (0, import_smithy_client.map)({
3650
+ $metadata: deserializeMetadata(output)
3651
+ });
3652
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3653
+ const doc = (0, import_smithy_client.take)(data, {
3654
+ Policy: import_smithy_client.expectString,
3655
+ RevisionId: import_smithy_client.expectString
3656
+ });
3657
+ Object.assign(contents, doc);
3658
+ return contents;
3659
+ }, "de_PutResourcePolicyCommand");
3504
3660
  var de_PutRuntimeManagementConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
3505
3661
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3506
3662
  return de_CommandError(output, context);
@@ -3889,6 +4045,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3889
4045
  case "UnsupportedMediaTypeException":
3890
4046
  case "com.amazonaws.lambda#UnsupportedMediaTypeException":
3891
4047
  throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
4048
+ case "PublicPolicyException":
4049
+ case "com.amazonaws.lambda#PublicPolicyException":
4050
+ throw await de_PublicPolicyExceptionRes(parsedOutput, context);
3892
4051
  default:
3893
4052
  const parsedBody = parsedOutput.body;
3894
4053
  return throwDefaultError({
@@ -4250,6 +4409,20 @@ var de_ProvisionedConcurrencyConfigNotFoundExceptionRes = /* @__PURE__ */ __name
4250
4409
  });
4251
4410
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4252
4411
  }, "de_ProvisionedConcurrencyConfigNotFoundExceptionRes");
4412
+ var de_PublicPolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4413
+ const contents = (0, import_smithy_client.map)({});
4414
+ const data = parsedOutput.body;
4415
+ const doc = (0, import_smithy_client.take)(data, {
4416
+ Message: import_smithy_client.expectString,
4417
+ Type: import_smithy_client.expectString
4418
+ });
4419
+ Object.assign(contents, doc);
4420
+ const exception = new PublicPolicyException({
4421
+ $metadata: deserializeMetadata(parsedOutput),
4422
+ ...contents
4423
+ });
4424
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4425
+ }, "de_PublicPolicyExceptionRes");
4253
4426
  var de_RecursiveInvocationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4254
4427
  const contents = (0, import_smithy_client.map)({});
4255
4428
  const data = parsedOutput.body;
@@ -4850,6 +5023,20 @@ var _DeleteProvisionedConcurrencyConfigCommand = class _DeleteProvisionedConcurr
4850
5023
  __name(_DeleteProvisionedConcurrencyConfigCommand, "DeleteProvisionedConcurrencyConfigCommand");
4851
5024
  var DeleteProvisionedConcurrencyConfigCommand = _DeleteProvisionedConcurrencyConfigCommand;
4852
5025
 
5026
+ // src/commands/DeleteResourcePolicyCommand.ts
5027
+
5028
+
5029
+
5030
+ var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5031
+ return [
5032
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5033
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5034
+ ];
5035
+ }).s("AWSGirApiService", "DeleteResourcePolicy", {}).n("LambdaClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
5036
+ };
5037
+ __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
5038
+ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
5039
+
4853
5040
  // src/commands/GetAccountSettingsCommand.ts
4854
5041
 
4855
5042
 
@@ -5074,6 +5261,34 @@ var _GetProvisionedConcurrencyConfigCommand = class _GetProvisionedConcurrencyCo
5074
5261
  __name(_GetProvisionedConcurrencyConfigCommand, "GetProvisionedConcurrencyConfigCommand");
5075
5262
  var GetProvisionedConcurrencyConfigCommand = _GetProvisionedConcurrencyConfigCommand;
5076
5263
 
5264
+ // src/commands/GetPublicAccessBlockConfigCommand.ts
5265
+
5266
+
5267
+
5268
+ var _GetPublicAccessBlockConfigCommand = class _GetPublicAccessBlockConfigCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5269
+ return [
5270
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5271
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5272
+ ];
5273
+ }).s("AWSGirApiService", "GetPublicAccessBlockConfig", {}).n("LambdaClient", "GetPublicAccessBlockConfigCommand").f(void 0, void 0).ser(se_GetPublicAccessBlockConfigCommand).de(de_GetPublicAccessBlockConfigCommand).build() {
5274
+ };
5275
+ __name(_GetPublicAccessBlockConfigCommand, "GetPublicAccessBlockConfigCommand");
5276
+ var GetPublicAccessBlockConfigCommand = _GetPublicAccessBlockConfigCommand;
5277
+
5278
+ // src/commands/GetResourcePolicyCommand.ts
5279
+
5280
+
5281
+
5282
+ var _GetResourcePolicyCommand = class _GetResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5283
+ return [
5284
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5285
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5286
+ ];
5287
+ }).s("AWSGirApiService", "GetResourcePolicy", {}).n("LambdaClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
5288
+ };
5289
+ __name(_GetResourcePolicyCommand, "GetResourcePolicyCommand");
5290
+ var GetResourcePolicyCommand = _GetResourcePolicyCommand;
5291
+
5077
5292
  // src/commands/GetRuntimeManagementConfigCommand.ts
5078
5293
 
5079
5294
 
@@ -5403,6 +5618,34 @@ var _PutProvisionedConcurrencyConfigCommand = class _PutProvisionedConcurrencyCo
5403
5618
  __name(_PutProvisionedConcurrencyConfigCommand, "PutProvisionedConcurrencyConfigCommand");
5404
5619
  var PutProvisionedConcurrencyConfigCommand = _PutProvisionedConcurrencyConfigCommand;
5405
5620
 
5621
+ // src/commands/PutPublicAccessBlockConfigCommand.ts
5622
+
5623
+
5624
+
5625
+ var _PutPublicAccessBlockConfigCommand = class _PutPublicAccessBlockConfigCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5626
+ return [
5627
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5628
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5629
+ ];
5630
+ }).s("AWSGirApiService", "PutPublicAccessBlockConfig", {}).n("LambdaClient", "PutPublicAccessBlockConfigCommand").f(void 0, void 0).ser(se_PutPublicAccessBlockConfigCommand).de(de_PutPublicAccessBlockConfigCommand).build() {
5631
+ };
5632
+ __name(_PutPublicAccessBlockConfigCommand, "PutPublicAccessBlockConfigCommand");
5633
+ var PutPublicAccessBlockConfigCommand = _PutPublicAccessBlockConfigCommand;
5634
+
5635
+ // src/commands/PutResourcePolicyCommand.ts
5636
+
5637
+
5638
+
5639
+ var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5640
+ return [
5641
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5642
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5643
+ ];
5644
+ }).s("AWSGirApiService", "PutResourcePolicy", {}).n("LambdaClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
5645
+ };
5646
+ __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
5647
+ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
5648
+
5406
5649
  // src/commands/PutRuntimeManagementConfigCommand.ts
5407
5650
 
5408
5651
 
@@ -5590,6 +5833,7 @@ var commands = {
5590
5833
  DeleteFunctionUrlConfigCommand,
5591
5834
  DeleteLayerVersionCommand,
5592
5835
  DeleteProvisionedConcurrencyConfigCommand,
5836
+ DeleteResourcePolicyCommand,
5593
5837
  GetAccountSettingsCommand,
5594
5838
  GetAliasCommand,
5595
5839
  GetCodeSigningConfigCommand,
@@ -5606,6 +5850,8 @@ var commands = {
5606
5850
  GetLayerVersionPolicyCommand,
5607
5851
  GetPolicyCommand,
5608
5852
  GetProvisionedConcurrencyConfigCommand,
5853
+ GetPublicAccessBlockConfigCommand,
5854
+ GetResourcePolicyCommand,
5609
5855
  GetRuntimeManagementConfigCommand,
5610
5856
  InvokeCommand,
5611
5857
  InvokeAsyncCommand,
@@ -5629,6 +5875,8 @@ var commands = {
5629
5875
  PutFunctionEventInvokeConfigCommand,
5630
5876
  PutFunctionRecursionConfigCommand,
5631
5877
  PutProvisionedConcurrencyConfigCommand,
5878
+ PutPublicAccessBlockConfigCommand,
5879
+ PutResourcePolicyCommand,
5632
5880
  PutRuntimeManagementConfigCommand,
5633
5881
  RemoveLayerVersionPermissionCommand,
5634
5882
  RemovePermissionCommand,
@@ -5987,6 +6235,7 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
5987
6235
  DeleteFunctionUrlConfigCommand,
5988
6236
  DeleteLayerVersionCommand,
5989
6237
  DeleteProvisionedConcurrencyConfigCommand,
6238
+ DeleteResourcePolicyCommand,
5990
6239
  GetAccountSettingsCommand,
5991
6240
  GetAliasCommand,
5992
6241
  GetCodeSigningConfigCommand,
@@ -6003,6 +6252,8 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6003
6252
  GetLayerVersionPolicyCommand,
6004
6253
  GetPolicyCommand,
6005
6254
  GetProvisionedConcurrencyConfigCommand,
6255
+ GetPublicAccessBlockConfigCommand,
6256
+ GetResourcePolicyCommand,
6006
6257
  GetRuntimeManagementConfigCommand,
6007
6258
  InvokeAsyncCommand,
6008
6259
  InvokeCommand,
@@ -6026,6 +6277,8 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6026
6277
  PutFunctionEventInvokeConfigCommand,
6027
6278
  PutFunctionRecursionConfigCommand,
6028
6279
  PutProvisionedConcurrencyConfigCommand,
6280
+ PutPublicAccessBlockConfigCommand,
6281
+ PutResourcePolicyCommand,
6029
6282
  PutRuntimeManagementConfigCommand,
6030
6283
  RemoveLayerVersionPermissionCommand,
6031
6284
  RemovePermissionCommand,
@@ -6129,6 +6382,7 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6129
6382
  ResponseStreamingInvocationType,
6130
6383
  InvokeWithResponseStreamResponseEvent,
6131
6384
  FunctionVersion,
6385
+ PublicPolicyException,
6132
6386
  FunctionCodeFilterSensitiveLog,
6133
6387
  EnvironmentFilterSensitiveLog,
6134
6388
  CreateFunctionRequestFilterSensitiveLog,
package/dist-es/Lambda.js CHANGED
@@ -16,6 +16,7 @@ import { DeleteFunctionEventInvokeConfigCommand, } from "./commands/DeleteFuncti
16
16
  import { DeleteFunctionUrlConfigCommand, } from "./commands/DeleteFunctionUrlConfigCommand";
17
17
  import { DeleteLayerVersionCommand, } from "./commands/DeleteLayerVersionCommand";
18
18
  import { DeleteProvisionedConcurrencyConfigCommand, } from "./commands/DeleteProvisionedConcurrencyConfigCommand";
19
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
19
20
  import { GetAccountSettingsCommand, } from "./commands/GetAccountSettingsCommand";
20
21
  import { GetAliasCommand } from "./commands/GetAliasCommand";
21
22
  import { GetCodeSigningConfigCommand, } from "./commands/GetCodeSigningConfigCommand";
@@ -32,6 +33,8 @@ import { GetLayerVersionCommand, } from "./commands/GetLayerVersionCommand";
32
33
  import { GetLayerVersionPolicyCommand, } from "./commands/GetLayerVersionPolicyCommand";
33
34
  import { GetPolicyCommand } from "./commands/GetPolicyCommand";
34
35
  import { GetProvisionedConcurrencyConfigCommand, } from "./commands/GetProvisionedConcurrencyConfigCommand";
36
+ import { GetPublicAccessBlockConfigCommand, } from "./commands/GetPublicAccessBlockConfigCommand";
37
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
35
38
  import { GetRuntimeManagementConfigCommand, } from "./commands/GetRuntimeManagementConfigCommand";
36
39
  import { InvokeAsyncCommand } from "./commands/InvokeAsyncCommand";
37
40
  import { InvokeCommand } from "./commands/InvokeCommand";
@@ -55,6 +58,8 @@ import { PutFunctionConcurrencyCommand, } from "./commands/PutFunctionConcurrenc
55
58
  import { PutFunctionEventInvokeConfigCommand, } from "./commands/PutFunctionEventInvokeConfigCommand";
56
59
  import { PutFunctionRecursionConfigCommand, } from "./commands/PutFunctionRecursionConfigCommand";
57
60
  import { PutProvisionedConcurrencyConfigCommand, } from "./commands/PutProvisionedConcurrencyConfigCommand";
61
+ import { PutPublicAccessBlockConfigCommand, } from "./commands/PutPublicAccessBlockConfigCommand";
62
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
58
63
  import { PutRuntimeManagementConfigCommand, } from "./commands/PutRuntimeManagementConfigCommand";
59
64
  import { RemoveLayerVersionPermissionCommand, } from "./commands/RemoveLayerVersionPermissionCommand";
60
65
  import { RemovePermissionCommand, } from "./commands/RemovePermissionCommand";
@@ -86,6 +91,7 @@ const commands = {
86
91
  DeleteFunctionUrlConfigCommand,
87
92
  DeleteLayerVersionCommand,
88
93
  DeleteProvisionedConcurrencyConfigCommand,
94
+ DeleteResourcePolicyCommand,
89
95
  GetAccountSettingsCommand,
90
96
  GetAliasCommand,
91
97
  GetCodeSigningConfigCommand,
@@ -102,6 +108,8 @@ const commands = {
102
108
  GetLayerVersionPolicyCommand,
103
109
  GetPolicyCommand,
104
110
  GetProvisionedConcurrencyConfigCommand,
111
+ GetPublicAccessBlockConfigCommand,
112
+ GetResourcePolicyCommand,
105
113
  GetRuntimeManagementConfigCommand,
106
114
  InvokeCommand,
107
115
  InvokeAsyncCommand,
@@ -125,6 +133,8 @@ const commands = {
125
133
  PutFunctionEventInvokeConfigCommand,
126
134
  PutFunctionRecursionConfigCommand,
127
135
  PutProvisionedConcurrencyConfigCommand,
136
+ PutPublicAccessBlockConfigCommand,
137
+ PutResourcePolicyCommand,
128
138
  PutRuntimeManagementConfigCommand,
129
139
  RemoveLayerVersionPermissionCommand,
130
140
  RemovePermissionCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSGirApiService", "DeleteResourcePolicy", {})
17
+ .n("LambdaClient", "DeleteResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteResourcePolicyCommand)
20
+ .de(de_DeleteResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetPublicAccessBlockConfigCommand, se_GetPublicAccessBlockConfigCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetPublicAccessBlockConfigCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSGirApiService", "GetPublicAccessBlockConfig", {})
17
+ .n("LambdaClient", "GetPublicAccessBlockConfigCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetPublicAccessBlockConfigCommand)
20
+ .de(de_GetPublicAccessBlockConfigCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSGirApiService", "GetResourcePolicy", {})
17
+ .n("LambdaClient", "GetResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetResourcePolicyCommand)
20
+ .de(de_GetResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutPublicAccessBlockConfigCommand, se_PutPublicAccessBlockConfigCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutPublicAccessBlockConfigCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSGirApiService", "PutPublicAccessBlockConfig", {})
17
+ .n("LambdaClient", "PutPublicAccessBlockConfigCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_PutPublicAccessBlockConfigCommand)
20
+ .de(de_PutPublicAccessBlockConfigCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSGirApiService", "PutResourcePolicy", {})
17
+ .n("LambdaClient", "PutResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_PutResourcePolicyCommand)
20
+ .de(de_PutResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -15,6 +15,7 @@ export * from "./DeleteFunctionEventInvokeConfigCommand";
15
15
  export * from "./DeleteFunctionUrlConfigCommand";
16
16
  export * from "./DeleteLayerVersionCommand";
17
17
  export * from "./DeleteProvisionedConcurrencyConfigCommand";
18
+ export * from "./DeleteResourcePolicyCommand";
18
19
  export * from "./GetAccountSettingsCommand";
19
20
  export * from "./GetAliasCommand";
20
21
  export * from "./GetCodeSigningConfigCommand";
@@ -31,6 +32,8 @@ export * from "./GetLayerVersionCommand";
31
32
  export * from "./GetLayerVersionPolicyCommand";
32
33
  export * from "./GetPolicyCommand";
33
34
  export * from "./GetProvisionedConcurrencyConfigCommand";
35
+ export * from "./GetPublicAccessBlockConfigCommand";
36
+ export * from "./GetResourcePolicyCommand";
34
37
  export * from "./GetRuntimeManagementConfigCommand";
35
38
  export * from "./InvokeAsyncCommand";
36
39
  export * from "./InvokeCommand";
@@ -54,6 +57,8 @@ export * from "./PutFunctionConcurrencyCommand";
54
57
  export * from "./PutFunctionEventInvokeConfigCommand";
55
58
  export * from "./PutFunctionRecursionConfigCommand";
56
59
  export * from "./PutProvisionedConcurrencyConfigCommand";
60
+ export * from "./PutPublicAccessBlockConfigCommand";
61
+ export * from "./PutResourcePolicyCommand";
57
62
  export * from "./PutRuntimeManagementConfigCommand";
58
63
  export * from "./RemoveLayerVersionPermissionCommand";
59
64
  export * from "./RemovePermissionCommand";