@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.
Files changed (60) hide show
  1. package/dist-cjs/index.js +31 -24
  2. package/dist-es/models/models_0.js +14 -14
  3. package/dist-es/protocols/Aws_restJson1.js +10 -3
  4. package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +21 -0
  5. package/dist-types/commands/AddPermissionCommand.d.ts +46 -1
  6. package/dist-types/commands/CreateAliasCommand.d.ts +23 -0
  7. package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +3 -0
  8. package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +28 -0
  9. package/dist-types/commands/CreateFunctionCommand.d.ts +64 -0
  10. package/dist-types/commands/DeleteAliasCommand.d.ts +12 -0
  11. package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +23 -0
  12. package/dist-types/commands/DeleteFunctionCommand.d.ts +12 -0
  13. package/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +11 -0
  14. package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +12 -0
  15. package/dist-types/commands/DeleteLayerVersionCommand.d.ts +12 -0
  16. package/dist-types/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +12 -0
  17. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +5 -1
  18. package/dist-types/commands/GetAccountSettingsCommand.d.ts +24 -0
  19. package/dist-types/commands/GetAliasCommand.d.ts +21 -0
  20. package/dist-types/commands/GetEventSourceMappingCommand.d.ts +28 -0
  21. package/dist-types/commands/GetFunctionCommand.d.ts +50 -0
  22. package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +16 -0
  23. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +41 -0
  24. package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +26 -0
  25. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +28 -0
  26. package/dist-types/commands/GetLayerVersionCommand.d.ts +31 -0
  27. package/dist-types/commands/GetPolicyCommand.d.ts +18 -0
  28. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +42 -0
  29. package/dist-types/commands/GetPublicAccessBlockConfigCommand.d.ts +5 -1
  30. package/dist-types/commands/GetResourcePolicyCommand.d.ts +5 -1
  31. package/dist-types/commands/InvokeAsyncCommand.d.ts +17 -0
  32. package/dist-types/commands/InvokeCommand.d.ts +39 -0
  33. package/dist-types/commands/ListAliasesCommand.d.ts +36 -0
  34. package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +27 -0
  35. package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +29 -0
  36. package/dist-types/commands/ListFunctionsCommand.d.ts +57 -0
  37. package/dist-types/commands/ListLayerVersionsCommand.d.ts +35 -0
  38. package/dist-types/commands/ListLayersCommand.d.ts +31 -0
  39. package/dist-types/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +33 -0
  40. package/dist-types/commands/ListTagsCommand.d.ts +21 -2
  41. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +67 -0
  42. package/dist-types/commands/PublishLayerVersionCommand.d.ts +40 -0
  43. package/dist-types/commands/PublishVersionCommand.d.ts +42 -0
  44. package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +17 -0
  45. package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +25 -0
  46. package/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +21 -0
  47. package/dist-types/commands/PutPublicAccessBlockConfigCommand.d.ts +5 -1
  48. package/dist-types/commands/PutResourcePolicyCommand.d.ts +5 -1
  49. package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +13 -0
  50. package/dist-types/commands/RemovePermissionCommand.d.ts +18 -0
  51. package/dist-types/commands/TagResourceCommand.d.ts +15 -1
  52. package/dist-types/commands/UntagResourceCommand.d.ts +15 -1
  53. package/dist-types/commands/UpdateAliasCommand.d.ts +32 -0
  54. package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +27 -0
  55. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +33 -0
  56. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +32 -0
  57. package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +30 -0
  58. package/dist-types/models/models_0.d.ts +42 -27
  59. package/dist-types/ts3.4/models/models_0.d.ts +12 -9
  60. package/package.json +1 -1
@@ -69,6 +69,18 @@ declare const DeleteProvisionedConcurrencyConfigCommand_base: {
69
69
  * <p>Base exception class for all service exceptions from Lambda service.</p>
70
70
  *
71
71
  * @public
72
+ * @example To delete a provisioned concurrency configuration
73
+ * ```javascript
74
+ * // The following example deletes the provisioned concurrency configuration for the GREEN alias of a function named my-function.
75
+ * const input = {
76
+ * "FunctionName": "my-function",
77
+ * "Qualifier": "GREEN"
78
+ * };
79
+ * const command = new DeleteProvisionedConcurrencyConfigCommand(input);
80
+ * await client.send(command);
81
+ * // example id: to-delete-a-provisioned-concurrency-configuration-1586481032551
82
+ * ```
83
+ *
72
84
  */
73
85
  export declare class DeleteProvisionedConcurrencyConfigCommand extends DeleteProvisionedConcurrencyConfigCommand_base {
74
86
  /** @internal type navigation helper, not in runtime. */
@@ -27,7 +27,11 @@ declare const DeleteResourcePolicyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> from a function.</p>
30
+ * <note>
31
+ * <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be
32
+ * available in all Amazon Web Services Regions until September 30, 2024.</p>
33
+ * </note>
34
+ * <p>Deletes a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> from a function.</p>
31
35
  * @example
32
36
  * Use a bare-bones client and the command you need to make an API call.
33
37
  * ```javascript
@@ -69,6 +69,30 @@ declare const GetAccountSettingsCommand_base: {
69
69
  * <p>Base exception class for all service exceptions from Lambda service.</p>
70
70
  *
71
71
  * @public
72
+ * @example To get account settings
73
+ * ```javascript
74
+ * // This operation takes no parameters and returns details about storage and concurrency quotas in the current Region.
75
+ * const input = {};
76
+ * const command = new GetAccountSettingsCommand(input);
77
+ * const response = await client.send(command);
78
+ * /* response ==
79
+ * {
80
+ * "AccountLimit": {
81
+ * "CodeSizeUnzipped": 262144000,
82
+ * "CodeSizeZipped": 52428800,
83
+ * "ConcurrentExecutions": 1000,
84
+ * "TotalCodeSize": 80530636800,
85
+ * "UnreservedConcurrentExecutions": 1000
86
+ * },
87
+ * "AccountUsage": {
88
+ * "FunctionCount": 4,
89
+ * "TotalCodeSize": 9426
90
+ * }
91
+ * }
92
+ * *\/
93
+ * // example id: to-get-account-settings-1481657495274
94
+ * ```
95
+ *
72
96
  */
73
97
  export declare class GetAccountSettingsCommand extends GetAccountSettingsCommand_base {
74
98
  /** @internal type navigation helper, not in runtime. */
@@ -77,6 +77,27 @@ declare const GetAliasCommand_base: {
77
77
  * <p>Base exception class for all service exceptions from Lambda service.</p>
78
78
  *
79
79
  * @public
80
+ * @example To get a Lambda function alias
81
+ * ```javascript
82
+ * // The following example returns details about an alias named BLUE for a function named my-function
83
+ * const input = {
84
+ * "FunctionName": "my-function",
85
+ * "Name": "BLUE"
86
+ * };
87
+ * const command = new GetAliasCommand(input);
88
+ * const response = await client.send(command);
89
+ * /* response ==
90
+ * {
91
+ * "AliasArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function:BLUE",
92
+ * "Description": "Production environment BLUE.",
93
+ * "FunctionVersion": "3",
94
+ * "Name": "BLUE",
95
+ * "RevisionId": "594f41fb-xmpl-4c20-95c7-6ca5f2a92c93"
96
+ * }
97
+ * *\/
98
+ * // example id: to-retrieve-a-lambda-function-alias-1481648742254
99
+ * ```
100
+ *
80
101
  */
81
102
  export declare class GetAliasCommand extends GetAliasCommand_base {
82
103
  /** @internal type navigation helper, not in runtime. */
@@ -113,6 +113,7 @@ declare const GetEventSourceMappingCommand_base: {
113
113
  * // ErrorCode: "STRING_VALUE",
114
114
  * // Message: "STRING_VALUE",
115
115
  * // },
116
+ * // EventSourceMappingArn: "STRING_VALUE",
116
117
  * // };
117
118
  *
118
119
  * ```
@@ -139,6 +140,33 @@ declare const GetEventSourceMappingCommand_base: {
139
140
  * <p>Base exception class for all service exceptions from Lambda service.</p>
140
141
  *
141
142
  * @public
143
+ * @example To get a Lambda function's event source mapping
144
+ * ```javascript
145
+ * // The following example returns details about an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.
146
+ * const input = {
147
+ * "UUID": "14e0db71-xmpl-4eb5-b481-8945cf9d10c2"
148
+ * };
149
+ * const command = new GetEventSourceMappingCommand(input);
150
+ * const response = await client.send(command);
151
+ * /* response ==
152
+ * {
153
+ * "BatchSize": 500,
154
+ * "BisectBatchOnFunctionError": false,
155
+ * "DestinationConfig": {},
156
+ * "EventSourceArn": "arn:aws:sqs:us-east-2:123456789012:mySQSqueue",
157
+ * "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:myFunction",
158
+ * "LastModified": "${timestamp}",
159
+ * "LastProcessingResult": "No records processed",
160
+ * "MaximumRecordAgeInSeconds": 604800,
161
+ * "MaximumRetryAttempts": 10000,
162
+ * "State": "Creating",
163
+ * "StateTransitionReason": "User action",
164
+ * "UUID": "14e0db71-xmpl-4eb5-b481-8945cf9d10c2"
165
+ * }
166
+ * *\/
167
+ * // example id: to-get-a-lambda-functions-event-source-mapping-1481661622799
168
+ * ```
169
+ *
142
170
  */
143
171
  export declare class GetEventSourceMappingCommand extends GetEventSourceMappingCommand_base {
144
172
  /** @internal type navigation helper, not in runtime. */
@@ -184,6 +184,56 @@ declare const GetFunctionCommand_base: {
184
184
  * <p>Base exception class for all service exceptions from Lambda service.</p>
185
185
  *
186
186
  * @public
187
+ * @example To get a Lambda function
188
+ * ```javascript
189
+ * // The following example returns code and configuration details for version 1 of a function named my-function.
190
+ * const input = {
191
+ * "FunctionName": "my-function",
192
+ * "Qualifier": "1"
193
+ * };
194
+ * const command = new GetFunctionCommand(input);
195
+ * const response = await client.send(command);
196
+ * /* response ==
197
+ * {
198
+ * "Code": {
199
+ * "Location": "https://awslambda-us-west-2-tasks.s3.us-west-2.amazonaws.com/snapshots/123456789012/my-function-e7d9d1ed-xmpl-4f79-904a-4b87f2681f30?versionId=sH3TQwBOaUy...",
200
+ * "RepositoryType": "S3"
201
+ * },
202
+ * "Configuration": {
203
+ * "CodeSha256": "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
204
+ * "CodeSize": 5797206,
205
+ * "Description": "Process image objects from Amazon S3.",
206
+ * "Environment": {
207
+ * "Variables": {
208
+ * "BUCKET": "my-bucket-1xpuxmplzrlbh",
209
+ * "PREFIX": "inbound"
210
+ * }
211
+ * },
212
+ * "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
213
+ * "FunctionName": "my-function",
214
+ * "Handler": "index.handler",
215
+ * "KMSKeyArn": "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
216
+ * "LastModified": "2020-04-10T19:06:32.563+0000",
217
+ * "LastUpdateStatus": "Successful",
218
+ * "MemorySize": 256,
219
+ * "RevisionId": "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
220
+ * "Role": "arn:aws:iam::123456789012:role/lambda-role",
221
+ * "Runtime": "nodejs12.x",
222
+ * "State": "Active",
223
+ * "Timeout": 15,
224
+ * "TracingConfig": {
225
+ * "Mode": "Active"
226
+ * },
227
+ * "Version": "$LATEST"
228
+ * },
229
+ * "Tags": {
230
+ * "DEPARTMENT": "Assets"
231
+ * }
232
+ * }
233
+ * *\/
234
+ * // example id: to-get-a-lambda-function-1481661622799
235
+ * ```
236
+ *
187
237
  */
188
238
  export declare class GetFunctionCommand extends GetFunctionCommand_base {
189
239
  /** @internal type navigation helper, not in runtime. */
@@ -68,6 +68,22 @@ declare const GetFunctionConcurrencyCommand_base: {
68
68
  * <p>Base exception class for all service exceptions from Lambda service.</p>
69
69
  *
70
70
  * @public
71
+ * @example To get the reserved concurrency setting for a function
72
+ * ```javascript
73
+ * // The following example returns the reserved concurrency setting for a function named my-function.
74
+ * const input = {
75
+ * "FunctionName": "my-function"
76
+ * };
77
+ * const command = new GetFunctionConcurrencyCommand(input);
78
+ * const response = await client.send(command);
79
+ * /* response ==
80
+ * {
81
+ * "ReservedConcurrentExecutions": 250
82
+ * }
83
+ * *\/
84
+ * // example id: to-get-the-reserved-concurrency-setting-for-a-function-1586481279992
85
+ * ```
86
+ *
71
87
  */
72
88
  export declare class GetFunctionConcurrencyCommand extends GetFunctionConcurrencyCommand_base {
73
89
  /** @internal type navigation helper, not in runtime. */
@@ -170,6 +170,47 @@ declare const GetFunctionConfigurationCommand_base: {
170
170
  * <p>Base exception class for all service exceptions from Lambda service.</p>
171
171
  *
172
172
  * @public
173
+ * @example To get a Lambda function's event source mapping
174
+ * ```javascript
175
+ * // The following example returns and configuration details for version 1 of a function named my-function.
176
+ * const input = {
177
+ * "FunctionName": "my-function",
178
+ * "Qualifier": "1"
179
+ * };
180
+ * const command = new GetFunctionConfigurationCommand(input);
181
+ * const response = await client.send(command);
182
+ * /* response ==
183
+ * {
184
+ * "CodeSha256": "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
185
+ * "CodeSize": 5797206,
186
+ * "Description": "Process image objects from Amazon S3.",
187
+ * "Environment": {
188
+ * "Variables": {
189
+ * "BUCKET": "my-bucket-1xpuxmplzrlbh",
190
+ * "PREFIX": "inbound"
191
+ * }
192
+ * },
193
+ * "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
194
+ * "FunctionName": "my-function",
195
+ * "Handler": "index.handler",
196
+ * "KMSKeyArn": "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
197
+ * "LastModified": "2020-04-10T19:06:32.563+0000",
198
+ * "LastUpdateStatus": "Successful",
199
+ * "MemorySize": 256,
200
+ * "RevisionId": "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
201
+ * "Role": "arn:aws:iam::123456789012:role/lambda-role",
202
+ * "Runtime": "nodejs12.x",
203
+ * "State": "Active",
204
+ * "Timeout": 15,
205
+ * "TracingConfig": {
206
+ * "Mode": "Active"
207
+ * },
208
+ * "Version": "$LATEST"
209
+ * }
210
+ * *\/
211
+ * // example id: to-get-a-lambda-functions-event-source-mapping-1481661622799
212
+ * ```
213
+ *
173
214
  */
174
215
  export declare class GetFunctionConfigurationCommand extends GetFunctionConfigurationCommand_base {
175
216
  /** @internal type navigation helper, not in runtime. */
@@ -80,6 +80,32 @@ declare const GetFunctionEventInvokeConfigCommand_base: {
80
80
  * <p>Base exception class for all service exceptions from Lambda service.</p>
81
81
  *
82
82
  * @public
83
+ * @example To get an asynchronous invocation configuration
84
+ * ```javascript
85
+ * // The following example returns the asynchronous invocation configuration for the BLUE alias of a function named my-function.
86
+ * const input = {
87
+ * "FunctionName": "my-function",
88
+ * "Qualifier": "BLUE"
89
+ * };
90
+ * const command = new GetFunctionEventInvokeConfigCommand(input);
91
+ * const response = await client.send(command);
92
+ * /* response ==
93
+ * {
94
+ * "DestinationConfig": {
95
+ * "OnFailure": {
96
+ * "Destination": "arn:aws:sqs:us-east-2:123456789012:failed-invocations"
97
+ * },
98
+ * "OnSuccess": {}
99
+ * },
100
+ * "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
101
+ * "LastModified": "${timestamp}",
102
+ * "MaximumEventAgeInSeconds": 3600,
103
+ * "MaximumRetryAttempts": 0
104
+ * }
105
+ * *\/
106
+ * // example id: to-get-an-asynchronous-invocation-configuration-1586481338463
107
+ * ```
108
+ *
83
109
  */
84
110
  export declare class GetFunctionEventInvokeConfigCommand extends GetFunctionEventInvokeConfigCommand_base {
85
111
  /** @internal type navigation helper, not in runtime. */
@@ -87,6 +87,34 @@ declare const GetLayerVersionByArnCommand_base: {
87
87
  * <p>Base exception class for all service exceptions from Lambda service.</p>
88
88
  *
89
89
  * @public
90
+ * @example To get information about a Lambda layer version
91
+ * ```javascript
92
+ * // The following example returns information about the layer version with the specified Amazon Resource Name (ARN).
93
+ * const input = {
94
+ * "Arn": "arn:aws:lambda:ca-central-1:123456789012:layer:blank-python-lib:3"
95
+ * };
96
+ * const command = new GetLayerVersionByArnCommand(input);
97
+ * const response = await client.send(command);
98
+ * /* response ==
99
+ * {
100
+ * "CompatibleRuntimes": [
101
+ * "python3.8"
102
+ * ],
103
+ * "Content": {
104
+ * "CodeSha256": "6x+xmpl/M3BnQUk7gS9sGmfeFsR/npojXoA3fZUv4eU=",
105
+ * "CodeSize": 9529009,
106
+ * "Location": "https://awslambda-us-east-2-layers.s3.us-east-2.amazonaws.com/snapshots/123456789012/blank-python-lib-e5212378-xmpl-44ee-8398-9d8ec5113949?versionId=WbZnvf..."
107
+ * },
108
+ * "CreatedDate": "2020-03-31T00:35:18.949+0000",
109
+ * "Description": "Dependencies for the blank-python sample app.",
110
+ * "LayerArn": "arn:aws:lambda:us-east-2:123456789012:layer:blank-python-lib",
111
+ * "LayerVersionArn": "arn:aws:lambda:us-east-2:123456789012:layer:blank-python-lib:3",
112
+ * "Version": 3
113
+ * }
114
+ * *\/
115
+ * // example id: to-get-information-about-a-lambda-layer-version-1586481457839
116
+ * ```
117
+ *
90
118
  */
91
119
  export declare class GetLayerVersionByArnCommand extends GetLayerVersionByArnCommand_base {
92
120
  /** @internal type navigation helper, not in runtime. */
@@ -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. */
@@ -27,7 +27,11 @@ declare const GetPublicAccessBlockConfigCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieve the public-access settings for a function.</p>
30
+ * <note>
31
+ * <p>The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be
32
+ * available in all Amazon Web Services Regions until September 30, 2024.</p>
33
+ * </note>
34
+ * <p>Retrieve the public-access settings for a function.</p>
31
35
  * @example
32
36
  * Use a bare-bones client and the command you need to make an API call.
33
37
  * ```javascript
@@ -27,7 +27,11 @@ declare const GetResourcePolicyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieves the <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> attached to a function.</p>
30
+ * <note>
31
+ * <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be
32
+ * available in all Amazon Web Services Regions until September 30, 2024.</p>
33
+ * </note>
34
+ * <p>Retrieves the <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> attached to a function.</p>
31
35
  * @example
32
36
  * Use a bare-bones client and the command you need to make an API call.
33
37
  * ```javascript
@@ -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. */
@@ -119,6 +119,7 @@ declare const ListEventSourceMappingsCommand_base: {
119
119
  * // ErrorCode: "STRING_VALUE",
120
120
  * // Message: "STRING_VALUE",
121
121
  * // },
122
+ * // EventSourceMappingArn: "STRING_VALUE",
122
123
  * // },
123
124
  * // ],
124
125
  * // };
@@ -147,6 +148,32 @@ declare const ListEventSourceMappingsCommand_base: {
147
148
  * <p>Base exception class for all service exceptions from Lambda service.</p>
148
149
  *
149
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
+ *
150
177
  */
151
178
  export declare class ListEventSourceMappingsCommand extends ListEventSourceMappingsCommand_base {
152
179
  /** @internal type navigation helper, not in runtime. */