@aws-sdk/client-lambda 3.1114.0 → 3.1116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist-cjs/index.js +67 -1
- package/dist-es/Lambda.js +6 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/schemas/schemas_0.js +43 -0
- package/dist-types/Lambda.d.ts +21 -0
- package/dist-types/LambdaClient.d.ts +5 -2
- package/dist-types/commands/AddPermissionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
- package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +84 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +98 -0
- package/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +76 -1
- package/dist-types/schemas/schemas_0.d.ts +8 -0
- package/dist-types/ts3.4/Lambda.d.ts +51 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/package.json +9 -9
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DeleteResourcePolicyRequest } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DeleteResourcePolicyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DeleteResourcePolicyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DeleteResourcePolicyCommand_base: {
|
|
22
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, import("..").LambdaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, import("..").LambdaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Deletes a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> from a Lambda resource.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
32
|
+
* // const { LambdaClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
33
|
+
* // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
|
|
34
|
+
* const config = {}; // type is LambdaClientConfig
|
|
35
|
+
* const client = new LambdaClient(config);
|
|
36
|
+
* const input = { // DeleteResourcePolicyRequest
|
|
37
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
38
|
+
* RevisionId: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteResourcePolicyCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
|
|
47
|
+
* @returns {@link DeleteResourcePolicyCommandOutput}
|
|
48
|
+
* @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
53
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link PreconditionFailedException} (client fault)
|
|
56
|
+
* <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p> <ul> <li> <p> <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p> </li> <li> <p> <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p> </li> </ul>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ResourceConflictException} (client fault)
|
|
59
|
+
* <p>The resource already exists, or another operation is in progress.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
62
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ServiceException} (server fault)
|
|
65
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
68
|
+
* <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>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link LambdaServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: DeleteResourcePolicyRequest;
|
|
81
|
+
output: {};
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: DeleteResourcePolicyCommandInput;
|
|
85
|
+
output: DeleteResourcePolicyCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -75,9 +75,9 @@ declare const GetProvisionedConcurrencyConfigCommand_base: {
|
|
|
75
75
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
76
76
|
*
|
|
77
77
|
*
|
|
78
|
-
* @example To
|
|
78
|
+
* @example To view a provisioned concurrency configuration
|
|
79
79
|
* ```javascript
|
|
80
|
-
* // The following example
|
|
80
|
+
* // The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified function.
|
|
81
81
|
* const input = {
|
|
82
82
|
* FunctionName: "my-function",
|
|
83
83
|
* Qualifier: "BLUE"
|
|
@@ -95,9 +95,9 @@ declare const GetProvisionedConcurrencyConfigCommand_base: {
|
|
|
95
95
|
* *\/
|
|
96
96
|
* ```
|
|
97
97
|
*
|
|
98
|
-
* @example To
|
|
98
|
+
* @example To get a provisioned concurrency configuration
|
|
99
99
|
* ```javascript
|
|
100
|
-
* // The following example
|
|
100
|
+
* // The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified function.
|
|
101
101
|
* const input = {
|
|
102
102
|
* FunctionName: "my-function",
|
|
103
103
|
* Qualifier: "BLUE"
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetResourcePolicyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetResourcePolicyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetResourcePolicyCommand_base: {
|
|
22
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, import("..").LambdaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, import("..").LambdaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <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 Lambda resource.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaClient, GetResourcePolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
32
|
+
* // const { LambdaClient, GetResourcePolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
33
|
+
* // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
|
|
34
|
+
* const config = {}; // type is LambdaClientConfig
|
|
35
|
+
* const client = new LambdaClient(config);
|
|
36
|
+
* const input = { // GetResourcePolicyRequest
|
|
37
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetResourcePolicyCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetResourcePolicyResponse
|
|
42
|
+
* // Policy: "STRING_VALUE",
|
|
43
|
+
* // RevisionId: "STRING_VALUE",
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
|
|
49
|
+
* @returns {@link GetResourcePolicyCommandOutput}
|
|
50
|
+
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
55
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
58
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ServiceException} (server fault)
|
|
61
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
64
|
+
* <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>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link LambdaServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
73
|
+
/** @internal type navigation helper, not in runtime. */
|
|
74
|
+
protected static __types: {
|
|
75
|
+
api: {
|
|
76
|
+
input: GetResourcePolicyRequest;
|
|
77
|
+
output: GetResourcePolicyResponse;
|
|
78
|
+
};
|
|
79
|
+
sdk: {
|
|
80
|
+
input: GetResourcePolicyCommandInput;
|
|
81
|
+
output: GetResourcePolicyCommandOutput;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutResourcePolicyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutResourcePolicyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutResourcePolicyCommand_base: {
|
|
22
|
+
new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, import("..").LambdaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, import("..").LambdaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Adds a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> to a Lambda resource. Resource-based policies grant access to other <a href="https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-cross-account.html">Amazon Web Services accounts</a>, <a href="https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-organization.html">organizations</a>, or <a href="https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-services.html">services</a>. Resource-based policies apply to a single Lambda resource (for example, a function, function version, or function alias).</p> <important> <p>This operation replaces any existing policy on the Lambda resource. If you previously added permissions using the <a>AddPermission</a> operation, the new policy overwrites those permissions.</p> </important>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaClient, PutResourcePolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
32
|
+
* // const { LambdaClient, PutResourcePolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
33
|
+
* // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
|
|
34
|
+
* const config = {}; // type is LambdaClientConfig
|
|
35
|
+
* const client = new LambdaClient(config);
|
|
36
|
+
* const input = { // PutResourcePolicyRequest
|
|
37
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
38
|
+
* Policy: "STRING_VALUE", // required
|
|
39
|
+
* RevisionId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new PutResourcePolicyCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // PutResourcePolicyResponse
|
|
44
|
+
* // Policy: "STRING_VALUE",
|
|
45
|
+
* // RevisionId: "STRING_VALUE",
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
|
|
51
|
+
* @returns {@link PutResourcePolicyCommandOutput}
|
|
52
|
+
* @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
57
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link PolicyLengthExceededException} (client fault)
|
|
60
|
+
* <p>The permissions policy for the resource is too large. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda quotas</a>.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link PreconditionFailedException} (client fault)
|
|
63
|
+
* <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p> <ul> <li> <p> <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p> </li> <li> <p> <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p> </li> </ul>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link PublicPolicyException} (client fault)
|
|
66
|
+
* <p>The resource-based policy you tried to add to the Lambda resource would grant public access to it, which isn't allowed.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ResourceConflictException} (client fault)
|
|
69
|
+
* <p>The resource already exists, or another operation is in progress.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ServiceException} (server fault)
|
|
75
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
78
|
+
* <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>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link LambdaServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: PutResourcePolicyRequest;
|
|
91
|
+
output: PutResourcePolicyResponse;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: PutResourcePolicyCommandInput;
|
|
95
|
+
output: PutResourcePolicyCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -58,7 +58,7 @@ declare const RemovePermissionCommand_base: {
|
|
|
58
58
|
* <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p> <ul> <li> <p> <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p> </li> <li> <p> <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p> </li> </ul>
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link PublicPolicyException} (client fault)
|
|
61
|
-
* <p>The resource-based policy you tried to add to the Lambda
|
|
61
|
+
* <p>The resource-based policy you tried to add to the Lambda resource would grant public access to it, which isn't allowed.</p>
|
|
62
62
|
*
|
|
63
63
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
64
|
* <p>The resource specified in the request does not exist.</p>
|
|
@@ -18,6 +18,7 @@ export * from "./DeleteFunctionEventInvokeConfigCommand";
|
|
|
18
18
|
export * from "./DeleteFunctionUrlConfigCommand";
|
|
19
19
|
export * from "./DeleteLayerVersionCommand";
|
|
20
20
|
export * from "./DeleteProvisionedConcurrencyConfigCommand";
|
|
21
|
+
export * from "./DeleteResourcePolicyCommand";
|
|
21
22
|
export * from "./GetAccountSettingsCommand";
|
|
22
23
|
export * from "./GetAliasCommand";
|
|
23
24
|
export * from "./GetCapacityProviderCommand";
|
|
@@ -39,6 +40,7 @@ export * from "./GetLayerVersionCommand";
|
|
|
39
40
|
export * from "./GetLayerVersionPolicyCommand";
|
|
40
41
|
export * from "./GetPolicyCommand";
|
|
41
42
|
export * from "./GetProvisionedConcurrencyConfigCommand";
|
|
43
|
+
export * from "./GetResourcePolicyCommand";
|
|
42
44
|
export * from "./GetRuntimeManagementConfigCommand";
|
|
43
45
|
export * from "./InvokeAsyncCommand";
|
|
44
46
|
export * from "./InvokeCommand";
|
|
@@ -66,6 +68,7 @@ export * from "./PutFunctionEventInvokeConfigCommand";
|
|
|
66
68
|
export * from "./PutFunctionRecursionConfigCommand";
|
|
67
69
|
export * from "./PutFunctionScalingConfigCommand";
|
|
68
70
|
export * from "./PutProvisionedConcurrencyConfigCommand";
|
|
71
|
+
export * from "./PutResourcePolicyCommand";
|
|
69
72
|
export * from "./PutRuntimeManagementConfigCommand";
|
|
70
73
|
export * from "./RemoveLayerVersionPermissionCommand";
|
|
71
74
|
export * from "./RemovePermissionCommand";
|
|
@@ -113,7 +113,7 @@ export declare class TooManyRequestsException extends __BaseException {
|
|
|
113
113
|
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* <p>The resource-based policy you tried to add to the Lambda
|
|
116
|
+
* <p>The resource-based policy you tried to add to the Lambda resource would grant public access to it, which isn't allowed.</p>
|
|
117
117
|
* @public
|
|
118
118
|
*/
|
|
119
119
|
export declare class PublicPolicyException extends __BaseException {
|
|
@@ -971,6 +971,21 @@ export interface DeleteFunctionEventInvokeConfigRequest {
|
|
|
971
971
|
*/
|
|
972
972
|
Qualifier?: string | undefined;
|
|
973
973
|
}
|
|
974
|
+
/**
|
|
975
|
+
* @public
|
|
976
|
+
*/
|
|
977
|
+
export interface DeleteResourcePolicyRequest {
|
|
978
|
+
/**
|
|
979
|
+
* <p>The Amazon Resource Name (ARN) of the Lambda resource you want to delete the policy from. You can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.</p>
|
|
980
|
+
* @public
|
|
981
|
+
*/
|
|
982
|
+
ResourceArn: string | undefined;
|
|
983
|
+
/**
|
|
984
|
+
* <p>The revision ID that the existing policy must match for the deletion to proceed. If the revision ID doesn't match, the operation fails with a <code>PreconditionFailedException</code> error. To retrieve the current revision ID, use the <a>GetResourcePolicy</a> operation.</p>
|
|
985
|
+
* @public
|
|
986
|
+
*/
|
|
987
|
+
RevisionId?: string | undefined;
|
|
988
|
+
}
|
|
974
989
|
/**
|
|
975
990
|
* <p>Configuration options for callback operations in durable executions, including timeout settings and retry behavior.</p>
|
|
976
991
|
* @public
|
|
@@ -2260,7 +2275,7 @@ export interface ProvisionedPollerConfig {
|
|
|
2260
2275
|
*/
|
|
2261
2276
|
MinimumPollers?: number | undefined;
|
|
2262
2277
|
/**
|
|
2263
|
-
* <p>The maximum number of event pollers this event source can scale up to. For Amazon SQS
|
|
2278
|
+
* <p>The maximum number of event pollers this event source can scale up to. For Amazon SQS event source mappings, the accepted range is between 2 and 10,000, with a default of 200. For Amazon MSK and self-managed Apache Kafka event source mappings, the accepted range is between 1 and 2,000, with a default of 200.</p>
|
|
2264
2279
|
* @public
|
|
2265
2280
|
*/
|
|
2266
2281
|
MaximumPollers?: number | undefined;
|
|
@@ -5327,6 +5342,31 @@ export interface GetFunctionEventInvokeConfigRequest {
|
|
|
5327
5342
|
*/
|
|
5328
5343
|
Qualifier?: string | undefined;
|
|
5329
5344
|
}
|
|
5345
|
+
/**
|
|
5346
|
+
* @public
|
|
5347
|
+
*/
|
|
5348
|
+
export interface GetResourcePolicyRequest {
|
|
5349
|
+
/**
|
|
5350
|
+
* <p>The Amazon Resource Name (ARN) of the Lambda resource you want to retrieve the policy for. You can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.</p>
|
|
5351
|
+
* @public
|
|
5352
|
+
*/
|
|
5353
|
+
ResourceArn: string | undefined;
|
|
5354
|
+
}
|
|
5355
|
+
/**
|
|
5356
|
+
* @public
|
|
5357
|
+
*/
|
|
5358
|
+
export interface GetResourcePolicyResponse {
|
|
5359
|
+
/**
|
|
5360
|
+
* <p>The resource-based policy attached to the Lambda resource you specified.</p>
|
|
5361
|
+
* @public
|
|
5362
|
+
*/
|
|
5363
|
+
Policy?: string | undefined;
|
|
5364
|
+
/**
|
|
5365
|
+
* <p>The revision ID of the policy. Pass this value as the <code>RevisionId</code> in a <a>PutResourcePolicy</a> or <a>DeleteResourcePolicy</a> request. Doing so ensures the operation acts on the expected version of the policy.</p>
|
|
5366
|
+
* @public
|
|
5367
|
+
*/
|
|
5368
|
+
RevisionId?: string | undefined;
|
|
5369
|
+
}
|
|
5330
5370
|
/**
|
|
5331
5371
|
* @public
|
|
5332
5372
|
*/
|
|
@@ -6001,6 +6041,41 @@ export interface PutFunctionEventInvokeConfigRequest {
|
|
|
6001
6041
|
*/
|
|
6002
6042
|
DestinationConfig?: DestinationConfig | undefined;
|
|
6003
6043
|
}
|
|
6044
|
+
/**
|
|
6045
|
+
* @public
|
|
6046
|
+
*/
|
|
6047
|
+
export interface PutResourcePolicyRequest {
|
|
6048
|
+
/**
|
|
6049
|
+
* <p>The Amazon Resource Name (ARN) of the Lambda resource you want to add the policy to. You can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.</p>
|
|
6050
|
+
* @public
|
|
6051
|
+
*/
|
|
6052
|
+
ResourceArn: string | undefined;
|
|
6053
|
+
/**
|
|
6054
|
+
* <p>The policy document you want to add to your Lambda resource. This is formatted as a JSON string.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">Working with resource-based policies in Lambda</a> in the <i>Lambda Developer Guide</i>.</p>
|
|
6055
|
+
* @public
|
|
6056
|
+
*/
|
|
6057
|
+
Policy: string | undefined;
|
|
6058
|
+
/**
|
|
6059
|
+
* <p>The revision ID that the existing policy must match for the replacement to proceed. If the revision ID doesn't match, the operation fails with a <code>PreconditionFailedException</code> error. To retrieve the current revision ID, use the <a>GetResourcePolicy</a> operation.</p>
|
|
6060
|
+
* @public
|
|
6061
|
+
*/
|
|
6062
|
+
RevisionId?: string | undefined;
|
|
6063
|
+
}
|
|
6064
|
+
/**
|
|
6065
|
+
* @public
|
|
6066
|
+
*/
|
|
6067
|
+
export interface PutResourcePolicyResponse {
|
|
6068
|
+
/**
|
|
6069
|
+
* <p>The resource-based policy that Lambda adds to the resource.</p>
|
|
6070
|
+
* @public
|
|
6071
|
+
*/
|
|
6072
|
+
Policy?: string | undefined;
|
|
6073
|
+
/**
|
|
6074
|
+
* <p>The revision ID of the policy that Lambda adds to your Lambda resource.</p>
|
|
6075
|
+
* @public
|
|
6076
|
+
*/
|
|
6077
|
+
RevisionId?: string | undefined;
|
|
6078
|
+
}
|
|
6004
6079
|
/**
|
|
6005
6080
|
* @public
|
|
6006
6081
|
*/
|
|
@@ -129,6 +129,7 @@ export declare var DeleteFunctionResponse$: StaticStructureSchema;
|
|
|
129
129
|
export declare var DeleteFunctionUrlConfigRequest$: StaticStructureSchema;
|
|
130
130
|
export declare var DeleteLayerVersionRequest$: StaticStructureSchema;
|
|
131
131
|
export declare var DeleteProvisionedConcurrencyConfigRequest$: StaticStructureSchema;
|
|
132
|
+
export declare var DeleteResourcePolicyRequest$: StaticStructureSchema;
|
|
132
133
|
export declare var DestinationConfig$: StaticStructureSchema;
|
|
133
134
|
export declare var DocumentDBEventSourceConfig$: StaticStructureSchema;
|
|
134
135
|
export declare var DurableConfig$: StaticStructureSchema;
|
|
@@ -200,6 +201,8 @@ export declare var GetPolicyRequest$: StaticStructureSchema;
|
|
|
200
201
|
export declare var GetPolicyResponse$: StaticStructureSchema;
|
|
201
202
|
export declare var GetProvisionedConcurrencyConfigRequest$: StaticStructureSchema;
|
|
202
203
|
export declare var GetProvisionedConcurrencyConfigResponse$: StaticStructureSchema;
|
|
204
|
+
export declare var GetResourcePolicyRequest$: StaticStructureSchema;
|
|
205
|
+
export declare var GetResourcePolicyResponse$: StaticStructureSchema;
|
|
203
206
|
export declare var GetRuntimeManagementConfigRequest$: StaticStructureSchema;
|
|
204
207
|
export declare var GetRuntimeManagementConfigResponse$: StaticStructureSchema;
|
|
205
208
|
export declare var ImageConfig$: StaticStructureSchema;
|
|
@@ -275,6 +278,8 @@ export declare var PutFunctionScalingConfigRequest$: StaticStructureSchema;
|
|
|
275
278
|
export declare var PutFunctionScalingConfigResponse$: StaticStructureSchema;
|
|
276
279
|
export declare var PutProvisionedConcurrencyConfigRequest$: StaticStructureSchema;
|
|
277
280
|
export declare var PutProvisionedConcurrencyConfigResponse$: StaticStructureSchema;
|
|
281
|
+
export declare var PutResourcePolicyRequest$: StaticStructureSchema;
|
|
282
|
+
export declare var PutResourcePolicyResponse$: StaticStructureSchema;
|
|
278
283
|
export declare var PutRuntimeManagementConfigRequest$: StaticStructureSchema;
|
|
279
284
|
export declare var PutRuntimeManagementConfigResponse$: StaticStructureSchema;
|
|
280
285
|
export declare var RemoveLayerVersionPermissionRequest$: StaticStructureSchema;
|
|
@@ -349,6 +354,7 @@ export declare var DeleteFunctionEventInvokeConfig$: StaticOperationSchema;
|
|
|
349
354
|
export declare var DeleteFunctionUrlConfig$: StaticOperationSchema;
|
|
350
355
|
export declare var DeleteLayerVersion$: StaticOperationSchema;
|
|
351
356
|
export declare var DeleteProvisionedConcurrencyConfig$: StaticOperationSchema;
|
|
357
|
+
export declare var DeleteResourcePolicy$: StaticOperationSchema;
|
|
352
358
|
export declare var GetAccountSettings$: StaticOperationSchema;
|
|
353
359
|
export declare var GetAlias$: StaticOperationSchema;
|
|
354
360
|
export declare var GetCapacityProvider$: StaticOperationSchema;
|
|
@@ -370,6 +376,7 @@ export declare var GetLayerVersionByArn$: StaticOperationSchema;
|
|
|
370
376
|
export declare var GetLayerVersionPolicy$: StaticOperationSchema;
|
|
371
377
|
export declare var GetPolicy$: StaticOperationSchema;
|
|
372
378
|
export declare var GetProvisionedConcurrencyConfig$: StaticOperationSchema;
|
|
379
|
+
export declare var GetResourcePolicy$: StaticOperationSchema;
|
|
373
380
|
export declare var GetRuntimeManagementConfig$: StaticOperationSchema;
|
|
374
381
|
export declare var Invoke$: StaticOperationSchema;
|
|
375
382
|
export declare var InvokeAsync$: StaticOperationSchema;
|
|
@@ -397,6 +404,7 @@ export declare var PutFunctionEventInvokeConfig$: StaticOperationSchema;
|
|
|
397
404
|
export declare var PutFunctionRecursionConfig$: StaticOperationSchema;
|
|
398
405
|
export declare var PutFunctionScalingConfig$: StaticOperationSchema;
|
|
399
406
|
export declare var PutProvisionedConcurrencyConfig$: StaticOperationSchema;
|
|
407
|
+
export declare var PutResourcePolicy$: StaticOperationSchema;
|
|
400
408
|
export declare var PutRuntimeManagementConfig$: StaticOperationSchema;
|
|
401
409
|
export declare var RemoveLayerVersionPermission$: StaticOperationSchema;
|
|
402
410
|
export declare var RemovePermission$: StaticOperationSchema;
|
|
@@ -79,6 +79,10 @@ import {
|
|
|
79
79
|
DeleteProvisionedConcurrencyConfigCommandInput,
|
|
80
80
|
DeleteProvisionedConcurrencyConfigCommandOutput,
|
|
81
81
|
} from "./commands/DeleteProvisionedConcurrencyConfigCommand";
|
|
82
|
+
import {
|
|
83
|
+
DeleteResourcePolicyCommandInput,
|
|
84
|
+
DeleteResourcePolicyCommandOutput,
|
|
85
|
+
} from "./commands/DeleteResourcePolicyCommand";
|
|
82
86
|
import {
|
|
83
87
|
GetAccountSettingsCommandInput,
|
|
84
88
|
GetAccountSettingsCommandOutput,
|
|
@@ -154,6 +158,10 @@ import {
|
|
|
154
158
|
GetProvisionedConcurrencyConfigCommandInput,
|
|
155
159
|
GetProvisionedConcurrencyConfigCommandOutput,
|
|
156
160
|
} from "./commands/GetProvisionedConcurrencyConfigCommand";
|
|
161
|
+
import {
|
|
162
|
+
GetResourcePolicyCommandInput,
|
|
163
|
+
GetResourcePolicyCommandOutput,
|
|
164
|
+
} from "./commands/GetResourcePolicyCommand";
|
|
157
165
|
import {
|
|
158
166
|
GetRuntimeManagementConfigCommandInput,
|
|
159
167
|
GetRuntimeManagementConfigCommandOutput,
|
|
@@ -247,6 +255,10 @@ import {
|
|
|
247
255
|
PutProvisionedConcurrencyConfigCommandInput,
|
|
248
256
|
PutProvisionedConcurrencyConfigCommandOutput,
|
|
249
257
|
} from "./commands/PutProvisionedConcurrencyConfigCommand";
|
|
258
|
+
import {
|
|
259
|
+
PutResourcePolicyCommandInput,
|
|
260
|
+
PutResourcePolicyCommandOutput,
|
|
261
|
+
} from "./commands/PutResourcePolicyCommand";
|
|
250
262
|
import {
|
|
251
263
|
PutRuntimeManagementConfigCommandInput,
|
|
252
264
|
PutRuntimeManagementConfigCommandOutput,
|
|
@@ -571,6 +583,19 @@ export interface Lambda {
|
|
|
571
583
|
options: __HttpHandlerOptions,
|
|
572
584
|
cb: (err: any, data?: DeleteProvisionedConcurrencyConfigCommandOutput) => void,
|
|
573
585
|
): void;
|
|
586
|
+
deleteResourcePolicy(
|
|
587
|
+
args: DeleteResourcePolicyCommandInput,
|
|
588
|
+
options?: __HttpHandlerOptions,
|
|
589
|
+
): Promise<DeleteResourcePolicyCommandOutput>;
|
|
590
|
+
deleteResourcePolicy(
|
|
591
|
+
args: DeleteResourcePolicyCommandInput,
|
|
592
|
+
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void,
|
|
593
|
+
): void;
|
|
594
|
+
deleteResourcePolicy(
|
|
595
|
+
args: DeleteResourcePolicyCommandInput,
|
|
596
|
+
options: __HttpHandlerOptions,
|
|
597
|
+
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void,
|
|
598
|
+
): void;
|
|
574
599
|
getAccountSettings(): Promise<GetAccountSettingsCommandOutput>;
|
|
575
600
|
getAccountSettings(
|
|
576
601
|
args: GetAccountSettingsCommandInput,
|
|
@@ -842,6 +867,19 @@ export interface Lambda {
|
|
|
842
867
|
options: __HttpHandlerOptions,
|
|
843
868
|
cb: (err: any, data?: GetProvisionedConcurrencyConfigCommandOutput) => void,
|
|
844
869
|
): void;
|
|
870
|
+
getResourcePolicy(
|
|
871
|
+
args: GetResourcePolicyCommandInput,
|
|
872
|
+
options?: __HttpHandlerOptions,
|
|
873
|
+
): Promise<GetResourcePolicyCommandOutput>;
|
|
874
|
+
getResourcePolicy(
|
|
875
|
+
args: GetResourcePolicyCommandInput,
|
|
876
|
+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void,
|
|
877
|
+
): void;
|
|
878
|
+
getResourcePolicy(
|
|
879
|
+
args: GetResourcePolicyCommandInput,
|
|
880
|
+
options: __HttpHandlerOptions,
|
|
881
|
+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void,
|
|
882
|
+
): void;
|
|
845
883
|
getRuntimeManagementConfig(
|
|
846
884
|
args: GetRuntimeManagementConfigCommandInput,
|
|
847
885
|
options?: __HttpHandlerOptions,
|
|
@@ -1189,6 +1227,19 @@ export interface Lambda {
|
|
|
1189
1227
|
options: __HttpHandlerOptions,
|
|
1190
1228
|
cb: (err: any, data?: PutProvisionedConcurrencyConfigCommandOutput) => void,
|
|
1191
1229
|
): void;
|
|
1230
|
+
putResourcePolicy(
|
|
1231
|
+
args: PutResourcePolicyCommandInput,
|
|
1232
|
+
options?: __HttpHandlerOptions,
|
|
1233
|
+
): Promise<PutResourcePolicyCommandOutput>;
|
|
1234
|
+
putResourcePolicy(
|
|
1235
|
+
args: PutResourcePolicyCommandInput,
|
|
1236
|
+
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void,
|
|
1237
|
+
): void;
|
|
1238
|
+
putResourcePolicy(
|
|
1239
|
+
args: PutResourcePolicyCommandInput,
|
|
1240
|
+
options: __HttpHandlerOptions,
|
|
1241
|
+
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void,
|
|
1242
|
+
): void;
|
|
1192
1243
|
putRuntimeManagementConfig(
|
|
1193
1244
|
args: PutRuntimeManagementConfigCommandInput,
|
|
1194
1245
|
options?: __HttpHandlerOptions,
|