@aws-sdk/client-lambda 3.654.0 → 3.656.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/dist-cjs/index.js +31 -24
- package/dist-es/models/models_0.js +14 -14
- package/dist-es/protocols/Aws_restJson1.js +10 -3
- package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +21 -0
- package/dist-types/commands/AddPermissionCommand.d.ts +46 -1
- package/dist-types/commands/CreateAliasCommand.d.ts +23 -0
- package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +3 -0
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +28 -0
- package/dist-types/commands/CreateFunctionCommand.d.ts +64 -0
- package/dist-types/commands/DeleteAliasCommand.d.ts +12 -0
- package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +23 -0
- package/dist-types/commands/DeleteFunctionCommand.d.ts +12 -0
- package/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +11 -0
- package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +12 -0
- package/dist-types/commands/DeleteLayerVersionCommand.d.ts +12 -0
- package/dist-types/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +12 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +5 -1
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +24 -0
- package/dist-types/commands/GetAliasCommand.d.ts +21 -0
- package/dist-types/commands/GetEventSourceMappingCommand.d.ts +28 -0
- package/dist-types/commands/GetFunctionCommand.d.ts +50 -0
- package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +16 -0
- package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +41 -0
- package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +26 -0
- package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +28 -0
- package/dist-types/commands/GetLayerVersionCommand.d.ts +31 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +18 -0
- package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +42 -0
- package/dist-types/commands/GetPublicAccessBlockConfigCommand.d.ts +5 -1
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +5 -1
- package/dist-types/commands/InvokeAsyncCommand.d.ts +17 -0
- package/dist-types/commands/InvokeCommand.d.ts +39 -0
- package/dist-types/commands/ListAliasesCommand.d.ts +36 -0
- package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +27 -0
- package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +29 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +57 -0
- package/dist-types/commands/ListLayerVersionsCommand.d.ts +35 -0
- package/dist-types/commands/ListLayersCommand.d.ts +31 -0
- package/dist-types/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +33 -0
- package/dist-types/commands/ListTagsCommand.d.ts +21 -2
- package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +67 -0
- package/dist-types/commands/PublishLayerVersionCommand.d.ts +40 -0
- package/dist-types/commands/PublishVersionCommand.d.ts +42 -0
- package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +17 -0
- package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +25 -0
- package/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +21 -0
- package/dist-types/commands/PutPublicAccessBlockConfigCommand.d.ts +5 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +5 -1
- package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +13 -0
- package/dist-types/commands/RemovePermissionCommand.d.ts +18 -0
- package/dist-types/commands/TagResourceCommand.d.ts +15 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +15 -1
- package/dist-types/commands/UpdateAliasCommand.d.ts +32 -0
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +27 -0
- package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +33 -0
- package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +32 -0
- package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +30 -0
- package/dist-types/models/models_0.d.ts +42 -27
- package/dist-types/ts3.4/models/models_0.d.ts +12 -9
- package/package.json +1 -1
|
@@ -86,6 +86,35 @@ declare const ListFunctionEventInvokeConfigsCommand_base: {
|
|
|
86
86
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
87
87
|
*
|
|
88
88
|
* @public
|
|
89
|
+
* @example To view a list of asynchronous invocation configurations
|
|
90
|
+
* ```javascript
|
|
91
|
+
* // The following example returns a list of asynchronous invocation configurations for a function named my-function.
|
|
92
|
+
* const input = {
|
|
93
|
+
* "FunctionName": "my-function"
|
|
94
|
+
* };
|
|
95
|
+
* const command = new ListFunctionEventInvokeConfigsCommand(input);
|
|
96
|
+
* const response = await client.send(command);
|
|
97
|
+
* /* response ==
|
|
98
|
+
* {
|
|
99
|
+
* "FunctionEventInvokeConfigs": [
|
|
100
|
+
* {
|
|
101
|
+
* "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:GREEN",
|
|
102
|
+
* "LastModified": 1577824406.719,
|
|
103
|
+
* "MaximumEventAgeInSeconds": 1800,
|
|
104
|
+
* "MaximumRetryAttempts": 2
|
|
105
|
+
* },
|
|
106
|
+
* {
|
|
107
|
+
* "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
|
|
108
|
+
* "LastModified": 1577824396.653,
|
|
109
|
+
* "MaximumEventAgeInSeconds": 3600,
|
|
110
|
+
* "MaximumRetryAttempts": 0
|
|
111
|
+
* }
|
|
112
|
+
* ]
|
|
113
|
+
* }
|
|
114
|
+
* *\/
|
|
115
|
+
* // example id: to-view-a-list-of-asynchronous-invocation-configurations-1586490355611
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
89
118
|
*/
|
|
90
119
|
export declare class ListFunctionEventInvokeConfigsCommand extends ListFunctionEventInvokeConfigsCommand_base {
|
|
91
120
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -180,6 +180,63 @@ declare const ListFunctionsCommand_base: {
|
|
|
180
180
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
181
181
|
*
|
|
182
182
|
* @public
|
|
183
|
+
* @example To get a list of Lambda functions
|
|
184
|
+
* ```javascript
|
|
185
|
+
* // This operation returns a list of Lambda functions.
|
|
186
|
+
* const input = {};
|
|
187
|
+
* const command = new ListFunctionsCommand(input);
|
|
188
|
+
* const response = await client.send(command);
|
|
189
|
+
* /* response ==
|
|
190
|
+
* {
|
|
191
|
+
* "Functions": [
|
|
192
|
+
* {
|
|
193
|
+
* "CodeSha256": "dBG9m8SGdmlEjw/JYXlhhvCrAv5TxvXsbL/RMr0fT/I=",
|
|
194
|
+
* "CodeSize": 294,
|
|
195
|
+
* "Description": "",
|
|
196
|
+
* "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:helloworld",
|
|
197
|
+
* "FunctionName": "helloworld",
|
|
198
|
+
* "Handler": "helloworld.handler",
|
|
199
|
+
* "LastModified": "2019-09-23T18:32:33.857+0000",
|
|
200
|
+
* "MemorySize": 128,
|
|
201
|
+
* "RevisionId": "1718e831-badf-4253-9518-d0644210af7b",
|
|
202
|
+
* "Role": "arn:aws:iam::123456789012:role/service-role/MyTestFunction-role-zgur6bf4",
|
|
203
|
+
* "Runtime": "nodejs10.x",
|
|
204
|
+
* "Timeout": 3,
|
|
205
|
+
* "TracingConfig": {
|
|
206
|
+
* "Mode": "PassThrough"
|
|
207
|
+
* },
|
|
208
|
+
* "Version": "$LATEST"
|
|
209
|
+
* },
|
|
210
|
+
* {
|
|
211
|
+
* "CodeSha256": "sU0cJ2/hOZevwV/lTxCuQqK3gDZP3i8gUoqUUVRmY6E=",
|
|
212
|
+
* "CodeSize": 266,
|
|
213
|
+
* "Description": "",
|
|
214
|
+
* "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
215
|
+
* "FunctionName": "my-function",
|
|
216
|
+
* "Handler": "index.handler",
|
|
217
|
+
* "LastModified": "2019-10-01T16:47:28.490+0000",
|
|
218
|
+
* "MemorySize": 256,
|
|
219
|
+
* "RevisionId": "93017fc9-59cb-41dc-901b-4845ce4bf668",
|
|
220
|
+
* "Role": "arn:aws:iam::123456789012:role/service-role/helloWorldPython-role-uy3l9qyq",
|
|
221
|
+
* "Runtime": "nodejs10.x",
|
|
222
|
+
* "Timeout": 3,
|
|
223
|
+
* "TracingConfig": {
|
|
224
|
+
* "Mode": "PassThrough"
|
|
225
|
+
* },
|
|
226
|
+
* "Version": "$LATEST",
|
|
227
|
+
* "VpcConfig": {
|
|
228
|
+
* "SecurityGroupIds": [],
|
|
229
|
+
* "SubnetIds": [],
|
|
230
|
+
* "VpcId": ""
|
|
231
|
+
* }
|
|
232
|
+
* }
|
|
233
|
+
* ],
|
|
234
|
+
* "NextMarker": ""
|
|
235
|
+
* }
|
|
236
|
+
* *\/
|
|
237
|
+
* // example id: to-get-a-list-of-lambda-functions-1481650507425
|
|
238
|
+
* ```
|
|
239
|
+
*
|
|
183
240
|
*/
|
|
184
241
|
export declare class ListFunctionsCommand extends ListFunctionsCommand_base {
|
|
185
242
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -89,6 +89,41 @@ declare const ListLayerVersionsCommand_base: {
|
|
|
89
89
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
90
90
|
*
|
|
91
91
|
* @public
|
|
92
|
+
* @example To list versions of a layer
|
|
93
|
+
* ```javascript
|
|
94
|
+
* // The following example displays information about the versions for the layer named blank-java-lib
|
|
95
|
+
* const input = {
|
|
96
|
+
* "LayerName": "blank-java-lib"
|
|
97
|
+
* };
|
|
98
|
+
* const command = new ListLayerVersionsCommand(input);
|
|
99
|
+
* const response = await client.send(command);
|
|
100
|
+
* /* response ==
|
|
101
|
+
* {
|
|
102
|
+
* "LayerVersions": [
|
|
103
|
+
* {
|
|
104
|
+
* "CompatibleRuntimes": [
|
|
105
|
+
* "java8"
|
|
106
|
+
* ],
|
|
107
|
+
* "CreatedDate": "2020-03-18T23:38:42.284+0000",
|
|
108
|
+
* "Description": "Dependencies for the blank-java sample app.",
|
|
109
|
+
* "LayerVersionArn": "arn:aws:lambda:us-east-2:123456789012:layer:blank-java-lib:7",
|
|
110
|
+
* "Version": 7
|
|
111
|
+
* },
|
|
112
|
+
* {
|
|
113
|
+
* "CompatibleRuntimes": [
|
|
114
|
+
* "java8"
|
|
115
|
+
* ],
|
|
116
|
+
* "CreatedDate": "2020-03-17T07:24:21.960+0000",
|
|
117
|
+
* "Description": "Dependencies for the blank-java sample app.",
|
|
118
|
+
* "LayerVersionArn": "arn:aws:lambda:us-east-2:123456789012:layer:blank-java-lib:6",
|
|
119
|
+
* "Version": 6
|
|
120
|
+
* }
|
|
121
|
+
* ]
|
|
122
|
+
* }
|
|
123
|
+
* *\/
|
|
124
|
+
* // example id: to-list-versions-of-a-layer-1586490857297
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
92
127
|
*/
|
|
93
128
|
export declare class ListLayerVersionsCommand extends ListLayerVersionsCommand_base {
|
|
94
129
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -91,6 +91,37 @@ declare const ListLayersCommand_base: {
|
|
|
91
91
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
92
92
|
*
|
|
93
93
|
* @public
|
|
94
|
+
* @example To list the layers that are compatible with your function's runtime
|
|
95
|
+
* ```javascript
|
|
96
|
+
* // The following example returns information about layers that are compatible with the Python 3.7 runtime.
|
|
97
|
+
* const input = {
|
|
98
|
+
* "CompatibleRuntime": "python3.7"
|
|
99
|
+
* };
|
|
100
|
+
* const command = new ListLayersCommand(input);
|
|
101
|
+
* const response = await client.send(command);
|
|
102
|
+
* /* response ==
|
|
103
|
+
* {
|
|
104
|
+
* "Layers": [
|
|
105
|
+
* {
|
|
106
|
+
* "LatestMatchingVersion": {
|
|
107
|
+
* "CompatibleRuntimes": [
|
|
108
|
+
* "python3.6",
|
|
109
|
+
* "python3.7"
|
|
110
|
+
* ],
|
|
111
|
+
* "CreatedDate": "2018-11-15T00:37:46.592+0000",
|
|
112
|
+
* "Description": "My layer",
|
|
113
|
+
* "LayerVersionArn": "arn:aws:lambda:us-east-2:123456789012:layer:my-layer:2",
|
|
114
|
+
* "Version": 2
|
|
115
|
+
* },
|
|
116
|
+
* "LayerArn": "arn:aws:lambda:us-east-2:123456789012:layer:my-layer",
|
|
117
|
+
* "LayerName": "my-layer"
|
|
118
|
+
* }
|
|
119
|
+
* ]
|
|
120
|
+
* }
|
|
121
|
+
* *\/
|
|
122
|
+
* // example id: to-list-the-layers-that-are-compatible-with-your-functions-runtime-1586490857297
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
94
125
|
*/
|
|
95
126
|
export declare class ListLayersCommand extends ListLayersCommand_base {
|
|
96
127
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -80,6 +80,39 @@ declare const ListProvisionedConcurrencyConfigsCommand_base: {
|
|
|
80
80
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
81
81
|
*
|
|
82
82
|
* @public
|
|
83
|
+
* @example To get a list of provisioned concurrency configurations
|
|
84
|
+
* ```javascript
|
|
85
|
+
* // The following example returns a list of provisioned concurrency configurations for a function named my-function.
|
|
86
|
+
* const input = {
|
|
87
|
+
* "FunctionName": "my-function"
|
|
88
|
+
* };
|
|
89
|
+
* const command = new ListProvisionedConcurrencyConfigsCommand(input);
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response ==
|
|
92
|
+
* {
|
|
93
|
+
* "ProvisionedConcurrencyConfigs": [
|
|
94
|
+
* {
|
|
95
|
+
* "AllocatedProvisionedConcurrentExecutions": 100,
|
|
96
|
+
* "AvailableProvisionedConcurrentExecutions": 100,
|
|
97
|
+
* "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:GREEN",
|
|
98
|
+
* "LastModified": "2019-12-31T20:29:00+0000",
|
|
99
|
+
* "RequestedProvisionedConcurrentExecutions": 100,
|
|
100
|
+
* "Status": "READY"
|
|
101
|
+
* },
|
|
102
|
+
* {
|
|
103
|
+
* "AllocatedProvisionedConcurrentExecutions": 100,
|
|
104
|
+
* "AvailableProvisionedConcurrentExecutions": 100,
|
|
105
|
+
* "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
|
|
106
|
+
* "LastModified": "2019-12-31T20:28:49+0000",
|
|
107
|
+
* "RequestedProvisionedConcurrentExecutions": 100,
|
|
108
|
+
* "Status": "READY"
|
|
109
|
+
* }
|
|
110
|
+
* ]
|
|
111
|
+
* }
|
|
112
|
+
* *\/
|
|
113
|
+
* // example id: to-get-a-list-of-provisioned-concurrency-configurations-1586491032592
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
83
116
|
*/
|
|
84
117
|
export declare class ListProvisionedConcurrencyConfigsCommand extends ListProvisionedConcurrencyConfigsCommand_base {
|
|
85
118
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -27,8 +27,8 @@ declare const ListTagsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Returns a function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. You can
|
|
31
|
-
* also view tags with <a>GetFunction</a>.</p>
|
|
30
|
+
* <p>Returns a function, event source mapping, or code signing configuration's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. You can
|
|
31
|
+
* also view funciton tags with <a>GetFunction</a>.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
@@ -70,6 +70,25 @@ declare const ListTagsCommand_base: {
|
|
|
70
70
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
71
71
|
*
|
|
72
72
|
* @public
|
|
73
|
+
* @example To retrieve the list of tags for a Lambda function
|
|
74
|
+
* ```javascript
|
|
75
|
+
* // The following example displays the tags attached to the my-function Lambda function.
|
|
76
|
+
* const input = {
|
|
77
|
+
* "Resource": "arn:aws:lambda:us-west-2:123456789012:function:my-function"
|
|
78
|
+
* };
|
|
79
|
+
* const command = new ListTagsCommand(input);
|
|
80
|
+
* const response = await client.send(command);
|
|
81
|
+
* /* response ==
|
|
82
|
+
* {
|
|
83
|
+
* "Tags": {
|
|
84
|
+
* "Category": "Web Tools",
|
|
85
|
+
* "Department": "Sales"
|
|
86
|
+
* }
|
|
87
|
+
* }
|
|
88
|
+
* *\/
|
|
89
|
+
* // example id: to-retrieve-the-list-of-tags-for-a-lambda-function-1586491111498
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
73
92
|
*/
|
|
74
93
|
export declare class ListTagsCommand extends ListTagsCommand_base {
|
|
75
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -175,6 +175,73 @@ declare const ListVersionsByFunctionCommand_base: {
|
|
|
175
175
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
176
176
|
*
|
|
177
177
|
* @public
|
|
178
|
+
* @example To list versions of a function
|
|
179
|
+
* ```javascript
|
|
180
|
+
* // The following example returns a list of versions of a function named my-function
|
|
181
|
+
* const input = {
|
|
182
|
+
* "FunctionName": "my-function"
|
|
183
|
+
* };
|
|
184
|
+
* const command = new ListVersionsByFunctionCommand(input);
|
|
185
|
+
* const response = await client.send(command);
|
|
186
|
+
* /* response ==
|
|
187
|
+
* {
|
|
188
|
+
* "Versions": [
|
|
189
|
+
* {
|
|
190
|
+
* "CodeSha256": "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
|
|
191
|
+
* "CodeSize": 5797206,
|
|
192
|
+
* "Description": "Process image objects from Amazon S3.",
|
|
193
|
+
* "Environment": {
|
|
194
|
+
* "Variables": {
|
|
195
|
+
* "BUCKET": "my-bucket-1xpuxmplzrlbh",
|
|
196
|
+
* "PREFIX": "inbound"
|
|
197
|
+
* }
|
|
198
|
+
* },
|
|
199
|
+
* "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
200
|
+
* "FunctionName": "my-function",
|
|
201
|
+
* "Handler": "index.handler",
|
|
202
|
+
* "KMSKeyArn": "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
|
|
203
|
+
* "LastModified": "2020-04-10T19:06:32.563+0000",
|
|
204
|
+
* "MemorySize": 256,
|
|
205
|
+
* "RevisionId": "850ca006-2d98-4ff4-86db-8766e9d32fe9",
|
|
206
|
+
* "Role": "arn:aws:iam::123456789012:role/lambda-role",
|
|
207
|
+
* "Runtime": "nodejs12.x",
|
|
208
|
+
* "Timeout": 15,
|
|
209
|
+
* "TracingConfig": {
|
|
210
|
+
* "Mode": "Active"
|
|
211
|
+
* },
|
|
212
|
+
* "Version": "$LATEST"
|
|
213
|
+
* },
|
|
214
|
+
* {
|
|
215
|
+
* "CodeSha256": "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
|
|
216
|
+
* "CodeSize": 5797206,
|
|
217
|
+
* "Description": "Process image objects from Amazon S3.",
|
|
218
|
+
* "Environment": {
|
|
219
|
+
* "Variables": {
|
|
220
|
+
* "BUCKET": "my-bucket-1xpuxmplzrlbh",
|
|
221
|
+
* "PREFIX": "inbound"
|
|
222
|
+
* }
|
|
223
|
+
* },
|
|
224
|
+
* "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
225
|
+
* "FunctionName": "my-function",
|
|
226
|
+
* "Handler": "index.handler",
|
|
227
|
+
* "KMSKeyArn": "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
|
|
228
|
+
* "LastModified": "2020-04-10T19:06:32.563+0000",
|
|
229
|
+
* "MemorySize": 256,
|
|
230
|
+
* "RevisionId": "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
|
|
231
|
+
* "Role": "arn:aws:iam::123456789012:role/lambda-role",
|
|
232
|
+
* "Runtime": "nodejs12.x",
|
|
233
|
+
* "Timeout": 5,
|
|
234
|
+
* "TracingConfig": {
|
|
235
|
+
* "Mode": "Active"
|
|
236
|
+
* },
|
|
237
|
+
* "Version": "1"
|
|
238
|
+
* }
|
|
239
|
+
* ]
|
|
240
|
+
* }
|
|
241
|
+
* *\/
|
|
242
|
+
* // example id: to-list-versions-1481650603750
|
|
243
|
+
* ```
|
|
244
|
+
*
|
|
178
245
|
*/
|
|
179
246
|
export declare class ListVersionsByFunctionCommand extends ListVersionsByFunctionCommand_base {
|
|
180
247
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -105,6 +105,46 @@ declare const PublishLayerVersionCommand_base: {
|
|
|
105
105
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
106
106
|
*
|
|
107
107
|
* @public
|
|
108
|
+
* @example To create a Lambda layer version
|
|
109
|
+
* ```javascript
|
|
110
|
+
* // The following example creates a new Python library layer version. The command retrieves the layer content a file named layer.zip in the specified S3 bucket.
|
|
111
|
+
* const input = {
|
|
112
|
+
* "CompatibleRuntimes": [
|
|
113
|
+
* "python3.6",
|
|
114
|
+
* "python3.7"
|
|
115
|
+
* ],
|
|
116
|
+
* "Content": {
|
|
117
|
+
* "S3Bucket": "lambda-layers-us-west-2-123456789012",
|
|
118
|
+
* "S3Key": "layer.zip"
|
|
119
|
+
* },
|
|
120
|
+
* "Description": "My Python layer",
|
|
121
|
+
* "LayerName": "my-layer",
|
|
122
|
+
* "LicenseInfo": "MIT"
|
|
123
|
+
* };
|
|
124
|
+
* const command = new PublishLayerVersionCommand(input);
|
|
125
|
+
* const response = await client.send(command);
|
|
126
|
+
* /* response ==
|
|
127
|
+
* {
|
|
128
|
+
* "CompatibleRuntimes": [
|
|
129
|
+
* "python3.6",
|
|
130
|
+
* "python3.7"
|
|
131
|
+
* ],
|
|
132
|
+
* "Content": {
|
|
133
|
+
* "CodeSha256": "tv9jJO+rPbXUUXuRKi7CwHzKtLDkDRJLB3cC3Z/ouXo=",
|
|
134
|
+
* "CodeSize": 169,
|
|
135
|
+
* "Location": "https://awslambda-us-west-2-layers.s3.us-west-2.amazonaws.com/snapshots/123456789012/my-layer-4aaa2fbb-ff77-4b0a-ad92-5b78a716a96a?versionId=27iWyA73cCAYqyH..."
|
|
136
|
+
* },
|
|
137
|
+
* "CreatedDate": "2018-11-14T23:03:52.894+0000",
|
|
138
|
+
* "Description": "My Python layer",
|
|
139
|
+
* "LayerArn": "arn:aws:lambda:us-west-2:123456789012:layer:my-layer",
|
|
140
|
+
* "LayerVersionArn": "arn:aws:lambda:us-west-2:123456789012:layer:my-layer:1",
|
|
141
|
+
* "LicenseInfo": "MIT",
|
|
142
|
+
* "Version": 1
|
|
143
|
+
* }
|
|
144
|
+
* *\/
|
|
145
|
+
* // example id: to-create-a-lambda-layer-version-1586491213595
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
108
148
|
*/
|
|
109
149
|
export declare class PublishLayerVersionCommand extends PublishLayerVersionCommand_base {
|
|
110
150
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -195,6 +195,48 @@ declare const PublishVersionCommand_base: {
|
|
|
195
195
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
196
196
|
*
|
|
197
197
|
* @public
|
|
198
|
+
* @example To publish a version of a Lambda function
|
|
199
|
+
* ```javascript
|
|
200
|
+
* // This operation publishes a version of a Lambda function
|
|
201
|
+
* const input = {
|
|
202
|
+
* "CodeSha256": "",
|
|
203
|
+
* "Description": "",
|
|
204
|
+
* "FunctionName": "myFunction"
|
|
205
|
+
* };
|
|
206
|
+
* const command = new PublishVersionCommand(input);
|
|
207
|
+
* const response = await client.send(command);
|
|
208
|
+
* /* response ==
|
|
209
|
+
* {
|
|
210
|
+
* "CodeSha256": "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
|
|
211
|
+
* "CodeSize": 5797206,
|
|
212
|
+
* "Description": "Process image objects from Amazon S3.",
|
|
213
|
+
* "Environment": {
|
|
214
|
+
* "Variables": {
|
|
215
|
+
* "BUCKET": "my-bucket-1xpuxmplzrlbh",
|
|
216
|
+
* "PREFIX": "inbound"
|
|
217
|
+
* }
|
|
218
|
+
* },
|
|
219
|
+
* "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
220
|
+
* "FunctionName": "my-function",
|
|
221
|
+
* "Handler": "index.handler",
|
|
222
|
+
* "KMSKeyArn": "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
|
|
223
|
+
* "LastModified": "2020-04-10T19:06:32.563+0000",
|
|
224
|
+
* "LastUpdateStatus": "Successful",
|
|
225
|
+
* "MemorySize": 256,
|
|
226
|
+
* "RevisionId": "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
|
|
227
|
+
* "Role": "arn:aws:iam::123456789012:role/lambda-role",
|
|
228
|
+
* "Runtime": "nodejs12.x",
|
|
229
|
+
* "State": "Active",
|
|
230
|
+
* "Timeout": 5,
|
|
231
|
+
* "TracingConfig": {
|
|
232
|
+
* "Mode": "Active"
|
|
233
|
+
* },
|
|
234
|
+
* "Version": "1"
|
|
235
|
+
* }
|
|
236
|
+
* *\/
|
|
237
|
+
* // example id: to-publish-a-version-of-a-lambda-function-1481650704986
|
|
238
|
+
* ```
|
|
239
|
+
*
|
|
198
240
|
*/
|
|
199
241
|
export declare class PublishVersionCommand extends PublishVersionCommand_base {
|
|
200
242
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -79,6 +79,23 @@ declare const PutFunctionConcurrencyCommand_base: {
|
|
|
79
79
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
80
80
|
*
|
|
81
81
|
* @public
|
|
82
|
+
* @example To configure a reserved concurrency limit for a function
|
|
83
|
+
* ```javascript
|
|
84
|
+
* // The following example configures 100 reserved concurrent executions for the my-function function.
|
|
85
|
+
* const input = {
|
|
86
|
+
* "FunctionName": "my-function",
|
|
87
|
+
* "ReservedConcurrentExecutions": 100
|
|
88
|
+
* };
|
|
89
|
+
* const command = new PutFunctionConcurrencyCommand(input);
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response ==
|
|
92
|
+
* {
|
|
93
|
+
* "ReservedConcurrentExecutions": 100
|
|
94
|
+
* }
|
|
95
|
+
* *\/
|
|
96
|
+
* // example id: to-configure-a-reserved-concurrency-limit-for-a-function-1586491405956
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
82
99
|
*/
|
|
83
100
|
export declare class PutFunctionConcurrencyCommand extends PutFunctionConcurrencyCommand_base {
|
|
84
101
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -102,6 +102,31 @@ declare const PutFunctionEventInvokeConfigCommand_base: {
|
|
|
102
102
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
103
103
|
*
|
|
104
104
|
* @public
|
|
105
|
+
* @example To configure error handling for asynchronous invocation
|
|
106
|
+
* ```javascript
|
|
107
|
+
* // The following example sets a maximum event age of one hour and disables retries for the specified function.
|
|
108
|
+
* const input = {
|
|
109
|
+
* "FunctionName": "my-function",
|
|
110
|
+
* "MaximumEventAgeInSeconds": 3600,
|
|
111
|
+
* "MaximumRetryAttempts": 0
|
|
112
|
+
* };
|
|
113
|
+
* const command = new PutFunctionEventInvokeConfigCommand(input);
|
|
114
|
+
* const response = await client.send(command);
|
|
115
|
+
* /* response ==
|
|
116
|
+
* {
|
|
117
|
+
* "DestinationConfig": {
|
|
118
|
+
* "OnFailure": {},
|
|
119
|
+
* "OnSuccess": {}
|
|
120
|
+
* },
|
|
121
|
+
* "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:$LATEST",
|
|
122
|
+
* "LastModified": "${timestamp}",
|
|
123
|
+
* "MaximumEventAgeInSeconds": 3600,
|
|
124
|
+
* "MaximumRetryAttempts": 0
|
|
125
|
+
* }
|
|
126
|
+
* *\/
|
|
127
|
+
* // example id: to-configure-error-handling-for-asynchronous-invocation-1586491524021
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
105
130
|
*/
|
|
106
131
|
export declare class PutFunctionEventInvokeConfigCommand extends PutFunctionEventInvokeConfigCommand_base {
|
|
107
132
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -77,6 +77,27 @@ declare const PutProvisionedConcurrencyConfigCommand_base: {
|
|
|
77
77
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
78
78
|
*
|
|
79
79
|
* @public
|
|
80
|
+
* @example To allocate provisioned concurrency
|
|
81
|
+
* ```javascript
|
|
82
|
+
* // The following example allocates 100 provisioned concurrency for the BLUE alias of the specified function.
|
|
83
|
+
* const input = {
|
|
84
|
+
* "FunctionName": "my-function",
|
|
85
|
+
* "ProvisionedConcurrentExecutions": 100,
|
|
86
|
+
* "Qualifier": "BLUE"
|
|
87
|
+
* };
|
|
88
|
+
* const command = new PutProvisionedConcurrencyConfigCommand(input);
|
|
89
|
+
* const response = await client.send(command);
|
|
90
|
+
* /* response ==
|
|
91
|
+
* {
|
|
92
|
+
* "AllocatedProvisionedConcurrentExecutions": 0,
|
|
93
|
+
* "LastModified": "2019-11-21T19:32:12+0000",
|
|
94
|
+
* "RequestedProvisionedConcurrentExecutions": 100,
|
|
95
|
+
* "Status": "IN_PROGRESS"
|
|
96
|
+
* }
|
|
97
|
+
* *\/
|
|
98
|
+
* // example id: to-allocate-provisioned-concurrency-1586491651377
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
80
101
|
*/
|
|
81
102
|
export declare class PutProvisionedConcurrencyConfigCommand extends PutProvisionedConcurrencyConfigCommand_base {
|
|
82
103
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -27,7 +27,11 @@ declare const PutPublicAccessBlockConfigCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <
|
|
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>Configure your function's public-access settings.</p>
|
|
31
35
|
* <p>To control public access to a Lambda function, you can choose whether to allow the creation of
|
|
32
36
|
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policies</a> that
|
|
33
37
|
* allow public access to that function. You can also block public access to a function, even if it has an existing resource-based
|
|
@@ -27,7 +27,11 @@ declare const PutResourcePolicyCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <
|
|
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>Adds a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a>
|
|
31
35
|
* to a function. You can use resource-based policies to grant access to other
|
|
32
36
|
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-cross-account.html">Amazon Web Services accounts</a>,
|
|
33
37
|
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-organization.html">organizations</a>, or
|
|
@@ -83,6 +83,19 @@ declare const RemoveLayerVersionPermissionCommand_base: {
|
|
|
83
83
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
84
84
|
*
|
|
85
85
|
* @public
|
|
86
|
+
* @example To delete layer-version permissions
|
|
87
|
+
* ```javascript
|
|
88
|
+
* // The following example deletes permission for an account to configure a layer version.
|
|
89
|
+
* const input = {
|
|
90
|
+
* "LayerName": "my-layer",
|
|
91
|
+
* "StatementId": "xaccount",
|
|
92
|
+
* "VersionNumber": 1
|
|
93
|
+
* };
|
|
94
|
+
* const command = new RemoveLayerVersionPermissionCommand(input);
|
|
95
|
+
* await client.send(command);
|
|
96
|
+
* // example id: to-delete-layer-version-permissions-1586491829416
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
86
99
|
*/
|
|
87
100
|
export declare class RemoveLayerVersionPermissionCommand extends RemoveLayerVersionPermissionCommand_base {
|
|
88
101
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -69,6 +69,11 @@ declare const RemovePermissionCommand_base: {
|
|
|
69
69
|
* </li>
|
|
70
70
|
* </ul>
|
|
71
71
|
*
|
|
72
|
+
* @throws {@link PublicPolicyException} (client fault)
|
|
73
|
+
* <p>Lambda prevented your policy from being created because it would grant public access to your function. If you intended to
|
|
74
|
+
* create a public policy, use the <a>PutPublicAccessBlockConfig</a> API action to configure your function's public-access settings
|
|
75
|
+
* to allow public policies.</p>
|
|
76
|
+
*
|
|
72
77
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
73
78
|
* <p>The resource specified in the request does not exist.</p>
|
|
74
79
|
*
|
|
@@ -82,6 +87,19 @@ declare const RemovePermissionCommand_base: {
|
|
|
82
87
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
83
88
|
*
|
|
84
89
|
* @public
|
|
90
|
+
* @example To remove a Lambda function's permissions
|
|
91
|
+
* ```javascript
|
|
92
|
+
* // The following example removes a permissions statement named xaccount from the PROD alias of a function named my-function.
|
|
93
|
+
* const input = {
|
|
94
|
+
* "FunctionName": "my-function",
|
|
95
|
+
* "Qualifier": "PROD",
|
|
96
|
+
* "StatementId": "xaccount"
|
|
97
|
+
* };
|
|
98
|
+
* const command = new RemovePermissionCommand(input);
|
|
99
|
+
* await client.send(command);
|
|
100
|
+
* // example id: to-remove-a-lambda-functions-permissions-1481661337021
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
85
103
|
*/
|
|
86
104
|
export declare class RemovePermissionCommand extends RemovePermissionCommand_base {
|
|
87
105
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -27,7 +27,7 @@ declare const TagResourceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Adds <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> to a function.</p>
|
|
30
|
+
* <p>Adds <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> to a function, event source mapping, or code signing configuration.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -71,6 +71,20 @@ declare const TagResourceCommand_base: {
|
|
|
71
71
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
72
72
|
*
|
|
73
73
|
* @public
|
|
74
|
+
* @example To add tags to an existing Lambda function
|
|
75
|
+
* ```javascript
|
|
76
|
+
* // The following example adds a tag with the key name DEPARTMENT and a value of 'Department A' to the specified Lambda function.
|
|
77
|
+
* const input = {
|
|
78
|
+
* "Resource": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
79
|
+
* "Tags": {
|
|
80
|
+
* "DEPARTMENT": "Department A"
|
|
81
|
+
* }
|
|
82
|
+
* };
|
|
83
|
+
* const command = new TagResourceCommand(input);
|
|
84
|
+
* await client.send(command);
|
|
85
|
+
* // example id: to-add-tags-to-an-existing-lambda-function-1586491890446
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
74
88
|
*/
|
|
75
89
|
export declare class TagResourceCommand extends TagResourceCommand_base {
|
|
76
90
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -27,7 +27,7 @@ declare const UntagResourceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Removes <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> from a function.</p>
|
|
30
|
+
* <p>Removes <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> from a function, event source mapping, or code signing configuration.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -71,6 +71,20 @@ declare const UntagResourceCommand_base: {
|
|
|
71
71
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
72
72
|
*
|
|
73
73
|
* @public
|
|
74
|
+
* @example To remove tags from an existing Lambda function
|
|
75
|
+
* ```javascript
|
|
76
|
+
* // The following example removes the tag with the key name DEPARTMENT tag from the my-function Lambda function.
|
|
77
|
+
* const input = {
|
|
78
|
+
* "Resource": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
79
|
+
* "TagKeys": [
|
|
80
|
+
* "DEPARTMENT"
|
|
81
|
+
* ]
|
|
82
|
+
* };
|
|
83
|
+
* const command = new UntagResourceCommand(input);
|
|
84
|
+
* await client.send(command);
|
|
85
|
+
* // example id: to-remove-tags-from-an-existing-lambda-function-1586491956425
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
74
88
|
*/
|
|
75
89
|
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
76
90
|
/** @internal type navigation helper, not in runtime. */
|