@aws-sdk/client-lambda 3.658.0 → 3.659.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 (38) hide show
  1. package/README.md +0 -40
  2. package/dist-cjs/index.js +3 -261
  3. package/dist-es/Lambda.js +0 -10
  4. package/dist-es/commands/index.js +0 -5
  5. package/dist-es/models/models_0.js +0 -14
  6. package/dist-es/protocols/Aws_restJson1.js +3 -155
  7. package/dist-types/Lambda.d.ts +0 -35
  8. package/dist-types/LambdaClient.d.ts +2 -7
  9. package/dist-types/commands/AddPermissionCommand.d.ts +2 -7
  10. package/dist-types/commands/CreateFunctionCommand.d.ts +3 -3
  11. package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
  12. package/dist-types/commands/ListTagsCommand.d.ts +1 -1
  13. package/dist-types/commands/RemovePermissionCommand.d.ts +1 -6
  14. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +1 -1
  15. package/dist-types/commands/index.d.ts +0 -5
  16. package/dist-types/models/models_0.d.ts +3 -177
  17. package/dist-types/protocols/Aws_restJson1.d.ts +0 -45
  18. package/dist-types/ts3.4/Lambda.d.ts +0 -85
  19. package/dist-types/ts3.4/LambdaClient.d.ts +0 -30
  20. package/dist-types/ts3.4/commands/index.d.ts +0 -5
  21. package/dist-types/ts3.4/models/models_0.d.ts +0 -46
  22. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -60
  23. package/package.json +13 -13
  24. package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -22
  25. package/dist-es/commands/GetPublicAccessBlockConfigCommand.js +0 -22
  26. package/dist-es/commands/GetResourcePolicyCommand.js +0 -22
  27. package/dist-es/commands/PutPublicAccessBlockConfigCommand.js +0 -22
  28. package/dist-es/commands/PutResourcePolicyCommand.js +0 -22
  29. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +0 -102
  30. package/dist-types/commands/GetPublicAccessBlockConfigCommand.d.ts +0 -90
  31. package/dist-types/commands/GetResourcePolicyCommand.d.ts +0 -88
  32. package/dist-types/commands/PutPublicAccessBlockConfigCommand.d.ts +0 -101
  33. package/dist-types/commands/PutResourcePolicyCommand.d.ts +0 -124
  34. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +0 -46
  35. package/dist-types/ts3.4/commands/GetPublicAccessBlockConfigCommand.d.ts +0 -51
  36. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +0 -51
  37. package/dist-types/ts3.4/commands/PutPublicAccessBlockConfigCommand.d.ts +0 -51
  38. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +0 -51
@@ -74,10 +74,6 @@ import {
74
74
  DeleteProvisionedConcurrencyConfigCommandInput,
75
75
  DeleteProvisionedConcurrencyConfigCommandOutput,
76
76
  } from "../commands/DeleteProvisionedConcurrencyConfigCommand";
77
- import {
78
- DeleteResourcePolicyCommandInput,
79
- DeleteResourcePolicyCommandOutput,
80
- } from "../commands/DeleteResourcePolicyCommand";
81
77
  import {
82
78
  GetAccountSettingsCommandInput,
83
79
  GetAccountSettingsCommandOutput,
@@ -142,14 +138,6 @@ import {
142
138
  GetProvisionedConcurrencyConfigCommandInput,
143
139
  GetProvisionedConcurrencyConfigCommandOutput,
144
140
  } from "../commands/GetProvisionedConcurrencyConfigCommand";
145
- import {
146
- GetPublicAccessBlockConfigCommandInput,
147
- GetPublicAccessBlockConfigCommandOutput,
148
- } from "../commands/GetPublicAccessBlockConfigCommand";
149
- import {
150
- GetResourcePolicyCommandInput,
151
- GetResourcePolicyCommandOutput,
152
- } from "../commands/GetResourcePolicyCommand";
153
141
  import {
154
142
  GetRuntimeManagementConfigCommandInput,
155
143
  GetRuntimeManagementConfigCommandOutput,
@@ -242,14 +230,6 @@ import {
242
230
  PutProvisionedConcurrencyConfigCommandInput,
243
231
  PutProvisionedConcurrencyConfigCommandOutput,
244
232
  } from "../commands/PutProvisionedConcurrencyConfigCommand";
245
- import {
246
- PutPublicAccessBlockConfigCommandInput,
247
- PutPublicAccessBlockConfigCommandOutput,
248
- } from "../commands/PutPublicAccessBlockConfigCommand";
249
- import {
250
- PutResourcePolicyCommandInput,
251
- PutResourcePolicyCommandOutput,
252
- } from "../commands/PutResourcePolicyCommand";
253
233
  import {
254
234
  PutRuntimeManagementConfigCommandInput,
255
235
  PutRuntimeManagementConfigCommandOutput,
@@ -366,10 +346,6 @@ export declare const se_DeleteProvisionedConcurrencyConfigCommand: (
366
346
  input: DeleteProvisionedConcurrencyConfigCommandInput,
367
347
  context: __SerdeContext
368
348
  ) => Promise<__HttpRequest>;
369
- export declare const se_DeleteResourcePolicyCommand: (
370
- input: DeleteResourcePolicyCommandInput,
371
- context: __SerdeContext
372
- ) => Promise<__HttpRequest>;
373
349
  export declare const se_GetAccountSettingsCommand: (
374
350
  input: GetAccountSettingsCommandInput,
375
351
  context: __SerdeContext
@@ -434,14 +410,6 @@ export declare const se_GetProvisionedConcurrencyConfigCommand: (
434
410
  input: GetProvisionedConcurrencyConfigCommandInput,
435
411
  context: __SerdeContext
436
412
  ) => Promise<__HttpRequest>;
437
- export declare const se_GetPublicAccessBlockConfigCommand: (
438
- input: GetPublicAccessBlockConfigCommandInput,
439
- context: __SerdeContext
440
- ) => Promise<__HttpRequest>;
441
- export declare const se_GetResourcePolicyCommand: (
442
- input: GetResourcePolicyCommandInput,
443
- context: __SerdeContext
444
- ) => Promise<__HttpRequest>;
445
413
  export declare const se_GetRuntimeManagementConfigCommand: (
446
414
  input: GetRuntimeManagementConfigCommandInput,
447
415
  context: __SerdeContext
@@ -534,14 +502,6 @@ export declare const se_PutProvisionedConcurrencyConfigCommand: (
534
502
  input: PutProvisionedConcurrencyConfigCommandInput,
535
503
  context: __SerdeContext
536
504
  ) => Promise<__HttpRequest>;
537
- export declare const se_PutPublicAccessBlockConfigCommand: (
538
- input: PutPublicAccessBlockConfigCommandInput,
539
- context: __SerdeContext
540
- ) => Promise<__HttpRequest>;
541
- export declare const se_PutResourcePolicyCommand: (
542
- input: PutResourcePolicyCommandInput,
543
- context: __SerdeContext
544
- ) => Promise<__HttpRequest>;
545
505
  export declare const se_PutRuntimeManagementConfigCommand: (
546
506
  input: PutRuntimeManagementConfigCommandInput,
547
507
  context: __SerdeContext
@@ -658,10 +618,6 @@ export declare const de_DeleteProvisionedConcurrencyConfigCommand: (
658
618
  output: __HttpResponse,
659
619
  context: __SerdeContext
660
620
  ) => Promise<DeleteProvisionedConcurrencyConfigCommandOutput>;
661
- export declare const de_DeleteResourcePolicyCommand: (
662
- output: __HttpResponse,
663
- context: __SerdeContext
664
- ) => Promise<DeleteResourcePolicyCommandOutput>;
665
621
  export declare const de_GetAccountSettingsCommand: (
666
622
  output: __HttpResponse,
667
623
  context: __SerdeContext
@@ -726,14 +682,6 @@ export declare const de_GetProvisionedConcurrencyConfigCommand: (
726
682
  output: __HttpResponse,
727
683
  context: __SerdeContext
728
684
  ) => Promise<GetProvisionedConcurrencyConfigCommandOutput>;
729
- export declare const de_GetPublicAccessBlockConfigCommand: (
730
- output: __HttpResponse,
731
- context: __SerdeContext
732
- ) => Promise<GetPublicAccessBlockConfigCommandOutput>;
733
- export declare const de_GetResourcePolicyCommand: (
734
- output: __HttpResponse,
735
- context: __SerdeContext
736
- ) => Promise<GetResourcePolicyCommandOutput>;
737
685
  export declare const de_GetRuntimeManagementConfigCommand: (
738
686
  output: __HttpResponse,
739
687
  context: __SerdeContext
@@ -826,14 +774,6 @@ export declare const de_PutProvisionedConcurrencyConfigCommand: (
826
774
  output: __HttpResponse,
827
775
  context: __SerdeContext
828
776
  ) => Promise<PutProvisionedConcurrencyConfigCommandOutput>;
829
- export declare const de_PutPublicAccessBlockConfigCommand: (
830
- output: __HttpResponse,
831
- context: __SerdeContext
832
- ) => Promise<PutPublicAccessBlockConfigCommandOutput>;
833
- export declare const de_PutResourcePolicyCommand: (
834
- output: __HttpResponse,
835
- context: __SerdeContext
836
- ) => Promise<PutResourcePolicyCommandOutput>;
837
777
  export declare const de_PutRuntimeManagementConfigCommand: (
838
778
  output: __HttpResponse,
839
779
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
3
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
4
- "version": "3.658.0",
4
+ "version": "3.659.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lambda",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.0",
24
- "@aws-sdk/client-sts": "3.658.0",
25
- "@aws-sdk/core": "3.658.0",
26
- "@aws-sdk/credential-provider-node": "3.658.0",
23
+ "@aws-sdk/client-sso-oidc": "3.658.1",
24
+ "@aws-sdk/client-sts": "3.658.1",
25
+ "@aws-sdk/core": "3.658.1",
26
+ "@aws-sdk/credential-provider-node": "3.658.1",
27
27
  "@aws-sdk/middleware-host-header": "3.654.0",
28
28
  "@aws-sdk/middleware-logger": "3.654.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.654.0",
@@ -34,33 +34,33 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.654.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.654.0",
36
36
  "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.3",
37
+ "@smithy/core": "^2.4.6",
38
38
  "@smithy/eventstream-serde-browser": "^3.0.9",
39
39
  "@smithy/eventstream-serde-config-resolver": "^3.0.6",
40
40
  "@smithy/eventstream-serde-node": "^3.0.8",
41
- "@smithy/fetch-http-handler": "^3.2.7",
41
+ "@smithy/fetch-http-handler": "^3.2.8",
42
42
  "@smithy/hash-node": "^3.0.6",
43
43
  "@smithy/invalid-dependency": "^3.0.6",
44
44
  "@smithy/middleware-content-length": "^3.0.8",
45
45
  "@smithy/middleware-endpoint": "^3.1.3",
46
- "@smithy/middleware-retry": "^3.0.18",
46
+ "@smithy/middleware-retry": "^3.0.21",
47
47
  "@smithy/middleware-serde": "^3.0.6",
48
48
  "@smithy/middleware-stack": "^3.0.6",
49
49
  "@smithy/node-config-provider": "^3.1.7",
50
- "@smithy/node-http-handler": "^3.2.2",
50
+ "@smithy/node-http-handler": "^3.2.3",
51
51
  "@smithy/protocol-http": "^4.1.3",
52
- "@smithy/smithy-client": "^3.3.2",
52
+ "@smithy/smithy-client": "^3.3.5",
53
53
  "@smithy/types": "^3.4.2",
54
54
  "@smithy/url-parser": "^3.0.6",
55
55
  "@smithy/util-base64": "^3.0.0",
56
56
  "@smithy/util-body-length-browser": "^3.0.0",
57
57
  "@smithy/util-body-length-node": "^3.0.0",
58
- "@smithy/util-defaults-mode-browser": "^3.0.18",
59
- "@smithy/util-defaults-mode-node": "^3.0.18",
58
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
59
+ "@smithy/util-defaults-mode-node": "^3.0.21",
60
60
  "@smithy/util-endpoints": "^2.1.2",
61
61
  "@smithy/util-middleware": "^3.0.6",
62
62
  "@smithy/util-retry": "^3.0.6",
63
- "@smithy/util-stream": "^3.1.6",
63
+ "@smithy/util-stream": "^3.1.8",
64
64
  "@smithy/util-utf8": "^3.0.0",
65
65
  "@smithy/util-waiter": "^3.1.5",
66
66
  "tslib": "^2.6.2"
@@ -1,22 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,102 +0,0 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
- import { DeleteResourcePolicyRequest } from "../models/models_0";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link DeleteResourcePolicyCommand}.
14
- */
15
- export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link DeleteResourcePolicyCommand}.
21
- */
22
- export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {
23
- }
24
- declare const DeleteResourcePolicyCommand_base: {
25
- new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
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>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { LambdaClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import
39
- * // const { LambdaClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
40
- * const client = new LambdaClient(config);
41
- * const input = { // DeleteResourcePolicyRequest
42
- * ResourceArn: "STRING_VALUE", // required
43
- * RevisionId: "STRING_VALUE",
44
- * };
45
- * const command = new DeleteResourcePolicyCommand(input);
46
- * const response = await client.send(command);
47
- * // {};
48
- *
49
- * ```
50
- *
51
- * @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
52
- * @returns {@link DeleteResourcePolicyCommandOutput}
53
- * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
54
- * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
55
- * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
56
- *
57
- * @throws {@link InvalidParameterValueException} (client fault)
58
- * <p>One of the parameters in the request is not valid.</p>
59
- *
60
- * @throws {@link PreconditionFailedException} (client fault)
61
- * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p>
62
- * <ul>
63
- * <li>
64
- * <p>
65
- * <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p>
66
- * </li>
67
- * <li>
68
- * <p>
69
- * <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p>
70
- * </li>
71
- * </ul>
72
- *
73
- * @throws {@link ResourceConflictException} (client fault)
74
- * <p>The resource already exists, or another operation is in progress.</p>
75
- *
76
- * @throws {@link ResourceNotFoundException} (client fault)
77
- * <p>The resource specified in the request does not exist.</p>
78
- *
79
- * @throws {@link ServiceException} (server fault)
80
- * <p>The Lambda service encountered an internal error.</p>
81
- *
82
- * @throws {@link TooManyRequestsException} (client fault)
83
- * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
84
- *
85
- * @throws {@link LambdaServiceException}
86
- * <p>Base exception class for all service exceptions from Lambda service.</p>
87
- *
88
- * @public
89
- */
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
- };
102
- }
@@ -1,90 +0,0 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
- import { GetPublicAccessBlockConfigRequest, GetPublicAccessBlockConfigResponse } from "../models/models_0";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link GetPublicAccessBlockConfigCommand}.
14
- */
15
- export interface GetPublicAccessBlockConfigCommandInput extends GetPublicAccessBlockConfigRequest {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetPublicAccessBlockConfigCommand}.
21
- */
22
- export interface GetPublicAccessBlockConfigCommandOutput extends GetPublicAccessBlockConfigResponse, __MetadataBearer {
23
- }
24
- declare const GetPublicAccessBlockConfigCommand_base: {
25
- new (input: GetPublicAccessBlockConfigCommandInput): import("@smithy/smithy-client").CommandImpl<GetPublicAccessBlockConfigCommandInput, GetPublicAccessBlockConfigCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetPublicAccessBlockConfigCommandInput): import("@smithy/smithy-client").CommandImpl<GetPublicAccessBlockConfigCommandInput, GetPublicAccessBlockConfigCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * <note>
31
- * <p>The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be
32
- * available in all Amazon Web Services Regions until September 30, 2024.</p>
33
- * </note>
34
- * <p>Retrieve the public-access settings for a function.</p>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { LambdaClient, GetPublicAccessBlockConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
39
- * // const { LambdaClient, GetPublicAccessBlockConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
40
- * const client = new LambdaClient(config);
41
- * const input = { // GetPublicAccessBlockConfigRequest
42
- * ResourceArn: "STRING_VALUE", // required
43
- * };
44
- * const command = new GetPublicAccessBlockConfigCommand(input);
45
- * const response = await client.send(command);
46
- * // { // GetPublicAccessBlockConfigResponse
47
- * // PublicAccessBlockConfig: { // PublicAccessBlockConfig
48
- * // BlockPublicPolicy: true || false,
49
- * // RestrictPublicResource: true || false,
50
- * // },
51
- * // };
52
- *
53
- * ```
54
- *
55
- * @param GetPublicAccessBlockConfigCommandInput - {@link GetPublicAccessBlockConfigCommandInput}
56
- * @returns {@link GetPublicAccessBlockConfigCommandOutput}
57
- * @see {@link GetPublicAccessBlockConfigCommandInput} for command's `input` shape.
58
- * @see {@link GetPublicAccessBlockConfigCommandOutput} for command's `response` shape.
59
- * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
60
- *
61
- * @throws {@link InvalidParameterValueException} (client fault)
62
- * <p>One of the parameters in the request is not valid.</p>
63
- *
64
- * @throws {@link ResourceNotFoundException} (client fault)
65
- * <p>The resource specified in the request does not exist.</p>
66
- *
67
- * @throws {@link ServiceException} (server fault)
68
- * <p>The Lambda service encountered an internal error.</p>
69
- *
70
- * @throws {@link TooManyRequestsException} (client fault)
71
- * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
72
- *
73
- * @throws {@link LambdaServiceException}
74
- * <p>Base exception class for all service exceptions from Lambda service.</p>
75
- *
76
- * @public
77
- */
78
- export declare class GetPublicAccessBlockConfigCommand extends GetPublicAccessBlockConfigCommand_base {
79
- /** @internal type navigation helper, not in runtime. */
80
- protected static __types: {
81
- api: {
82
- input: GetPublicAccessBlockConfigRequest;
83
- output: GetPublicAccessBlockConfigResponse;
84
- };
85
- sdk: {
86
- input: GetPublicAccessBlockConfigCommandInput;
87
- output: GetPublicAccessBlockConfigCommandOutput;
88
- };
89
- };
90
- }
@@ -1,88 +0,0 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
- import { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link GetResourcePolicyCommand}.
14
- */
15
- export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetResourcePolicyCommand}.
21
- */
22
- export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
23
- }
24
- declare const GetResourcePolicyCommand_base: {
25
- new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
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>Retrieves the <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> attached to a function.</p>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { LambdaClient, GetResourcePolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import
39
- * // const { LambdaClient, GetResourcePolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
40
- * const client = new LambdaClient(config);
41
- * const input = { // GetResourcePolicyRequest
42
- * ResourceArn: "STRING_VALUE", // required
43
- * };
44
- * const command = new GetResourcePolicyCommand(input);
45
- * const response = await client.send(command);
46
- * // { // GetResourcePolicyResponse
47
- * // Policy: "STRING_VALUE",
48
- * // RevisionId: "STRING_VALUE",
49
- * // };
50
- *
51
- * ```
52
- *
53
- * @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
54
- * @returns {@link GetResourcePolicyCommandOutput}
55
- * @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
56
- * @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
57
- * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
58
- *
59
- * @throws {@link InvalidParameterValueException} (client fault)
60
- * <p>One of the parameters in the request is not valid.</p>
61
- *
62
- * @throws {@link ResourceNotFoundException} (client fault)
63
- * <p>The resource specified in the request does not exist.</p>
64
- *
65
- * @throws {@link ServiceException} (server fault)
66
- * <p>The Lambda service encountered an internal error.</p>
67
- *
68
- * @throws {@link TooManyRequestsException} (client fault)
69
- * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
70
- *
71
- * @throws {@link LambdaServiceException}
72
- * <p>Base exception class for all service exceptions from Lambda service.</p>
73
- *
74
- * @public
75
- */
76
- export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
77
- /** @internal type navigation helper, not in runtime. */
78
- protected static __types: {
79
- api: {
80
- input: GetResourcePolicyRequest;
81
- output: GetResourcePolicyResponse;
82
- };
83
- sdk: {
84
- input: GetResourcePolicyCommandInput;
85
- output: GetResourcePolicyCommandOutput;
86
- };
87
- };
88
- }