@aws-sdk/client-lambda 3.655.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-types/commands/AddLayerVersionPermissionCommand.d.ts +21 -0
- package/dist-types/commands/AddPermissionCommand.d.ts +40 -0
- package/dist-types/commands/CreateAliasCommand.d.ts +23 -0
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +24 -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 +22 -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/GetAccountSettingsCommand.d.ts +24 -0
- package/dist-types/commands/GetAliasCommand.d.ts +21 -0
- package/dist-types/commands/GetEventSourceMappingCommand.d.ts +27 -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/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 +26 -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 +19 -0
- 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/RemoveLayerVersionPermissionCommand.d.ts +13 -0
- package/dist-types/commands/RemovePermissionCommand.d.ts +13 -0
- package/dist-types/commands/TagResourceCommand.d.ts +14 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +14 -0
- package/dist-types/commands/UpdateAliasCommand.d.ts +32 -0
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +26 -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/package.json +1 -1
|
@@ -88,6 +88,37 @@ declare const GetLayerVersionCommand_base: {
|
|
|
88
88
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
89
89
|
*
|
|
90
90
|
* @public
|
|
91
|
+
* @example To get information about a Lambda layer version
|
|
92
|
+
* ```javascript
|
|
93
|
+
* // The following example returns information for version 1 of a layer named my-layer.
|
|
94
|
+
* const input = {
|
|
95
|
+
* "LayerName": "my-layer",
|
|
96
|
+
* "VersionNumber": 1
|
|
97
|
+
* };
|
|
98
|
+
* const command = new GetLayerVersionCommand(input);
|
|
99
|
+
* const response = await client.send(command);
|
|
100
|
+
* /* response ==
|
|
101
|
+
* {
|
|
102
|
+
* "CompatibleRuntimes": [
|
|
103
|
+
* "python3.6",
|
|
104
|
+
* "python3.7"
|
|
105
|
+
* ],
|
|
106
|
+
* "Content": {
|
|
107
|
+
* "CodeSha256": "tv9jJO+rPbXUUXuRKi7CwHzKtLDkDRJLB3cC3Z/ouXo=",
|
|
108
|
+
* "CodeSize": 169,
|
|
109
|
+
* "Location": "https://awslambda-us-east-2-layers.s3.us-east-2.amazonaws.com/snapshots/123456789012/my-layer-4aaa2fbb-ff77-4b0a-ad92-5b78a716a96a?versionId=27iWyA73cCAYqyH..."
|
|
110
|
+
* },
|
|
111
|
+
* "CreatedDate": "2018-11-14T23:03:52.894+0000",
|
|
112
|
+
* "Description": "My Python layer",
|
|
113
|
+
* "LayerArn": "arn:aws:lambda:us-east-2:123456789012:layer:my-layer",
|
|
114
|
+
* "LayerVersionArn": "arn:aws:lambda:us-east-2:123456789012:layer:my-layer:1",
|
|
115
|
+
* "LicenseInfo": "MIT",
|
|
116
|
+
* "Version": 1
|
|
117
|
+
* }
|
|
118
|
+
* *\/
|
|
119
|
+
* // example id: to-get-information-about-a-lambda-layer-version-1586481457839
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
91
122
|
*/
|
|
92
123
|
export declare class GetLayerVersionCommand extends GetLayerVersionCommand_base {
|
|
93
124
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -69,6 +69,24 @@ declare const GetPolicyCommand_base: {
|
|
|
69
69
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
70
70
|
*
|
|
71
71
|
* @public
|
|
72
|
+
* @example To retrieve a Lambda function policy
|
|
73
|
+
* ```javascript
|
|
74
|
+
* // The following example returns the resource-based policy for version 1 of a Lambda function named my-function.
|
|
75
|
+
* const input = {
|
|
76
|
+
* "FunctionName": "my-function",
|
|
77
|
+
* "Qualifier": "1"
|
|
78
|
+
* };
|
|
79
|
+
* const command = new GetPolicyCommand(input);
|
|
80
|
+
* const response = await client.send(command);
|
|
81
|
+
* /* response ==
|
|
82
|
+
* {
|
|
83
|
+
* "Policy": "{\"Version\":\"2012-10-17\",\"Id\":\"default\",\"Statement\":[{\"Sid\":\"xaccount\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::123456789012:root\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-east-2:123456789012:function:my-function:1\"}]}",
|
|
84
|
+
* "RevisionId": "4843f2f6-7c59-4fda-b484-afd0bc0e22b8"
|
|
85
|
+
* }
|
|
86
|
+
* *\/
|
|
87
|
+
* // example id: to-retrieve-a-lambda-function-policy-1481649319053
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
72
90
|
*/
|
|
73
91
|
export declare class GetPolicyCommand extends GetPolicyCommand_base {
|
|
74
92
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -76,6 +76,48 @@ declare const GetProvisionedConcurrencyConfigCommand_base: {
|
|
|
76
76
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
77
77
|
*
|
|
78
78
|
* @public
|
|
79
|
+
* @example To view a provisioned concurrency configuration
|
|
80
|
+
* ```javascript
|
|
81
|
+
* // The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified function.
|
|
82
|
+
* const input = {
|
|
83
|
+
* "FunctionName": "my-function",
|
|
84
|
+
* "Qualifier": "BLUE"
|
|
85
|
+
* };
|
|
86
|
+
* const command = new GetProvisionedConcurrencyConfigCommand(input);
|
|
87
|
+
* const response = await client.send(command);
|
|
88
|
+
* /* response ==
|
|
89
|
+
* {
|
|
90
|
+
* "AllocatedProvisionedConcurrentExecutions": 100,
|
|
91
|
+
* "AvailableProvisionedConcurrentExecutions": 100,
|
|
92
|
+
* "LastModified": "2019-12-31T20:28:49+0000",
|
|
93
|
+
* "RequestedProvisionedConcurrentExecutions": 100,
|
|
94
|
+
* "Status": "READY"
|
|
95
|
+
* }
|
|
96
|
+
* *\/
|
|
97
|
+
* // example id: to-view-a-provisioned-concurrency-configuration-1586490192690
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @example To get a provisioned concurrency configuration
|
|
101
|
+
* ```javascript
|
|
102
|
+
* // The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified function.
|
|
103
|
+
* const input = {
|
|
104
|
+
* "FunctionName": "my-function",
|
|
105
|
+
* "Qualifier": "BLUE"
|
|
106
|
+
* };
|
|
107
|
+
* const command = new GetProvisionedConcurrencyConfigCommand(input);
|
|
108
|
+
* const response = await client.send(command);
|
|
109
|
+
* /* response ==
|
|
110
|
+
* {
|
|
111
|
+
* "AllocatedProvisionedConcurrentExecutions": 100,
|
|
112
|
+
* "AvailableProvisionedConcurrentExecutions": 100,
|
|
113
|
+
* "LastModified": "2019-12-31T20:28:49+0000",
|
|
114
|
+
* "RequestedProvisionedConcurrentExecutions": 100,
|
|
115
|
+
* "Status": "READY"
|
|
116
|
+
* }
|
|
117
|
+
* *\/
|
|
118
|
+
* // example id: to-get-a-provisioned-concurrency-configuration-1586490192690
|
|
119
|
+
* ```
|
|
120
|
+
*
|
|
79
121
|
*/
|
|
80
122
|
export declare class GetProvisionedConcurrencyConfigCommand extends GetProvisionedConcurrencyConfigCommand_base {
|
|
81
123
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -81,6 +81,23 @@ declare const InvokeAsyncCommand_base: {
|
|
|
81
81
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
82
82
|
*
|
|
83
83
|
* @public
|
|
84
|
+
* @example To invoke a Lambda function asynchronously
|
|
85
|
+
* ```javascript
|
|
86
|
+
* // The following example invokes a Lambda function asynchronously
|
|
87
|
+
* const input = {
|
|
88
|
+
* "FunctionName": "my-function",
|
|
89
|
+
* "InvokeArgs": "{}"
|
|
90
|
+
* };
|
|
91
|
+
* const command = new InvokeAsyncCommand(input);
|
|
92
|
+
* const response = await client.send(command);
|
|
93
|
+
* /* response ==
|
|
94
|
+
* {
|
|
95
|
+
* "Status": 202
|
|
96
|
+
* }
|
|
97
|
+
* *\/
|
|
98
|
+
* // example id: to-invoke-a-lambda-function-asynchronously-1481649694923
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
84
101
|
*/
|
|
85
102
|
export declare class InvokeAsyncCommand extends InvokeAsyncCommand_base {
|
|
86
103
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -207,6 +207,45 @@ declare const InvokeCommand_base: {
|
|
|
207
207
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
208
208
|
*
|
|
209
209
|
* @public
|
|
210
|
+
* @example To invoke a Lambda function
|
|
211
|
+
* ```javascript
|
|
212
|
+
* // The following example invokes version 1 of a function named my-function with an empty event payload.
|
|
213
|
+
* const input = {
|
|
214
|
+
* "FunctionName": "my-function",
|
|
215
|
+
* "Payload": "{}",
|
|
216
|
+
* "Qualifier": "1"
|
|
217
|
+
* };
|
|
218
|
+
* const command = new InvokeCommand(input);
|
|
219
|
+
* const response = await client.send(command);
|
|
220
|
+
* /* response ==
|
|
221
|
+
* {
|
|
222
|
+
* "Payload": "200 SUCCESS",
|
|
223
|
+
* "StatusCode": 200
|
|
224
|
+
* }
|
|
225
|
+
* *\/
|
|
226
|
+
* // example id: to-invoke-a-lambda-function-1481659683915
|
|
227
|
+
* ```
|
|
228
|
+
*
|
|
229
|
+
* @example To invoke a Lambda function asynchronously
|
|
230
|
+
* ```javascript
|
|
231
|
+
* // The following example invokes version 1 of a function named my-function asynchronously.
|
|
232
|
+
* const input = {
|
|
233
|
+
* "FunctionName": "my-function",
|
|
234
|
+
* "InvocationType": "Event",
|
|
235
|
+
* "Payload": "{}",
|
|
236
|
+
* "Qualifier": "1"
|
|
237
|
+
* };
|
|
238
|
+
* const command = new InvokeCommand(input);
|
|
239
|
+
* const response = await client.send(command);
|
|
240
|
+
* /* response ==
|
|
241
|
+
* {
|
|
242
|
+
* "Payload": "",
|
|
243
|
+
* "StatusCode": 202
|
|
244
|
+
* }
|
|
245
|
+
* *\/
|
|
246
|
+
* // example id: to-invoke-a-lambda-function-async-1481659683915
|
|
247
|
+
* ```
|
|
248
|
+
*
|
|
210
249
|
*/
|
|
211
250
|
export declare class InvokeCommand extends InvokeCommand_base {
|
|
212
251
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -85,6 +85,42 @@ declare const ListAliasesCommand_base: {
|
|
|
85
85
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
86
86
|
*
|
|
87
87
|
* @public
|
|
88
|
+
* @example To list a function's aliases
|
|
89
|
+
* ```javascript
|
|
90
|
+
* // The following example returns a list of aliases for a function named my-function.
|
|
91
|
+
* const input = {
|
|
92
|
+
* "FunctionName": "my-function"
|
|
93
|
+
* };
|
|
94
|
+
* const command = new ListAliasesCommand(input);
|
|
95
|
+
* const response = await client.send(command);
|
|
96
|
+
* /* response ==
|
|
97
|
+
* {
|
|
98
|
+
* "Aliases": [
|
|
99
|
+
* {
|
|
100
|
+
* "AliasArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function:BETA",
|
|
101
|
+
* "Description": "Production environment BLUE.",
|
|
102
|
+
* "FunctionVersion": "2",
|
|
103
|
+
* "Name": "BLUE",
|
|
104
|
+
* "RevisionId": "a410117f-xmpl-494e-8035-7e204bb7933b",
|
|
105
|
+
* "RoutingConfig": {
|
|
106
|
+
* "AdditionalVersionWeights": {
|
|
107
|
+
* "1": 0.7
|
|
108
|
+
* }
|
|
109
|
+
* }
|
|
110
|
+
* },
|
|
111
|
+
* {
|
|
112
|
+
* "AliasArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function:LIVE",
|
|
113
|
+
* "Description": "Production environment GREEN.",
|
|
114
|
+
* "FunctionVersion": "1",
|
|
115
|
+
* "Name": "GREEN",
|
|
116
|
+
* "RevisionId": "21d40116-xmpl-40ba-9360-3ea284da1bb5"
|
|
117
|
+
* }
|
|
118
|
+
* ]
|
|
119
|
+
* }
|
|
120
|
+
* *\/
|
|
121
|
+
* // example id: to-list-a-functions-aliases-1481650199732
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
88
124
|
*/
|
|
89
125
|
export declare class ListAliasesCommand extends ListAliasesCommand_base {
|
|
90
126
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -148,6 +148,32 @@ declare const ListEventSourceMappingsCommand_base: {
|
|
|
148
148
|
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
149
149
|
*
|
|
150
150
|
* @public
|
|
151
|
+
* @example To list the event source mappings for a function
|
|
152
|
+
* ```javascript
|
|
153
|
+
* // The following example returns a list of the event source mappings for a function named my-function.
|
|
154
|
+
* const input = {
|
|
155
|
+
* "FunctionName": "my-function"
|
|
156
|
+
* };
|
|
157
|
+
* const command = new ListEventSourceMappingsCommand(input);
|
|
158
|
+
* const response = await client.send(command);
|
|
159
|
+
* /* response ==
|
|
160
|
+
* {
|
|
161
|
+
* "EventSourceMappings": [
|
|
162
|
+
* {
|
|
163
|
+
* "BatchSize": 5,
|
|
164
|
+
* "EventSourceArn": "arn:aws:sqs:us-west-2:123456789012:mySQSqueue",
|
|
165
|
+
* "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
|
|
166
|
+
* "LastModified": 1569284520.333,
|
|
167
|
+
* "State": "Enabled",
|
|
168
|
+
* "StateTransitionReason": "USER_INITIATED",
|
|
169
|
+
* "UUID": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE"
|
|
170
|
+
* }
|
|
171
|
+
* ]
|
|
172
|
+
* }
|
|
173
|
+
* *\/
|
|
174
|
+
* // example id: to-list-the-event-source-mappings-for-a-function-1586490285906
|
|
175
|
+
* ```
|
|
176
|
+
*
|
|
151
177
|
*/
|
|
152
178
|
export declare class ListEventSourceMappingsCommand extends ListEventSourceMappingsCommand_base {
|
|
153
179
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -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. */
|
|
@@ -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. */
|