/ cloudformation-templates / node_modules / aws-cdk / node_modules / aws-sdk / clients / lambda.d.ts
lambda.d.ts
1 import {Request} from '../lib/request'; 2 import {Response} from '../lib/response'; 3 import {AWSError} from '../lib/error'; 4 import {Service} from '../lib/service'; 5 import {WaiterConfiguration} from '../lib/service'; 6 import {ServiceConfigurationOptions} from '../lib/service'; 7 import {ConfigBase as Config} from '../lib/config-base'; 8 import {Readable} from 'stream'; 9 interface Blob {} 10 declare 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 Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts. 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 Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts. 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 Amazon Web Services 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 Amazon Web Services services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services 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 code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail). 42 */ 43 createCodeSigningConfig(params: Lambda.Types.CreateCodeSigningConfigRequest, callback?: (err: AWSError, data: Lambda.Types.CreateCodeSigningConfigResponse) => void): Request<Lambda.Types.CreateCodeSigningConfigResponse, AWSError>; 44 /** 45 * Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail). 46 */ 47 createCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.CreateCodeSigningConfigResponse) => void): Request<Lambda.Types.CreateCodeSigningConfigResponse, AWSError>; 48 /** 49 * Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and triggers the function. For details about each event source type, see the following topics. In particular, each of the topics describes the required and optional parameters for the specific event source. Configuring a Dynamo DB stream as an event source Configuring a Kinesis stream as an event source Configuring an SQS queue as an event source Configuring an MQ broker as an event source Configuring MSK as an event source Configuring Self-Managed Apache Kafka as an event source 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. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor - Process multiple batches from each shard concurrently. 50 */ 51 createEventSourceMapping(params: Lambda.Types.CreateEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>; 52 /** 53 * Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and triggers the function. For details about each event source type, see the following topics. In particular, each of the topics describes the required and optional parameters for the specific event source. Configuring a Dynamo DB stream as an event source Configuring a Kinesis stream as an event source Configuring an SQS queue as an event source Configuring an MQ broker as an event source Configuring MSK as an event source Configuring Self-Managed Apache Kafka as an event source 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. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor - Process multiple batches from each shard concurrently. 54 */ 55 createEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>; 56 /** 57 * Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing. You set the package type to Image if the deployment package is a container image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties. You set the package type to Zip if the deployment package is a .zip file archive. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. 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). You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function. If another account or an Amazon Web Services 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 Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions. 58 */ 59 createFunction(params: Lambda.Types.CreateFunctionRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 60 /** 61 * Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing. You set the package type to Image if the deployment package is a container image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties. You set the package type to Zip if the deployment package is a .zip file archive. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. 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). You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function. If another account or an Amazon Web Services 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 Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions. 62 */ 63 createFunction(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 64 /** 65 * Deletes a Lambda function alias. 66 */ 67 deleteAlias(params: Lambda.Types.DeleteAliasRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 68 /** 69 * Deletes a Lambda function alias. 70 */ 71 deleteAlias(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 72 /** 73 * Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it. 74 */ 75 deleteCodeSigningConfig(params: Lambda.Types.DeleteCodeSigningConfigRequest, callback?: (err: AWSError, data: Lambda.Types.DeleteCodeSigningConfigResponse) => void): Request<Lambda.Types.DeleteCodeSigningConfigResponse, AWSError>; 76 /** 77 * Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it. 78 */ 79 deleteCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.DeleteCodeSigningConfigResponse) => void): Request<Lambda.Types.DeleteCodeSigningConfigResponse, AWSError>; 80 /** 81 * 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. 82 */ 83 deleteEventSourceMapping(params: Lambda.Types.DeleteEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>; 84 /** 85 * 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. 86 */ 87 deleteEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>; 88 /** 89 * 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 Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it. 90 */ 91 deleteFunction(params: Lambda.Types.DeleteFunctionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 92 /** 93 * 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 Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it. 94 */ 95 deleteFunction(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 96 /** 97 * Removes the code signing configuration from the function. 98 */ 99 deleteFunctionCodeSigningConfig(params: Lambda.Types.DeleteFunctionCodeSigningConfigRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 100 /** 101 * Removes the code signing configuration from the function. 102 */ 103 deleteFunctionCodeSigningConfig(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 104 /** 105 * Removes a concurrent execution limit from a function. 106 */ 107 deleteFunctionConcurrency(params: Lambda.Types.DeleteFunctionConcurrencyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 108 /** 109 * Removes a concurrent execution limit from a function. 110 */ 111 deleteFunctionConcurrency(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 112 /** 113 * Deletes the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. 114 */ 115 deleteFunctionEventInvokeConfig(params: Lambda.Types.DeleteFunctionEventInvokeConfigRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 116 /** 117 * Deletes the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. 118 */ 119 deleteFunctionEventInvokeConfig(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 120 /** 121 * Deletes a version of an 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. 122 */ 123 deleteLayerVersion(params: Lambda.Types.DeleteLayerVersionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 124 /** 125 * Deletes a version of an 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. 126 */ 127 deleteLayerVersion(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 128 /** 129 * Deletes the provisioned concurrency configuration for a function. 130 */ 131 deleteProvisionedConcurrencyConfig(params: Lambda.Types.DeleteProvisionedConcurrencyConfigRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 132 /** 133 * Deletes the provisioned concurrency configuration for a function. 134 */ 135 deleteProvisionedConcurrencyConfig(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 136 /** 137 * Retrieves details about your account's limits and usage in an Amazon Web Services Region. 138 */ 139 getAccountSettings(params: Lambda.Types.GetAccountSettingsRequest, callback?: (err: AWSError, data: Lambda.Types.GetAccountSettingsResponse) => void): Request<Lambda.Types.GetAccountSettingsResponse, AWSError>; 140 /** 141 * Retrieves details about your account's limits and usage in an Amazon Web Services Region. 142 */ 143 getAccountSettings(callback?: (err: AWSError, data: Lambda.Types.GetAccountSettingsResponse) => void): Request<Lambda.Types.GetAccountSettingsResponse, AWSError>; 144 /** 145 * Returns details about a Lambda function alias. 146 */ 147 getAlias(params: Lambda.Types.GetAliasRequest, callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>; 148 /** 149 * Returns details about a Lambda function alias. 150 */ 151 getAlias(callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>; 152 /** 153 * Returns information about the specified code signing configuration. 154 */ 155 getCodeSigningConfig(params: Lambda.Types.GetCodeSigningConfigRequest, callback?: (err: AWSError, data: Lambda.Types.GetCodeSigningConfigResponse) => void): Request<Lambda.Types.GetCodeSigningConfigResponse, AWSError>; 156 /** 157 * Returns information about the specified code signing configuration. 158 */ 159 getCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.GetCodeSigningConfigResponse) => void): Request<Lambda.Types.GetCodeSigningConfigResponse, AWSError>; 160 /** 161 * Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. 162 */ 163 getEventSourceMapping(params: Lambda.Types.GetEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>; 164 /** 165 * Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. 166 */ 167 getEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>; 168 /** 169 * 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. 170 */ 171 getFunction(params: Lambda.Types.GetFunctionRequest, callback?: (err: AWSError, data: Lambda.Types.GetFunctionResponse) => void): Request<Lambda.Types.GetFunctionResponse, AWSError>; 172 /** 173 * 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. 174 */ 175 getFunction(callback?: (err: AWSError, data: Lambda.Types.GetFunctionResponse) => void): Request<Lambda.Types.GetFunctionResponse, AWSError>; 176 /** 177 * Returns the code signing configuration for the specified function. 178 */ 179 getFunctionCodeSigningConfig(params: Lambda.Types.GetFunctionCodeSigningConfigRequest, callback?: (err: AWSError, data: Lambda.Types.GetFunctionCodeSigningConfigResponse) => void): Request<Lambda.Types.GetFunctionCodeSigningConfigResponse, AWSError>; 180 /** 181 * Returns the code signing configuration for the specified function. 182 */ 183 getFunctionCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.GetFunctionCodeSigningConfigResponse) => void): Request<Lambda.Types.GetFunctionCodeSigningConfigResponse, AWSError>; 184 /** 185 * Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency. 186 */ 187 getFunctionConcurrency(params: Lambda.Types.GetFunctionConcurrencyRequest, callback?: (err: AWSError, data: Lambda.Types.GetFunctionConcurrencyResponse) => void): Request<Lambda.Types.GetFunctionConcurrencyResponse, AWSError>; 188 /** 189 * Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency. 190 */ 191 getFunctionConcurrency(callback?: (err: AWSError, data: Lambda.Types.GetFunctionConcurrencyResponse) => void): Request<Lambda.Types.GetFunctionConcurrencyResponse, AWSError>; 192 /** 193 * 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. 194 */ 195 getFunctionConfiguration(params: Lambda.Types.GetFunctionConfigurationRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 196 /** 197 * 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. 198 */ 199 getFunctionConfiguration(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 200 /** 201 * Retrieves the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. 202 */ 203 getFunctionEventInvokeConfig(params: Lambda.Types.GetFunctionEventInvokeConfigRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>; 204 /** 205 * Retrieves the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. 206 */ 207 getFunctionEventInvokeConfig(callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>; 208 /** 209 * Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes. 210 */ 211 getLayerVersion(params: Lambda.Types.GetLayerVersionRequest, callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionResponse) => void): Request<Lambda.Types.GetLayerVersionResponse, AWSError>; 212 /** 213 * Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes. 214 */ 215 getLayerVersion(callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionResponse) => void): Request<Lambda.Types.GetLayerVersionResponse, AWSError>; 216 /** 217 * Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes. 218 */ 219 getLayerVersionByArn(params: Lambda.Types.GetLayerVersionByArnRequest, callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionResponse) => void): Request<Lambda.Types.GetLayerVersionResponse, AWSError>; 220 /** 221 * Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes. 222 */ 223 getLayerVersionByArn(callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionResponse) => void): Request<Lambda.Types.GetLayerVersionResponse, AWSError>; 224 /** 225 * Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission. 226 */ 227 getLayerVersionPolicy(params: Lambda.Types.GetLayerVersionPolicyRequest, callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionPolicyResponse) => void): Request<Lambda.Types.GetLayerVersionPolicyResponse, AWSError>; 228 /** 229 * Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission. 230 */ 231 getLayerVersionPolicy(callback?: (err: AWSError, data: Lambda.Types.GetLayerVersionPolicyResponse) => void): Request<Lambda.Types.GetLayerVersionPolicyResponse, AWSError>; 232 /** 233 * Returns the resource-based IAM policy for a function, version, or alias. 234 */ 235 getPolicy(params: Lambda.Types.GetPolicyRequest, callback?: (err: AWSError, data: Lambda.Types.GetPolicyResponse) => void): Request<Lambda.Types.GetPolicyResponse, AWSError>; 236 /** 237 * Returns the resource-based IAM policy for a function, version, or alias. 238 */ 239 getPolicy(callback?: (err: AWSError, data: Lambda.Types.GetPolicyResponse) => void): Request<Lambda.Types.GetPolicyResponse, AWSError>; 240 /** 241 * Retrieves the provisioned concurrency configuration for a function's alias or version. 242 */ 243 getProvisionedConcurrencyConfig(params: Lambda.Types.GetProvisionedConcurrencyConfigRequest, callback?: (err: AWSError, data: Lambda.Types.GetProvisionedConcurrencyConfigResponse) => void): Request<Lambda.Types.GetProvisionedConcurrencyConfigResponse, AWSError>; 244 /** 245 * Retrieves the provisioned concurrency configuration for a function's alias or version. 246 */ 247 getProvisionedConcurrencyConfig(callback?: (err: AWSError, data: Lambda.Types.GetProvisionedConcurrencyConfigResponse) => void): Request<Lambda.Types.GetProvisionedConcurrencyConfigResponse, AWSError>; 248 /** 249 * 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. 250 */ 251 invoke(params: Lambda.Types.InvocationRequest, callback?: (err: AWSError, data: Lambda.Types.InvocationResponse) => void): Request<Lambda.Types.InvocationResponse, AWSError>; 252 /** 253 * 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. 254 */ 255 invoke(callback?: (err: AWSError, data: Lambda.Types.InvocationResponse) => void): Request<Lambda.Types.InvocationResponse, AWSError>; 256 /** 257 * For asynchronous function invocation, use Invoke. Invokes a function asynchronously. 258 */ 259 invokeAsync(params: Lambda.Types.InvokeAsyncRequest, callback?: (err: AWSError, data: Lambda.Types.InvokeAsyncResponse) => void): Request<Lambda.Types.InvokeAsyncResponse, AWSError>; 260 /** 261 * For asynchronous function invocation, use Invoke. Invokes a function asynchronously. 262 */ 263 invokeAsync(callback?: (err: AWSError, data: Lambda.Types.InvokeAsyncResponse) => void): Request<Lambda.Types.InvokeAsyncResponse, AWSError>; 264 /** 265 * Returns a list of aliases for a Lambda function. 266 */ 267 listAliases(params: Lambda.Types.ListAliasesRequest, callback?: (err: AWSError, data: Lambda.Types.ListAliasesResponse) => void): Request<Lambda.Types.ListAliasesResponse, AWSError>; 268 /** 269 * Returns a list of aliases for a Lambda function. 270 */ 271 listAliases(callback?: (err: AWSError, data: Lambda.Types.ListAliasesResponse) => void): Request<Lambda.Types.ListAliasesResponse, AWSError>; 272 /** 273 * Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call. 274 */ 275 listCodeSigningConfigs(params: Lambda.Types.ListCodeSigningConfigsRequest, callback?: (err: AWSError, data: Lambda.Types.ListCodeSigningConfigsResponse) => void): Request<Lambda.Types.ListCodeSigningConfigsResponse, AWSError>; 276 /** 277 * Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call. 278 */ 279 listCodeSigningConfigs(callback?: (err: AWSError, data: Lambda.Types.ListCodeSigningConfigsResponse) => void): Request<Lambda.Types.ListCodeSigningConfigsResponse, AWSError>; 280 /** 281 * Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source. 282 */ 283 listEventSourceMappings(params: Lambda.Types.ListEventSourceMappingsRequest, callback?: (err: AWSError, data: Lambda.Types.ListEventSourceMappingsResponse) => void): Request<Lambda.Types.ListEventSourceMappingsResponse, AWSError>; 284 /** 285 * Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source. 286 */ 287 listEventSourceMappings(callback?: (err: AWSError, data: Lambda.Types.ListEventSourceMappingsResponse) => void): Request<Lambda.Types.ListEventSourceMappingsResponse, AWSError>; 288 /** 289 * Retrieves a list of configurations for asynchronous invocation for a function. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. 290 */ 291 listFunctionEventInvokeConfigs(params: Lambda.Types.ListFunctionEventInvokeConfigsRequest, callback?: (err: AWSError, data: Lambda.Types.ListFunctionEventInvokeConfigsResponse) => void): Request<Lambda.Types.ListFunctionEventInvokeConfigsResponse, AWSError>; 292 /** 293 * Retrieves a list of configurations for asynchronous invocation for a function. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. 294 */ 295 listFunctionEventInvokeConfigs(callback?: (err: AWSError, data: Lambda.Types.ListFunctionEventInvokeConfigsResponse) => void): Request<Lambda.Types.ListFunctionEventInvokeConfigsResponse, AWSError>; 296 /** 297 * 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. The ListFunctions action returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or version, use GetFunction. 298 */ 299 listFunctions(params: Lambda.Types.ListFunctionsRequest, callback?: (err: AWSError, data: Lambda.Types.ListFunctionsResponse) => void): Request<Lambda.Types.ListFunctionsResponse, AWSError>; 300 /** 301 * 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. The ListFunctions action returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or version, use GetFunction. 302 */ 303 listFunctions(callback?: (err: AWSError, data: Lambda.Types.ListFunctionsResponse) => void): Request<Lambda.Types.ListFunctionsResponse, AWSError>; 304 /** 305 * List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it. 306 */ 307 listFunctionsByCodeSigningConfig(params: Lambda.Types.ListFunctionsByCodeSigningConfigRequest, callback?: (err: AWSError, data: Lambda.Types.ListFunctionsByCodeSigningConfigResponse) => void): Request<Lambda.Types.ListFunctionsByCodeSigningConfigResponse, AWSError>; 308 /** 309 * List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it. 310 */ 311 listFunctionsByCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.ListFunctionsByCodeSigningConfigResponse) => void): Request<Lambda.Types.ListFunctionsByCodeSigningConfigResponse, AWSError>; 312 /** 313 * Lists the versions of an 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. 314 */ 315 listLayerVersions(params: Lambda.Types.ListLayerVersionsRequest, callback?: (err: AWSError, data: Lambda.Types.ListLayerVersionsResponse) => void): Request<Lambda.Types.ListLayerVersionsResponse, AWSError>; 316 /** 317 * Lists the versions of an 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. 318 */ 319 listLayerVersions(callback?: (err: AWSError, data: Lambda.Types.ListLayerVersionsResponse) => void): Request<Lambda.Types.ListLayerVersionsResponse, AWSError>; 320 /** 321 * Lists 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. 322 */ 323 listLayers(params: Lambda.Types.ListLayersRequest, callback?: (err: AWSError, data: Lambda.Types.ListLayersResponse) => void): Request<Lambda.Types.ListLayersResponse, AWSError>; 324 /** 325 * Lists 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. 326 */ 327 listLayers(callback?: (err: AWSError, data: Lambda.Types.ListLayersResponse) => void): Request<Lambda.Types.ListLayersResponse, AWSError>; 328 /** 329 * Retrieves a list of provisioned concurrency configurations for a function. 330 */ 331 listProvisionedConcurrencyConfigs(params: Lambda.Types.ListProvisionedConcurrencyConfigsRequest, callback?: (err: AWSError, data: Lambda.Types.ListProvisionedConcurrencyConfigsResponse) => void): Request<Lambda.Types.ListProvisionedConcurrencyConfigsResponse, AWSError>; 332 /** 333 * Retrieves a list of provisioned concurrency configurations for a function. 334 */ 335 listProvisionedConcurrencyConfigs(callback?: (err: AWSError, data: Lambda.Types.ListProvisionedConcurrencyConfigsResponse) => void): Request<Lambda.Types.ListProvisionedConcurrencyConfigsResponse, AWSError>; 336 /** 337 * Returns a function's tags. You can also view tags with GetFunction. 338 */ 339 listTags(params: Lambda.Types.ListTagsRequest, callback?: (err: AWSError, data: Lambda.Types.ListTagsResponse) => void): Request<Lambda.Types.ListTagsResponse, AWSError>; 340 /** 341 * Returns a function's tags. You can also view tags with GetFunction. 342 */ 343 listTags(callback?: (err: AWSError, data: Lambda.Types.ListTagsResponse) => void): Request<Lambda.Types.ListTagsResponse, AWSError>; 344 /** 345 * Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call. 346 */ 347 listVersionsByFunction(params: Lambda.Types.ListVersionsByFunctionRequest, callback?: (err: AWSError, data: Lambda.Types.ListVersionsByFunctionResponse) => void): Request<Lambda.Types.ListVersionsByFunctionResponse, AWSError>; 348 /** 349 * Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call. 350 */ 351 listVersionsByFunction(callback?: (err: AWSError, data: Lambda.Types.ListVersionsByFunctionResponse) => void): Request<Lambda.Types.ListVersionsByFunctionResponse, AWSError>; 352 /** 353 * Creates an 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. 354 */ 355 publishLayerVersion(params: Lambda.Types.PublishLayerVersionRequest, callback?: (err: AWSError, data: Lambda.Types.PublishLayerVersionResponse) => void): Request<Lambda.Types.PublishLayerVersionResponse, AWSError>; 356 /** 357 * Creates an 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. 358 */ 359 publishLayerVersion(callback?: (err: AWSError, data: Lambda.Types.PublishLayerVersionResponse) => void): Request<Lambda.Types.PublishLayerVersionResponse, AWSError>; 360 /** 361 * 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. 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. 362 */ 363 publishVersion(params: Lambda.Types.PublishVersionRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 364 /** 365 * 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. 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. 366 */ 367 publishVersion(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 368 /** 369 * Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function. 370 */ 371 putFunctionCodeSigningConfig(params: Lambda.Types.PutFunctionCodeSigningConfigRequest, callback?: (err: AWSError, data: Lambda.Types.PutFunctionCodeSigningConfigResponse) => void): Request<Lambda.Types.PutFunctionCodeSigningConfigResponse, AWSError>; 372 /** 373 * Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function. 374 */ 375 putFunctionCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.PutFunctionCodeSigningConfigResponse) => void): Request<Lambda.Types.PutFunctionCodeSigningConfigResponse, AWSError>; 376 /** 377 * 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. 378 */ 379 putFunctionConcurrency(params: Lambda.Types.PutFunctionConcurrencyRequest, callback?: (err: AWSError, data: Lambda.Types.Concurrency) => void): Request<Lambda.Types.Concurrency, AWSError>; 380 /** 381 * 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. 382 */ 383 putFunctionConcurrency(callback?: (err: AWSError, data: Lambda.Types.Concurrency) => void): Request<Lambda.Types.Concurrency, AWSError>; 384 /** 385 * 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 UpdateFunctionEventInvokeConfig. 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. 386 */ 387 putFunctionEventInvokeConfig(params: Lambda.Types.PutFunctionEventInvokeConfigRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>; 388 /** 389 * 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 UpdateFunctionEventInvokeConfig. 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. 390 */ 391 putFunctionEventInvokeConfig(callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>; 392 /** 393 * Adds a provisioned concurrency configuration to a function's alias or version. 394 */ 395 putProvisionedConcurrencyConfig(params: Lambda.Types.PutProvisionedConcurrencyConfigRequest, callback?: (err: AWSError, data: Lambda.Types.PutProvisionedConcurrencyConfigResponse) => void): Request<Lambda.Types.PutProvisionedConcurrencyConfigResponse, AWSError>; 396 /** 397 * Adds a provisioned concurrency configuration to a function's alias or version. 398 */ 399 putProvisionedConcurrencyConfig(callback?: (err: AWSError, data: Lambda.Types.PutProvisionedConcurrencyConfigResponse) => void): Request<Lambda.Types.PutProvisionedConcurrencyConfigResponse, AWSError>; 400 /** 401 * Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission. 402 */ 403 removeLayerVersionPermission(params: Lambda.Types.RemoveLayerVersionPermissionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 404 /** 405 * Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission. 406 */ 407 removeLayerVersionPermission(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 408 /** 409 * Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement from the output of GetPolicy. 410 */ 411 removePermission(params: Lambda.Types.RemovePermissionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 412 /** 413 * Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement from the output of GetPolicy. 414 */ 415 removePermission(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 416 /** 417 * Adds tags to a function. 418 */ 419 tagResource(params: Lambda.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 420 /** 421 * Adds tags to a function. 422 */ 423 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 424 /** 425 * Removes tags from a function. 426 */ 427 untagResource(params: Lambda.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 428 /** 429 * Removes tags from a function. 430 */ 431 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 432 /** 433 * Updates the configuration of a Lambda function alias. 434 */ 435 updateAlias(params: Lambda.Types.UpdateAliasRequest, callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>; 436 /** 437 * Updates the configuration of a Lambda function alias. 438 */ 439 updateAlias(callback?: (err: AWSError, data: Lambda.Types.AliasConfiguration) => void): Request<Lambda.Types.AliasConfiguration, AWSError>; 440 /** 441 * Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function. 442 */ 443 updateCodeSigningConfig(params: Lambda.Types.UpdateCodeSigningConfigRequest, callback?: (err: AWSError, data: Lambda.Types.UpdateCodeSigningConfigResponse) => void): Request<Lambda.Types.UpdateCodeSigningConfigResponse, AWSError>; 444 /** 445 * Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function. 446 */ 447 updateCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.UpdateCodeSigningConfigResponse) => void): Request<Lambda.Types.UpdateCodeSigningConfigResponse, AWSError>; 448 /** 449 * Updates an event source mapping. You can change the function that 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. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor - Process multiple batches from each shard concurrently. 450 */ 451 updateEventSourceMapping(params: Lambda.Types.UpdateEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>; 452 /** 453 * Updates an event source mapping. You can change the function that 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. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor - Process multiple batches from each shard concurrently. 454 */ 455 updateEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>; 456 /** 457 * Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing. 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. For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function. 458 */ 459 updateFunctionCode(params: Lambda.Types.UpdateFunctionCodeRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 460 /** 461 * Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing. 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. For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function. 462 */ 463 updateFunctionCode(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 464 /** 465 * 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 Amazon Web Services service, use AddPermission. 466 */ 467 updateFunctionConfiguration(params: Lambda.Types.UpdateFunctionConfigurationRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 468 /** 469 * 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 Amazon Web Services service, use AddPermission. 470 */ 471 updateFunctionConfiguration(callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 472 /** 473 * Updates the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. 474 */ 475 updateFunctionEventInvokeConfig(params: Lambda.Types.UpdateFunctionEventInvokeConfigRequest, callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>; 476 /** 477 * Updates the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. 478 */ 479 updateFunctionEventInvokeConfig(callback?: (err: AWSError, data: Lambda.Types.FunctionEventInvokeConfig) => void): Request<Lambda.Types.FunctionEventInvokeConfig, AWSError>; 480 /** 481 * Waits for the functionExists state by periodically calling the underlying Lambda.getFunctionoperation every 1 seconds (at most 20 times). 482 */ 483 waitFor(state: "functionExists", params: Lambda.Types.GetFunctionRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: Lambda.Types.GetFunctionResponse) => void): Request<Lambda.Types.GetFunctionResponse, AWSError>; 484 /** 485 * Waits for the functionExists state by periodically calling the underlying Lambda.getFunctionoperation every 1 seconds (at most 20 times). 486 */ 487 waitFor(state: "functionExists", callback?: (err: AWSError, data: Lambda.Types.GetFunctionResponse) => void): Request<Lambda.Types.GetFunctionResponse, AWSError>; 488 /** 489 * 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. 490 */ 491 waitFor(state: "functionActive", params: Lambda.Types.GetFunctionConfigurationRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 492 /** 493 * 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. 494 */ 495 waitFor(state: "functionActive", callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 496 /** 497 * 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. 498 */ 499 waitFor(state: "functionUpdated", params: Lambda.Types.GetFunctionConfigurationRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 500 /** 501 * 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. 502 */ 503 waitFor(state: "functionUpdated", callback?: (err: AWSError, data: Lambda.Types.FunctionConfiguration) => void): Request<Lambda.Types.FunctionConfiguration, AWSError>; 504 } 505 declare namespace Lambda { 506 export interface AccountLimit { 507 /** 508 * The amount of storage space that you can use for all deployment packages and layer archives. 509 */ 510 TotalCodeSize?: Long; 511 /** 512 * The maximum size of a function's deployment package and layers when they're extracted. 513 */ 514 CodeSizeUnzipped?: Long; 515 /** 516 * The maximum size of a deployment package when it's uploaded directly to Lambda. Use Amazon S3 for larger files. 517 */ 518 CodeSizeZipped?: Long; 519 /** 520 * The maximum number of simultaneous function executions. 521 */ 522 ConcurrentExecutions?: Integer; 523 /** 524 * The maximum number of simultaneous function executions, minus the capacity that's reserved for individual functions with PutFunctionConcurrency. 525 */ 526 UnreservedConcurrentExecutions?: UnreservedConcurrentExecutions; 527 } 528 export interface AccountUsage { 529 /** 530 * The amount of storage space, in bytes, that's being used by deployment packages and layer archives. 531 */ 532 TotalCodeSize?: Long; 533 /** 534 * The number of Lambda functions. 535 */ 536 FunctionCount?: Long; 537 } 538 export type Action = string; 539 export interface AddLayerVersionPermissionRequest { 540 /** 541 * The name or Amazon Resource Name (ARN) of the layer. 542 */ 543 LayerName: LayerName; 544 /** 545 * The version number. 546 */ 547 VersionNumber: LayerVersionNumber; 548 /** 549 * An identifier that distinguishes the policy from others on the same layer version. 550 */ 551 StatementId: StatementId; 552 /** 553 * The API action that grants access to the layer. For example, lambda:GetLayerVersion. 554 */ 555 Action: LayerPermissionAllowedAction; 556 /** 557 * An account ID, or * to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if organizationId is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer. 558 */ 559 Principal: LayerPermissionAllowedPrincipal; 560 /** 561 * With the principal set to *, grant permission to all accounts in the specified organization. 562 */ 563 OrganizationId?: OrganizationId; 564 /** 565 * 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. 566 */ 567 RevisionId?: String; 568 } 569 export interface AddLayerVersionPermissionResponse { 570 /** 571 * The permission statement. 572 */ 573 Statement?: String; 574 /** 575 * A unique identifier for the current revision of the policy. 576 */ 577 RevisionId?: String; 578 } 579 export interface AddPermissionRequest { 580 /** 581 * 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. 582 */ 583 FunctionName: FunctionName; 584 /** 585 * A statement identifier that differentiates the statement from others in the same policy. 586 */ 587 StatementId: StatementId; 588 /** 589 * The action that the principal can use on the function. For example, lambda:InvokeFunction or lambda:GetFunction. 590 */ 591 Action: Action; 592 /** 593 * The Amazon Web Services 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. 594 */ 595 Principal: Principal; 596 /** 597 * For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic. 598 */ 599 SourceArn?: Arn; 600 /** 601 * 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. 602 */ 603 SourceAccount?: SourceOwner; 604 /** 605 * For Alexa Smart Home functions, a token that must be supplied by the invoker. 606 */ 607 EventSourceToken?: EventSourceToken; 608 /** 609 * Specify a version or alias to add permissions to a published version of the function. 610 */ 611 Qualifier?: Qualifier; 612 /** 613 * 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. 614 */ 615 RevisionId?: String; 616 } 617 export interface AddPermissionResponse { 618 /** 619 * The permission statement that's added to the function policy. 620 */ 621 Statement?: String; 622 } 623 export type AdditionalVersion = string; 624 export type AdditionalVersionWeights = {[key: string]: Weight}; 625 export type Alias = string; 626 export interface AliasConfiguration { 627 /** 628 * The Amazon Resource Name (ARN) of the alias. 629 */ 630 AliasArn?: FunctionArn; 631 /** 632 * The name of the alias. 633 */ 634 Name?: Alias; 635 /** 636 * The function version that the alias invokes. 637 */ 638 FunctionVersion?: Version; 639 /** 640 * A description of the alias. 641 */ 642 Description?: Description; 643 /** 644 * The routing configuration of the alias. 645 */ 646 RoutingConfig?: AliasRoutingConfiguration; 647 /** 648 * A unique identifier that changes when you update the alias. 649 */ 650 RevisionId?: String; 651 } 652 export type AliasList = AliasConfiguration[]; 653 export interface AliasRoutingConfiguration { 654 /** 655 * The second version, and the percentage of traffic that's routed to it. 656 */ 657 AdditionalVersionWeights?: AdditionalVersionWeights; 658 } 659 export interface AllowedPublishers { 660 /** 661 * The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package. 662 */ 663 SigningProfileVersionArns: SigningProfileVersionArns; 664 } 665 export type Arn = string; 666 export type BatchSize = number; 667 export type BisectBatchOnFunctionError = boolean; 668 export type _Blob = Buffer|Uint8Array|Blob|string; 669 export type BlobStream = Buffer|Uint8Array|Blob|string|Readable; 670 export type Boolean = boolean; 671 export interface CodeSigningConfig { 672 /** 673 * Unique identifer for the Code signing configuration. 674 */ 675 CodeSigningConfigId: CodeSigningConfigId; 676 /** 677 * The Amazon Resource Name (ARN) of the Code signing configuration. 678 */ 679 CodeSigningConfigArn: CodeSigningConfigArn; 680 /** 681 * Code signing configuration description. 682 */ 683 Description?: Description; 684 /** 685 * List of allowed publishers. 686 */ 687 AllowedPublishers: AllowedPublishers; 688 /** 689 * The code signing policy controls the validation failure action for signature mismatch or expiry. 690 */ 691 CodeSigningPolicies: CodeSigningPolicies; 692 /** 693 * The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). 694 */ 695 LastModified: Timestamp; 696 } 697 export type CodeSigningConfigArn = string; 698 export type CodeSigningConfigId = string; 699 export type CodeSigningConfigList = CodeSigningConfig[]; 700 export interface CodeSigningPolicies { 701 /** 702 * Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if signature validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Default value: Warn 703 */ 704 UntrustedArtifactOnDeployment?: CodeSigningPolicy; 705 } 706 export type CodeSigningPolicy = "Warn"|"Enforce"|string; 707 export type CompatibleRuntimes = Runtime[]; 708 export interface Concurrency { 709 /** 710 * The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency. 711 */ 712 ReservedConcurrentExecutions?: ReservedConcurrentExecutions; 713 } 714 export interface CreateAliasRequest { 715 /** 716 * 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. 717 */ 718 FunctionName: FunctionName; 719 /** 720 * The name of the alias. 721 */ 722 Name: Alias; 723 /** 724 * The function version that the alias invokes. 725 */ 726 FunctionVersion: Version; 727 /** 728 * A description of the alias. 729 */ 730 Description?: Description; 731 /** 732 * The routing configuration of the alias. 733 */ 734 RoutingConfig?: AliasRoutingConfiguration; 735 } 736 export interface CreateCodeSigningConfigRequest { 737 /** 738 * Descriptive name for this code signing configuration. 739 */ 740 Description?: Description; 741 /** 742 * Signing profiles for this code signing configuration. 743 */ 744 AllowedPublishers: AllowedPublishers; 745 /** 746 * The code signing policies define the actions to take if the validation checks fail. 747 */ 748 CodeSigningPolicies?: CodeSigningPolicies; 749 } 750 export interface CreateCodeSigningConfigResponse { 751 /** 752 * The code signing configuration. 753 */ 754 CodeSigningConfig: CodeSigningConfig; 755 } 756 export interface CreateEventSourceMappingRequest { 757 /** 758 * 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. Amazon Managed Streaming for Apache Kafka - The ARN of the cluster. 759 */ 760 EventSourceArn?: Arn; 761 /** 762 * 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. 763 */ 764 FunctionName: FunctionName; 765 /** 766 * If true, the event source mapping is active. Set to false to pause polling and invocation. 767 */ 768 Enabled?: Enabled; 769 /** 770 * 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. For standard queues the max is 10,000. For FIFO queues the max is 10. Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000. Self-Managed Apache Kafka - Default 100. Max 10,000. 771 */ 772 BatchSize?: BatchSize; 773 /** 774 * (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. 775 */ 776 MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds; 777 /** 778 * (Streams only) The number of batches to process from each shard concurrently. 779 */ 780 ParallelizationFactor?: ParallelizationFactor; 781 /** 782 * The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams. 783 */ 784 StartingPosition?: EventSourcePosition; 785 /** 786 * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. 787 */ 788 StartingPositionTimestamp?: _Date; 789 /** 790 * (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records. 791 */ 792 DestinationConfig?: DestinationConfig; 793 /** 794 * (Streams only) Discard records older than the specified age. The default value is infinite (-1). 795 */ 796 MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds; 797 /** 798 * (Streams only) If the function returns an error, split the batch in two and retry. 799 */ 800 BisectBatchOnFunctionError?: BisectBatchOnFunctionError; 801 /** 802 * (Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires. 803 */ 804 MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping; 805 /** 806 * (Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds. 807 */ 808 TumblingWindowInSeconds?: TumblingWindowInSeconds; 809 /** 810 * The name of the Kafka topic. 811 */ 812 Topics?: Topics; 813 /** 814 * (MQ) The name of the Amazon MQ broker destination queue to consume. 815 */ 816 Queues?: Queues; 817 /** 818 * An array of authentication protocols or VPC components required to secure your event source. 819 */ 820 SourceAccessConfigurations?: SourceAccessConfigurations; 821 /** 822 * The Self-Managed Apache Kafka cluster to send records. 823 */ 824 SelfManagedEventSource?: SelfManagedEventSource; 825 /** 826 * (Streams only) A list of current response type enums applied to the event source mapping. 827 */ 828 FunctionResponseTypes?: FunctionResponseTypeList; 829 } 830 export interface CreateFunctionRequest { 831 /** 832 * 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. 833 */ 834 FunctionName: FunctionName; 835 /** 836 * The identifier of the function's runtime. 837 */ 838 Runtime?: Runtime; 839 /** 840 * The Amazon Resource Name (ARN) of the function's execution role. 841 */ 842 Role: RoleArn; 843 /** 844 * 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. 845 */ 846 Handler?: Handler; 847 /** 848 * The code for the function. 849 */ 850 Code: FunctionCode; 851 /** 852 * A description of the function. 853 */ 854 Description?: Description; 855 /** 856 * 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. For additional information, see Lambda execution environment. 857 */ 858 Timeout?: Timeout; 859 /** 860 * The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB. 861 */ 862 MemorySize?: MemorySize; 863 /** 864 * Set to true to publish the first version of the function during creation. 865 */ 866 Publish?: Boolean; 867 /** 868 * For network connectivity to Amazon Web Services 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. 869 */ 870 VpcConfig?: VpcConfig; 871 /** 872 * The type of deployment package. Set to Image for container image and set Zip for ZIP archive. 873 */ 874 PackageType?: PackageType; 875 /** 876 * 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. 877 */ 878 DeadLetterConfig?: DeadLetterConfig; 879 /** 880 * Environment variables that are accessible from function code during execution. 881 */ 882 Environment?: Environment; 883 /** 884 * The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key. 885 */ 886 KMSKeyArn?: KMSKeyArn; 887 /** 888 * Set Mode to Active to sample and trace a subset of incoming requests with X-Ray. 889 */ 890 TracingConfig?: TracingConfig; 891 /** 892 * A list of tags to apply to the function. 893 */ 894 Tags?: Tags; 895 /** 896 * A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version. 897 */ 898 Layers?: LayerList; 899 /** 900 * Connection settings for an Amazon EFS file system. 901 */ 902 FileSystemConfigs?: FileSystemConfigList; 903 /** 904 * Container image configuration values that override the values in the container image Dockerfile. 905 */ 906 ImageConfig?: ImageConfig; 907 /** 908 * To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function. 909 */ 910 CodeSigningConfigArn?: CodeSigningConfigArn; 911 } 912 export type _Date = Date; 913 export interface DeadLetterConfig { 914 /** 915 * The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic. 916 */ 917 TargetArn?: ResourceArn; 918 } 919 export interface DeleteAliasRequest { 920 /** 921 * 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. 922 */ 923 FunctionName: FunctionName; 924 /** 925 * The name of the alias. 926 */ 927 Name: Alias; 928 } 929 export interface DeleteCodeSigningConfigRequest { 930 /** 931 * The The Amazon Resource Name (ARN) of the code signing configuration. 932 */ 933 CodeSigningConfigArn: CodeSigningConfigArn; 934 } 935 export interface DeleteCodeSigningConfigResponse { 936 } 937 export interface DeleteEventSourceMappingRequest { 938 /** 939 * The identifier of the event source mapping. 940 */ 941 UUID: String; 942 } 943 export interface DeleteFunctionCodeSigningConfigRequest { 944 /** 945 * 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. 946 */ 947 FunctionName: FunctionName; 948 } 949 export interface DeleteFunctionConcurrencyRequest { 950 /** 951 * 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. 952 */ 953 FunctionName: FunctionName; 954 } 955 export interface DeleteFunctionEventInvokeConfigRequest { 956 /** 957 * 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. 958 */ 959 FunctionName: FunctionName; 960 /** 961 * A version number or alias name. 962 */ 963 Qualifier?: Qualifier; 964 } 965 export interface DeleteFunctionRequest { 966 /** 967 * 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. 968 */ 969 FunctionName: FunctionName; 970 /** 971 * Specify a version to delete. You can't delete a version that's referenced by an alias. 972 */ 973 Qualifier?: Qualifier; 974 } 975 export interface DeleteLayerVersionRequest { 976 /** 977 * The name or Amazon Resource Name (ARN) of the layer. 978 */ 979 LayerName: LayerName; 980 /** 981 * The version number. 982 */ 983 VersionNumber: LayerVersionNumber; 984 } 985 export interface DeleteProvisionedConcurrencyConfigRequest { 986 /** 987 * 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. 988 */ 989 FunctionName: FunctionName; 990 /** 991 * The version number or alias name. 992 */ 993 Qualifier: Qualifier; 994 } 995 export type Description = string; 996 export type DestinationArn = string; 997 export interface DestinationConfig { 998 /** 999 * The destination configuration for successful invocations. 1000 */ 1001 OnSuccess?: OnSuccess; 1002 /** 1003 * The destination configuration for failed invocations. 1004 */ 1005 OnFailure?: OnFailure; 1006 } 1007 export type Enabled = boolean; 1008 export type EndPointType = "KAFKA_BOOTSTRAP_SERVERS"|string; 1009 export type Endpoint = string; 1010 export type EndpointLists = Endpoint[]; 1011 export type Endpoints = {[key: string]: EndpointLists}; 1012 export interface Environment { 1013 /** 1014 * Environment variable key-value pairs. For more information, see Using Lambda environment variables. 1015 */ 1016 Variables?: EnvironmentVariables; 1017 } 1018 export interface EnvironmentError { 1019 /** 1020 * The error code. 1021 */ 1022 ErrorCode?: String; 1023 /** 1024 * The error message. 1025 */ 1026 Message?: SensitiveString; 1027 } 1028 export interface EnvironmentResponse { 1029 /** 1030 * Environment variable key-value pairs. 1031 */ 1032 Variables?: EnvironmentVariables; 1033 /** 1034 * Error messages for environment variables that couldn't be applied. 1035 */ 1036 Error?: EnvironmentError; 1037 } 1038 export type EnvironmentVariableName = string; 1039 export type EnvironmentVariableValue = string; 1040 export type EnvironmentVariables = {[key: string]: EnvironmentVariableValue}; 1041 export interface EventSourceMappingConfiguration { 1042 /** 1043 * The identifier of the event source mapping. 1044 */ 1045 UUID?: String; 1046 /** 1047 * The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams. 1048 */ 1049 StartingPosition?: EventSourcePosition; 1050 /** 1051 * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. 1052 */ 1053 StartingPositionTimestamp?: _Date; 1054 /** 1055 * The maximum number of items to retrieve in a single batch. 1056 */ 1057 BatchSize?: BatchSize; 1058 /** 1059 * (Streams and Amazon SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero. 1060 */ 1061 MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds; 1062 /** 1063 * (Streams only) The number of batches to process concurrently from each shard. The default value is 1. 1064 */ 1065 ParallelizationFactor?: ParallelizationFactor; 1066 /** 1067 * The Amazon Resource Name (ARN) of the event source. 1068 */ 1069 EventSourceArn?: Arn; 1070 /** 1071 * The ARN of the Lambda function. 1072 */ 1073 FunctionArn?: FunctionArn; 1074 /** 1075 * The date that the event source mapping was last updated or that its state changed. 1076 */ 1077 LastModified?: _Date; 1078 /** 1079 * The result of the last Lambda invocation of your function. 1080 */ 1081 LastProcessingResult?: String; 1082 /** 1083 * The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. 1084 */ 1085 State?: String; 1086 /** 1087 * Indicates whether a user or Lambda made the last change to the event source mapping. 1088 */ 1089 StateTransitionReason?: String; 1090 /** 1091 * (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records. 1092 */ 1093 DestinationConfig?: DestinationConfig; 1094 /** 1095 * The name of the Kafka topic. 1096 */ 1097 Topics?: Topics; 1098 /** 1099 * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. 1100 */ 1101 Queues?: Queues; 1102 /** 1103 * An array of the authentication protocol, VPC components, or virtual host to secure and define your event source. 1104 */ 1105 SourceAccessConfigurations?: SourceAccessConfigurations; 1106 /** 1107 * The self-managed Apache Kafka cluster for your event source. 1108 */ 1109 SelfManagedEventSource?: SelfManagedEventSource; 1110 /** 1111 * (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records. 1112 */ 1113 MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds; 1114 /** 1115 * (Streams only) If the function returns an error, split the batch in two and retry. The default value is false. 1116 */ 1117 BisectBatchOnFunctionError?: BisectBatchOnFunctionError; 1118 /** 1119 * (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source. 1120 */ 1121 MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping; 1122 /** 1123 * (Streams only) The duration in seconds of a processing window. The range is 1–900 seconds. 1124 */ 1125 TumblingWindowInSeconds?: TumblingWindowInSeconds; 1126 /** 1127 * (Streams only) A list of current response type enums applied to the event source mapping. 1128 */ 1129 FunctionResponseTypes?: FunctionResponseTypeList; 1130 } 1131 export type EventSourceMappingsList = EventSourceMappingConfiguration[]; 1132 export type EventSourcePosition = "TRIM_HORIZON"|"LATEST"|"AT_TIMESTAMP"|string; 1133 export type EventSourceToken = string; 1134 export type FileSystemArn = string; 1135 export interface FileSystemConfig { 1136 /** 1137 * The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system. 1138 */ 1139 Arn: FileSystemArn; 1140 /** 1141 * The path where the function can access the file system, starting with /mnt/. 1142 */ 1143 LocalMountPath: LocalMountPath; 1144 } 1145 export type FileSystemConfigList = FileSystemConfig[]; 1146 export type FunctionArn = string; 1147 export type FunctionArnList = FunctionArn[]; 1148 export interface FunctionCode { 1149 /** 1150 * The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you. 1151 */ 1152 ZipFile?: _Blob; 1153 /** 1154 * An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. 1155 */ 1156 S3Bucket?: S3Bucket; 1157 /** 1158 * The Amazon S3 key of the deployment package. 1159 */ 1160 S3Key?: S3Key; 1161 /** 1162 * For versioned objects, the version of the deployment package object to use. 1163 */ 1164 S3ObjectVersion?: S3ObjectVersion; 1165 /** 1166 * URI of a container image in the Amazon ECR registry. 1167 */ 1168 ImageUri?: String; 1169 } 1170 export interface FunctionCodeLocation { 1171 /** 1172 * The service that's hosting the file. 1173 */ 1174 RepositoryType?: String; 1175 /** 1176 * A presigned URL that you can use to download the deployment package. 1177 */ 1178 Location?: String; 1179 /** 1180 * URI of a container image in the Amazon ECR registry. 1181 */ 1182 ImageUri?: String; 1183 /** 1184 * The resolved URI for the image. 1185 */ 1186 ResolvedImageUri?: String; 1187 } 1188 export interface FunctionConfiguration { 1189 /** 1190 * The name of the function. 1191 */ 1192 FunctionName?: NamespacedFunctionName; 1193 /** 1194 * The function's Amazon Resource Name (ARN). 1195 */ 1196 FunctionArn?: NameSpacedFunctionArn; 1197 /** 1198 * The runtime environment for the Lambda function. 1199 */ 1200 Runtime?: Runtime; 1201 /** 1202 * The function's execution role. 1203 */ 1204 Role?: RoleArn; 1205 /** 1206 * The function that Lambda calls to begin executing your function. 1207 */ 1208 Handler?: Handler; 1209 /** 1210 * The size of the function's deployment package, in bytes. 1211 */ 1212 CodeSize?: Long; 1213 /** 1214 * The function's description. 1215 */ 1216 Description?: Description; 1217 /** 1218 * The amount of time in seconds that Lambda allows a function to run before stopping it. 1219 */ 1220 Timeout?: Timeout; 1221 /** 1222 * The amount of memory available to the function at runtime. 1223 */ 1224 MemorySize?: MemorySize; 1225 /** 1226 * The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). 1227 */ 1228 LastModified?: Timestamp; 1229 /** 1230 * The SHA256 hash of the function's deployment package. 1231 */ 1232 CodeSha256?: String; 1233 /** 1234 * The version of the Lambda function. 1235 */ 1236 Version?: Version; 1237 /** 1238 * The function's networking configuration. 1239 */ 1240 VpcConfig?: VpcConfigResponse; 1241 /** 1242 * The function's dead letter queue. 1243 */ 1244 DeadLetterConfig?: DeadLetterConfig; 1245 /** 1246 * The function's environment variables. 1247 */ 1248 Environment?: EnvironmentResponse; 1249 /** 1250 * 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. 1251 */ 1252 KMSKeyArn?: KMSKeyArn; 1253 /** 1254 * The function's X-Ray tracing configuration. 1255 */ 1256 TracingConfig?: TracingConfigResponse; 1257 /** 1258 * For Lambda@Edge functions, the ARN of the master function. 1259 */ 1260 MasterArn?: FunctionArn; 1261 /** 1262 * The latest updated revision of the function or alias. 1263 */ 1264 RevisionId?: String; 1265 /** 1266 * The function's layers. 1267 */ 1268 Layers?: LayersReferenceList; 1269 /** 1270 * The current state of the function. When the state is Inactive, you can reactivate the function by invoking it. 1271 */ 1272 State?: State; 1273 /** 1274 * The reason for the function's current state. 1275 */ 1276 StateReason?: StateReason; 1277 /** 1278 * The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function. 1279 */ 1280 StateReasonCode?: StateReasonCode; 1281 /** 1282 * The status of the last update that was performed on the function. This is first set to Successful after function creation completes. 1283 */ 1284 LastUpdateStatus?: LastUpdateStatus; 1285 /** 1286 * The reason for the last update that was performed on the function. 1287 */ 1288 LastUpdateStatusReason?: LastUpdateStatusReason; 1289 /** 1290 * The reason code for the last update that was performed on the function. 1291 */ 1292 LastUpdateStatusReasonCode?: LastUpdateStatusReasonCode; 1293 /** 1294 * Connection settings for an Amazon EFS file system. 1295 */ 1296 FileSystemConfigs?: FileSystemConfigList; 1297 /** 1298 * The type of deployment package. Set to Image for container image and set Zip for .zip file archive. 1299 */ 1300 PackageType?: PackageType; 1301 /** 1302 * The function's image configuration values. 1303 */ 1304 ImageConfigResponse?: ImageConfigResponse; 1305 /** 1306 * The ARN of the signing profile version. 1307 */ 1308 SigningProfileVersionArn?: Arn; 1309 /** 1310 * The ARN of the signing job. 1311 */ 1312 SigningJobArn?: Arn; 1313 } 1314 export interface FunctionEventInvokeConfig { 1315 /** 1316 * The date and time that the configuration was last updated. 1317 */ 1318 LastModified?: _Date; 1319 /** 1320 * The Amazon Resource Name (ARN) of the function. 1321 */ 1322 FunctionArn?: FunctionArn; 1323 /** 1324 * The maximum number of times to retry when the function returns an error. 1325 */ 1326 MaximumRetryAttempts?: MaximumRetryAttempts; 1327 /** 1328 * The maximum age of a request that Lambda sends to a function for processing. 1329 */ 1330 MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds; 1331 /** 1332 * 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. 1333 */ 1334 DestinationConfig?: DestinationConfig; 1335 } 1336 export type FunctionEventInvokeConfigList = FunctionEventInvokeConfig[]; 1337 export type FunctionList = FunctionConfiguration[]; 1338 export type FunctionName = string; 1339 export type FunctionResponseType = "ReportBatchItemFailures"|string; 1340 export type FunctionResponseTypeList = FunctionResponseType[]; 1341 export type FunctionVersion = "ALL"|string; 1342 export interface GetAccountSettingsRequest { 1343 } 1344 export interface GetAccountSettingsResponse { 1345 /** 1346 * Limits that are related to concurrency and code storage. 1347 */ 1348 AccountLimit?: AccountLimit; 1349 /** 1350 * The number of functions and amount of storage in use. 1351 */ 1352 AccountUsage?: AccountUsage; 1353 } 1354 export interface GetAliasRequest { 1355 /** 1356 * 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. 1357 */ 1358 FunctionName: FunctionName; 1359 /** 1360 * The name of the alias. 1361 */ 1362 Name: Alias; 1363 } 1364 export interface GetCodeSigningConfigRequest { 1365 /** 1366 * The The Amazon Resource Name (ARN) of the code signing configuration. 1367 */ 1368 CodeSigningConfigArn: CodeSigningConfigArn; 1369 } 1370 export interface GetCodeSigningConfigResponse { 1371 /** 1372 * The code signing configuration 1373 */ 1374 CodeSigningConfig: CodeSigningConfig; 1375 } 1376 export interface GetEventSourceMappingRequest { 1377 /** 1378 * The identifier of the event source mapping. 1379 */ 1380 UUID: String; 1381 } 1382 export interface GetFunctionCodeSigningConfigRequest { 1383 /** 1384 * 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. 1385 */ 1386 FunctionName: FunctionName; 1387 } 1388 export interface GetFunctionCodeSigningConfigResponse { 1389 /** 1390 * The The Amazon Resource Name (ARN) of the code signing configuration. 1391 */ 1392 CodeSigningConfigArn: CodeSigningConfigArn; 1393 /** 1394 * 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. 1395 */ 1396 FunctionName: FunctionName; 1397 } 1398 export interface GetFunctionConcurrencyRequest { 1399 /** 1400 * 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. 1401 */ 1402 FunctionName: FunctionName; 1403 } 1404 export interface GetFunctionConcurrencyResponse { 1405 /** 1406 * The number of simultaneous executions that are reserved for the function. 1407 */ 1408 ReservedConcurrentExecutions?: ReservedConcurrentExecutions; 1409 } 1410 export interface GetFunctionConfigurationRequest { 1411 /** 1412 * 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. 1413 */ 1414 FunctionName: NamespacedFunctionName; 1415 /** 1416 * Specify a version or alias to get details about a published version of the function. 1417 */ 1418 Qualifier?: Qualifier; 1419 } 1420 export interface GetFunctionEventInvokeConfigRequest { 1421 /** 1422 * 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. 1423 */ 1424 FunctionName: FunctionName; 1425 /** 1426 * A version number or alias name. 1427 */ 1428 Qualifier?: Qualifier; 1429 } 1430 export interface GetFunctionRequest { 1431 /** 1432 * 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. 1433 */ 1434 FunctionName: NamespacedFunctionName; 1435 /** 1436 * Specify a version or alias to get details about a published version of the function. 1437 */ 1438 Qualifier?: Qualifier; 1439 } 1440 export interface GetFunctionResponse { 1441 /** 1442 * The configuration of the function or version. 1443 */ 1444 Configuration?: FunctionConfiguration; 1445 /** 1446 * The deployment package of the function or version. 1447 */ 1448 Code?: FunctionCodeLocation; 1449 /** 1450 * The function's tags. 1451 */ 1452 Tags?: Tags; 1453 /** 1454 * The function's reserved concurrency. 1455 */ 1456 Concurrency?: Concurrency; 1457 } 1458 export interface GetLayerVersionByArnRequest { 1459 /** 1460 * The ARN of the layer version. 1461 */ 1462 Arn: LayerVersionArn; 1463 } 1464 export interface GetLayerVersionPolicyRequest { 1465 /** 1466 * The name or Amazon Resource Name (ARN) of the layer. 1467 */ 1468 LayerName: LayerName; 1469 /** 1470 * The version number. 1471 */ 1472 VersionNumber: LayerVersionNumber; 1473 } 1474 export interface GetLayerVersionPolicyResponse { 1475 /** 1476 * The policy document. 1477 */ 1478 Policy?: String; 1479 /** 1480 * A unique identifier for the current revision of the policy. 1481 */ 1482 RevisionId?: String; 1483 } 1484 export interface GetLayerVersionRequest { 1485 /** 1486 * The name or Amazon Resource Name (ARN) of the layer. 1487 */ 1488 LayerName: LayerName; 1489 /** 1490 * The version number. 1491 */ 1492 VersionNumber: LayerVersionNumber; 1493 } 1494 export interface GetLayerVersionResponse { 1495 /** 1496 * Details about the layer version. 1497 */ 1498 Content?: LayerVersionContentOutput; 1499 /** 1500 * The ARN of the layer. 1501 */ 1502 LayerArn?: LayerArn; 1503 /** 1504 * The ARN of the layer version. 1505 */ 1506 LayerVersionArn?: LayerVersionArn; 1507 /** 1508 * The description of the version. 1509 */ 1510 Description?: Description; 1511 /** 1512 * The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). 1513 */ 1514 CreatedDate?: Timestamp; 1515 /** 1516 * The version number. 1517 */ 1518 Version?: LayerVersionNumber; 1519 /** 1520 * The layer's compatible runtimes. 1521 */ 1522 CompatibleRuntimes?: CompatibleRuntimes; 1523 /** 1524 * The layer's software license. 1525 */ 1526 LicenseInfo?: LicenseInfo; 1527 } 1528 export interface GetPolicyRequest { 1529 /** 1530 * 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. 1531 */ 1532 FunctionName: NamespacedFunctionName; 1533 /** 1534 * Specify a version or alias to get the policy for that resource. 1535 */ 1536 Qualifier?: Qualifier; 1537 } 1538 export interface GetPolicyResponse { 1539 /** 1540 * The resource-based policy. 1541 */ 1542 Policy?: String; 1543 /** 1544 * A unique identifier for the current revision of the policy. 1545 */ 1546 RevisionId?: String; 1547 } 1548 export interface GetProvisionedConcurrencyConfigRequest { 1549 /** 1550 * 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. 1551 */ 1552 FunctionName: FunctionName; 1553 /** 1554 * The version number or alias name. 1555 */ 1556 Qualifier: Qualifier; 1557 } 1558 export interface GetProvisionedConcurrencyConfigResponse { 1559 /** 1560 * The amount of provisioned concurrency requested. 1561 */ 1562 RequestedProvisionedConcurrentExecutions?: PositiveInteger; 1563 /** 1564 * The amount of provisioned concurrency available. 1565 */ 1566 AvailableProvisionedConcurrentExecutions?: NonNegativeInteger; 1567 /** 1568 * The amount of provisioned concurrency allocated. 1569 */ 1570 AllocatedProvisionedConcurrentExecutions?: NonNegativeInteger; 1571 /** 1572 * The status of the allocation process. 1573 */ 1574 Status?: ProvisionedConcurrencyStatusEnum; 1575 /** 1576 * For failed allocations, the reason that provisioned concurrency could not be allocated. 1577 */ 1578 StatusReason?: String; 1579 /** 1580 * The date and time that a user last updated the configuration, in ISO 8601 format. 1581 */ 1582 LastModified?: Timestamp; 1583 } 1584 export type Handler = string; 1585 export type HttpStatus = number; 1586 export interface ImageConfig { 1587 /** 1588 * Specifies the entry point to their application, which is typically the location of the runtime executable. 1589 */ 1590 EntryPoint?: StringList; 1591 /** 1592 * Specifies parameters that you want to pass in with ENTRYPOINT. 1593 */ 1594 Command?: StringList; 1595 /** 1596 * Specifies the working directory. 1597 */ 1598 WorkingDirectory?: WorkingDirectory; 1599 } 1600 export interface ImageConfigError { 1601 /** 1602 * Error code. 1603 */ 1604 ErrorCode?: String; 1605 /** 1606 * Error message. 1607 */ 1608 Message?: SensitiveString; 1609 } 1610 export interface ImageConfigResponse { 1611 /** 1612 * Configuration values that override the container image Dockerfile. 1613 */ 1614 ImageConfig?: ImageConfig; 1615 /** 1616 * Error response to GetFunctionConfiguration. 1617 */ 1618 Error?: ImageConfigError; 1619 } 1620 export type Integer = number; 1621 export interface InvocationRequest { 1622 /** 1623 * 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. 1624 */ 1625 FunctionName: NamespacedFunctionName; 1626 /** 1627 * 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. 1628 */ 1629 InvocationType?: InvocationType; 1630 /** 1631 * Set to Tail to include the execution log in the response. 1632 */ 1633 LogType?: LogType; 1634 /** 1635 * Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. 1636 */ 1637 ClientContext?: String; 1638 /** 1639 * The JSON that you want to provide to your Lambda function as input. 1640 */ 1641 Payload?: _Blob; 1642 /** 1643 * Specify a version or alias to invoke a published version of the function. 1644 */ 1645 Qualifier?: Qualifier; 1646 } 1647 export interface InvocationResponse { 1648 /** 1649 * 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. 1650 */ 1651 StatusCode?: Integer; 1652 /** 1653 * If present, indicates that an error occurred during function execution. Details about the error are included in the response payload. 1654 */ 1655 FunctionError?: String; 1656 /** 1657 * The last 4 KB of the execution log, which is base64 encoded. 1658 */ 1659 LogResult?: String; 1660 /** 1661 * The response from the function, or an error object. 1662 */ 1663 Payload?: _Blob; 1664 /** 1665 * The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to. 1666 */ 1667 ExecutedVersion?: Version; 1668 } 1669 export type InvocationType = "Event"|"RequestResponse"|"DryRun"|string; 1670 export interface InvokeAsyncRequest { 1671 /** 1672 * 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. 1673 */ 1674 FunctionName: NamespacedFunctionName; 1675 /** 1676 * The JSON that you want to provide to your Lambda function as input. 1677 */ 1678 InvokeArgs: BlobStream; 1679 } 1680 export interface InvokeAsyncResponse { 1681 /** 1682 * The status code. 1683 */ 1684 Status?: HttpStatus; 1685 } 1686 export type KMSKeyArn = string; 1687 export type LastUpdateStatus = "Successful"|"Failed"|"InProgress"|string; 1688 export type LastUpdateStatusReason = string; 1689 export type LastUpdateStatusReasonCode = "EniLimitExceeded"|"InsufficientRolePermissions"|"InvalidConfiguration"|"InternalError"|"SubnetOutOfIPAddresses"|"InvalidSubnet"|"InvalidSecurityGroup"|"ImageDeleted"|"ImageAccessDenied"|"InvalidImage"|string; 1690 export interface Layer { 1691 /** 1692 * The Amazon Resource Name (ARN) of the function layer. 1693 */ 1694 Arn?: LayerVersionArn; 1695 /** 1696 * The size of the layer archive in bytes. 1697 */ 1698 CodeSize?: Long; 1699 /** 1700 * The Amazon Resource Name (ARN) for a signing profile version. 1701 */ 1702 SigningProfileVersionArn?: Arn; 1703 /** 1704 * The Amazon Resource Name (ARN) of a signing job. 1705 */ 1706 SigningJobArn?: Arn; 1707 } 1708 export type LayerArn = string; 1709 export type LayerList = LayerVersionArn[]; 1710 export type LayerName = string; 1711 export type LayerPermissionAllowedAction = string; 1712 export type LayerPermissionAllowedPrincipal = string; 1713 export type LayerVersionArn = string; 1714 export interface LayerVersionContentInput { 1715 /** 1716 * The Amazon S3 bucket of the layer archive. 1717 */ 1718 S3Bucket?: S3Bucket; 1719 /** 1720 * The Amazon S3 key of the layer archive. 1721 */ 1722 S3Key?: S3Key; 1723 /** 1724 * For versioned objects, the version of the layer archive object to use. 1725 */ 1726 S3ObjectVersion?: S3ObjectVersion; 1727 /** 1728 * The base64-encoded contents of the layer archive. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you. 1729 */ 1730 ZipFile?: _Blob; 1731 } 1732 export interface LayerVersionContentOutput { 1733 /** 1734 * A link to the layer archive in Amazon S3 that is valid for 10 minutes. 1735 */ 1736 Location?: String; 1737 /** 1738 * The SHA-256 hash of the layer archive. 1739 */ 1740 CodeSha256?: String; 1741 /** 1742 * The size of the layer archive in bytes. 1743 */ 1744 CodeSize?: Long; 1745 /** 1746 * The Amazon Resource Name (ARN) for a signing profile version. 1747 */ 1748 SigningProfileVersionArn?: String; 1749 /** 1750 * The Amazon Resource Name (ARN) of a signing job. 1751 */ 1752 SigningJobArn?: String; 1753 } 1754 export type LayerVersionNumber = number; 1755 export type LayerVersionsList = LayerVersionsListItem[]; 1756 export interface LayerVersionsListItem { 1757 /** 1758 * The ARN of the layer version. 1759 */ 1760 LayerVersionArn?: LayerVersionArn; 1761 /** 1762 * The version number. 1763 */ 1764 Version?: LayerVersionNumber; 1765 /** 1766 * The description of the version. 1767 */ 1768 Description?: Description; 1769 /** 1770 * The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000. 1771 */ 1772 CreatedDate?: Timestamp; 1773 /** 1774 * The layer's compatible runtimes. 1775 */ 1776 CompatibleRuntimes?: CompatibleRuntimes; 1777 /** 1778 * The layer's open-source license. 1779 */ 1780 LicenseInfo?: LicenseInfo; 1781 } 1782 export type LayersList = LayersListItem[]; 1783 export interface LayersListItem { 1784 /** 1785 * The name of the layer. 1786 */ 1787 LayerName?: LayerName; 1788 /** 1789 * The Amazon Resource Name (ARN) of the function layer. 1790 */ 1791 LayerArn?: LayerArn; 1792 /** 1793 * The newest version of the layer. 1794 */ 1795 LatestMatchingVersion?: LayerVersionsListItem; 1796 } 1797 export type LayersReferenceList = Layer[]; 1798 export type LicenseInfo = string; 1799 export interface ListAliasesRequest { 1800 /** 1801 * 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. 1802 */ 1803 FunctionName: FunctionName; 1804 /** 1805 * Specify a function version to only list aliases that invoke that version. 1806 */ 1807 FunctionVersion?: Version; 1808 /** 1809 * Specify the pagination token that's returned by a previous request to retrieve the next page of results. 1810 */ 1811 Marker?: String; 1812 /** 1813 * Limit the number of aliases returned. 1814 */ 1815 MaxItems?: MaxListItems; 1816 } 1817 export interface ListAliasesResponse { 1818 /** 1819 * The pagination token that's included if more results are available. 1820 */ 1821 NextMarker?: String; 1822 /** 1823 * A list of aliases. 1824 */ 1825 Aliases?: AliasList; 1826 } 1827 export interface ListCodeSigningConfigsRequest { 1828 /** 1829 * Specify the pagination token that's returned by a previous request to retrieve the next page of results. 1830 */ 1831 Marker?: String; 1832 /** 1833 * Maximum number of items to return. 1834 */ 1835 MaxItems?: MaxListItems; 1836 } 1837 export interface ListCodeSigningConfigsResponse { 1838 /** 1839 * The pagination token that's included if more results are available. 1840 */ 1841 NextMarker?: String; 1842 /** 1843 * The code signing configurations 1844 */ 1845 CodeSigningConfigs?: CodeSigningConfigList; 1846 } 1847 export interface ListEventSourceMappingsRequest { 1848 /** 1849 * 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. Amazon Managed Streaming for Apache Kafka - The ARN of the cluster. 1850 */ 1851 EventSourceArn?: Arn; 1852 /** 1853 * 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. 1854 */ 1855 FunctionName?: FunctionName; 1856 /** 1857 * A pagination token returned by a previous call. 1858 */ 1859 Marker?: String; 1860 /** 1861 * The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher. 1862 */ 1863 MaxItems?: MaxListItems; 1864 } 1865 export interface ListEventSourceMappingsResponse { 1866 /** 1867 * A pagination token that's returned when the response doesn't contain all event source mappings. 1868 */ 1869 NextMarker?: String; 1870 /** 1871 * A list of event source mappings. 1872 */ 1873 EventSourceMappings?: EventSourceMappingsList; 1874 } 1875 export interface ListFunctionEventInvokeConfigsRequest { 1876 /** 1877 * 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. 1878 */ 1879 FunctionName: FunctionName; 1880 /** 1881 * Specify the pagination token that's returned by a previous request to retrieve the next page of results. 1882 */ 1883 Marker?: String; 1884 /** 1885 * The maximum number of configurations to return. 1886 */ 1887 MaxItems?: MaxFunctionEventInvokeConfigListItems; 1888 } 1889 export interface ListFunctionEventInvokeConfigsResponse { 1890 /** 1891 * A list of configurations. 1892 */ 1893 FunctionEventInvokeConfigs?: FunctionEventInvokeConfigList; 1894 /** 1895 * The pagination token that's included if more results are available. 1896 */ 1897 NextMarker?: String; 1898 } 1899 export interface ListFunctionsByCodeSigningConfigRequest { 1900 /** 1901 * The The Amazon Resource Name (ARN) of the code signing configuration. 1902 */ 1903 CodeSigningConfigArn: CodeSigningConfigArn; 1904 /** 1905 * Specify the pagination token that's returned by a previous request to retrieve the next page of results. 1906 */ 1907 Marker?: String; 1908 /** 1909 * Maximum number of items to return. 1910 */ 1911 MaxItems?: MaxListItems; 1912 } 1913 export interface ListFunctionsByCodeSigningConfigResponse { 1914 /** 1915 * The pagination token that's included if more results are available. 1916 */ 1917 NextMarker?: String; 1918 /** 1919 * The function ARNs. 1920 */ 1921 FunctionArns?: FunctionArnList; 1922 } 1923 export interface ListFunctionsRequest { 1924 /** 1925 * For Lambda@Edge functions, the Amazon Web Services 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. 1926 */ 1927 MasterRegion?: MasterRegion; 1928 /** 1929 * Set to ALL to include entries for all published versions of each function. 1930 */ 1931 FunctionVersion?: FunctionVersion; 1932 /** 1933 * Specify the pagination token that's returned by a previous request to retrieve the next page of results. 1934 */ 1935 Marker?: String; 1936 /** 1937 * The maximum number of functions to return in the response. Note that ListFunctions returns a maximum of 50 items in each response, even if you set the number higher. 1938 */ 1939 MaxItems?: MaxListItems; 1940 } 1941 export interface ListFunctionsResponse { 1942 /** 1943 * The pagination token that's included if more results are available. 1944 */ 1945 NextMarker?: String; 1946 /** 1947 * A list of Lambda functions. 1948 */ 1949 Functions?: FunctionList; 1950 } 1951 export interface ListLayerVersionsRequest { 1952 /** 1953 * A runtime identifier. For example, go1.x. 1954 */ 1955 CompatibleRuntime?: Runtime; 1956 /** 1957 * The name or Amazon Resource Name (ARN) of the layer. 1958 */ 1959 LayerName: LayerName; 1960 /** 1961 * A pagination token returned by a previous call. 1962 */ 1963 Marker?: String; 1964 /** 1965 * The maximum number of versions to return. 1966 */ 1967 MaxItems?: MaxLayerListItems; 1968 } 1969 export interface ListLayerVersionsResponse { 1970 /** 1971 * A pagination token returned when the response doesn't contain all versions. 1972 */ 1973 NextMarker?: String; 1974 /** 1975 * A list of versions. 1976 */ 1977 LayerVersions?: LayerVersionsList; 1978 } 1979 export interface ListLayersRequest { 1980 /** 1981 * A runtime identifier. For example, go1.x. 1982 */ 1983 CompatibleRuntime?: Runtime; 1984 /** 1985 * A pagination token returned by a previous call. 1986 */ 1987 Marker?: String; 1988 /** 1989 * The maximum number of layers to return. 1990 */ 1991 MaxItems?: MaxLayerListItems; 1992 } 1993 export interface ListLayersResponse { 1994 /** 1995 * A pagination token returned when the response doesn't contain all layers. 1996 */ 1997 NextMarker?: String; 1998 /** 1999 * A list of function layers. 2000 */ 2001 Layers?: LayersList; 2002 } 2003 export interface ListProvisionedConcurrencyConfigsRequest { 2004 /** 2005 * 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. 2006 */ 2007 FunctionName: FunctionName; 2008 /** 2009 * Specify the pagination token that's returned by a previous request to retrieve the next page of results. 2010 */ 2011 Marker?: String; 2012 /** 2013 * Specify a number to limit the number of configurations returned. 2014 */ 2015 MaxItems?: MaxProvisionedConcurrencyConfigListItems; 2016 } 2017 export interface ListProvisionedConcurrencyConfigsResponse { 2018 /** 2019 * A list of provisioned concurrency configurations. 2020 */ 2021 ProvisionedConcurrencyConfigs?: ProvisionedConcurrencyConfigList; 2022 /** 2023 * The pagination token that's included if more results are available. 2024 */ 2025 NextMarker?: String; 2026 } 2027 export interface ListTagsRequest { 2028 /** 2029 * The function's Amazon Resource Name (ARN). 2030 */ 2031 Resource: FunctionArn; 2032 } 2033 export interface ListTagsResponse { 2034 /** 2035 * The function's tags. 2036 */ 2037 Tags?: Tags; 2038 } 2039 export interface ListVersionsByFunctionRequest { 2040 /** 2041 * 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. 2042 */ 2043 FunctionName: NamespacedFunctionName; 2044 /** 2045 * Specify the pagination token that's returned by a previous request to retrieve the next page of results. 2046 */ 2047 Marker?: String; 2048 /** 2049 * The maximum number of versions to return. Note that ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher. 2050 */ 2051 MaxItems?: MaxListItems; 2052 } 2053 export interface ListVersionsByFunctionResponse { 2054 /** 2055 * The pagination token that's included if more results are available. 2056 */ 2057 NextMarker?: String; 2058 /** 2059 * A list of Lambda function versions. 2060 */ 2061 Versions?: FunctionList; 2062 } 2063 export type LocalMountPath = string; 2064 export type LogType = "None"|"Tail"|string; 2065 export type Long = number; 2066 export type MasterRegion = string; 2067 export type MaxFunctionEventInvokeConfigListItems = number; 2068 export type MaxLayerListItems = number; 2069 export type MaxListItems = number; 2070 export type MaxProvisionedConcurrencyConfigListItems = number; 2071 export type MaximumBatchingWindowInSeconds = number; 2072 export type MaximumEventAgeInSeconds = number; 2073 export type MaximumRecordAgeInSeconds = number; 2074 export type MaximumRetryAttempts = number; 2075 export type MaximumRetryAttemptsEventSourceMapping = number; 2076 export type MemorySize = number; 2077 export type NameSpacedFunctionArn = string; 2078 export type NamespacedFunctionName = string; 2079 export type NamespacedStatementId = string; 2080 export type NonNegativeInteger = number; 2081 export interface OnFailure { 2082 /** 2083 * The Amazon Resource Name (ARN) of the destination resource. 2084 */ 2085 Destination?: DestinationArn; 2086 } 2087 export interface OnSuccess { 2088 /** 2089 * The Amazon Resource Name (ARN) of the destination resource. 2090 */ 2091 Destination?: DestinationArn; 2092 } 2093 export type OrganizationId = string; 2094 export type PackageType = "Zip"|"Image"|string; 2095 export type ParallelizationFactor = number; 2096 export type PositiveInteger = number; 2097 export type Principal = string; 2098 export type ProvisionedConcurrencyConfigList = ProvisionedConcurrencyConfigListItem[]; 2099 export interface ProvisionedConcurrencyConfigListItem { 2100 /** 2101 * The Amazon Resource Name (ARN) of the alias or version. 2102 */ 2103 FunctionArn?: FunctionArn; 2104 /** 2105 * The amount of provisioned concurrency requested. 2106 */ 2107 RequestedProvisionedConcurrentExecutions?: PositiveInteger; 2108 /** 2109 * The amount of provisioned concurrency available. 2110 */ 2111 AvailableProvisionedConcurrentExecutions?: NonNegativeInteger; 2112 /** 2113 * The amount of provisioned concurrency allocated. 2114 */ 2115 AllocatedProvisionedConcurrentExecutions?: NonNegativeInteger; 2116 /** 2117 * The status of the allocation process. 2118 */ 2119 Status?: ProvisionedConcurrencyStatusEnum; 2120 /** 2121 * For failed allocations, the reason that provisioned concurrency could not be allocated. 2122 */ 2123 StatusReason?: String; 2124 /** 2125 * The date and time that a user last updated the configuration, in ISO 8601 format. 2126 */ 2127 LastModified?: Timestamp; 2128 } 2129 export type ProvisionedConcurrencyStatusEnum = "IN_PROGRESS"|"READY"|"FAILED"|string; 2130 export interface PublishLayerVersionRequest { 2131 /** 2132 * The name or Amazon Resource Name (ARN) of the layer. 2133 */ 2134 LayerName: LayerName; 2135 /** 2136 * The description of the version. 2137 */ 2138 Description?: Description; 2139 /** 2140 * The function layer archive. 2141 */ 2142 Content: LayerVersionContentInput; 2143 /** 2144 * A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions. 2145 */ 2146 CompatibleRuntimes?: CompatibleRuntimes; 2147 /** 2148 * 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. 2149 */ 2150 LicenseInfo?: LicenseInfo; 2151 } 2152 export interface PublishLayerVersionResponse { 2153 /** 2154 * Details about the layer version. 2155 */ 2156 Content?: LayerVersionContentOutput; 2157 /** 2158 * The ARN of the layer. 2159 */ 2160 LayerArn?: LayerArn; 2161 /** 2162 * The ARN of the layer version. 2163 */ 2164 LayerVersionArn?: LayerVersionArn; 2165 /** 2166 * The description of the version. 2167 */ 2168 Description?: Description; 2169 /** 2170 * The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). 2171 */ 2172 CreatedDate?: Timestamp; 2173 /** 2174 * The version number. 2175 */ 2176 Version?: LayerVersionNumber; 2177 /** 2178 * The layer's compatible runtimes. 2179 */ 2180 CompatibleRuntimes?: CompatibleRuntimes; 2181 /** 2182 * The layer's software license. 2183 */ 2184 LicenseInfo?: LicenseInfo; 2185 } 2186 export interface PublishVersionRequest { 2187 /** 2188 * 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. 2189 */ 2190 FunctionName: FunctionName; 2191 /** 2192 * 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. 2193 */ 2194 CodeSha256?: String; 2195 /** 2196 * A description for the version to override the description in the function configuration. 2197 */ 2198 Description?: Description; 2199 /** 2200 * 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. 2201 */ 2202 RevisionId?: String; 2203 } 2204 export interface PutFunctionCodeSigningConfigRequest { 2205 /** 2206 * The The Amazon Resource Name (ARN) of the code signing configuration. 2207 */ 2208 CodeSigningConfigArn: CodeSigningConfigArn; 2209 /** 2210 * 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. 2211 */ 2212 FunctionName: FunctionName; 2213 } 2214 export interface PutFunctionCodeSigningConfigResponse { 2215 /** 2216 * The The Amazon Resource Name (ARN) of the code signing configuration. 2217 */ 2218 CodeSigningConfigArn: CodeSigningConfigArn; 2219 /** 2220 * 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. 2221 */ 2222 FunctionName: FunctionName; 2223 } 2224 export interface PutFunctionConcurrencyRequest { 2225 /** 2226 * 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. 2227 */ 2228 FunctionName: FunctionName; 2229 /** 2230 * The number of simultaneous executions to reserve for the function. 2231 */ 2232 ReservedConcurrentExecutions: ReservedConcurrentExecutions; 2233 } 2234 export interface PutFunctionEventInvokeConfigRequest { 2235 /** 2236 * 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. 2237 */ 2238 FunctionName: FunctionName; 2239 /** 2240 * A version number or alias name. 2241 */ 2242 Qualifier?: Qualifier; 2243 /** 2244 * The maximum number of times to retry when the function returns an error. 2245 */ 2246 MaximumRetryAttempts?: MaximumRetryAttempts; 2247 /** 2248 * The maximum age of a request that Lambda sends to a function for processing. 2249 */ 2250 MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds; 2251 /** 2252 * 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. 2253 */ 2254 DestinationConfig?: DestinationConfig; 2255 } 2256 export interface PutProvisionedConcurrencyConfigRequest { 2257 /** 2258 * 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. 2259 */ 2260 FunctionName: FunctionName; 2261 /** 2262 * The version number or alias name. 2263 */ 2264 Qualifier: Qualifier; 2265 /** 2266 * The amount of provisioned concurrency to allocate for the version or alias. 2267 */ 2268 ProvisionedConcurrentExecutions: PositiveInteger; 2269 } 2270 export interface PutProvisionedConcurrencyConfigResponse { 2271 /** 2272 * The amount of provisioned concurrency requested. 2273 */ 2274 RequestedProvisionedConcurrentExecutions?: PositiveInteger; 2275 /** 2276 * The amount of provisioned concurrency available. 2277 */ 2278 AvailableProvisionedConcurrentExecutions?: NonNegativeInteger; 2279 /** 2280 * The amount of provisioned concurrency allocated. 2281 */ 2282 AllocatedProvisionedConcurrentExecutions?: NonNegativeInteger; 2283 /** 2284 * The status of the allocation process. 2285 */ 2286 Status?: ProvisionedConcurrencyStatusEnum; 2287 /** 2288 * For failed allocations, the reason that provisioned concurrency could not be allocated. 2289 */ 2290 StatusReason?: String; 2291 /** 2292 * The date and time that a user last updated the configuration, in ISO 8601 format. 2293 */ 2294 LastModified?: Timestamp; 2295 } 2296 export type Qualifier = string; 2297 export type Queue = string; 2298 export type Queues = Queue[]; 2299 export interface RemoveLayerVersionPermissionRequest { 2300 /** 2301 * The name or Amazon Resource Name (ARN) of the layer. 2302 */ 2303 LayerName: LayerName; 2304 /** 2305 * The version number. 2306 */ 2307 VersionNumber: LayerVersionNumber; 2308 /** 2309 * The identifier that was specified when the statement was added. 2310 */ 2311 StatementId: StatementId; 2312 /** 2313 * 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. 2314 */ 2315 RevisionId?: String; 2316 } 2317 export interface RemovePermissionRequest { 2318 /** 2319 * 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. 2320 */ 2321 FunctionName: FunctionName; 2322 /** 2323 * Statement ID of the permission to remove. 2324 */ 2325 StatementId: NamespacedStatementId; 2326 /** 2327 * Specify a version or alias to remove permissions from a published version of the function. 2328 */ 2329 Qualifier?: Qualifier; 2330 /** 2331 * 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. 2332 */ 2333 RevisionId?: String; 2334 } 2335 export type ReservedConcurrentExecutions = number; 2336 export type ResourceArn = string; 2337 export type RoleArn = string; 2338 export type Runtime = "nodejs"|"nodejs4.3"|"nodejs6.10"|"nodejs8.10"|"nodejs10.x"|"nodejs12.x"|"nodejs14.x"|"java8"|"java8.al2"|"java11"|"python2.7"|"python3.6"|"python3.7"|"python3.8"|"python3.9"|"dotnetcore1.0"|"dotnetcore2.0"|"dotnetcore2.1"|"dotnetcore3.1"|"nodejs4.3-edge"|"go1.x"|"ruby2.5"|"ruby2.7"|"provided"|"provided.al2"|string; 2339 export type S3Bucket = string; 2340 export type S3Key = string; 2341 export type S3ObjectVersion = string; 2342 export type SecurityGroupId = string; 2343 export type SecurityGroupIds = SecurityGroupId[]; 2344 export interface SelfManagedEventSource { 2345 /** 2346 * The list of bootstrap servers for your Kafka brokers in the following format: "KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]. 2347 */ 2348 Endpoints?: Endpoints; 2349 } 2350 export type SensitiveString = string; 2351 export type SigningProfileVersionArns = Arn[]; 2352 export interface SourceAccessConfiguration { 2353 /** 2354 * The type of authentication protocol, VPC components, or virtual host for your event source. For example: "Type":"SASL_SCRAM_512_AUTH". BASIC_AUTH - (Amazon MQ) The Secrets Manager secret that stores your broker credentials. BASIC_AUTH - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers. VPC_SUBNET - The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster. VPC_SECURITY_GROUP - The VPC security group used to manage access to your self-managed Apache Kafka brokers. SASL_SCRAM_256_AUTH - The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers. SASL_SCRAM_512_AUTH - The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers. VIRTUAL_HOST - (Amazon MQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. 2355 */ 2356 Type?: SourceAccessType; 2357 /** 2358 * The value for your chosen configuration in Type. For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName". 2359 */ 2360 URI?: URI; 2361 } 2362 export type SourceAccessConfigurations = SourceAccessConfiguration[]; 2363 export type SourceAccessType = "BASIC_AUTH"|"VPC_SUBNET"|"VPC_SECURITY_GROUP"|"SASL_SCRAM_512_AUTH"|"SASL_SCRAM_256_AUTH"|"VIRTUAL_HOST"|string; 2364 export type SourceOwner = string; 2365 export type State = "Pending"|"Active"|"Inactive"|"Failed"|string; 2366 export type StateReason = string; 2367 export type StateReasonCode = "Idle"|"Creating"|"Restoring"|"EniLimitExceeded"|"InsufficientRolePermissions"|"InvalidConfiguration"|"InternalError"|"SubnetOutOfIPAddresses"|"InvalidSubnet"|"InvalidSecurityGroup"|"ImageDeleted"|"ImageAccessDenied"|"InvalidImage"|string; 2368 export type StatementId = string; 2369 export type String = string; 2370 export type StringList = String[]; 2371 export type SubnetId = string; 2372 export type SubnetIds = SubnetId[]; 2373 export type TagKey = string; 2374 export type TagKeyList = TagKey[]; 2375 export interface TagResourceRequest { 2376 /** 2377 * The function's Amazon Resource Name (ARN). 2378 */ 2379 Resource: FunctionArn; 2380 /** 2381 * A list of tags to apply to the function. 2382 */ 2383 Tags: Tags; 2384 } 2385 export type TagValue = string; 2386 export type Tags = {[key: string]: TagValue}; 2387 export type Timeout = number; 2388 export type Timestamp = string; 2389 export type Topic = string; 2390 export type Topics = Topic[]; 2391 export interface TracingConfig { 2392 /** 2393 * The tracing mode. 2394 */ 2395 Mode?: TracingMode; 2396 } 2397 export interface TracingConfigResponse { 2398 /** 2399 * The tracing mode. 2400 */ 2401 Mode?: TracingMode; 2402 } 2403 export type TracingMode = "Active"|"PassThrough"|string; 2404 export type TumblingWindowInSeconds = number; 2405 export type URI = string; 2406 export type UnreservedConcurrentExecutions = number; 2407 export interface UntagResourceRequest { 2408 /** 2409 * The function's Amazon Resource Name (ARN). 2410 */ 2411 Resource: FunctionArn; 2412 /** 2413 * A list of tag keys to remove from the function. 2414 */ 2415 TagKeys: TagKeyList; 2416 } 2417 export interface UpdateAliasRequest { 2418 /** 2419 * 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. 2420 */ 2421 FunctionName: FunctionName; 2422 /** 2423 * The name of the alias. 2424 */ 2425 Name: Alias; 2426 /** 2427 * The function version that the alias invokes. 2428 */ 2429 FunctionVersion?: Version; 2430 /** 2431 * A description of the alias. 2432 */ 2433 Description?: Description; 2434 /** 2435 * The routing configuration of the alias. 2436 */ 2437 RoutingConfig?: AliasRoutingConfiguration; 2438 /** 2439 * 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. 2440 */ 2441 RevisionId?: String; 2442 } 2443 export interface UpdateCodeSigningConfigRequest { 2444 /** 2445 * The The Amazon Resource Name (ARN) of the code signing configuration. 2446 */ 2447 CodeSigningConfigArn: CodeSigningConfigArn; 2448 /** 2449 * Descriptive name for this code signing configuration. 2450 */ 2451 Description?: Description; 2452 /** 2453 * Signing profiles for this code signing configuration. 2454 */ 2455 AllowedPublishers?: AllowedPublishers; 2456 /** 2457 * The code signing policy. 2458 */ 2459 CodeSigningPolicies?: CodeSigningPolicies; 2460 } 2461 export interface UpdateCodeSigningConfigResponse { 2462 /** 2463 * The code signing configuration 2464 */ 2465 CodeSigningConfig: CodeSigningConfig; 2466 } 2467 export interface UpdateEventSourceMappingRequest { 2468 /** 2469 * The identifier of the event source mapping. 2470 */ 2471 UUID: String; 2472 /** 2473 * 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. 2474 */ 2475 FunctionName?: FunctionName; 2476 /** 2477 * If true, the event source mapping is active. Set to false to pause polling and invocation. 2478 */ 2479 Enabled?: Enabled; 2480 /** 2481 * 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. For standard queues the max is 10,000. For FIFO queues the max is 10. Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000. Self-Managed Apache Kafka - Default 100. Max 10,000. 2482 */ 2483 BatchSize?: BatchSize; 2484 /** 2485 * (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. 2486 */ 2487 MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds; 2488 /** 2489 * (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records. 2490 */ 2491 DestinationConfig?: DestinationConfig; 2492 /** 2493 * (Streams only) Discard records older than the specified age. The default value is infinite (-1). 2494 */ 2495 MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds; 2496 /** 2497 * (Streams only) If the function returns an error, split the batch in two and retry. 2498 */ 2499 BisectBatchOnFunctionError?: BisectBatchOnFunctionError; 2500 /** 2501 * (Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires. 2502 */ 2503 MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping; 2504 /** 2505 * (Streams only) The number of batches to process from each shard concurrently. 2506 */ 2507 ParallelizationFactor?: ParallelizationFactor; 2508 /** 2509 * An array of authentication protocols or VPC components required to secure your event source. 2510 */ 2511 SourceAccessConfigurations?: SourceAccessConfigurations; 2512 /** 2513 * (Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds. 2514 */ 2515 TumblingWindowInSeconds?: TumblingWindowInSeconds; 2516 /** 2517 * (Streams only) A list of current response type enums applied to the event source mapping. 2518 */ 2519 FunctionResponseTypes?: FunctionResponseTypeList; 2520 } 2521 export interface UpdateFunctionCodeRequest { 2522 /** 2523 * 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. 2524 */ 2525 FunctionName: FunctionName; 2526 /** 2527 * The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you. 2528 */ 2529 ZipFile?: _Blob; 2530 /** 2531 * An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. 2532 */ 2533 S3Bucket?: S3Bucket; 2534 /** 2535 * The Amazon S3 key of the deployment package. 2536 */ 2537 S3Key?: S3Key; 2538 /** 2539 * For versioned objects, the version of the deployment package object to use. 2540 */ 2541 S3ObjectVersion?: S3ObjectVersion; 2542 /** 2543 * URI of a container image in the Amazon ECR registry. 2544 */ 2545 ImageUri?: String; 2546 /** 2547 * Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately. 2548 */ 2549 Publish?: Boolean; 2550 /** 2551 * Set to true to validate the request parameters and access permissions without modifying the function code. 2552 */ 2553 DryRun?: Boolean; 2554 /** 2555 * 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. 2556 */ 2557 RevisionId?: String; 2558 } 2559 export interface UpdateFunctionConfigurationRequest { 2560 /** 2561 * 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. 2562 */ 2563 FunctionName: FunctionName; 2564 /** 2565 * The Amazon Resource Name (ARN) of the function's execution role. 2566 */ 2567 Role?: RoleArn; 2568 /** 2569 * 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. 2570 */ 2571 Handler?: Handler; 2572 /** 2573 * A description of the function. 2574 */ 2575 Description?: Description; 2576 /** 2577 * 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. For additional information, see Lambda execution environment. 2578 */ 2579 Timeout?: Timeout; 2580 /** 2581 * The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB. 2582 */ 2583 MemorySize?: MemorySize; 2584 /** 2585 * For network connectivity to Amazon Web Services 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. 2586 */ 2587 VpcConfig?: VpcConfig; 2588 /** 2589 * Environment variables that are accessible from function code during execution. 2590 */ 2591 Environment?: Environment; 2592 /** 2593 * The identifier of the function's runtime. 2594 */ 2595 Runtime?: Runtime; 2596 /** 2597 * 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. 2598 */ 2599 DeadLetterConfig?: DeadLetterConfig; 2600 /** 2601 * The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key. 2602 */ 2603 KMSKeyArn?: KMSKeyArn; 2604 /** 2605 * Set Mode to Active to sample and trace a subset of incoming requests with X-Ray. 2606 */ 2607 TracingConfig?: TracingConfig; 2608 /** 2609 * 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. 2610 */ 2611 RevisionId?: String; 2612 /** 2613 * A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version. 2614 */ 2615 Layers?: LayerList; 2616 /** 2617 * Connection settings for an Amazon EFS file system. 2618 */ 2619 FileSystemConfigs?: FileSystemConfigList; 2620 /** 2621 * Container image configuration values that override the values in the container image Dockerfile. 2622 */ 2623 ImageConfig?: ImageConfig; 2624 } 2625 export interface UpdateFunctionEventInvokeConfigRequest { 2626 /** 2627 * 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. 2628 */ 2629 FunctionName: FunctionName; 2630 /** 2631 * A version number or alias name. 2632 */ 2633 Qualifier?: Qualifier; 2634 /** 2635 * The maximum number of times to retry when the function returns an error. 2636 */ 2637 MaximumRetryAttempts?: MaximumRetryAttempts; 2638 /** 2639 * The maximum age of a request that Lambda sends to a function for processing. 2640 */ 2641 MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds; 2642 /** 2643 * 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. 2644 */ 2645 DestinationConfig?: DestinationConfig; 2646 } 2647 export type Version = string; 2648 export interface VpcConfig { 2649 /** 2650 * A list of VPC subnet IDs. 2651 */ 2652 SubnetIds?: SubnetIds; 2653 /** 2654 * A list of VPC security groups IDs. 2655 */ 2656 SecurityGroupIds?: SecurityGroupIds; 2657 } 2658 export interface VpcConfigResponse { 2659 /** 2660 * A list of VPC subnet IDs. 2661 */ 2662 SubnetIds?: SubnetIds; 2663 /** 2664 * A list of VPC security groups IDs. 2665 */ 2666 SecurityGroupIds?: SecurityGroupIds; 2667 /** 2668 * The ID of the VPC. 2669 */ 2670 VpcId?: VpcId; 2671 } 2672 export type VpcId = string; 2673 export type Weight = number; 2674 export type WorkingDirectory = string; 2675 /** 2676 * 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. 2677 */ 2678 export type apiVersion = "2014-11-11"|"2015-03-31"|"latest"|string; 2679 export interface ClientApiVersions { 2680 /** 2681 * 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. 2682 */ 2683 apiVersion?: apiVersion; 2684 } 2685 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions; 2686 /** 2687 * Contains interfaces for use with the Lambda client. 2688 */ 2689 export import Types = Lambda; 2690 } 2691 export = Lambda;