UNPKG

122 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {WaiterConfiguration} from '../lib/service';
6import {ServiceConfigurationOptions} from '../lib/service';
7import {ConfigBase as Config} from '../lib/config';
8import {Readable} from 'stream';
9interface Blob {}
10declare class Lambda extends Service {
11 /**
12 * Constructs a service object. This object has one method for each API operation.
13 */
14 constructor(options?: Lambda.Types.ClientConfiguration)
15 config: Config & Lambda.Types.ClientConfiguration;
16 /**
17 * Adds permissions to the resource-based policy of a version of an AWS Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization. To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
18 */
19 addLayerVersionPermission(params: Lambda.Types.AddLayerVersionPermissionRequest, callback?: (err: AWSError, data: Lambda.Types.AddLayerVersionPermissionResponse) => void): Request<Lambda.Types.AddLayerVersionPermissionResponse, AWSError>;
20 /**
21 * Adds permissions to the resource-based policy of a version of an AWS Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization. To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
22 */
23 addLayerVersionPermission(callback?: (err: AWSError, data: Lambda.Types.AddLayerVersionPermissionResponse) => void): Request<Lambda.Types.AddLayerVersionPermissionResponse, AWSError>;
24 /**
25 * Grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. To grant permission to another account, specify the account ID as the Principal. For AWS services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For AWS services, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function. This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Lambda Function Policies.
26 */
27 addPermission(params: Lambda.Types.AddPermissionRequest, callback?: (err: AWSError, data: Lambda.Types.AddPermissionResponse) => void): Request<Lambda.Types.AddPermissionResponse, AWSError>;
28 /**
29 * Grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. To grant permission to another account, specify the account ID as the Principal. For AWS services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For AWS services, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function. This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Lambda Function Policies.
30 */
31 addPermission(callback?: (err: AWSError, data: Lambda.Types.AddPermissionResponse) => void): Request<Lambda.Types.AddPermissionResponse, AWSError>;
32 /**
33 * Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version. You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.
34 */
35 createAlias(params: Lambda.Types.CreateAliasRequest, callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>;
36 /**
37 * Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version. You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.
38 */
39 createAlias(callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>;
40 /**
41 * Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function. For details about each event source type, see the following topics. Using AWS Lambda with Amazon DynamoDB Using AWS Lambda with Amazon Kinesis Using AWS Lambda with Amazon SQS The following error handling options are only available for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry. DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds - Discard records older than the specified age. MaximumRetryAttempts - Discard records after the specified number of retries. ParallelizationFactor - Process multiple batches from each shard concurrently.
42 */
43 createEventSourceMapping(params: Lambda.Types.CreateEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
44 /**
45 * Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function. For details about each event source type, see the following topics. Using AWS Lambda with Amazon DynamoDB Using AWS Lambda with Amazon Kinesis Using AWS Lambda with Amazon SQS The following error handling options are only available for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry. DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds - Discard records older than the specified age. MaximumRetryAttempts - Discard records after the specified number of retries. ParallelizationFactor - Process multiple batches from each shard concurrently.
46 */
47 createEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
48 /**
49 * Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing. When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States. A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration. The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency). If another account or an AWS service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias. To invoke your function directly, use Invoke. To invoke your function in response to events in other AWS services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.
50 */
51 createFunction(params: Lambda.Types.CreateFunctionRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
52 /**
53 * Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing. When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States. A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration. The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency). If another account or an AWS service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias. To invoke your function directly, use Invoke. To invoke your function in response to events in other AWS services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.
54 */
55 createFunction(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
56 /**
57 * Deletes a Lambda function alias.
58 */
59 deleteAlias(params: Lambda.Types.DeleteAliasRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
60 /**
61 * Deletes a Lambda function alias.
62 */
63 deleteAlias(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
64 /**
65 * Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.
66 */
67 deleteEventSourceMapping(params: Lambda.Types.DeleteEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
68 /**
69 * Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.
70 */
71 deleteEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
72 /**
73 * Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For AWS services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
74 */
75 deleteFunction(params: Lambda.Types.DeleteFunctionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
76 /**
77 * Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For AWS services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
78 */
79 deleteFunction(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
80 /**
81 * Removes a concurrent execution limit from a function.
82 */
83 deleteFunctionConcurrency(params: Lambda.Types.DeleteFunctionConcurrencyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
84 /**
85 * Removes a concurrent execution limit from a function.
86 */
87 deleteFunctionConcurrency(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
88 /**
89 * Deletes the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
90 */
91 deleteFunctionEventInvokeConfig(params: Lambda.Types.DeleteFunctionEventInvokeConfigRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
92 /**
93 * Deletes the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
94 */
95 deleteFunctionEventInvokeConfig(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
96 /**
97 * Deletes a version of an AWS Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
98 */
99 deleteLayerVersion(params: Lambda.Types.DeleteLayerVersionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
100 /**
101 * Deletes a version of an AWS Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
102 */
103 deleteLayerVersion(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
104 /**
105 * Deletes the provisioned concurrency configuration for a function.
106 */
107 deleteProvisionedConcurrencyConfig(params: Lambda.Types.DeleteProvisionedConcurrencyConfigRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
108 /**
109 * Deletes the provisioned concurrency configuration for a function.
110 */
111 deleteProvisionedConcurrencyConfig(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
112 /**
113 * Retrieves details about your account's limits and usage in an AWS Region.
114 */
115 getAccountSettings(params: Lambda.Types.GetAccountSettingsRequest, callback?: (err: AWSError, data: Lambda.Types.GetAccountSettingsResponse) => void): Request<Lambda.Types.GetAccountSettingsResponse, AWSError>;
116 /**
117 * Retrieves details about your account's limits and usage in an AWS Region.
118 */
119 getAccountSettings(callback?: (err: AWSError, data: Lambda.Types.GetAccountSettingsResponse) => void): Request<Lambda.Types.GetAccountSettingsResponse, AWSError>;
120 /**
121 * Returns details about a Lambda function alias.
122 */
123 getAlias(params: Lambda.Types.GetAliasRequest, callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>;
124 /**
125 * Returns details about a Lambda function alias.
126 */
127 getAlias(callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>;
128 /**
129 * Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
130 */
131 getEventSourceMapping(params: Lambda.Types.GetEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
132 /**
133 * Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
134 */
135 getEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
136 /**
137 * Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
138 */
139 getFunction(params: Lambda.Types.GetFunctionRequest, callback?: (err: AWSError, data: Lambda.Types.GetFunctionResponse) => void): Request<Lambda.Types.GetFunctionResponse, AWSError>;
140 /**
141 * Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
142 */
143 getFunction(callback?: (err: AWSError, data: Lambda.Types.GetFunctionResponse) => void): Request<Lambda.Types.GetFunctionResponse, AWSError>;
144 /**
145 * Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
146 */
147 getFunctionConcurrency(params: Lambda.Types.GetFunctionConcurrencyRequest, callback?: (err: AWSError, data: Lambda.Types.GetFunctionConcurrencyResponse) => void): Request<Lambda.Types.GetFunctionConcurrencyResponse, AWSError>;
148 /**
149 * Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
150 */
151 getFunctionConcurrency(callback?: (err: AWSError, data: Lambda.Types.GetFunctionConcurrencyResponse) => void): Request<Lambda.Types.GetFunctionConcurrencyResponse, AWSError>;
152 /**
153 * Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration. To get all of a function's details, including function-level settings, use GetFunction.
154 */
155 getFunctionConfiguration(params: Lambda.Types.GetFunctionConfigurationRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
156 /**
157 * Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration. To get all of a function's details, including function-level settings, use GetFunction.
158 */
159 getFunctionConfiguration(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
160 /**
161 * Retrieves the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
162 */
163 getFunctionEventInvokeConfig(params: Lambda.Types.GetFunctionEventInvokeConfigRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>;
164 /**
165 * Retrieves the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
166 */
167 getFunctionEventInvokeConfig(callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>;
168 /**
169 * Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
170 */
171 getLayerVersion(params: Lambda.Types.GetLayerVersionRequest, callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionResponse) => void): Request<Lambda.Types.GetLayerVersionResponse, AWSError>;
172 /**
173 * Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
174 */
175 getLayerVersion(callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionResponse) => void): Request<Lambda.Types.GetLayerVersionResponse, AWSError>;
176 /**
177 * Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
178 */
179 getLayerVersionByArn(params: Lambda.Types.GetLayerVersionByArnRequest, callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionResponse) => void): Request<Lambda.Types.GetLayerVersionResponse, AWSError>;
180 /**
181 * Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
182 */
183 getLayerVersionByArn(callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionResponse) => void): Request<Lambda.Types.GetLayerVersionResponse, AWSError>;
184 /**
185 * Returns the permission policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.
186 */
187 getLayerVersionPolicy(params: Lambda.Types.GetLayerVersionPolicyRequest, callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionPolicyResponse) => void): Request<Lambda.Types.GetLayerVersionPolicyResponse, AWSError>;
188 /**
189 * Returns the permission policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.
190 */
191 getLayerVersionPolicy(callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionPolicyResponse) => void): Request<Lambda.Types.GetLayerVersionPolicyResponse, AWSError>;
192 /**
193 * Returns the resource-based IAM policy for a function, version, or alias.
194 */
195 getPolicy(params: Lambda.Types.GetPolicyRequest, callback?: (err: AWSError, data: Lambda.Types.GetPolicyResponse) => void): Request<Lambda.Types.GetPolicyResponse, AWSError>;
196 /**
197 * Returns the resource-based IAM policy for a function, version, or alias.
198 */
199 getPolicy(callback?: (err: AWSError, data: Lambda.Types.GetPolicyResponse) => void): Request<Lambda.Types.GetPolicyResponse, AWSError>;
200 /**
201 * Retrieves the provisioned concurrency configuration for a function's alias or version.
202 */
203 getProvisionedConcurrencyConfig(params: Lambda.Types.GetProvisionedConcurrencyConfigRequest, callback?: (err: AWSError, data: Lambda.Types.GetProvisionedConcurrencyConfigResponse) => void): Request<Lambda.Types.GetProvisionedConcurrencyConfigResponse, AWSError>;
204 /**
205 * Retrieves the provisioned concurrency configuration for a function's alias or version.
206 */
207 getProvisionedConcurrencyConfig(callback?: (err: AWSError, data: Lambda.Types.GetProvisionedConcurrencyConfigResponse) => void): Request<Lambda.Types.GetProvisionedConcurrencyConfigResponse, AWSError>;
208 /**
209 * Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event. For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace. When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior. For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue. The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, limit errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if executing the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded). For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings. This operation requires permission for the lambda:InvokeFunction action.
210 */
211 invoke(params: Lambda.Types.InvocationRequest, callback?: (err: AWSError, data: Lambda.Types.InvocationResponse) => void): Request<Lambda.Types.InvocationResponse, AWSError>;
212 /**
213 * Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event. For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace. When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior. For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue. The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, limit errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if executing the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded). For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings. This operation requires permission for the lambda:InvokeFunction action.
214 */
215 invoke(callback?: (err: AWSError, data: Lambda.Types.InvocationResponse) => void): Request<Lambda.Types.InvocationResponse, AWSError>;
216 /**
217 * For asynchronous function invocation, use Invoke. Invokes a function asynchronously.
218 */
219 invokeAsync(params: Lambda.Types.InvokeAsyncRequest, callback?: (err: AWSError, data: Lambda.Types.InvokeAsyncResponse) => void): Request<Lambda.Types.InvokeAsyncResponse, AWSError>;
220 /**
221 * For asynchronous function invocation, use Invoke. Invokes a function asynchronously.
222 */
223 invokeAsync(callback?: (err: AWSError, data: Lambda.Types.InvokeAsyncResponse) => void): Request<Lambda.Types.InvokeAsyncResponse, AWSError>;
224 /**
225 * Returns a list of aliases for a Lambda function.
226 */
227 listAliases(params: Lambda.Types.ListAliasesRequest, callback?: (err: AWSError, data: Lambda.Types.ListAliasesResponse) => void): Request<Lambda.Types.ListAliasesResponse, AWSError>;
228 /**
229 * Returns a list of aliases for a Lambda function.
230 */
231 listAliases(callback?: (err: AWSError, data: Lambda.Types.ListAliasesResponse) => void): Request<Lambda.Types.ListAliasesResponse, AWSError>;
232 /**
233 * Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.
234 */
235 listEventSourceMappings(params: Lambda.Types.ListEventSourceMappingsRequest, callback?: (err: AWSError, data: Lambda.Types.ListEventSourceMappingsResponse) => void): Request<Lambda.Types.ListEventSourceMappingsResponse, AWSError>;
236 /**
237 * Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.
238 */
239 listEventSourceMappings(callback?: (err: AWSError, data: Lambda.Types.ListEventSourceMappingsResponse) => void): Request<Lambda.Types.ListEventSourceMappingsResponse, AWSError>;
240 /**
241 * Retrieves a list of configurations for asynchronous invocation for a function. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
242 */
243 listFunctionEventInvokeConfigs(params: Lambda.Types.ListFunctionEventInvokeConfigsRequest, callback?: (err: AWSError, data: Lambda.Types.ListFunctionEventInvokeConfigsResponse) => void): Request<Lambda.Types.ListFunctionEventInvokeConfigsResponse, AWSError>;
244 /**
245 * Retrieves a list of configurations for asynchronous invocation for a function. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
246 */
247 listFunctionEventInvokeConfigs(callback?: (err: AWSError, data: Lambda.Types.ListFunctionEventInvokeConfigsResponse) => void): Request<Lambda.Types.ListFunctionEventInvokeConfigsResponse, AWSError>;
248 /**
249 * Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call. Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version. To get more information about a function or version, use GetFunction.
250 */
251 listFunctions(params: Lambda.Types.ListFunctionsRequest, callback?: (err: AWSError, data: Lambda.Types.ListFunctionsResponse) => void): Request<Lambda.Types.ListFunctionsResponse, AWSError>;
252 /**
253 * Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call. Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version. To get more information about a function or version, use GetFunction.
254 */
255 listFunctions(callback?: (err: AWSError, data: Lambda.Types.ListFunctionsResponse) => void): Request<Lambda.Types.ListFunctionsResponse, AWSError>;
256 /**
257 * Lists the versions of an AWS Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.
258 */
259 listLayerVersions(params: Lambda.Types.ListLayerVersionsRequest, callback?: (err: AWSError, data: Lambda.Types.ListLayerVersionsResponse) => void): Request<Lambda.Types.ListLayerVersionsResponse, AWSError>;
260 /**
261 * Lists the versions of an AWS Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.
262 */
263 listLayerVersions(callback?: (err: AWSError, data: Lambda.Types.ListLayerVersionsResponse) => void): Request<Lambda.Types.ListLayerVersionsResponse, AWSError>;
264 /**
265 * Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
266 */
267 listLayers(params: Lambda.Types.ListLayersRequest, callback?: (err: AWSError, data: Lambda.Types.ListLayersResponse) => void): Request<Lambda.Types.ListLayersResponse, AWSError>;
268 /**
269 * Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
270 */
271 listLayers(callback?: (err: AWSError, data: Lambda.Types.ListLayersResponse) => void): Request<Lambda.Types.ListLayersResponse, AWSError>;
272 /**
273 * Retrieves a list of provisioned concurrency configurations for a function.
274 */
275 listProvisionedConcurrencyConfigs(params: Lambda.Types.ListProvisionedConcurrencyConfigsRequest, callback?: (err: AWSError, data: Lambda.Types.ListProvisionedConcurrencyConfigsResponse) => void): Request<Lambda.Types.ListProvisionedConcurrencyConfigsResponse, AWSError>;
276 /**
277 * Retrieves a list of provisioned concurrency configurations for a function.
278 */
279 listProvisionedConcurrencyConfigs(callback?: (err: AWSError, data: Lambda.Types.ListProvisionedConcurrencyConfigsResponse) => void): Request<Lambda.Types.ListProvisionedConcurrencyConfigsResponse, AWSError>;
280 /**
281 * Returns a function's tags. You can also view tags with GetFunction.
282 */
283 listTags(params: Lambda.Types.ListTagsRequest, callback?: (err: AWSError, data: Lambda.Types.ListTagsResponse) => void): Request<Lambda.Types.ListTagsResponse, AWSError>;
284 /**
285 * Returns a function's tags. You can also view tags with GetFunction.
286 */
287 listTags(callback?: (err: AWSError, data: Lambda.Types.ListTagsResponse) => void): Request<Lambda.Types.ListTagsResponse, AWSError>;
288 /**
289 * Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
290 */
291 listVersionsByFunction(params: Lambda.Types.ListVersionsByFunctionRequest, callback?: (err: AWSError, data: Lambda.Types.ListVersionsByFunctionResponse) => void): Request<Lambda.Types.ListVersionsByFunctionResponse, AWSError>;
292 /**
293 * Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
294 */
295 listVersionsByFunction(callback?: (err: AWSError, data: Lambda.Types.ListVersionsByFunctionResponse) => void): Request<Lambda.Types.ListVersionsByFunctionResponse, AWSError>;
296 /**
297 * Creates an AWS Lambda layer from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version is created. Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
298 */
299 publishLayerVersion(params: Lambda.Types.PublishLayerVersionRequest, callback?: (err: AWSError, data: Lambda.Types.PublishLayerVersionResponse) => void): Request<Lambda.Types.PublishLayerVersionResponse, AWSError>;
300 /**
301 * Creates an AWS Lambda layer from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version is created. Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
302 */
303 publishLayerVersion(callback?: (err: AWSError, data: Lambda.Types.PublishLayerVersionResponse) => void): Request<Lambda.Types.PublishLayerVersionResponse, AWSError>;
304 /**
305 * Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change. AWS Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version. Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.
306 */
307 publishVersion(params: Lambda.Types.PublishVersionRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
308 /**
309 * Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change. AWS Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version. Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.
310 */
311 publishVersion(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
312 /**
313 * Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level. Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function. Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.
314 */
315 putFunctionConcurrency(params: Lambda.Types.PutFunctionConcurrencyRequest, callback?: (err: AWSError, data: Lambda.Types.Concurrency) => void): Request<Lambda.Types.Concurrency, AWSError>;
316 /**
317 * Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level. Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function. Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.
318 */
319 putFunctionConcurrency(callback?: (err: AWSError, data: Lambda.Types.Concurrency) => void): Request<Lambda.Types.Concurrency, AWSError>;
320 /**
321 * Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use PutFunctionEventInvokeConfig. By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration. To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.
322 */
323 putFunctionEventInvokeConfig(params: Lambda.Types.PutFunctionEventInvokeConfigRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>;
324 /**
325 * Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use PutFunctionEventInvokeConfig. By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration. To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.
326 */
327 putFunctionEventInvokeConfig(callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>;
328 /**
329 * Adds a provisioned concurrency configuration to a function's alias or version.
330 */
331 putProvisionedConcurrencyConfig(params: Lambda.Types.PutProvisionedConcurrencyConfigRequest, callback?: (err: AWSError, data: Lambda.Types.PutProvisionedConcurrencyConfigResponse) => void): Request<Lambda.Types.PutProvisionedConcurrencyConfigResponse, AWSError>;
332 /**
333 * Adds a provisioned concurrency configuration to a function's alias or version.
334 */
335 putProvisionedConcurrencyConfig(callback?: (err: AWSError, data: Lambda.Types.PutProvisionedConcurrencyConfigResponse) => void): Request<Lambda.Types.PutProvisionedConcurrencyConfigResponse, AWSError>;
336 /**
337 * Removes a statement from the permissions policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.
338 */
339 removeLayerVersionPermission(params: Lambda.Types.RemoveLayerVersionPermissionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
340 /**
341 * Removes a statement from the permissions policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.
342 */
343 removeLayerVersionPermission(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
344 /**
345 * Revokes function-use permission from an AWS service or another account. You can get the ID of the statement from the output of GetPolicy.
346 */
347 removePermission(params: Lambda.Types.RemovePermissionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
348 /**
349 * Revokes function-use permission from an AWS service or another account. You can get the ID of the statement from the output of GetPolicy.
350 */
351 removePermission(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
352 /**
353 * Adds tags to a function.
354 */
355 tagResource(params: Lambda.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
356 /**
357 * Adds tags to a function.
358 */
359 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
360 /**
361 * Removes tags from a function.
362 */
363 untagResource(params: Lambda.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
364 /**
365 * Removes tags from a function.
366 */
367 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
368 /**
369 * Updates the configuration of a Lambda function alias.
370 */
371 updateAlias(params: Lambda.Types.UpdateAliasRequest, callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>;
372 /**
373 * Updates the configuration of a Lambda function alias.
374 */
375 updateAlias(callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>;
376 /**
377 * Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location. The following error handling options are only available for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry. DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds - Discard records older than the specified age. MaximumRetryAttempts - Discard records after the specified number of retries. ParallelizationFactor - Process multiple batches from each shard concurrently.
378 */
379 updateEventSourceMapping(params: Lambda.Types.UpdateEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
380 /**
381 * Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location. The following error handling options are only available for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry. DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds - Discard records older than the specified age. MaximumRetryAttempts - Discard records after the specified number of retries. ParallelizationFactor - Process multiple batches from each shard concurrently.
382 */
383 updateEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
384 /**
385 * Updates a Lambda function's code. The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
386 */
387 updateFunctionCode(params: Lambda.Types.UpdateFunctionCodeRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
388 /**
389 * Updates a Lambda function's code. The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
390 */
391 updateFunctionCode(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
392 /**
393 * Modify the version-specific settings of a Lambda function. When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Function States. These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version. To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or AWS service, use AddPermission.
394 */
395 updateFunctionConfiguration(params: Lambda.Types.UpdateFunctionConfigurationRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
396 /**
397 * Modify the version-specific settings of a Lambda function. When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Function States. These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version. To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or AWS service, use AddPermission.
398 */
399 updateFunctionConfiguration(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
400 /**
401 * Updates the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
402 */
403 updateFunctionEventInvokeConfig(params: Lambda.Types.UpdateFunctionEventInvokeConfigRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>;
404 /**
405 * Updates the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
406 */
407 updateFunctionEventInvokeConfig(callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>;
408 /**
409 * Waits for the functionExists state by periodically calling the underlying Lambda.getFunctionoperation every 1 seconds (at most 20 times).
410 */
411 waitFor(state: "functionExists", params: Lambda.Types.GetFunctionRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: Lambda.Types.GetFunctionResponse) => void): Request<Lambda.Types.GetFunctionResponse, AWSError>;
412 /**
413 * Waits for the functionExists state by periodically calling the underlying Lambda.getFunctionoperation every 1 seconds (at most 20 times).
414 */
415 waitFor(state: "functionExists", callback?: (err: AWSError, data: Lambda.Types.GetFunctionResponse) => void): Request<Lambda.Types.GetFunctionResponse, AWSError>;
416 /**
417 * Waits for the functionActive state by periodically calling the underlying Lambda.getFunctionConfigurationoperation every 5 seconds (at most 60 times). Waits for the function's State to be Active.
418 */
419 waitFor(state: "functionActive", params: Lambda.Types.GetFunctionConfigurationRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
420 /**
421 * Waits for the functionActive state by periodically calling the underlying Lambda.getFunctionConfigurationoperation every 5 seconds (at most 60 times). Waits for the function's State to be Active.
422 */
423 waitFor(state: "functionActive", callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
424 /**
425 * Waits for the functionUpdated state by periodically calling the underlying Lambda.getFunctionConfigurationoperation every 5 seconds (at most 60 times). Waits for the function's LastUpdateStatus to be Successful.
426 */
427 waitFor(state: "functionUpdated", params: Lambda.Types.GetFunctionConfigurationRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
428 /**
429 * Waits for the functionUpdated state by periodically calling the underlying Lambda.getFunctionConfigurationoperation every 5 seconds (at most 60 times). Waits for the function's LastUpdateStatus to be Successful.
430 */
431 waitFor(state: "functionUpdated", callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>;
432}
433declare namespace Lambda {
434 export interface AccountLimit {
435 /**
436 * The amount of storage space that you can use for all deployment packages and layer archives.
437 */
438 TotalCodeSize?: Long;
439 /**
440 * The maximum size of a function's deployment package and layers when they're extracted.
441 */
442 CodeSizeUnzipped?: Long;
443 /**
444 * The maximum size of a deployment package when it's uploaded directly to AWS Lambda. Use Amazon S3 for larger files.
445 */
446 CodeSizeZipped?: Long;
447 /**
448 * The maximum number of simultaneous function executions.
449 */
450 ConcurrentExecutions?: Integer;
451 /**
452 * The maximum number of simultaneous function executions, minus the capacity that's reserved for individual functions with PutFunctionConcurrency.
453 */
454 UnreservedConcurrentExecutions?: UnreservedConcurrentExecutions;
455 }
456 export interface AccountUsage {
457 /**
458 * The amount of storage space, in bytes, that's being used by deployment packages and layer archives.
459 */
460 TotalCodeSize?: Long;
461 /**
462 * The number of Lambda functions.
463 */
464 FunctionCount?: Long;
465 }
466 export type Action = string;
467 export interface AddLayerVersionPermissionRequest {
468 /**
469 * The name or Amazon Resource Name (ARN) of the layer.
470 */
471 LayerName: LayerName;
472 /**
473 * The version number.
474 */
475 VersionNumber: LayerVersionNumber;
476 /**
477 * An identifier that distinguishes the policy from others on the same layer version.
478 */
479 StatementId: StatementId;
480 /**
481 * The API action that grants access to the layer. For example, lambda:GetLayerVersion.
482 */
483 Action: LayerPermissionAllowedAction;
484 /**
485 * An account ID, or * to grant permission to all AWS accounts.
486 */
487 Principal: LayerPermissionAllowedPrincipal;
488 /**
489 * With the principal set to *, grant permission to all accounts in the specified organization.
490 */
491 OrganizationId?: OrganizationId;
492 /**
493 * Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
494 */
495 RevisionId?: String;
496 }
497 export interface AddLayerVersionPermissionResponse {
498 /**
499 * The permission statement.
500 */
501 Statement?: String;
502 /**
503 * A unique identifier for the current revision of the policy.
504 */
505 RevisionId?: String;
506 }
507 export interface AddPermissionRequest {
508 /**
509 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
510 */
511 FunctionName: FunctionName;
512 /**
513 * A statement identifier that differentiates the statement from others in the same policy.
514 */
515 StatementId: StatementId;
516 /**
517 * The action that the principal can use on the function. For example, lambda:InvokeFunction or lambda:GetFunction.
518 */
519 Action: Action;
520 /**
521 * The AWS service or account that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.
522 */
523 Principal: Principal;
524 /**
525 * For AWS services, the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.
526 */
527 SourceArn?: Arn;
528 /**
529 * For Amazon S3, the ID of the account that owns the resource. Use this together with SourceArn to ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.
530 */
531 SourceAccount?: SourceOwner;
532 /**
533 * For Alexa Smart Home functions, a token that must be supplied by the invoker.
534 */
535 EventSourceToken?: EventSourceToken;
536 /**
537 * Specify a version or alias to add permissions to a published version of the function.
538 */
539 Qualifier?: Qualifier;
540 /**
541 * Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.
542 */
543 RevisionId?: String;
544 }
545 export interface AddPermissionResponse {
546 /**
547 * The permission statement that's added to the function policy.
548 */
549 Statement?: String;
550 }
551 export type AdditionalVersion = string;
552 export type AdditionalVersionWeights = {[key: string]: Weight};
553 export type Alias = string;
554 export interface AliasConfiguration {
555 /**
556 * The Amazon Resource Name (ARN) of the alias.
557 */
558 AliasArn?: FunctionArn;
559 /**
560 * The name of the alias.
561 */
562 Name?: Alias;
563 /**
564 * The function version that the alias invokes.
565 */
566 FunctionVersion?: Version;
567 /**
568 * A description of the alias.
569 */
570 Description?: Description;
571 /**
572 * The routing configuration of the alias.
573 */
574 RoutingConfig?: AliasRoutingConfiguration;
575 /**
576 * A unique identifier that changes when you update the alias.
577 */
578 RevisionId?: String;
579 }
580 export type AliasList = AliasConfiguration[];
581 export interface AliasRoutingConfiguration {
582 /**
583 * The name of the second alias, and the percentage of traffic that's routed to it.
584 */
585 AdditionalVersionWeights?: AdditionalVersionWeights;
586 }
587 export type Arn = string;
588 export type BatchSize = number;
589 export type BisectBatchOnFunctionError = boolean;
590 export type _Blob = Buffer|Uint8Array|Blob|string;
591 export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;
592 export type Boolean = boolean;
593 export type CompatibleRuntimes = Runtime[];
594 export interface Concurrency {
595 /**
596 * The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency.
597 */
598 ReservedConcurrentExecutions?: ReservedConcurrentExecutions;
599 }
600 export interface CreateAliasRequest {
601 /**
602 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
603 */
604 FunctionName: FunctionName;
605 /**
606 * The name of the alias.
607 */
608 Name: Alias;
609 /**
610 * The function version that the alias invokes.
611 */
612 FunctionVersion: Version;
613 /**
614 * A description of the alias.
615 */
616 Description?: Description;
617 /**
618 * The routing configuration of the alias.
619 */
620 RoutingConfig?: AliasRoutingConfiguration;
621 }
622 export interface CreateEventSourceMappingRequest {
623 /**
624 * The Amazon Resource Name (ARN) of the event source. Amazon Kinesis - The ARN of the data stream or a stream consumer. Amazon DynamoDB Streams - The ARN of the stream. Amazon Simple Queue Service - The ARN of the queue.
625 */
626 EventSourceArn: Arn;
627 /**
628 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
629 */
630 FunctionName: FunctionName;
631 /**
632 * Disables the event source mapping to pause polling and invocation.
633 */
634 Enabled?: Enabled;
635 /**
636 * The maximum number of items to retrieve in a single batch. Amazon Kinesis - Default 100. Max 10,000. Amazon DynamoDB Streams - Default 100. Max 1,000. Amazon Simple Queue Service - Default 10. Max 10.
637 */
638 BatchSize?: BatchSize;
639 /**
640 * (Streams) The maximum amount of time to gather records before invoking the function, in seconds.
641 */
642 MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds;
643 /**
644 * (Streams) The number of batches to process from each shard concurrently.
645 */
646 ParallelizationFactor?: ParallelizationFactor;
647 /**
648 * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.
649 */
650 StartingPosition?: EventSourcePosition;
651 /**
652 * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.
653 */
654 StartingPositionTimestamp?: _Date;
655 /**
656 * (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
657 */
658 DestinationConfig?: DestinationConfig;
659 /**
660 * (Streams) The maximum age of a record that Lambda sends to a function for processing.
661 */
662 MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds;
663 /**
664 * (Streams) If the function returns an error, split the batch in two and retry.
665 */
666 BisectBatchOnFunctionError?: BisectBatchOnFunctionError;
667 /**
668 * (Streams) The maximum number of times to retry when the function returns an error.
669 */
670 MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping;
671 }
672 export interface CreateFunctionRequest {
673 /**
674 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
675 */
676 FunctionName: FunctionName;
677 /**
678 * The identifier of the function's runtime.
679 */
680 Runtime: Runtime;
681 /**
682 * The Amazon Resource Name (ARN) of the function's execution role.
683 */
684 Role: RoleArn;
685 /**
686 * The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
687 */
688 Handler: Handler;
689 /**
690 * The code for the function.
691 */
692 Code: FunctionCode;
693 /**
694 * A description of the function.
695 */
696 Description?: Description;
697 /**
698 * The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.
699 */
700 Timeout?: Timeout;
701 /**
702 * The amount of memory that your function has access to. Increasing the function's memory also increases its CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
703 */
704 MemorySize?: MemorySize;
705 /**
706 * Set to true to publish the first version of the function during creation.
707 */
708 Publish?: Boolean;
709 /**
710 * For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
711 */
712 VpcConfig?: VpcConfig;
713 /**
714 * A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
715 */
716 DeadLetterConfig?: DeadLetterConfig;
717 /**
718 * Environment variables that are accessible from function code during execution.
719 */
720 Environment?: Environment;
721 /**
722 * The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
723 */
724 KMSKeyArn?: KMSKeyArn;
725 /**
726 * Set Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray.
727 */
728 TracingConfig?: TracingConfig;
729 /**
730 * A list of tags to apply to the function.
731 */
732 Tags?: Tags;
733 /**
734 * A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
735 */
736 Layers?: LayerList;
737 }
738 export type _Date = Date;
739 export interface DeadLetterConfig {
740 /**
741 * The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.
742 */
743 TargetArn?: ResourceArn;
744 }
745 export interface DeleteAliasRequest {
746 /**
747 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
748 */
749 FunctionName: FunctionName;
750 /**
751 * The name of the alias.
752 */
753 Name: Alias;
754 }
755 export interface DeleteEventSourceMappingRequest {
756 /**
757 * The identifier of the event source mapping.
758 */
759 UUID: String;
760 }
761 export interface DeleteFunctionConcurrencyRequest {
762 /**
763 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
764 */
765 FunctionName: FunctionName;
766 }
767 export interface DeleteFunctionEventInvokeConfigRequest {
768 /**
769 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
770 */
771 FunctionName: FunctionName;
772 /**
773 * A version number or alias name.
774 */
775 Qualifier?: Qualifier;
776 }
777 export interface DeleteFunctionRequest {
778 /**
779 * The name of the Lambda function or version. Name formats Function name - my-function (name-only), my-function:1 (with version). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
780 */
781 FunctionName: FunctionName;
782 /**
783 * Specify a version to delete. You can't delete a version that's referenced by an alias.
784 */
785 Qualifier?: Qualifier;
786 }
787 export interface DeleteLayerVersionRequest {
788 /**
789 * The name or Amazon Resource Name (ARN) of the layer.
790 */
791 LayerName: LayerName;
792 /**
793 * The version number.
794 */
795 VersionNumber: LayerVersionNumber;
796 }
797 export interface DeleteProvisionedConcurrencyConfigRequest {
798 /**
799 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
800 */
801 FunctionName: FunctionName;
802 /**
803 * The version number or alias name.
804 */
805 Qualifier: Qualifier;
806 }
807 export type Description = string;
808 export type DestinationArn = string;
809 export interface DestinationConfig {
810 /**
811 * The destination configuration for successful invocations.
812 */
813 OnSuccess?: OnSuccess;
814 /**
815 * The destination configuration for failed invocations.
816 */
817 OnFailure?: OnFailure;
818 }
819 export type Enabled = boolean;
820 export interface Environment {
821 /**
822 * Environment variable key-value pairs.
823 */
824 Variables?: EnvironmentVariables;
825 }
826 export interface EnvironmentError {
827 /**
828 * The error code.
829 */
830 ErrorCode?: String;
831 /**
832 * The error message.
833 */
834 Message?: SensitiveString;
835 }
836 export interface EnvironmentResponse {
837 /**
838 * Environment variable key-value pairs.
839 */
840 Variables?: EnvironmentVariables;
841 /**
842 * Error messages for environment variables that couldn't be applied.
843 */
844 Error?: EnvironmentError;
845 }
846 export type EnvironmentVariableName = string;
847 export type EnvironmentVariableValue = string;
848 export type EnvironmentVariables = {[key: string]: EnvironmentVariableValue};
849 export interface EventSourceMappingConfiguration {
850 /**
851 * The identifier of the event source mapping.
852 */
853 UUID?: String;
854 /**
855 * The maximum number of items to retrieve in a single batch.
856 */
857 BatchSize?: BatchSize;
858 /**
859 * (Streams) The maximum amount of time to gather records before invoking the function, in seconds.
860 */
861 MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds;
862 /**
863 * (Streams) The number of batches to process from each shard concurrently.
864 */
865 ParallelizationFactor?: ParallelizationFactor;
866 /**
867 * The Amazon Resource Name (ARN) of the event source.
868 */
869 EventSourceArn?: Arn;
870 /**
871 * The ARN of the Lambda function.
872 */
873 FunctionArn?: FunctionArn;
874 /**
875 * The date that the event source mapping was last updated, or its state changed.
876 */
877 LastModified?: _Date;
878 /**
879 * The result of the last AWS Lambda invocation of your Lambda function.
880 */
881 LastProcessingResult?: String;
882 /**
883 * The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.
884 */
885 State?: String;
886 /**
887 * Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
888 */
889 StateTransitionReason?: String;
890 /**
891 * (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
892 */
893 DestinationConfig?: DestinationConfig;
894 /**
895 * (Streams) The maximum age of a record that Lambda sends to a function for processing.
896 */
897 MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds;
898 /**
899 * (Streams) If the function returns an error, split the batch in two and retry.
900 */
901 BisectBatchOnFunctionError?: BisectBatchOnFunctionError;
902 /**
903 * (Streams) The maximum number of times to retry when the function returns an error.
904 */
905 MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping;
906 }
907 export type EventSourceMappingsList = EventSourceMappingConfiguration[];
908 export type EventSourcePosition = "TRIM_HORIZON"|"LATEST"|"AT_TIMESTAMP"|string;
909 export type EventSourceToken = string;
910 export type FunctionArn = string;
911 export interface FunctionCode {
912 /**
913 * The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for you.
914 */
915 ZipFile?: _Blob;
916 /**
917 * An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.
918 */
919 S3Bucket?: S3Bucket;
920 /**
921 * The Amazon S3 key of the deployment package.
922 */
923 S3Key?: S3Key;
924 /**
925 * For versioned objects, the version of the deployment package object to use.
926 */
927 S3ObjectVersion?: S3ObjectVersion;
928 }
929 export interface FunctionCodeLocation {
930 /**
931 * The service that's hosting the file.
932 */
933 RepositoryType?: String;
934 /**
935 * A presigned URL that you can use to download the deployment package.
936 */
937 Location?: String;
938 }
939 export interface FunctionConfiguration {
940 /**
941 * The name of the function.
942 */
943 FunctionName?: NamespacedFunctionName;
944 /**
945 * The function's Amazon Resource Name (ARN).
946 */
947 FunctionArn?: NameSpacedFunctionArn;
948 /**
949 * The runtime environment for the Lambda function.
950 */
951 Runtime?: Runtime;
952 /**
953 * The function's execution role.
954 */
955 Role?: RoleArn;
956 /**
957 * The function that Lambda calls to begin executing your function.
958 */
959 Handler?: Handler;
960 /**
961 * The size of the function's deployment package, in bytes.
962 */
963 CodeSize?: Long;
964 /**
965 * The function's description.
966 */
967 Description?: Description;
968 /**
969 * The amount of time that Lambda allows a function to run before stopping it.
970 */
971 Timeout?: Timeout;
972 /**
973 * The memory that's allocated to the function.
974 */
975 MemorySize?: MemorySize;
976 /**
977 * The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
978 */
979 LastModified?: Timestamp;
980 /**
981 * The SHA256 hash of the function's deployment package.
982 */
983 CodeSha256?: String;
984 /**
985 * The version of the Lambda function.
986 */
987 Version?: Version;
988 /**
989 * The function's networking configuration.
990 */
991 VpcConfig?: VpcConfigResponse;
992 /**
993 * The function's dead letter queue.
994 */
995 DeadLetterConfig?: DeadLetterConfig;
996 /**
997 * The function's environment variables.
998 */
999 Environment?: EnvironmentResponse;
1000 /**
1001 * The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed CMK.
1002 */
1003 KMSKeyArn?: KMSKeyArn;
1004 /**
1005 * The function's AWS X-Ray tracing configuration.
1006 */
1007 TracingConfig?: TracingConfigResponse;
1008 /**
1009 * For Lambda@Edge functions, the ARN of the master function.
1010 */
1011 MasterArn?: FunctionArn;
1012 /**
1013 * The latest updated revision of the function or alias.
1014 */
1015 RevisionId?: String;
1016 /**
1017 * The function's layers.
1018 */
1019 Layers?: LayersReferenceList;
1020 /**
1021 * The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.
1022 */
1023 State?: State;
1024 /**
1025 * The reason for the function's current state.
1026 */
1027 StateReason?: StateReason;
1028 /**
1029 * The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.
1030 */
1031 StateReasonCode?: StateReasonCode;
1032 /**
1033 * The status of the last update that was performed on the function. This is first set to Successful after function creation completes.
1034 */
1035 LastUpdateStatus?: LastUpdateStatus;
1036 /**
1037 * The reason for the last update that was performed on the function.
1038 */
1039 LastUpdateStatusReason?: LastUpdateStatusReason;
1040 /**
1041 * The reason code for the last update that was performed on the function.
1042 */
1043 LastUpdateStatusReasonCode?: LastUpdateStatusReasonCode;
1044 }
1045 export interface FunctionEventInvokeConfig {
1046 /**
1047 * The date and time that the configuration was last updated.
1048 */
1049 LastModified?: _Date;
1050 /**
1051 * The Amazon Resource Name (ARN) of the function.
1052 */
1053 FunctionArn?: FunctionArn;
1054 /**
1055 * The maximum number of times to retry when the function returns an error.
1056 */
1057 MaximumRetryAttempts?: MaximumRetryAttempts;
1058 /**
1059 * The maximum age of a request that Lambda sends to a function for processing.
1060 */
1061 MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds;
1062 /**
1063 * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of an SQS queue. Topic - The ARN of an SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
1064 */
1065 DestinationConfig?: DestinationConfig;
1066 }
1067 export type FunctionEventInvokeConfigList = FunctionEventInvokeConfig[];
1068 export type FunctionList = FunctionConfiguration[];
1069 export type FunctionName = string;
1070 export type FunctionVersion = "ALL"|string;
1071 export interface GetAccountSettingsRequest {
1072 }
1073 export interface GetAccountSettingsResponse {
1074 /**
1075 * Limits that are related to concurrency and code storage.
1076 */
1077 AccountLimit?: AccountLimit;
1078 /**
1079 * The number of functions and amount of storage in use.
1080 */
1081 AccountUsage?: AccountUsage;
1082 }
1083 export interface GetAliasRequest {
1084 /**
1085 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1086 */
1087 FunctionName: FunctionName;
1088 /**
1089 * The name of the alias.
1090 */
1091 Name: Alias;
1092 }
1093 export interface GetEventSourceMappingRequest {
1094 /**
1095 * The identifier of the event source mapping.
1096 */
1097 UUID: String;
1098 }
1099 export interface GetFunctionConcurrencyRequest {
1100 /**
1101 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1102 */
1103 FunctionName: FunctionName;
1104 }
1105 export interface GetFunctionConcurrencyResponse {
1106 /**
1107 * The number of simultaneous executions that are reserved for the function.
1108 */
1109 ReservedConcurrentExecutions?: ReservedConcurrentExecutions;
1110 }
1111 export interface GetFunctionConfigurationRequest {
1112 /**
1113 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1114 */
1115 FunctionName: NamespacedFunctionName;
1116 /**
1117 * Specify a version or alias to get details about a published version of the function.
1118 */
1119 Qualifier?: Qualifier;
1120 }
1121 export interface GetFunctionEventInvokeConfigRequest {
1122 /**
1123 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1124 */
1125 FunctionName: FunctionName;
1126 /**
1127 * A version number or alias name.
1128 */
1129 Qualifier?: Qualifier;
1130 }
1131 export interface GetFunctionRequest {
1132 /**
1133 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1134 */
1135 FunctionName: NamespacedFunctionName;
1136 /**
1137 * Specify a version or alias to get details about a published version of the function.
1138 */
1139 Qualifier?: Qualifier;
1140 }
1141 export interface GetFunctionResponse {
1142 /**
1143 * The configuration of the function or version.
1144 */
1145 Configuration?: FunctionConfiguration;
1146 /**
1147 * The deployment package of the function or version.
1148 */
1149 Code?: FunctionCodeLocation;
1150 /**
1151 * The function's tags.
1152 */
1153 Tags?: Tags;
1154 /**
1155 * The function's reserved concurrency.
1156 */
1157 Concurrency?: Concurrency;
1158 }
1159 export interface GetLayerVersionByArnRequest {
1160 /**
1161 * The ARN of the layer version.
1162 */
1163 Arn: LayerVersionArn;
1164 }
1165 export interface GetLayerVersionPolicyRequest {
1166 /**
1167 * The name or Amazon Resource Name (ARN) of the layer.
1168 */
1169 LayerName: LayerName;
1170 /**
1171 * The version number.
1172 */
1173 VersionNumber: LayerVersionNumber;
1174 }
1175 export interface GetLayerVersionPolicyResponse {
1176 /**
1177 * The policy document.
1178 */
1179 Policy?: String;
1180 /**
1181 * A unique identifier for the current revision of the policy.
1182 */
1183 RevisionId?: String;
1184 }
1185 export interface GetLayerVersionRequest {
1186 /**
1187 * The name or Amazon Resource Name (ARN) of the layer.
1188 */
1189 LayerName: LayerName;
1190 /**
1191 * The version number.
1192 */
1193 VersionNumber: LayerVersionNumber;
1194 }
1195 export interface GetLayerVersionResponse {
1196 /**
1197 * Details about the layer version.
1198 */
1199 Content?: LayerVersionContentOutput;
1200 /**
1201 * The ARN of the layer.
1202 */
1203 LayerArn?: LayerArn;
1204 /**
1205 * The ARN of the layer version.
1206 */
1207 LayerVersionArn?: LayerVersionArn;
1208 /**
1209 * The description of the version.
1210 */
1211 Description?: Description;
1212 /**
1213 * The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
1214 */
1215 CreatedDate?: Timestamp;
1216 /**
1217 * The version number.
1218 */
1219 Version?: LayerVersionNumber;
1220 /**
1221 * The layer's compatible runtimes.
1222 */
1223 CompatibleRuntimes?: CompatibleRuntimes;
1224 /**
1225 * The layer's software license.
1226 */
1227 LicenseInfo?: LicenseInfo;
1228 }
1229 export interface GetPolicyRequest {
1230 /**
1231 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1232 */
1233 FunctionName: NamespacedFunctionName;
1234 /**
1235 * Specify a version or alias to get the policy for that resource.
1236 */
1237 Qualifier?: Qualifier;
1238 }
1239 export interface GetPolicyResponse {
1240 /**
1241 * The resource-based policy.
1242 */
1243 Policy?: String;
1244 /**
1245 * A unique identifier for the current revision of the policy.
1246 */
1247 RevisionId?: String;
1248 }
1249 export interface GetProvisionedConcurrencyConfigRequest {
1250 /**
1251 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1252 */
1253 FunctionName: FunctionName;
1254 /**
1255 * The version number or alias name.
1256 */
1257 Qualifier: Qualifier;
1258 }
1259 export interface GetProvisionedConcurrencyConfigResponse {
1260 /**
1261 * The amount of provisioned concurrency requested.
1262 */
1263 RequestedProvisionedConcurrentExecutions?: PositiveInteger;
1264 /**
1265 * The amount of provisioned concurrency available.
1266 */
1267 AvailableProvisionedConcurrentExecutions?: NonNegativeInteger;
1268 /**
1269 * The amount of provisioned concurrency allocated.
1270 */
1271 AllocatedProvisionedConcurrentExecutions?: NonNegativeInteger;
1272 /**
1273 * The status of the allocation process.
1274 */
1275 Status?: ProvisionedConcurrencyStatusEnum;
1276 /**
1277 * For failed allocations, the reason that provisioned concurrency could not be allocated.
1278 */
1279 StatusReason?: String;
1280 /**
1281 * The date and time that a user last updated the configuration, in ISO 8601 format.
1282 */
1283 LastModified?: Timestamp;
1284 }
1285 export type Handler = string;
1286 export type HttpStatus = number;
1287 export type Integer = number;
1288 export interface InvocationRequest {
1289 /**
1290 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1291 */
1292 FunctionName: NamespacedFunctionName;
1293 /**
1294 * Choose from the following options. RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data. Event - Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if it's configured). The API response only includes a status code. DryRun - Validate parameter values and verify that the user or role has permission to invoke the function.
1295 */
1296 InvocationType?: InvocationType;
1297 /**
1298 * Set to Tail to include the execution log in the response.
1299 */
1300 LogType?: LogType;
1301 /**
1302 * Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function in the context object.
1303 */
1304 ClientContext?: String;
1305 /**
1306 * The JSON that you want to provide to your Lambda function as input.
1307 */
1308 Payload?: _Blob;
1309 /**
1310 * Specify a version or alias to invoke a published version of the function.
1311 */
1312 Qualifier?: Qualifier;
1313 }
1314 export interface InvocationResponse {
1315 /**
1316 * The HTTP status code is in the 200 range for a successful request. For the RequestResponse invocation type, this status code is 200. For the Event invocation type, this status code is 202. For the DryRun invocation type, the status code is 204.
1317 */
1318 StatusCode?: Integer;
1319 /**
1320 * If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
1321 */
1322 FunctionError?: String;
1323 /**
1324 * The last 4 KB of the execution log, which is base64 encoded.
1325 */
1326 LogResult?: String;
1327 /**
1328 * The response from the function, or an error object.
1329 */
1330 Payload?: _Blob;
1331 /**
1332 * The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
1333 */
1334 ExecutedVersion?: Version;
1335 }
1336 export type InvocationType = "Event"|"RequestResponse"|"DryRun"|string;
1337 export interface InvokeAsyncRequest {
1338 /**
1339 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1340 */
1341 FunctionName: NamespacedFunctionName;
1342 /**
1343 * The JSON that you want to provide to your Lambda function as input.
1344 */
1345 InvokeArgs: BlobStream;
1346 }
1347 export interface InvokeAsyncResponse {
1348 /**
1349 * The status code.
1350 */
1351 Status?: HttpStatus;
1352 }
1353 export type KMSKeyArn = string;
1354 export type LastUpdateStatus = "Successful"|"Failed"|"InProgress"|string;
1355 export type LastUpdateStatusReason = string;
1356 export type LastUpdateStatusReasonCode = "EniLimitExceeded"|"InsufficientRolePermissions"|"InvalidConfiguration"|"InternalError"|"SubnetOutOfIPAddresses"|"InvalidSubnet"|"InvalidSecurityGroup"|string;
1357 export interface Layer {
1358 /**
1359 * The Amazon Resource Name (ARN) of the function layer.
1360 */
1361 Arn?: LayerVersionArn;
1362 /**
1363 * The size of the layer archive in bytes.
1364 */
1365 CodeSize?: Long;
1366 }
1367 export type LayerArn = string;
1368 export type LayerList = LayerVersionArn[];
1369 export type LayerName = string;
1370 export type LayerPermissionAllowedAction = string;
1371 export type LayerPermissionAllowedPrincipal = string;
1372 export type LayerVersionArn = string;
1373 export interface LayerVersionContentInput {
1374 /**
1375 * The Amazon S3 bucket of the layer archive.
1376 */
1377 S3Bucket?: S3Bucket;
1378 /**
1379 * The Amazon S3 key of the layer archive.
1380 */
1381 S3Key?: S3Key;
1382 /**
1383 * For versioned objects, the version of the layer archive object to use.
1384 */
1385 S3ObjectVersion?: S3ObjectVersion;
1386 /**
1387 * The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for you.
1388 */
1389 ZipFile?: _Blob;
1390 }
1391 export interface LayerVersionContentOutput {
1392 /**
1393 * A link to the layer archive in Amazon S3 that is valid for 10 minutes.
1394 */
1395 Location?: String;
1396 /**
1397 * The SHA-256 hash of the layer archive.
1398 */
1399 CodeSha256?: String;
1400 /**
1401 * The size of the layer archive in bytes.
1402 */
1403 CodeSize?: Long;
1404 }
1405 export type LayerVersionNumber = number;
1406 export type LayerVersionsList = LayerVersionsListItem[];
1407 export interface LayerVersionsListItem {
1408 /**
1409 * The ARN of the layer version.
1410 */
1411 LayerVersionArn?: LayerVersionArn;
1412 /**
1413 * The version number.
1414 */
1415 Version?: LayerVersionNumber;
1416 /**
1417 * The description of the version.
1418 */
1419 Description?: Description;
1420 /**
1421 * The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.
1422 */
1423 CreatedDate?: Timestamp;
1424 /**
1425 * The layer's compatible runtimes.
1426 */
1427 CompatibleRuntimes?: CompatibleRuntimes;
1428 /**
1429 * The layer's open-source license.
1430 */
1431 LicenseInfo?: LicenseInfo;
1432 }
1433 export type LayersList = LayersListItem[];
1434 export interface LayersListItem {
1435 /**
1436 * The name of the layer.
1437 */
1438 LayerName?: LayerName;
1439 /**
1440 * The Amazon Resource Name (ARN) of the function layer.
1441 */
1442 LayerArn?: LayerArn;
1443 /**
1444 * The newest version of the layer.
1445 */
1446 LatestMatchingVersion?: LayerVersionsListItem;
1447 }
1448 export type LayersReferenceList = Layer[];
1449 export type LicenseInfo = string;
1450 export interface ListAliasesRequest {
1451 /**
1452 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1453 */
1454 FunctionName: FunctionName;
1455 /**
1456 * Specify a function version to only list aliases that invoke that version.
1457 */
1458 FunctionVersion?: Version;
1459 /**
1460 * Specify the pagination token that's returned by a previous request to retrieve the next page of results.
1461 */
1462 Marker?: String;
1463 /**
1464 * Limit the number of aliases returned.
1465 */
1466 MaxItems?: MaxListItems;
1467 }
1468 export interface ListAliasesResponse {
1469 /**
1470 * The pagination token that's included if more results are available.
1471 */
1472 NextMarker?: String;
1473 /**
1474 * A list of aliases.
1475 */
1476 Aliases?: AliasList;
1477 }
1478 export interface ListEventSourceMappingsRequest {
1479 /**
1480 * The Amazon Resource Name (ARN) of the event source. Amazon Kinesis - The ARN of the data stream or a stream consumer. Amazon DynamoDB Streams - The ARN of the stream. Amazon Simple Queue Service - The ARN of the queue.
1481 */
1482 EventSourceArn?: Arn;
1483 /**
1484 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
1485 */
1486 FunctionName?: FunctionName;
1487 /**
1488 * A pagination token returned by a previous call.
1489 */
1490 Marker?: String;
1491 /**
1492 * The maximum number of event source mappings to return.
1493 */
1494 MaxItems?: MaxListItems;
1495 }
1496 export interface ListEventSourceMappingsResponse {
1497 /**
1498 * A pagination token that's returned when the response doesn't contain all event source mappings.
1499 */
1500 NextMarker?: String;
1501 /**
1502 * A list of event source mappings.
1503 */
1504 EventSourceMappings?: EventSourceMappingsList;
1505 }
1506 export interface ListFunctionEventInvokeConfigsRequest {
1507 /**
1508 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1509 */
1510 FunctionName: FunctionName;
1511 /**
1512 * Specify the pagination token that's returned by a previous request to retrieve the next page of results.
1513 */
1514 Marker?: String;
1515 /**
1516 * The maximum number of configurations to return.
1517 */
1518 MaxItems?: MaxFunctionEventInvokeConfigListItems;
1519 }
1520 export interface ListFunctionEventInvokeConfigsResponse {
1521 /**
1522 * A list of configurations.
1523 */
1524 FunctionEventInvokeConfigs?: FunctionEventInvokeConfigList;
1525 /**
1526 * The pagination token that's included if more results are available.
1527 */
1528 NextMarker?: String;
1529 }
1530 export interface ListFunctionsRequest {
1531 /**
1532 * For Lambda@Edge functions, the AWS Region of the master function. For example, us-east-1 filters the list of functions to only include Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must set FunctionVersion to ALL.
1533 */
1534 MasterRegion?: MasterRegion;
1535 /**
1536 * Set to ALL to include entries for all published versions of each function.
1537 */
1538 FunctionVersion?: FunctionVersion;
1539 /**
1540 * Specify the pagination token that's returned by a previous request to retrieve the next page of results.
1541 */
1542 Marker?: String;
1543 /**
1544 * The maximum number of functions to return.
1545 */
1546 MaxItems?: MaxListItems;
1547 }
1548 export interface ListFunctionsResponse {
1549 /**
1550 * The pagination token that's included if more results are available.
1551 */
1552 NextMarker?: String;
1553 /**
1554 * A list of Lambda functions.
1555 */
1556 Functions?: FunctionList;
1557 }
1558 export interface ListLayerVersionsRequest {
1559 /**
1560 * A runtime identifier. For example, go1.x.
1561 */
1562 CompatibleRuntime?: Runtime;
1563 /**
1564 * The name or Amazon Resource Name (ARN) of the layer.
1565 */
1566 LayerName: LayerName;
1567 /**
1568 * A pagination token returned by a previous call.
1569 */
1570 Marker?: String;
1571 /**
1572 * The maximum number of versions to return.
1573 */
1574 MaxItems?: MaxLayerListItems;
1575 }
1576 export interface ListLayerVersionsResponse {
1577 /**
1578 * A pagination token returned when the response doesn't contain all versions.
1579 */
1580 NextMarker?: String;
1581 /**
1582 * A list of versions.
1583 */
1584 LayerVersions?: LayerVersionsList;
1585 }
1586 export interface ListLayersRequest {
1587 /**
1588 * A runtime identifier. For example, go1.x.
1589 */
1590 CompatibleRuntime?: Runtime;
1591 /**
1592 * A pagination token returned by a previous call.
1593 */
1594 Marker?: String;
1595 /**
1596 * The maximum number of layers to return.
1597 */
1598 MaxItems?: MaxLayerListItems;
1599 }
1600 export interface ListLayersResponse {
1601 /**
1602 * A pagination token returned when the response doesn't contain all layers.
1603 */
1604 NextMarker?: String;
1605 /**
1606 * A list of function layers.
1607 */
1608 Layers?: LayersList;
1609 }
1610 export interface ListProvisionedConcurrencyConfigsRequest {
1611 /**
1612 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1613 */
1614 FunctionName: FunctionName;
1615 /**
1616 * Specify the pagination token that's returned by a previous request to retrieve the next page of results.
1617 */
1618 Marker?: String;
1619 /**
1620 * Specify a number to limit the number of configurations returned.
1621 */
1622 MaxItems?: MaxProvisionedConcurrencyConfigListItems;
1623 }
1624 export interface ListProvisionedConcurrencyConfigsResponse {
1625 /**
1626 * A list of provisioned concurrency configurations.
1627 */
1628 ProvisionedConcurrencyConfigs?: ProvisionedConcurrencyConfigList;
1629 /**
1630 * The pagination token that's included if more results are available.
1631 */
1632 NextMarker?: String;
1633 }
1634 export interface ListTagsRequest {
1635 /**
1636 * The function's Amazon Resource Name (ARN).
1637 */
1638 Resource: FunctionArn;
1639 }
1640 export interface ListTagsResponse {
1641 /**
1642 * The function's tags.
1643 */
1644 Tags?: Tags;
1645 }
1646 export interface ListVersionsByFunctionRequest {
1647 /**
1648 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1649 */
1650 FunctionName: NamespacedFunctionName;
1651 /**
1652 * Specify the pagination token that's returned by a previous request to retrieve the next page of results.
1653 */
1654 Marker?: String;
1655 /**
1656 * The maximum number of versions to return.
1657 */
1658 MaxItems?: MaxListItems;
1659 }
1660 export interface ListVersionsByFunctionResponse {
1661 /**
1662 * The pagination token that's included if more results are available.
1663 */
1664 NextMarker?: String;
1665 /**
1666 * A list of Lambda function versions.
1667 */
1668 Versions?: FunctionList;
1669 }
1670 export type LogType = "None"|"Tail"|string;
1671 export type Long = number;
1672 export type MasterRegion = string;
1673 export type MaxFunctionEventInvokeConfigListItems = number;
1674 export type MaxLayerListItems = number;
1675 export type MaxListItems = number;
1676 export type MaxProvisionedConcurrencyConfigListItems = number;
1677 export type MaximumBatchingWindowInSeconds = number;
1678 export type MaximumEventAgeInSeconds = number;
1679 export type MaximumRecordAgeInSeconds = number;
1680 export type MaximumRetryAttempts = number;
1681 export type MaximumRetryAttemptsEventSourceMapping = number;
1682 export type MemorySize = number;
1683 export type NameSpacedFunctionArn = string;
1684 export type NamespacedFunctionName = string;
1685 export type NamespacedStatementId = string;
1686 export type NonNegativeInteger = number;
1687 export interface OnFailure {
1688 /**
1689 * The Amazon Resource Name (ARN) of the destination resource.
1690 */
1691 Destination?: DestinationArn;
1692 }
1693 export interface OnSuccess {
1694 /**
1695 * The Amazon Resource Name (ARN) of the destination resource.
1696 */
1697 Destination?: DestinationArn;
1698 }
1699 export type OrganizationId = string;
1700 export type ParallelizationFactor = number;
1701 export type PositiveInteger = number;
1702 export type Principal = string;
1703 export type ProvisionedConcurrencyConfigList = ProvisionedConcurrencyConfigListItem[];
1704 export interface ProvisionedConcurrencyConfigListItem {
1705 /**
1706 * The Amazon Resource Name (ARN) of the alias or version.
1707 */
1708 FunctionArn?: FunctionArn;
1709 /**
1710 * The amount of provisioned concurrency requested.
1711 */
1712 RequestedProvisionedConcurrentExecutions?: PositiveInteger;
1713 /**
1714 * The amount of provisioned concurrency available.
1715 */
1716 AvailableProvisionedConcurrentExecutions?: NonNegativeInteger;
1717 /**
1718 * The amount of provisioned concurrency allocated.
1719 */
1720 AllocatedProvisionedConcurrentExecutions?: NonNegativeInteger;
1721 /**
1722 * The status of the allocation process.
1723 */
1724 Status?: ProvisionedConcurrencyStatusEnum;
1725 /**
1726 * For failed allocations, the reason that provisioned concurrency could not be allocated.
1727 */
1728 StatusReason?: String;
1729 /**
1730 * The date and time that a user last updated the configuration, in ISO 8601 format.
1731 */
1732 LastModified?: Timestamp;
1733 }
1734 export type ProvisionedConcurrencyStatusEnum = "IN_PROGRESS"|"READY"|"FAILED"|string;
1735 export interface PublishLayerVersionRequest {
1736 /**
1737 * The name or Amazon Resource Name (ARN) of the layer.
1738 */
1739 LayerName: LayerName;
1740 /**
1741 * The description of the version.
1742 */
1743 Description?: Description;
1744 /**
1745 * The function layer archive.
1746 */
1747 Content: LayerVersionContentInput;
1748 /**
1749 * A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
1750 */
1751 CompatibleRuntimes?: CompatibleRuntimes;
1752 /**
1753 * The layer's software license. It can be any of the following: An SPDX license identifier. For example, MIT. The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT. The full text of the license.
1754 */
1755 LicenseInfo?: LicenseInfo;
1756 }
1757 export interface PublishLayerVersionResponse {
1758 /**
1759 * Details about the layer version.
1760 */
1761 Content?: LayerVersionContentOutput;
1762 /**
1763 * The ARN of the layer.
1764 */
1765 LayerArn?: LayerArn;
1766 /**
1767 * The ARN of the layer version.
1768 */
1769 LayerVersionArn?: LayerVersionArn;
1770 /**
1771 * The description of the version.
1772 */
1773 Description?: Description;
1774 /**
1775 * The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
1776 */
1777 CreatedDate?: Timestamp;
1778 /**
1779 * The version number.
1780 */
1781 Version?: LayerVersionNumber;
1782 /**
1783 * The layer's compatible runtimes.
1784 */
1785 CompatibleRuntimes?: CompatibleRuntimes;
1786 /**
1787 * The layer's software license.
1788 */
1789 LicenseInfo?: LicenseInfo;
1790 }
1791 export interface PublishVersionRequest {
1792 /**
1793 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1794 */
1795 FunctionName: FunctionName;
1796 /**
1797 * Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.
1798 */
1799 CodeSha256?: String;
1800 /**
1801 * A description for the version to override the description in the function configuration.
1802 */
1803 Description?: Description;
1804 /**
1805 * Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.
1806 */
1807 RevisionId?: String;
1808 }
1809 export interface PutFunctionConcurrencyRequest {
1810 /**
1811 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1812 */
1813 FunctionName: FunctionName;
1814 /**
1815 * The number of simultaneous executions to reserve for the function.
1816 */
1817 ReservedConcurrentExecutions: ReservedConcurrentExecutions;
1818 }
1819 export interface PutFunctionEventInvokeConfigRequest {
1820 /**
1821 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1822 */
1823 FunctionName: FunctionName;
1824 /**
1825 * A version number or alias name.
1826 */
1827 Qualifier?: Qualifier;
1828 /**
1829 * The maximum number of times to retry when the function returns an error.
1830 */
1831 MaximumRetryAttempts?: MaximumRetryAttempts;
1832 /**
1833 * The maximum age of a request that Lambda sends to a function for processing.
1834 */
1835 MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds;
1836 /**
1837 * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of an SQS queue. Topic - The ARN of an SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
1838 */
1839 DestinationConfig?: DestinationConfig;
1840 }
1841 export interface PutProvisionedConcurrencyConfigRequest {
1842 /**
1843 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1844 */
1845 FunctionName: FunctionName;
1846 /**
1847 * The version number or alias name.
1848 */
1849 Qualifier: Qualifier;
1850 /**
1851 * The amount of provisioned concurrency to allocate for the version or alias.
1852 */
1853 ProvisionedConcurrentExecutions: PositiveInteger;
1854 }
1855 export interface PutProvisionedConcurrencyConfigResponse {
1856 /**
1857 * The amount of provisioned concurrency requested.
1858 */
1859 RequestedProvisionedConcurrentExecutions?: PositiveInteger;
1860 /**
1861 * The amount of provisioned concurrency available.
1862 */
1863 AvailableProvisionedConcurrentExecutions?: NonNegativeInteger;
1864 /**
1865 * The amount of provisioned concurrency allocated.
1866 */
1867 AllocatedProvisionedConcurrentExecutions?: NonNegativeInteger;
1868 /**
1869 * The status of the allocation process.
1870 */
1871 Status?: ProvisionedConcurrencyStatusEnum;
1872 /**
1873 * For failed allocations, the reason that provisioned concurrency could not be allocated.
1874 */
1875 StatusReason?: String;
1876 /**
1877 * The date and time that a user last updated the configuration, in ISO 8601 format.
1878 */
1879 LastModified?: Timestamp;
1880 }
1881 export type Qualifier = string;
1882 export interface RemoveLayerVersionPermissionRequest {
1883 /**
1884 * The name or Amazon Resource Name (ARN) of the layer.
1885 */
1886 LayerName: LayerName;
1887 /**
1888 * The version number.
1889 */
1890 VersionNumber: LayerVersionNumber;
1891 /**
1892 * The identifier that was specified when the statement was added.
1893 */
1894 StatementId: StatementId;
1895 /**
1896 * Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
1897 */
1898 RevisionId?: String;
1899 }
1900 export interface RemovePermissionRequest {
1901 /**
1902 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1903 */
1904 FunctionName: FunctionName;
1905 /**
1906 * Statement ID of the permission to remove.
1907 */
1908 StatementId: NamespacedStatementId;
1909 /**
1910 * Specify a version or alias to remove permissions from a published version of the function.
1911 */
1912 Qualifier?: Qualifier;
1913 /**
1914 * Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.
1915 */
1916 RevisionId?: String;
1917 }
1918 export type ReservedConcurrentExecutions = number;
1919 export type ResourceArn = string;
1920 export type RoleArn = string;
1921 export type Runtime = "nodejs"|"nodejs4.3"|"nodejs6.10"|"nodejs8.10"|"nodejs10.x"|"nodejs12.x"|"java8"|"java11"|"python2.7"|"python3.6"|"python3.7"|"python3.8"|"dotnetcore1.0"|"dotnetcore2.0"|"dotnetcore2.1"|"dotnetcore3.1"|"nodejs4.3-edge"|"go1.x"|"ruby2.5"|"ruby2.7"|"provided"|string;
1922 export type S3Bucket = string;
1923 export type S3Key = string;
1924 export type S3ObjectVersion = string;
1925 export type SecurityGroupId = string;
1926 export type SecurityGroupIds = SecurityGroupId[];
1927 export type SensitiveString = string;
1928 export type SourceOwner = string;
1929 export type State = "Pending"|"Active"|"Inactive"|"Failed"|string;
1930 export type StateReason = string;
1931 export type StateReasonCode = "Idle"|"Creating"|"Restoring"|"EniLimitExceeded"|"InsufficientRolePermissions"|"InvalidConfiguration"|"InternalError"|"SubnetOutOfIPAddresses"|"InvalidSubnet"|"InvalidSecurityGroup"|string;
1932 export type StatementId = string;
1933 export type String = string;
1934 export type SubnetId = string;
1935 export type SubnetIds = SubnetId[];
1936 export type TagKey = string;
1937 export type TagKeyList = TagKey[];
1938 export interface TagResourceRequest {
1939 /**
1940 * The function's Amazon Resource Name (ARN).
1941 */
1942 Resource: FunctionArn;
1943 /**
1944 * A list of tags to apply to the function.
1945 */
1946 Tags: Tags;
1947 }
1948 export type TagValue = string;
1949 export type Tags = {[key: string]: TagValue};
1950 export type Timeout = number;
1951 export type Timestamp = string;
1952 export interface TracingConfig {
1953 /**
1954 * The tracing mode.
1955 */
1956 Mode?: TracingMode;
1957 }
1958 export interface TracingConfigResponse {
1959 /**
1960 * The tracing mode.
1961 */
1962 Mode?: TracingMode;
1963 }
1964 export type TracingMode = "Active"|"PassThrough"|string;
1965 export type UnreservedConcurrentExecutions = number;
1966 export interface UntagResourceRequest {
1967 /**
1968 * The function's Amazon Resource Name (ARN).
1969 */
1970 Resource: FunctionArn;
1971 /**
1972 * A list of tag keys to remove from the function.
1973 */
1974 TagKeys: TagKeyList;
1975 }
1976 export interface UpdateAliasRequest {
1977 /**
1978 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
1979 */
1980 FunctionName: FunctionName;
1981 /**
1982 * The name of the alias.
1983 */
1984 Name: Alias;
1985 /**
1986 * The function version that the alias invokes.
1987 */
1988 FunctionVersion?: Version;
1989 /**
1990 * A description of the alias.
1991 */
1992 Description?: Description;
1993 /**
1994 * The routing configuration of the alias.
1995 */
1996 RoutingConfig?: AliasRoutingConfiguration;
1997 /**
1998 * Only update the alias if the revision ID matches the ID that's specified. Use this option to avoid modifying an alias that has changed since you last read it.
1999 */
2000 RevisionId?: String;
2001 }
2002 export interface UpdateEventSourceMappingRequest {
2003 /**
2004 * The identifier of the event source mapping.
2005 */
2006 UUID: String;
2007 /**
2008 * The name of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
2009 */
2010 FunctionName?: FunctionName;
2011 /**
2012 * Disables the event source mapping to pause polling and invocation.
2013 */
2014 Enabled?: Enabled;
2015 /**
2016 * The maximum number of items to retrieve in a single batch. Amazon Kinesis - Default 100. Max 10,000. Amazon DynamoDB Streams - Default 100. Max 1,000. Amazon Simple Queue Service - Default 10. Max 10.
2017 */
2018 BatchSize?: BatchSize;
2019 /**
2020 * (Streams) The maximum amount of time to gather records before invoking the function, in seconds.
2021 */
2022 MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds;
2023 /**
2024 * (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
2025 */
2026 DestinationConfig?: DestinationConfig;
2027 /**
2028 * (Streams) The maximum age of a record that Lambda sends to a function for processing.
2029 */
2030 MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds;
2031 /**
2032 * (Streams) If the function returns an error, split the batch in two and retry.
2033 */
2034 BisectBatchOnFunctionError?: BisectBatchOnFunctionError;
2035 /**
2036 * (Streams) The maximum number of times to retry when the function returns an error.
2037 */
2038 MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping;
2039 /**
2040 * (Streams) The number of batches to process from each shard concurrently.
2041 */
2042 ParallelizationFactor?: ParallelizationFactor;
2043 }
2044 export interface UpdateFunctionCodeRequest {
2045 /**
2046 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2047 */
2048 FunctionName: FunctionName;
2049 /**
2050 * The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for you.
2051 */
2052 ZipFile?: _Blob;
2053 /**
2054 * An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.
2055 */
2056 S3Bucket?: S3Bucket;
2057 /**
2058 * The Amazon S3 key of the deployment package.
2059 */
2060 S3Key?: S3Key;
2061 /**
2062 * For versioned objects, the version of the deployment package object to use.
2063 */
2064 S3ObjectVersion?: S3ObjectVersion;
2065 /**
2066 * Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
2067 */
2068 Publish?: Boolean;
2069 /**
2070 * Set to true to validate the request parameters and access permissions without modifying the function code.
2071 */
2072 DryRun?: Boolean;
2073 /**
2074 * Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
2075 */
2076 RevisionId?: String;
2077 }
2078 export interface UpdateFunctionConfigurationRequest {
2079 /**
2080 * The name of the Lambda function. Name formats Function name - my-function. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2081 */
2082 FunctionName: FunctionName;
2083 /**
2084 * The Amazon Resource Name (ARN) of the function's execution role.
2085 */
2086 Role?: RoleArn;
2087 /**
2088 * The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
2089 */
2090 Handler?: Handler;
2091 /**
2092 * A description of the function.
2093 */
2094 Description?: Description;
2095 /**
2096 * The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.
2097 */
2098 Timeout?: Timeout;
2099 /**
2100 * The amount of memory that your function has access to. Increasing the function's memory also increases its CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
2101 */
2102 MemorySize?: MemorySize;
2103 /**
2104 * For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
2105 */
2106 VpcConfig?: VpcConfig;
2107 /**
2108 * Environment variables that are accessible from function code during execution.
2109 */
2110 Environment?: Environment;
2111 /**
2112 * The identifier of the function's runtime.
2113 */
2114 Runtime?: Runtime;
2115 /**
2116 * A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
2117 */
2118 DeadLetterConfig?: DeadLetterConfig;
2119 /**
2120 * The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
2121 */
2122 KMSKeyArn?: KMSKeyArn;
2123 /**
2124 * Set Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray.
2125 */
2126 TracingConfig?: TracingConfig;
2127 /**
2128 * Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
2129 */
2130 RevisionId?: String;
2131 /**
2132 * A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
2133 */
2134 Layers?: LayerList;
2135 }
2136 export interface UpdateFunctionEventInvokeConfigRequest {
2137 /**
2138 * The name of the Lambda function, version, or alias. Name formats Function name - my-function (name-only), my-function:v1 (with alias). Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN - 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2139 */
2140 FunctionName: FunctionName;
2141 /**
2142 * A version number or alias name.
2143 */
2144 Qualifier?: Qualifier;
2145 /**
2146 * The maximum number of times to retry when the function returns an error.
2147 */
2148 MaximumRetryAttempts?: MaximumRetryAttempts;
2149 /**
2150 * The maximum age of a request that Lambda sends to a function for processing.
2151 */
2152 MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds;
2153 /**
2154 * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of an SQS queue. Topic - The ARN of an SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
2155 */
2156 DestinationConfig?: DestinationConfig;
2157 }
2158 export type Version = string;
2159 export interface VpcConfig {
2160 /**
2161 * A list of VPC subnet IDs.
2162 */
2163 SubnetIds?: SubnetIds;
2164 /**
2165 * A list of VPC security groups IDs.
2166 */
2167 SecurityGroupIds?: SecurityGroupIds;
2168 }
2169 export interface VpcConfigResponse {
2170 /**
2171 * A list of VPC subnet IDs.
2172 */
2173 SubnetIds?: SubnetIds;
2174 /**
2175 * A list of VPC security groups IDs.
2176 */
2177 SecurityGroupIds?: SecurityGroupIds;
2178 /**
2179 * The ID of the VPC.
2180 */
2181 VpcId?: VpcId;
2182 }
2183 export type VpcId = string;
2184 export type Weight = number;
2185 /**
2186 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
2187 */
2188 export type apiVersion = "2014-11-11"|"2015-03-31"|"latest"|string;
2189 export interface ClientApiVersions {
2190 /**
2191 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
2192 */
2193 apiVersion?: apiVersion;
2194 }
2195 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
2196 /**
2197 * Contains interfaces for use with the Lambda client.
2198 */
2199 export import Types = Lambda;
2200}
2201export = Lambda;