diff --git a/Makefile b/Makefile
index 49254d7f..dfc17515 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
setup:
export EAGER_SERVICE_LOADING=1 \
- SERVICES=sqs \
+ SERVICES=lambda,ssm \
AWS_ACCESS_KEY_ID=test \
AWS_SECRET_ACCESS_KEY=test
dockerd &
@@ -14,6 +14,10 @@ setup:
--handler index.handler \
--role arn:aws:iam::000000000000:role/lambda-role \
--region us-east-1
+ awslocal ssm put-parameter \
+ --name /rss-nostr-lambda/last-run-time \
+ --value "2023-11-23T00:00:00Z" \
+ --overwrite
rm handler.zip
invoke:
@@ -21,7 +25,7 @@ invoke:
--region us-east-1 \
--function-name rss-nostr-lambda \
--cli-binary-format raw-in-base64-out \
- --payload '{"feedUrl":"https://nitter.1d4.us/culturaltutor/rss","nostrNsec":"nsec1wp68lflspznnmelmjh5ktflyv6c4ljf8xrlkey0w8yqr4305awcs8wyakj","since":"2023-11-23T00:00:00Z"}' \
+ --payload '{"feedUrl":"https://nitter.1d4.us/culturaltutor/rss","nostrNsec":"nsec1wp68lflspznnmelmjh5ktflyv6c4ljf8xrlkey0w8yqr4305awcs8wyakj","lastRunTimeParam":"/rss-nostr-lambda/last-run-time"}' \
response.json
recreate:
diff --git a/index.mjs b/index.mjs
index be785037..e26fc4ce 100644
--- a/index.mjs
+++ b/index.mjs
@@ -1,4 +1,5 @@
import 'websocket-polyfill'
+import { SSMClient, GetParameterCommand, PutParameterCommand } from '@aws-sdk/client-ssm'
import { extract } from '@extractus/feed-extractor'
import NDK, { NDKEvent, NDKPrivateKeySigner } from '@nostr-dev-kit/ndk'
import bech32 from 'bech32-buffer'
@@ -17,7 +18,30 @@ export const handler = async (event) => {
const region = process.env.AWS_REGION || "us-east-1"
const feed = event.feedUrl
const privkey = toHexString(event.nostrNsec)
- const since = event.since
+ const lastRunTimeParam = event.lastRunTimeParam
+
+ let response = {
+ totalItems: 0,
+ successes: 0,
+ errors: []
+ }
+
+ const ssmClient = new SSMClient({ region })
+ const params = {
+ Name: lastRunTimeParam
+ }
+ const ssmGetCommand = new GetParameterCommand(params);
+
+ let since = ""
+ ssmClient.send(ssmGetCommand)
+ .then(data => {
+ since = data.Parameter.Value
+ }).catch(err => {
+ console.error(err)
+ response.errors.push(err)
+ return response
+ })
+
if (feed === "") {
console.error("feedUrl was not set.")
@@ -26,13 +50,7 @@ export const handler = async (event) => {
body: "feedUrl must be provided in payload."
}
}
-
- let response = {
- totalItems: 0,
- successes: 0,
- errors: []
- }
-
+
const ndk = new NDK({
signer: new NDKPrivateKeySigner(privkey),
explicitRelayUrls: [
@@ -80,6 +98,19 @@ export const handler = async (event) => {
}
}
+ params.Name = lastRunTimeParam
+ params.Value = new Date().toISOString()
+ params.Type = "String"
+ params.Overwrite = true
+
+ const ssmPutCommand = new PutParameterCommand(params)
+ ssmClient.send(ssmPutCommand)
+ .catch(err => {
+ console.error(err)
+ response.errors.push(err)
+ return response
+ })
+
return response
}
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
index fce6505e..a22d0df8 100644
--- a/node_modules/.package-lock.json
+++ b/node_modules/.package-lock.json
@@ -95,10 +95,10 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
},
- "node_modules/@aws-sdk/client-lambda": {
+ "node_modules/@aws-sdk/client-ssm": {
"version": "3.454.0",
- "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.454.0.tgz",
- "integrity": "sha512-nYak+ojl0H0AG0WTF2894npak4Uj2slBr09+3lBUz4rwPol93TsUHy8/5GfGLcqPMNnEKOknc4jioJOK7cb2Pw==",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.454.0.tgz",
+ "integrity": "sha512-Vrf93hOzB4FAUpkGHvKywZ0yOVbghS0KbCsnlN1Mka780zmyc185YXGYSLv6B+yrI2tMj0cBvEad3M0qk69qVw==",
"dependencies": {
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
@@ -116,9 +116,6 @@
"@aws-sdk/util-user-agent-browser": "3.451.0",
"@aws-sdk/util-user-agent-node": "3.451.0",
"@smithy/config-resolver": "^2.0.18",
- "@smithy/eventstream-serde-browser": "^2.0.13",
- "@smithy/eventstream-serde-config-resolver": "^2.0.13",
- "@smithy/eventstream-serde-node": "^2.0.13",
"@smithy/fetch-http-handler": "^2.2.6",
"@smithy/hash-node": "^2.0.15",
"@smithy/invalid-dependency": "^2.0.13",
@@ -140,10 +137,10 @@
"@smithy/util-defaults-mode-node": "^2.0.25",
"@smithy/util-endpoints": "^1.0.4",
"@smithy/util-retry": "^2.0.6",
- "@smithy/util-stream": "^2.0.20",
"@smithy/util-utf8": "^2.0.2",
"@smithy/util-waiter": "^2.0.13",
- "tslib": "^2.5.0"
+ "tslib": "^2.5.0",
+ "uuid": "^8.3.2"
},
"engines": {
"node": ">=14.0.0"
@@ -792,57 +789,6 @@
"tslib": "^2.5.0"
}
},
- "node_modules/@smithy/eventstream-serde-browser": {
- "version": "2.0.14",
- "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-2.0.14.tgz",
- "integrity": "sha512-41wmYE9smDGJi1ZXp+LogH6BR7MkSsQD91wneIFISF/mupKULvoOJUkv/Nf0NMRxWlM3Bf1Vvi9FlR2oV4KU8Q==",
- "dependencies": {
- "@smithy/eventstream-serde-universal": "^2.0.14",
- "@smithy/types": "^2.6.0",
- "tslib": "^2.5.0"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "node_modules/@smithy/eventstream-serde-config-resolver": {
- "version": "2.0.14",
- "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-2.0.14.tgz",
- "integrity": "sha512-43IyRIzQ82s+5X+t/3Ood00CcWtAXQdmUIUKMed2Qg9REPk8SVIHhpm3rwewLwg+3G2Nh8NOxXlEQu6DsPUcMw==",
- "dependencies": {
- "@smithy/types": "^2.6.0",
- "tslib": "^2.5.0"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "node_modules/@smithy/eventstream-serde-node": {
- "version": "2.0.14",
- "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-2.0.14.tgz",
- "integrity": "sha512-jVh9E2qAr6DxH5tWfCAl9HV6tI0pEQ3JVmu85JknDvYTC66djcjDdhctPV2EHuKWf2kjRiFJcMIn0eercW4THA==",
- "dependencies": {
- "@smithy/eventstream-serde-universal": "^2.0.14",
- "@smithy/types": "^2.6.0",
- "tslib": "^2.5.0"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "node_modules/@smithy/eventstream-serde-universal": {
- "version": "2.0.14",
- "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-2.0.14.tgz",
- "integrity": "sha512-Ie35+AISNn1NmEjn5b2SchIE49pvKp4Q74bE9ME5RULWI1MgXyGkQUajWd5E6OBSr/sqGcs+rD3IjPErXnCm9g==",
- "dependencies": {
- "@smithy/eventstream-codec": "^2.0.14",
- "@smithy/types": "^2.6.0",
- "tslib": "^2.5.0"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
"node_modules/@smithy/fetch-http-handler": {
"version": "2.2.7",
"resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-2.2.7.tgz",
diff --git a/node_modules/@aws-sdk/client-lambda/README.md b/node_modules/@aws-sdk/client-lambda/README.md
deleted file mode 100644
index bf9758a9..00000000
--- a/node_modules/@aws-sdk/client-lambda/README.md
+++ /dev/null
@@ -1,798 +0,0 @@
-
-
-# @aws-sdk/client-lambda
-
-## Description
-
-AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native.
-
-
-Overview -
-Lambda is a compute service that lets you run code without provisioning or managing servers. -Lambda runs your code on a high-availability compute infrastructure and performs all of the -administration of the compute resources, including server and operating system maintenance, capacity provisioning -and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any -type of application or backend service. For more information about the Lambda service, see What is Lambda in the Lambda Developer Guide.
-The Lambda API Reference provides information about -each of the API methods, including details about the parameters in each API request and -response.
- -You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command -line tools to access the API. For installation instructions, see Tools for -Amazon Web Services.
-For a list of Region-specific endpoints that Lambda supports, -see Lambda -endpoints and quotas in the Amazon Web Services General Reference..
-When making the API calls, you will need to -authenticate your request by providing a signature. Lambda supports signature version 4. For more information, -see Signature Version 4 signing process in the -Amazon Web Services General Reference..
--CA certificates -
-Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers -can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your -computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate -environment and do not manage your own computer, you might need to ask an administrator to assist with the -update process. The following list shows minimum operating system and Java versions:
-Microsoft Windows versions that have updates from January 2005 or later installed contain at least one -of the required CAs in their trust list.
-Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and -later versions contain at least one of the required CAs in their trust list.
-Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the -required CAs in their default trusted CA list.
-Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December -2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list.
-When accessing the Lambda management console or Lambda API endpoints, whether through browsers or -programmatically, you will need to ensure your client machines support any of the following CAs:
-Amazon Root CA 1
-Starfield Services Root Certificate Authority - G2
-Starfield Class 2 Certification Authority
-Root certificates from the first two authorities are available from Amazon trust services, but keeping your computer -up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see Amazon Web Services Certificate Manager FAQs. -
- -## Installing - -To install the this package, simply type add or install @aws-sdk/client-lambda -using your favorite package manager: - -- `npm install @aws-sdk/client-lambda` -- `yarn add @aws-sdk/client-lambda` -- `pnpm add @aws-sdk/client-lambda` - -## Getting Started - -### Import - -The AWS SDK is modulized by clients and commands. -To send a request, you only need to import the `LambdaClient` and -the commands you need, for example `ListLayersCommand`: - -```js -// ES5 example -const { LambdaClient, ListLayersCommand } = require("@aws-sdk/client-lambda"); -``` - -```ts -// ES6+ example -import { LambdaClient, ListLayersCommand } from "@aws-sdk/client-lambda"; -``` - -### Usage - -To send a request, you: - -- Initiate client with configuration (e.g. credentials, region). -- Initiate command with input parameters. -- Call `send` operation on client with command object as input. -- If you are using a custom http handler, you may call `destroy()` to close open connections. - -```js -// a client can be shared by different commands. -const client = new LambdaClient({ region: "REGION" }); - -const params = { - /** input parameters */ -}; -const command = new ListLayersCommand(params); -``` - -#### Async/await - -We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) -operator to wait for the promise returned by send operation as follows: - -```js -// async/await. -try { - const data = await client.send(command); - // process data. -} catch (error) { - // error handling. -} finally { - // finally. -} -``` - -Async-await is clean, concise, intuitive, easy to debug and has better error handling -as compared to using Promise chains or callbacks. - -#### Promises - -You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining) -to execute send operation. - -```js -client.send(command).then( - (data) => { - // process data. - }, - (error) => { - // error handling. - } -); -``` - -Promises can also be called using `.catch()` and `.finally()` as follows: - -```js -client - .send(command) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }) - .finally(() => { - // finally. - }); -``` - -#### Callbacks - -We do not recommend using callbacks because of [callback hell](http://callbackhell.com/), -but they are supported by the send operation. - -```js -// callbacks. -client.send(command, (err, data) => { - // process err and data. -}); -``` - -#### v2 compatible style - -The client can also send requests using v2 compatible style. -However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post -on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/) - -```ts -import * as AWS from "@aws-sdk/client-lambda"; -const client = new AWS.Lambda({ region: "REGION" }); - -// async/await. -try { - const data = await client.listLayers(params); - // process data. -} catch (error) { - // error handling. -} - -// Promises. -client - .listLayers(params) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }); - -// callbacks. -client.listLayers(params, (err, data) => { - // process err and data. -}); -``` - -### Troubleshooting - -When the service returns an exception, the error will include the exception information, -as well as response metadata (e.g. request id). - -```js -try { - const data = await client.send(command); - // process data. -} catch (error) { - const { requestId, cfId, extendedRequestId } = error.$metadata; - console.log({ requestId, cfId, extendedRequestId }); - /** - * The keys within exceptions are also parsed. - * You can access them by specifying exception names: - * if (error.name === 'SomeServiceException') { - * const value = error.specialKeyInException; - * } - */ -} -``` - -## Getting Help - -Please use these community resources for getting help. -We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them. - -- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) - or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html). -- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/) - on AWS Developer Blog. -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`. -- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3). -- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). - -To test your universal JavaScript code in Node.js, browser and react-native environments, -visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests). - -## Contributing - -This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-lambda` package is updated. -To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients). - -## License - -This SDK is distributed under the -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), -see LICENSE for more information. - -## Client Commands (Operations List) - -- * Overview - *
- *Lambda is a compute service that lets you run code without provisioning or managing servers. - * Lambda runs your code on a high-availability compute infrastructure and performs all of the - * administration of the compute resources, including server and operating system maintenance, capacity provisioning - * and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any - * type of application or backend service. For more information about the Lambda service, see What is Lambda in the Lambda Developer Guide.
- *The Lambda API Reference provides information about - * each of the API methods, including details about the parameters in each API request and - * response.
- * - *You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command - * line tools to access the API. For installation instructions, see Tools for - * Amazon Web Services.
- *For a list of Region-specific endpoints that Lambda supports, - * see Lambda - * endpoints and quotas in the Amazon Web Services General Reference..
- *When making the API calls, you will need to - * authenticate your request by providing a signature. Lambda supports signature version 4. For more information, - * see Signature Version 4 signing process in the - * Amazon Web Services General Reference..
- *- * CA certificates - *
- *Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers - * can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your - * computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate - * environment and do not manage your own computer, you might need to ask an administrator to assist with the - * update process. The following list shows minimum operating system and Java versions:
- *Microsoft Windows versions that have updates from January 2005 or later installed contain at least one - * of the required CAs in their trust list.
- *Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and - * later versions contain at least one of the required CAs in their trust list.
- *Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the - * required CAs in their default trusted CA list.
- *Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December - * 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list.
- *When accessing the Lambda management console or Lambda API endpoints, whether through browsers or - * programmatically, you will need to ensure your client machines support any of the following CAs:
- *Amazon Root CA 1
- *Starfield Services Root Certificate Authority - G2
- *Starfield Class 2 Certification Authority
- *Root certificates from the first two authorities are available from Amazon trust services, but keeping your computer - * up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see Amazon Web Services Certificate Manager FAQs. - *
- */ -export declare class Lambda extends LambdaClient implements Lambda { -} diff --git a/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts b/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts deleted file mode 100644 index d75be82d..00000000 --- a/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +++ /dev/null @@ -1,304 +0,0 @@ -import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header"; -import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing"; -import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent"; -import { Credentials as __Credentials } from "@aws-sdk/types"; -import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver"; -import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver"; -import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint"; -import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"; -import { HttpHandler as __HttpHandler } from "@smithy/protocol-http"; -import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client"; -import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types"; -import { AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput } from "./commands/AddLayerVersionPermissionCommand"; -import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand"; -import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand"; -import { CreateCodeSigningConfigCommandInput, CreateCodeSigningConfigCommandOutput } from "./commands/CreateCodeSigningConfigCommand"; -import { CreateEventSourceMappingCommandInput, CreateEventSourceMappingCommandOutput } from "./commands/CreateEventSourceMappingCommand"; -import { CreateFunctionCommandInput, CreateFunctionCommandOutput } from "./commands/CreateFunctionCommand"; -import { CreateFunctionUrlConfigCommandInput, CreateFunctionUrlConfigCommandOutput } from "./commands/CreateFunctionUrlConfigCommand"; -import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand"; -import { DeleteCodeSigningConfigCommandInput, DeleteCodeSigningConfigCommandOutput } from "./commands/DeleteCodeSigningConfigCommand"; -import { DeleteEventSourceMappingCommandInput, DeleteEventSourceMappingCommandOutput } from "./commands/DeleteEventSourceMappingCommand"; -import { DeleteFunctionCodeSigningConfigCommandInput, DeleteFunctionCodeSigningConfigCommandOutput } from "./commands/DeleteFunctionCodeSigningConfigCommand"; -import { DeleteFunctionCommandInput, DeleteFunctionCommandOutput } from "./commands/DeleteFunctionCommand"; -import { DeleteFunctionConcurrencyCommandInput, DeleteFunctionConcurrencyCommandOutput } from "./commands/DeleteFunctionConcurrencyCommand"; -import { DeleteFunctionEventInvokeConfigCommandInput, DeleteFunctionEventInvokeConfigCommandOutput } from "./commands/DeleteFunctionEventInvokeConfigCommand"; -import { DeleteFunctionUrlConfigCommandInput, DeleteFunctionUrlConfigCommandOutput } from "./commands/DeleteFunctionUrlConfigCommand"; -import { DeleteLayerVersionCommandInput, DeleteLayerVersionCommandOutput } from "./commands/DeleteLayerVersionCommand"; -import { DeleteProvisionedConcurrencyConfigCommandInput, DeleteProvisionedConcurrencyConfigCommandOutput } from "./commands/DeleteProvisionedConcurrencyConfigCommand"; -import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand"; -import { GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand"; -import { GetCodeSigningConfigCommandInput, GetCodeSigningConfigCommandOutput } from "./commands/GetCodeSigningConfigCommand"; -import { GetEventSourceMappingCommandInput, GetEventSourceMappingCommandOutput } from "./commands/GetEventSourceMappingCommand"; -import { GetFunctionCodeSigningConfigCommandInput, GetFunctionCodeSigningConfigCommandOutput } from "./commands/GetFunctionCodeSigningConfigCommand"; -import { GetFunctionCommandInput, GetFunctionCommandOutput } from "./commands/GetFunctionCommand"; -import { GetFunctionConcurrencyCommandInput, GetFunctionConcurrencyCommandOutput } from "./commands/GetFunctionConcurrencyCommand"; -import { GetFunctionConfigurationCommandInput, GetFunctionConfigurationCommandOutput } from "./commands/GetFunctionConfigurationCommand"; -import { GetFunctionEventInvokeConfigCommandInput, GetFunctionEventInvokeConfigCommandOutput } from "./commands/GetFunctionEventInvokeConfigCommand"; -import { GetFunctionUrlConfigCommandInput, GetFunctionUrlConfigCommandOutput } from "./commands/GetFunctionUrlConfigCommand"; -import { GetLayerVersionByArnCommandInput, GetLayerVersionByArnCommandOutput } from "./commands/GetLayerVersionByArnCommand"; -import { GetLayerVersionCommandInput, GetLayerVersionCommandOutput } from "./commands/GetLayerVersionCommand"; -import { GetLayerVersionPolicyCommandInput, GetLayerVersionPolicyCommandOutput } from "./commands/GetLayerVersionPolicyCommand"; -import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand"; -import { GetProvisionedConcurrencyConfigCommandInput, GetProvisionedConcurrencyConfigCommandOutput } from "./commands/GetProvisionedConcurrencyConfigCommand"; -import { GetRuntimeManagementConfigCommandInput, GetRuntimeManagementConfigCommandOutput } from "./commands/GetRuntimeManagementConfigCommand"; -import { InvokeAsyncCommandInput, InvokeAsyncCommandOutput } from "./commands/InvokeAsyncCommand"; -import { InvokeCommandInput, InvokeCommandOutput } from "./commands/InvokeCommand"; -import { InvokeWithResponseStreamCommandInput, InvokeWithResponseStreamCommandOutput } from "./commands/InvokeWithResponseStreamCommand"; -import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand"; -import { ListCodeSigningConfigsCommandInput, ListCodeSigningConfigsCommandOutput } from "./commands/ListCodeSigningConfigsCommand"; -import { ListEventSourceMappingsCommandInput, ListEventSourceMappingsCommandOutput } from "./commands/ListEventSourceMappingsCommand"; -import { ListFunctionEventInvokeConfigsCommandInput, ListFunctionEventInvokeConfigsCommandOutput } from "./commands/ListFunctionEventInvokeConfigsCommand"; -import { ListFunctionsByCodeSigningConfigCommandInput, ListFunctionsByCodeSigningConfigCommandOutput } from "./commands/ListFunctionsByCodeSigningConfigCommand"; -import { ListFunctionsCommandInput, ListFunctionsCommandOutput } from "./commands/ListFunctionsCommand"; -import { ListFunctionUrlConfigsCommandInput, ListFunctionUrlConfigsCommandOutput } from "./commands/ListFunctionUrlConfigsCommand"; -import { ListLayersCommandInput, ListLayersCommandOutput } from "./commands/ListLayersCommand"; -import { ListLayerVersionsCommandInput, ListLayerVersionsCommandOutput } from "./commands/ListLayerVersionsCommand"; -import { ListProvisionedConcurrencyConfigsCommandInput, ListProvisionedConcurrencyConfigsCommandOutput } from "./commands/ListProvisionedConcurrencyConfigsCommand"; -import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand"; -import { ListVersionsByFunctionCommandInput, ListVersionsByFunctionCommandOutput } from "./commands/ListVersionsByFunctionCommand"; -import { PublishLayerVersionCommandInput, PublishLayerVersionCommandOutput } from "./commands/PublishLayerVersionCommand"; -import { PublishVersionCommandInput, PublishVersionCommandOutput } from "./commands/PublishVersionCommand"; -import { PutFunctionCodeSigningConfigCommandInput, PutFunctionCodeSigningConfigCommandOutput } from "./commands/PutFunctionCodeSigningConfigCommand"; -import { PutFunctionConcurrencyCommandInput, PutFunctionConcurrencyCommandOutput } from "./commands/PutFunctionConcurrencyCommand"; -import { PutFunctionEventInvokeConfigCommandInput, PutFunctionEventInvokeConfigCommandOutput } from "./commands/PutFunctionEventInvokeConfigCommand"; -import { PutProvisionedConcurrencyConfigCommandInput, PutProvisionedConcurrencyConfigCommandOutput } from "./commands/PutProvisionedConcurrencyConfigCommand"; -import { PutRuntimeManagementConfigCommandInput, PutRuntimeManagementConfigCommandOutput } from "./commands/PutRuntimeManagementConfigCommand"; -import { RemoveLayerVersionPermissionCommandInput, RemoveLayerVersionPermissionCommandOutput } from "./commands/RemoveLayerVersionPermissionCommand"; -import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "./commands/RemovePermissionCommand"; -import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; -import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand"; -import { UpdateAliasCommandInput, UpdateAliasCommandOutput } from "./commands/UpdateAliasCommand"; -import { UpdateCodeSigningConfigCommandInput, UpdateCodeSigningConfigCommandOutput } from "./commands/UpdateCodeSigningConfigCommand"; -import { UpdateEventSourceMappingCommandInput, UpdateEventSourceMappingCommandOutput } from "./commands/UpdateEventSourceMappingCommand"; -import { UpdateFunctionCodeCommandInput, UpdateFunctionCodeCommandOutput } from "./commands/UpdateFunctionCodeCommand"; -import { UpdateFunctionConfigurationCommandInput, UpdateFunctionConfigurationCommandOutput } from "./commands/UpdateFunctionConfigurationCommand"; -import { UpdateFunctionEventInvokeConfigCommandInput, UpdateFunctionEventInvokeConfigCommandOutput } from "./commands/UpdateFunctionEventInvokeConfigCommand"; -import { UpdateFunctionUrlConfigCommandInput, UpdateFunctionUrlConfigCommandOutput } from "./commands/UpdateFunctionUrlConfigCommand"; -import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters"; -import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; -export { __Client }; -/** - * @public - */ -export type ServiceInputTypes = AddLayerVersionPermissionCommandInput | AddPermissionCommandInput | CreateAliasCommandInput | CreateCodeSigningConfigCommandInput | CreateEventSourceMappingCommandInput | CreateFunctionCommandInput | CreateFunctionUrlConfigCommandInput | DeleteAliasCommandInput | DeleteCodeSigningConfigCommandInput | DeleteEventSourceMappingCommandInput | DeleteFunctionCodeSigningConfigCommandInput | DeleteFunctionCommandInput | DeleteFunctionConcurrencyCommandInput | DeleteFunctionEventInvokeConfigCommandInput | DeleteFunctionUrlConfigCommandInput | DeleteLayerVersionCommandInput | DeleteProvisionedConcurrencyConfigCommandInput | GetAccountSettingsCommandInput | GetAliasCommandInput | GetCodeSigningConfigCommandInput | GetEventSourceMappingCommandInput | GetFunctionCodeSigningConfigCommandInput | GetFunctionCommandInput | GetFunctionConcurrencyCommandInput | GetFunctionConfigurationCommandInput | GetFunctionEventInvokeConfigCommandInput | GetFunctionUrlConfigCommandInput | GetLayerVersionByArnCommandInput | GetLayerVersionCommandInput | GetLayerVersionPolicyCommandInput | GetPolicyCommandInput | GetProvisionedConcurrencyConfigCommandInput | GetRuntimeManagementConfigCommandInput | InvokeAsyncCommandInput | InvokeCommandInput | InvokeWithResponseStreamCommandInput | ListAliasesCommandInput | ListCodeSigningConfigsCommandInput | ListEventSourceMappingsCommandInput | ListFunctionEventInvokeConfigsCommandInput | ListFunctionUrlConfigsCommandInput | ListFunctionsByCodeSigningConfigCommandInput | ListFunctionsCommandInput | ListLayerVersionsCommandInput | ListLayersCommandInput | ListProvisionedConcurrencyConfigsCommandInput | ListTagsCommandInput | ListVersionsByFunctionCommandInput | PublishLayerVersionCommandInput | PublishVersionCommandInput | PutFunctionCodeSigningConfigCommandInput | PutFunctionConcurrencyCommandInput | PutFunctionEventInvokeConfigCommandInput | PutProvisionedConcurrencyConfigCommandInput | PutRuntimeManagementConfigCommandInput | RemoveLayerVersionPermissionCommandInput | RemovePermissionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput | UpdateCodeSigningConfigCommandInput | UpdateEventSourceMappingCommandInput | UpdateFunctionCodeCommandInput | UpdateFunctionConfigurationCommandInput | UpdateFunctionEventInvokeConfigCommandInput | UpdateFunctionUrlConfigCommandInput; -/** - * @public - */ -export type ServiceOutputTypes = AddLayerVersionPermissionCommandOutput | AddPermissionCommandOutput | CreateAliasCommandOutput | CreateCodeSigningConfigCommandOutput | CreateEventSourceMappingCommandOutput | CreateFunctionCommandOutput | CreateFunctionUrlConfigCommandOutput | DeleteAliasCommandOutput | DeleteCodeSigningConfigCommandOutput | DeleteEventSourceMappingCommandOutput | DeleteFunctionCodeSigningConfigCommandOutput | DeleteFunctionCommandOutput | DeleteFunctionConcurrencyCommandOutput | DeleteFunctionEventInvokeConfigCommandOutput | DeleteFunctionUrlConfigCommandOutput | DeleteLayerVersionCommandOutput | DeleteProvisionedConcurrencyConfigCommandOutput | GetAccountSettingsCommandOutput | GetAliasCommandOutput | GetCodeSigningConfigCommandOutput | GetEventSourceMappingCommandOutput | GetFunctionCodeSigningConfigCommandOutput | GetFunctionCommandOutput | GetFunctionConcurrencyCommandOutput | GetFunctionConfigurationCommandOutput | GetFunctionEventInvokeConfigCommandOutput | GetFunctionUrlConfigCommandOutput | GetLayerVersionByArnCommandOutput | GetLayerVersionCommandOutput | GetLayerVersionPolicyCommandOutput | GetPolicyCommandOutput | GetProvisionedConcurrencyConfigCommandOutput | GetRuntimeManagementConfigCommandOutput | InvokeAsyncCommandOutput | InvokeCommandOutput | InvokeWithResponseStreamCommandOutput | ListAliasesCommandOutput | ListCodeSigningConfigsCommandOutput | ListEventSourceMappingsCommandOutput | ListFunctionEventInvokeConfigsCommandOutput | ListFunctionUrlConfigsCommandOutput | ListFunctionsByCodeSigningConfigCommandOutput | ListFunctionsCommandOutput | ListLayerVersionsCommandOutput | ListLayersCommandOutput | ListProvisionedConcurrencyConfigsCommandOutput | ListTagsCommandOutput | ListVersionsByFunctionCommandOutput | PublishLayerVersionCommandOutput | PublishVersionCommandOutput | PutFunctionCodeSigningConfigCommandOutput | PutFunctionConcurrencyCommandOutput | PutFunctionEventInvokeConfigCommandOutput | PutProvisionedConcurrencyConfigCommandOutput | PutRuntimeManagementConfigCommandOutput | RemoveLayerVersionPermissionCommandOutput | RemovePermissionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput | UpdateCodeSigningConfigCommandOutput | UpdateEventSourceMappingCommandOutput | UpdateFunctionCodeCommandOutput | UpdateFunctionConfigurationCommandOutput | UpdateFunctionEventInvokeConfigCommandOutput | UpdateFunctionUrlConfigCommandOutput; -/** - * @public - */ -export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { - /** - * The HTTP handler to use. Fetch in browser and Https in Nodejs. - */ - requestHandler?: __HttpHandler; - /** - * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface - * that computes the SHA-256 HMAC or checksum of a string or binary buffer. - * @internal - */ - sha256?: __ChecksumConstructor | __HashConstructor; - /** - * The function that will be used to convert strings into HTTP endpoints. - * @internal - */ - urlParser?: __UrlParser; - /** - * A function that can calculate the length of a request body. - * @internal - */ - bodyLengthChecker?: __BodyLengthCalculator; - /** - * A function that converts a stream into an array of bytes. - * @internal - */ - streamCollector?: __StreamCollector; - /** - * The function that will be used to convert a base64-encoded string to a byte array. - * @internal - */ - base64Decoder?: __Decoder; - /** - * The function that will be used to convert binary data to a base64-encoded string. - * @internal - */ - base64Encoder?: __Encoder; - /** - * The function that will be used to convert a UTF8-encoded string to a byte array. - * @internal - */ - utf8Decoder?: __Decoder; - /** - * The function that will be used to convert binary data to a UTF-8 encoded string. - * @internal - */ - utf8Encoder?: __Encoder; - /** - * The runtime environment. - * @internal - */ - runtime?: string; - /** - * Disable dynamically changing the endpoint of the client based on the hostPrefix - * trait of an operation. - */ - disableHostPrefix?: boolean; - /** - * Unique service identifier. - * @internal - */ - serviceId?: string; - /** - * Enables IPv6/IPv4 dualstack endpoint. - */ - useDualstackEndpoint?: boolean | __Provider- * Overview - *
- *Lambda is a compute service that lets you run code without provisioning or managing servers. - * Lambda runs your code on a high-availability compute infrastructure and performs all of the - * administration of the compute resources, including server and operating system maintenance, capacity provisioning - * and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any - * type of application or backend service. For more information about the Lambda service, see What is Lambda in the Lambda Developer Guide.
- *The Lambda API Reference provides information about - * each of the API methods, including details about the parameters in each API request and - * response.
- * - *You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command - * line tools to access the API. For installation instructions, see Tools for - * Amazon Web Services.
- *For a list of Region-specific endpoints that Lambda supports, - * see Lambda - * endpoints and quotas in the Amazon Web Services General Reference..
- *When making the API calls, you will need to - * authenticate your request by providing a signature. Lambda supports signature version 4. For more information, - * see Signature Version 4 signing process in the - * Amazon Web Services General Reference..
- *- * CA certificates - *
- *Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers - * can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your - * computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate - * environment and do not manage your own computer, you might need to ask an administrator to assist with the - * update process. The following list shows minimum operating system and Java versions:
- *Microsoft Windows versions that have updates from January 2005 or later installed contain at least one - * of the required CAs in their trust list.
- *Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and - * later versions contain at least one of the required CAs in their trust list.
- *Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the - * required CAs in their default trusted CA list.
- *Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December - * 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list.
- *When accessing the Lambda management console or Lambda API endpoints, whether through browsers or - * programmatically, you will need to ensure your client machines support any of the following CAs:
- *Amazon Root CA 1
- *Starfield Services Root Certificate Authority - G2
- *Starfield Class 2 Certification Authority
- *Root certificates from the first two authorities are available from Amazon trust services, but keeping your computer - * up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see Amazon Web Services Certificate Manager FAQs. - *
- */ -export declare class LambdaClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LambdaClientResolvedConfig> { - /** - * The resolved configuration of LambdaClient class. This is resolved and normalized from the {@link LambdaClientConfig | constructor configuration interface}. - */ - readonly config: LambdaClientResolvedConfig; - constructor(...[configuration]: __CheckOptionalClientConfigAdds 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.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, AddLayerVersionPermissionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, AddLayerVersionPermissionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // AddLayerVersionPermissionRequest - * LayerName: "STRING_VALUE", // required - * VersionNumber: Number("long"), // required - * StatementId: "STRING_VALUE", // required - * Action: "STRING_VALUE", // required - * Principal: "STRING_VALUE", // required - * OrganizationId: "STRING_VALUE", - * RevisionId: "STRING_VALUE", - * }; - * const command = new AddLayerVersionPermissionCommand(input); - * const response = await client.send(command); - * // { // AddLayerVersionPermissionResponse - * // Statement: "STRING_VALUE", - * // RevisionId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param AddLayerVersionPermissionCommandInput - {@link AddLayerVersionPermissionCommandInput} - * @returns {@link AddLayerVersionPermissionCommandOutput} - * @see {@link AddLayerVersionPermissionCommandInput} for command's `input` shape. - * @see {@link AddLayerVersionPermissionCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link PolicyLengthExceededException} (client fault) - *The permissions policy for the resource is too large. For more information, see Lambda quotas.
- * - * @throws {@link PreconditionFailedException} (client fault) - *The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias
- * API operation to retrieve the latest RevisionId for your resource.
The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class AddLayerVersionPermissionCommand extends $CommandGrants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization - * 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. Note: Lambda does not support adding policies - * to version $LATEST.
- *To grant permission to another account, specify the account ID as the Principal. To grant
- * permission to an organization defined in Organizations, specify the organization ID as the
- * PrincipalOrgID. For Amazon Web Services, the principal is a domain-style identifier that
- * the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web 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 operation adds a statement to a resource-based permissions policy for the function. For more information - * about function policies, see Using resource-based policies for Lambda.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, AddPermissionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, AddPermissionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // AddPermissionRequest - * FunctionName: "STRING_VALUE", // required - * StatementId: "STRING_VALUE", // required - * Action: "STRING_VALUE", // required - * Principal: "STRING_VALUE", // required - * SourceArn: "STRING_VALUE", - * SourceAccount: "STRING_VALUE", - * EventSourceToken: "STRING_VALUE", - * Qualifier: "STRING_VALUE", - * RevisionId: "STRING_VALUE", - * PrincipalOrgID: "STRING_VALUE", - * FunctionUrlAuthType: "NONE" || "AWS_IAM", - * }; - * const command = new AddPermissionCommand(input); - * const response = await client.send(command); - * // { // AddPermissionResponse - * // Statement: "STRING_VALUE", - * // }; - * - * ``` - * - * @param AddPermissionCommandInput - {@link AddPermissionCommandInput} - * @returns {@link AddPermissionCommandOutput} - * @see {@link AddPermissionCommandInput} for command's `input` shape. - * @see {@link AddPermissionCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link PolicyLengthExceededException} (client fault) - *The permissions policy for the resource is too large. For more information, see Lambda quotas.
- * - * @throws {@link PreconditionFailedException} (client fault) - *The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias
- * API operation to retrieve the latest RevisionId for your resource.
The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class AddPermissionCommand extends $CommandCreates 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.
One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class CreateAliasCommand extends $CommandCreates 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).
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, CreateCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, CreateCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // CreateCodeSigningConfigRequest - * Description: "STRING_VALUE", - * AllowedPublishers: { // AllowedPublishers - * SigningProfileVersionArns: [ // SigningProfileVersionArns // required - * "STRING_VALUE", - * ], - * }, - * CodeSigningPolicies: { // CodeSigningPolicies - * UntrustedArtifactOnDeployment: "Warn" || "Enforce", - * }, - * }; - * const command = new CreateCodeSigningConfigCommand(input); - * const response = await client.send(command); - * // { // CreateCodeSigningConfigResponse - * // CodeSigningConfig: { // CodeSigningConfig - * // CodeSigningConfigId: "STRING_VALUE", // required - * // CodeSigningConfigArn: "STRING_VALUE", // required - * // Description: "STRING_VALUE", - * // AllowedPublishers: { // AllowedPublishers - * // SigningProfileVersionArns: [ // SigningProfileVersionArns // required - * // "STRING_VALUE", - * // ], - * // }, - * // CodeSigningPolicies: { // CodeSigningPolicies - * // UntrustedArtifactOnDeployment: "Warn" || "Enforce", - * // }, - * // LastModified: "STRING_VALUE", // required - * // }, - * // }; - * - * ``` - * - * @param CreateCodeSigningConfigCommandInput - {@link CreateCodeSigningConfigCommandInput} - * @returns {@link CreateCodeSigningConfigCommandOutput} - * @see {@link CreateCodeSigningConfigCommandInput} for command's `input` shape. - * @see {@link CreateCodeSigningConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class CreateCodeSigningConfigCommand extends $CommandCreates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.
- *For details about how to configure different event sources, see the following topics.
- *- * - * Amazon DynamoDB Streams - *
- *- * - * Amazon Kinesis - *
- *- * - * Amazon SQS - *
- *- * - * Amazon MQ and RabbitMQ - *
- *- * - * Amazon MSK - *
- *- * - * Apache Kafka - *
- *- * - * Amazon DocumentDB - *
- *The following error handling options are available only 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.
For information about which configuration parameters apply to each event source, see the following topics.
- *- * - * Amazon DynamoDB Streams - *
- *- * - * Amazon Kinesis - *
- *- * - * Amazon SQS - *
- *- * - * Amazon MQ and RabbitMQ - *
- *- * - * Amazon MSK - *
- *- * - * Apache Kafka - *
- *- * - * Amazon DocumentDB - *
- *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class CreateEventSourceMappingCommand extends $CommandCreates 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, such as Amazon CloudWatch Logs for log - * streaming and X-Ray for request tracing.
- *If the deployment package is a container
- * image, then you set the package type to 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.
If the deployment package is a .zip file archive, then
- * you set the package type to Zip. For a .zip file archive, the code property specifies the location of
- * the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must
- * be compatible with the target instruction set architecture of the function (x86-64 or
- * arm64). If you do not specify the architecture, then the default value is
- * x86-64.
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 Lambda 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 of signing profiles, which define the trusted - * publishers for this function.
- *If another Amazon Web Services account or an Amazon Web Service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (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, create an event source mapping (CreateEventSourceMapping), - * or configure a function trigger in the other service. For more information, see Invoking Lambda - * functions.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, CreateFunctionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, CreateFunctionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // CreateFunctionRequest - * FunctionName: "STRING_VALUE", // required - * Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * Role: "STRING_VALUE", // required - * Handler: "STRING_VALUE", - * Code: { // FunctionCode - * ZipFile: "BLOB_VALUE", - * S3Bucket: "STRING_VALUE", - * S3Key: "STRING_VALUE", - * S3ObjectVersion: "STRING_VALUE", - * ImageUri: "STRING_VALUE", - * }, - * Description: "STRING_VALUE", - * Timeout: Number("int"), - * MemorySize: Number("int"), - * Publish: true || false, - * VpcConfig: { // VpcConfig - * SubnetIds: [ // SubnetIds - * "STRING_VALUE", - * ], - * SecurityGroupIds: [ // SecurityGroupIds - * "STRING_VALUE", - * ], - * Ipv6AllowedForDualStack: true || false, - * }, - * PackageType: "Zip" || "Image", - * DeadLetterConfig: { // DeadLetterConfig - * TargetArn: "STRING_VALUE", - * }, - * Environment: { // Environment - * Variables: { // EnvironmentVariables - * "The specified code signing configuration does not exist.
- * - * @throws {@link CodeStorageExceededException} (client fault) - *Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- * - * @throws {@link CodeVerificationFailedException} (client fault) - *The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code - * signing policy is set to ENFORCE. Lambda blocks the deployment.
- * - * @throws {@link InvalidCodeSignatureException} (client fault) - *The code signature failed the integrity check. If the integrity check fails, then Lambda blocks - * deployment, even if the code signing policy is set to WARN.
- * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class CreateFunctionCommand extends $CommandCreates a Lambda function URL with the specified configuration parameters. A function URL is - * a dedicated HTTP(S) endpoint that you can use to invoke your function.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, CreateFunctionUrlConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, CreateFunctionUrlConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // CreateFunctionUrlConfigRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * AuthType: "NONE" || "AWS_IAM", // required - * Cors: { // Cors - * AllowCredentials: true || false, - * AllowHeaders: [ // HeadersList - * "STRING_VALUE", - * ], - * AllowMethods: [ // AllowMethodsList - * "STRING_VALUE", - * ], - * AllowOrigins: [ // AllowOriginsList - * "STRING_VALUE", - * ], - * ExposeHeaders: [ - * "STRING_VALUE", - * ], - * MaxAge: Number("int"), - * }, - * InvokeMode: "BUFFERED" || "RESPONSE_STREAM", - * }; - * const command = new CreateFunctionUrlConfigCommand(input); - * const response = await client.send(command); - * // { // CreateFunctionUrlConfigResponse - * // FunctionUrl: "STRING_VALUE", // required - * // FunctionArn: "STRING_VALUE", // required - * // AuthType: "NONE" || "AWS_IAM", // required - * // Cors: { // Cors - * // AllowCredentials: true || false, - * // AllowHeaders: [ // HeadersList - * // "STRING_VALUE", - * // ], - * // AllowMethods: [ // AllowMethodsList - * // "STRING_VALUE", - * // ], - * // AllowOrigins: [ // AllowOriginsList - * // "STRING_VALUE", - * // ], - * // ExposeHeaders: [ - * // "STRING_VALUE", - * // ], - * // MaxAge: Number("int"), - * // }, - * // CreationTime: "STRING_VALUE", // required - * // InvokeMode: "BUFFERED" || "RESPONSE_STREAM", - * // }; - * - * ``` - * - * @param CreateFunctionUrlConfigCommandInput - {@link CreateFunctionUrlConfigCommandInput} - * @returns {@link CreateFunctionUrlConfigCommandOutput} - * @see {@link CreateFunctionUrlConfigCommandInput} for command's `input` shape. - * @see {@link CreateFunctionUrlConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class CreateFunctionUrlConfigCommand extends $CommandDeletes a Lambda function alias.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteAliasCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteAliasCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteAliasRequest - * FunctionName: "STRING_VALUE", // required - * Name: "STRING_VALUE", // required - * }; - * const command = new DeleteAliasCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteAliasCommandInput - {@link DeleteAliasCommandInput} - * @returns {@link DeleteAliasCommandOutput} - * @see {@link DeleteAliasCommandInput} for command's `input` shape. - * @see {@link DeleteAliasCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteAliasCommand extends $CommandDeletes the code signing configuration. You can delete the code signing configuration only if no function is - * using it.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteCodeSigningConfigRequest - * CodeSigningConfigArn: "STRING_VALUE", // required - * }; - * const command = new DeleteCodeSigningConfigCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteCodeSigningConfigCommandInput - {@link DeleteCodeSigningConfigCommandInput} - * @returns {@link DeleteCodeSigningConfigCommandOutput} - * @see {@link DeleteCodeSigningConfigCommandInput} for command's `input` shape. - * @see {@link DeleteCodeSigningConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteCodeSigningConfigCommand extends $CommandDeletes 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.
One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceInUseException} (client fault) - *The operation conflicts with the resource's availability. For example, you tried to update an event source - * mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteEventSourceMappingCommand extends $CommandRemoves the code signing configuration from the function.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteFunctionCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteFunctionCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteFunctionCodeSigningConfigRequest - * FunctionName: "STRING_VALUE", // required - * }; - * const command = new DeleteFunctionCodeSigningConfigCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteFunctionCodeSigningConfigCommandInput - {@link DeleteFunctionCodeSigningConfigCommandInput} - * @returns {@link DeleteFunctionCodeSigningConfigCommandOutput} - * @see {@link DeleteFunctionCodeSigningConfigCommandInput} for command's `input` shape. - * @see {@link DeleteFunctionCodeSigningConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link CodeSigningConfigNotFoundException} (client fault) - *The specified code signing configuration does not exist.
- * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteFunctionCodeSigningConfigCommand extends $CommandDeletes a Lambda function. To delete a specific function version, use the Qualifier parameter.
- * Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit
- * permissions for DeleteAlias.
To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services and resources that invoke your function - * directly, delete the trigger in the service where you originally configured it.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteFunctionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteFunctionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteFunctionRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * }; - * const command = new DeleteFunctionCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteFunctionCommandInput - {@link DeleteFunctionCommandInput} - * @returns {@link DeleteFunctionCommandOutput} - * @see {@link DeleteFunctionCommandInput} for command's `input` shape. - * @see {@link DeleteFunctionCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteFunctionCommand extends $CommandRemoves a concurrent execution limit from a function.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteFunctionConcurrencyCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteFunctionConcurrencyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteFunctionConcurrencyRequest - * FunctionName: "STRING_VALUE", // required - * }; - * const command = new DeleteFunctionConcurrencyCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteFunctionConcurrencyCommandInput - {@link DeleteFunctionConcurrencyCommandInput} - * @returns {@link DeleteFunctionConcurrencyCommandOutput} - * @see {@link DeleteFunctionConcurrencyCommandInput} for command's `input` shape. - * @see {@link DeleteFunctionConcurrencyCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteFunctionConcurrencyCommand extends $CommandDeletes the configuration for asynchronous invocation for a function, version, or alias.
- *To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteFunctionEventInvokeConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteFunctionEventInvokeConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteFunctionEventInvokeConfigRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * }; - * const command = new DeleteFunctionEventInvokeConfigCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteFunctionEventInvokeConfigCommandInput - {@link DeleteFunctionEventInvokeConfigCommandInput} - * @returns {@link DeleteFunctionEventInvokeConfigCommandOutput} - * @see {@link DeleteFunctionEventInvokeConfigCommandInput} for command's `input` shape. - * @see {@link DeleteFunctionEventInvokeConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteFunctionEventInvokeConfigCommand extends $CommandDeletes a Lambda function URL. When you delete a function URL, you - * can't recover it. Creating a new function URL results in a different URL address.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteFunctionUrlConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteFunctionUrlConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteFunctionUrlConfigRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * }; - * const command = new DeleteFunctionUrlConfigCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteFunctionUrlConfigCommandInput - {@link DeleteFunctionUrlConfigCommandInput} - * @returns {@link DeleteFunctionUrlConfigCommandOutput} - * @see {@link DeleteFunctionUrlConfigCommandInput} for command's `input` shape. - * @see {@link DeleteFunctionUrlConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteFunctionUrlConfigCommand extends $CommandDeletes 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.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteLayerVersionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteLayerVersionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteLayerVersionRequest - * LayerName: "STRING_VALUE", // required - * VersionNumber: Number("long"), // required - * }; - * const command = new DeleteLayerVersionCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteLayerVersionCommandInput - {@link DeleteLayerVersionCommandInput} - * @returns {@link DeleteLayerVersionCommandOutput} - * @see {@link DeleteLayerVersionCommandInput} for command's `input` shape. - * @see {@link DeleteLayerVersionCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteLayerVersionCommand extends $CommandDeletes the provisioned concurrency configuration for a function.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, DeleteProvisionedConcurrencyConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, DeleteProvisionedConcurrencyConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // DeleteProvisionedConcurrencyConfigRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", // required - * }; - * const command = new DeleteProvisionedConcurrencyConfigCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteProvisionedConcurrencyConfigCommandInput - {@link DeleteProvisionedConcurrencyConfigCommandInput} - * @returns {@link DeleteProvisionedConcurrencyConfigCommandOutput} - * @see {@link DeleteProvisionedConcurrencyConfigCommandInput} for command's `input` shape. - * @see {@link DeleteProvisionedConcurrencyConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class DeleteProvisionedConcurrencyConfigCommand extends $CommandRetrieves details about your account's limits and usage in an Amazon Web Services Region.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetAccountSettingsCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetAccountSettingsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = {}; - * const command = new GetAccountSettingsCommand(input); - * const response = await client.send(command); - * // { // GetAccountSettingsResponse - * // AccountLimit: { // AccountLimit - * // TotalCodeSize: Number("long"), - * // CodeSizeUnzipped: Number("long"), - * // CodeSizeZipped: Number("long"), - * // ConcurrentExecutions: Number("int"), - * // UnreservedConcurrentExecutions: Number("int"), - * // }, - * // AccountUsage: { // AccountUsage - * // TotalCodeSize: Number("long"), - * // FunctionCount: Number("long"), - * // }, - * // }; - * - * ``` - * - * @param GetAccountSettingsCommandInput - {@link GetAccountSettingsCommandInput} - * @returns {@link GetAccountSettingsCommandOutput} - * @see {@link GetAccountSettingsCommandInput} for command's `input` shape. - * @see {@link GetAccountSettingsCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetAccountSettingsCommand extends $CommandReturns details about a Lambda function alias.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetAliasCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetAliasCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetAliasRequest - * FunctionName: "STRING_VALUE", // required - * Name: "STRING_VALUE", // required - * }; - * const command = new GetAliasCommand(input); - * const response = await client.send(command); - * // { // AliasConfiguration - * // AliasArn: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // FunctionVersion: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // RoutingConfig: { // AliasRoutingConfiguration - * // AdditionalVersionWeights: { // AdditionalVersionWeights - * // "One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetAliasCommand extends $CommandReturns information about the specified code signing configuration.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetCodeSigningConfigRequest - * CodeSigningConfigArn: "STRING_VALUE", // required - * }; - * const command = new GetCodeSigningConfigCommand(input); - * const response = await client.send(command); - * // { // GetCodeSigningConfigResponse - * // CodeSigningConfig: { // CodeSigningConfig - * // CodeSigningConfigId: "STRING_VALUE", // required - * // CodeSigningConfigArn: "STRING_VALUE", // required - * // Description: "STRING_VALUE", - * // AllowedPublishers: { // AllowedPublishers - * // SigningProfileVersionArns: [ // SigningProfileVersionArns // required - * // "STRING_VALUE", - * // ], - * // }, - * // CodeSigningPolicies: { // CodeSigningPolicies - * // UntrustedArtifactOnDeployment: "Warn" || "Enforce", - * // }, - * // LastModified: "STRING_VALUE", // required - * // }, - * // }; - * - * ``` - * - * @param GetCodeSigningConfigCommandInput - {@link GetCodeSigningConfigCommandInput} - * @returns {@link GetCodeSigningConfigCommandOutput} - * @see {@link GetCodeSigningConfigCommandInput} for command's `input` shape. - * @see {@link GetCodeSigningConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetCodeSigningConfigCommand extends $CommandReturns details about an event source mapping. You can get the identifier of a mapping from the output of - * ListEventSourceMappings.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetEventSourceMappingCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetEventSourceMappingCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetEventSourceMappingRequest - * UUID: "STRING_VALUE", // required - * }; - * const command = new GetEventSourceMappingCommand(input); - * const response = await client.send(command); - * // { // EventSourceMappingConfiguration - * // UUID: "STRING_VALUE", - * // StartingPosition: "TRIM_HORIZON" || "LATEST" || "AT_TIMESTAMP", - * // StartingPositionTimestamp: new Date("TIMESTAMP"), - * // BatchSize: Number("int"), - * // MaximumBatchingWindowInSeconds: Number("int"), - * // ParallelizationFactor: Number("int"), - * // EventSourceArn: "STRING_VALUE", - * // FilterCriteria: { // FilterCriteria - * // Filters: [ // FilterList - * // { // Filter - * // Pattern: "STRING_VALUE", - * // }, - * // ], - * // }, - * // FunctionArn: "STRING_VALUE", - * // LastModified: new Date("TIMESTAMP"), - * // LastProcessingResult: "STRING_VALUE", - * // State: "STRING_VALUE", - * // StateTransitionReason: "STRING_VALUE", - * // DestinationConfig: { // DestinationConfig - * // OnSuccess: { // OnSuccess - * // Destination: "STRING_VALUE", - * // }, - * // OnFailure: { // OnFailure - * // Destination: "STRING_VALUE", - * // }, - * // }, - * // Topics: [ // Topics - * // "STRING_VALUE", - * // ], - * // Queues: [ // Queues - * // "STRING_VALUE", - * // ], - * // SourceAccessConfigurations: [ // SourceAccessConfigurations - * // { // SourceAccessConfiguration - * // Type: "BASIC_AUTH" || "VPC_SUBNET" || "VPC_SECURITY_GROUP" || "SASL_SCRAM_512_AUTH" || "SASL_SCRAM_256_AUTH" || "VIRTUAL_HOST" || "CLIENT_CERTIFICATE_TLS_AUTH" || "SERVER_ROOT_CA_CERTIFICATE", - * // URI: "STRING_VALUE", - * // }, - * // ], - * // SelfManagedEventSource: { // SelfManagedEventSource - * // Endpoints: { // Endpoints - * // "One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetEventSourceMappingCommand extends $CommandReturns the code signing configuration for the specified function.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetFunctionCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetFunctionCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetFunctionCodeSigningConfigRequest - * FunctionName: "STRING_VALUE", // required - * }; - * const command = new GetFunctionCodeSigningConfigCommand(input); - * const response = await client.send(command); - * // { // GetFunctionCodeSigningConfigResponse - * // CodeSigningConfigArn: "STRING_VALUE", // required - * // FunctionName: "STRING_VALUE", // required - * // }; - * - * ``` - * - * @param GetFunctionCodeSigningConfigCommandInput - {@link GetFunctionCodeSigningConfigCommandInput} - * @returns {@link GetFunctionCodeSigningConfigCommandOutput} - * @see {@link GetFunctionCodeSigningConfigCommandInput} for command's `input` shape. - * @see {@link GetFunctionCodeSigningConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetFunctionCodeSigningConfigCommand extends $CommandReturns 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.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetFunctionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetFunctionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetFunctionRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * }; - * const command = new GetFunctionCommand(input); - * const response = await client.send(command); - * // { // GetFunctionResponse - * // Configuration: { // FunctionConfiguration - * // FunctionName: "STRING_VALUE", - * // FunctionArn: "STRING_VALUE", - * // Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // Role: "STRING_VALUE", - * // Handler: "STRING_VALUE", - * // CodeSize: Number("long"), - * // Description: "STRING_VALUE", - * // Timeout: Number("int"), - * // MemorySize: Number("int"), - * // LastModified: "STRING_VALUE", - * // CodeSha256: "STRING_VALUE", - * // Version: "STRING_VALUE", - * // VpcConfig: { // VpcConfigResponse - * // SubnetIds: [ // SubnetIds - * // "STRING_VALUE", - * // ], - * // SecurityGroupIds: [ // SecurityGroupIds - * // "STRING_VALUE", - * // ], - * // VpcId: "STRING_VALUE", - * // Ipv6AllowedForDualStack: true || false, - * // }, - * // DeadLetterConfig: { // DeadLetterConfig - * // TargetArn: "STRING_VALUE", - * // }, - * // Environment: { // EnvironmentResponse - * // Variables: { // EnvironmentVariables - * // "One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetFunctionCommand extends $CommandReturns details about the reserved concurrency configuration for a function. To set a concurrency limit for a - * function, use PutFunctionConcurrency.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetFunctionConcurrencyCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetFunctionConcurrencyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetFunctionConcurrencyRequest - * FunctionName: "STRING_VALUE", // required - * }; - * const command = new GetFunctionConcurrencyCommand(input); - * const response = await client.send(command); - * // { // GetFunctionConcurrencyResponse - * // ReservedConcurrentExecutions: Number("int"), - * // }; - * - * ``` - * - * @param GetFunctionConcurrencyCommandInput - {@link GetFunctionConcurrencyCommandInput} - * @returns {@link GetFunctionConcurrencyCommandOutput} - * @see {@link GetFunctionConcurrencyCommandInput} for command's `input` shape. - * @see {@link GetFunctionConcurrencyCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetFunctionConcurrencyCommand extends $CommandReturns 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.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetFunctionConfigurationCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetFunctionConfigurationCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetFunctionConfigurationRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * }; - * const command = new GetFunctionConfigurationCommand(input); - * const response = await client.send(command); - * // { // FunctionConfiguration - * // FunctionName: "STRING_VALUE", - * // FunctionArn: "STRING_VALUE", - * // Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // Role: "STRING_VALUE", - * // Handler: "STRING_VALUE", - * // CodeSize: Number("long"), - * // Description: "STRING_VALUE", - * // Timeout: Number("int"), - * // MemorySize: Number("int"), - * // LastModified: "STRING_VALUE", - * // CodeSha256: "STRING_VALUE", - * // Version: "STRING_VALUE", - * // VpcConfig: { // VpcConfigResponse - * // SubnetIds: [ // SubnetIds - * // "STRING_VALUE", - * // ], - * // SecurityGroupIds: [ // SecurityGroupIds - * // "STRING_VALUE", - * // ], - * // VpcId: "STRING_VALUE", - * // Ipv6AllowedForDualStack: true || false, - * // }, - * // DeadLetterConfig: { // DeadLetterConfig - * // TargetArn: "STRING_VALUE", - * // }, - * // Environment: { // EnvironmentResponse - * // Variables: { // EnvironmentVariables - * // "One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetFunctionConfigurationCommand extends $CommandRetrieves the configuration for asynchronous invocation for a function, version, or alias.
- *To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetFunctionEventInvokeConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetFunctionEventInvokeConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetFunctionEventInvokeConfigRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * }; - * const command = new GetFunctionEventInvokeConfigCommand(input); - * const response = await client.send(command); - * // { // FunctionEventInvokeConfig - * // LastModified: new Date("TIMESTAMP"), - * // FunctionArn: "STRING_VALUE", - * // MaximumRetryAttempts: Number("int"), - * // MaximumEventAgeInSeconds: Number("int"), - * // DestinationConfig: { // DestinationConfig - * // OnSuccess: { // OnSuccess - * // Destination: "STRING_VALUE", - * // }, - * // OnFailure: { // OnFailure - * // Destination: "STRING_VALUE", - * // }, - * // }, - * // }; - * - * ``` - * - * @param GetFunctionEventInvokeConfigCommandInput - {@link GetFunctionEventInvokeConfigCommandInput} - * @returns {@link GetFunctionEventInvokeConfigCommandOutput} - * @see {@link GetFunctionEventInvokeConfigCommandInput} for command's `input` shape. - * @see {@link GetFunctionEventInvokeConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetFunctionEventInvokeConfigCommand extends $CommandReturns details about a Lambda function URL.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetFunctionUrlConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetFunctionUrlConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetFunctionUrlConfigRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * }; - * const command = new GetFunctionUrlConfigCommand(input); - * const response = await client.send(command); - * // { // GetFunctionUrlConfigResponse - * // FunctionUrl: "STRING_VALUE", // required - * // FunctionArn: "STRING_VALUE", // required - * // AuthType: "NONE" || "AWS_IAM", // required - * // Cors: { // Cors - * // AllowCredentials: true || false, - * // AllowHeaders: [ // HeadersList - * // "STRING_VALUE", - * // ], - * // AllowMethods: [ // AllowMethodsList - * // "STRING_VALUE", - * // ], - * // AllowOrigins: [ // AllowOriginsList - * // "STRING_VALUE", - * // ], - * // ExposeHeaders: [ - * // "STRING_VALUE", - * // ], - * // MaxAge: Number("int"), - * // }, - * // CreationTime: "STRING_VALUE", // required - * // LastModifiedTime: "STRING_VALUE", // required - * // InvokeMode: "BUFFERED" || "RESPONSE_STREAM", - * // }; - * - * ``` - * - * @param GetFunctionUrlConfigCommandInput - {@link GetFunctionUrlConfigCommandInput} - * @returns {@link GetFunctionUrlConfigCommandOutput} - * @see {@link GetFunctionUrlConfigCommandInput} for command's `input` shape. - * @see {@link GetFunctionUrlConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetFunctionUrlConfigCommand extends $CommandReturns information about a version of an Lambda - * layer, with a link to download the layer archive - * that's valid for 10 minutes.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetLayerVersionByArnCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetLayerVersionByArnCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetLayerVersionByArnRequest - * Arn: "STRING_VALUE", // required - * }; - * const command = new GetLayerVersionByArnCommand(input); - * const response = await client.send(command); - * // { // GetLayerVersionResponse - * // Content: { // LayerVersionContentOutput - * // Location: "STRING_VALUE", - * // CodeSha256: "STRING_VALUE", - * // CodeSize: Number("long"), - * // SigningProfileVersionArn: "STRING_VALUE", - * // SigningJobArn: "STRING_VALUE", - * // }, - * // LayerArn: "STRING_VALUE", - * // LayerVersionArn: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // CreatedDate: "STRING_VALUE", - * // Version: Number("long"), - * // CompatibleRuntimes: [ // CompatibleRuntimes - * // "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // ], - * // LicenseInfo: "STRING_VALUE", - * // CompatibleArchitectures: [ // CompatibleArchitectures - * // "x86_64" || "arm64", - * // ], - * // }; - * - * ``` - * - * @param GetLayerVersionByArnCommandInput - {@link GetLayerVersionByArnCommandInput} - * @returns {@link GetLayerVersionByArnCommandOutput} - * @see {@link GetLayerVersionByArnCommandInput} for command's `input` shape. - * @see {@link GetLayerVersionByArnCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetLayerVersionByArnCommand extends $CommandReturns information about a version of an Lambda - * layer, with a link to download the layer archive - * that's valid for 10 minutes.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetLayerVersionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetLayerVersionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetLayerVersionRequest - * LayerName: "STRING_VALUE", // required - * VersionNumber: Number("long"), // required - * }; - * const command = new GetLayerVersionCommand(input); - * const response = await client.send(command); - * // { // GetLayerVersionResponse - * // Content: { // LayerVersionContentOutput - * // Location: "STRING_VALUE", - * // CodeSha256: "STRING_VALUE", - * // CodeSize: Number("long"), - * // SigningProfileVersionArn: "STRING_VALUE", - * // SigningJobArn: "STRING_VALUE", - * // }, - * // LayerArn: "STRING_VALUE", - * // LayerVersionArn: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // CreatedDate: "STRING_VALUE", - * // Version: Number("long"), - * // CompatibleRuntimes: [ // CompatibleRuntimes - * // "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // ], - * // LicenseInfo: "STRING_VALUE", - * // CompatibleArchitectures: [ // CompatibleArchitectures - * // "x86_64" || "arm64", - * // ], - * // }; - * - * ``` - * - * @param GetLayerVersionCommandInput - {@link GetLayerVersionCommandInput} - * @returns {@link GetLayerVersionCommandOutput} - * @see {@link GetLayerVersionCommandInput} for command's `input` shape. - * @see {@link GetLayerVersionCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetLayerVersionCommand extends $CommandReturns the permission policy for a version of an Lambda - * layer. For more information, see AddLayerVersionPermission.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetLayerVersionPolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetLayerVersionPolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetLayerVersionPolicyRequest - * LayerName: "STRING_VALUE", // required - * VersionNumber: Number("long"), // required - * }; - * const command = new GetLayerVersionPolicyCommand(input); - * const response = await client.send(command); - * // { // GetLayerVersionPolicyResponse - * // Policy: "STRING_VALUE", - * // RevisionId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetLayerVersionPolicyCommandInput - {@link GetLayerVersionPolicyCommandInput} - * @returns {@link GetLayerVersionPolicyCommandOutput} - * @see {@link GetLayerVersionPolicyCommandInput} for command's `input` shape. - * @see {@link GetLayerVersionPolicyCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetLayerVersionPolicyCommand extends $CommandReturns the resource-based IAM policy for a function, version, or alias.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetPolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetPolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetPolicyRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", - * }; - * const command = new GetPolicyCommand(input); - * const response = await client.send(command); - * // { // GetPolicyResponse - * // Policy: "STRING_VALUE", - * // RevisionId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetPolicyCommandInput - {@link GetPolicyCommandInput} - * @returns {@link GetPolicyCommandOutput} - * @see {@link GetPolicyCommandInput} for command's `input` shape. - * @see {@link GetPolicyCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetPolicyCommand extends $CommandRetrieves the provisioned concurrency configuration for a function's alias or version.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, GetProvisionedConcurrencyConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, GetProvisionedConcurrencyConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // GetProvisionedConcurrencyConfigRequest - * FunctionName: "STRING_VALUE", // required - * Qualifier: "STRING_VALUE", // required - * }; - * const command = new GetProvisionedConcurrencyConfigCommand(input); - * const response = await client.send(command); - * // { // GetProvisionedConcurrencyConfigResponse - * // RequestedProvisionedConcurrentExecutions: Number("int"), - * // AvailableProvisionedConcurrentExecutions: Number("int"), - * // AllocatedProvisionedConcurrentExecutions: Number("int"), - * // Status: "IN_PROGRESS" || "READY" || "FAILED", - * // StatusReason: "STRING_VALUE", - * // LastModified: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetProvisionedConcurrencyConfigCommandInput - {@link GetProvisionedConcurrencyConfigCommandInput} - * @returns {@link GetProvisionedConcurrencyConfigCommandOutput} - * @see {@link GetProvisionedConcurrencyConfigCommandInput} for command's `input` shape. - * @see {@link GetProvisionedConcurrencyConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ProvisionedConcurrencyConfigNotFoundException} (client fault) - *The specified configuration does not exist.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetProvisionedConcurrencyConfigCommand extends $CommandRetrieves the runtime management configuration for a function's version. If the runtime update mode is Manual, this includes the ARN of the
- * runtime version and the runtime update mode. If the runtime update mode is Auto or Function update,
- * this includes the runtime update mode and null is returned for the ARN. For more information, see Runtime updates.
One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class GetRuntimeManagementConfigCommand extends $CommandFor asynchronous function invocation, use Invoke.
- *Invokes a function asynchronously.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, InvokeAsyncCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, InvokeAsyncCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // InvokeAsyncRequest - * FunctionName: "STRING_VALUE", // required - * InvokeArgs: "STREAMING_BLOB_VALUE", // required - * }; - * const command = new InvokeAsyncCommand(input); - * const response = await client.send(command); - * // { // InvokeAsyncResponse - * // Status: Number("int"), - * // }; - * - * ``` - * - * @param InvokeAsyncCommandInput - {@link InvokeAsyncCommandInput} - * @returns {@link InvokeAsyncCommandOutput} - * @see {@link InvokeAsyncCommandInput} for command's `input` shape. - * @see {@link InvokeAsyncCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidRequestContentException} (client fault) - *The request body could not be parsed as JSON.
- * - * @throws {@link InvalidRuntimeException} (server fault) - *The runtime or runtime version specified is not supported.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class InvokeAsyncCommand extends $CommandInvokes a Lambda function. You can invoke a function synchronously (and wait for the response), or
- * asynchronously. By default, Lambda invokes your function synchronously (i.e. theInvocationType
- * is RequestResponse). To invoke a function asynchronously, set InvocationType to
- * Event. Lambda passes the ClientContext object to your function for
- * synchronous invocations only.
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 Error handling and automatic retries in - * Lambda.
- *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, quota errors, or issues with your function's code and
- * configuration. For example, Lambda returns TooManyRequestsException if running 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 disconnect 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. For details on how to set up - * permissions for cross-account invocations, see Granting function - * access to other accounts.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, InvokeCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, InvokeCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // InvocationRequest - * FunctionName: "STRING_VALUE", // required - * InvocationType: "Event" || "RequestResponse" || "DryRun", - * LogType: "None" || "Tail", - * ClientContext: "STRING_VALUE", - * Payload: "BLOB_VALUE", - * Qualifier: "STRING_VALUE", - * }; - * const command = new InvokeCommand(input); - * const response = await client.send(command); - * // { // InvocationResponse - * // StatusCode: Number("int"), - * // FunctionError: "STRING_VALUE", - * // LogResult: "STRING_VALUE", - * // Payload: "BLOB_VALUE", - * // ExecutedVersion: "STRING_VALUE", - * // }; - * - * ``` - * - * @param InvokeCommandInput - {@link InvokeCommandInput} - * @returns {@link InvokeCommandOutput} - * @see {@link InvokeCommandInput} for command's `input` shape. - * @see {@link InvokeCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link EC2AccessDeniedException} (server fault) - *Need additional permissions to configure VPC settings.
- * - * @throws {@link EC2ThrottledException} (server fault) - *Amazon EC2 throttled Lambda during Lambda function initialization using - * the execution role provided for the function.
- * - * @throws {@link EC2UnexpectedException} (server fault) - *Lambda received an unexpected Amazon EC2 client exception while setting up for the - * Lambda function.
- * - * @throws {@link EFSIOException} (client fault) - *An error occurred when reading from or writing to a connected file system.
- * - * @throws {@link EFSMountConnectivityException} (client fault) - *The Lambda function couldn't make a network connection to the configured file system.
- * - * @throws {@link EFSMountFailureException} (client fault) - *The Lambda function couldn't mount the configured file system due to a permission or configuration - * issue.
- * - * @throws {@link EFSMountTimeoutException} (client fault) - *The Lambda function made a network connection to the configured file system, but the mount - * operation timed out.
- * - * @throws {@link ENILimitReachedException} (server fault) - *Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more - * information, see Lambda - * quotas.
- * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link InvalidRequestContentException} (client fault) - *The request body could not be parsed as JSON.
- * - * @throws {@link InvalidRuntimeException} (server fault) - *The runtime or runtime version specified is not supported.
- * - * @throws {@link InvalidSecurityGroupIDException} (server fault) - *The security group ID provided in the Lambda function VPC configuration is not valid.
- * - * @throws {@link InvalidSubnetIDException} (server fault) - *The subnet ID provided in the Lambda function VPC configuration is not valid.
- * - * @throws {@link InvalidZipFileException} (server fault) - *Lambda could not unzip the deployment package.
- * - * @throws {@link KMSAccessDeniedException} (server fault) - *Lambda couldn't decrypt the environment variables because KMS access was denied. - * Check the Lambda function's KMS permissions.
- * - * @throws {@link KMSDisabledException} (server fault) - *Lambda couldn't decrypt the environment variables because the KMS key used is - * disabled. Check the Lambda function's KMS key settings.
- * - * @throws {@link KMSInvalidStateException} (server fault) - *Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
- * - * @throws {@link KMSNotFoundException} (server fault) - *Lambda couldn't decrypt the environment variables because the KMS key was not - * found. Check the function's KMS key settings.
- * - * @throws {@link RecursiveInvocationException} (client fault) - *Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
- * - * @throws {@link RequestTooLargeException} (client fault) - *The request payload exceeded the Invoke request body JSON input quota. For more information, see Lambda
- * quotas.
The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ResourceNotReadyException} (server fault) - *The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to - * reestablish and try again.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link SnapStartException} (client fault) - *The afterRestore()
- * runtime hook encountered an error. For more information, check the Amazon CloudWatch logs.
Lambda is initializing your function. You can invoke the function when the function state becomes Active.
Lambda couldn't restore the snapshot within the timeout limit.
- * - * @throws {@link SubnetIPAddressLimitReachedException} (server fault) - *Lambda couldn't set up VPC access for the Lambda function because one or more - * configured subnets has no available IP addresses.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link UnsupportedMediaTypeException} (client fault) - *The content type of the Invoke request body is not JSON.
Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class InvokeCommand extends $CommandConfigure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses.
- *This operation requires permission for the lambda:InvokeFunction action. For details on how to set up - * permissions for cross-account invocations, see Granting function - * access to other accounts.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, InvokeWithResponseStreamCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, InvokeWithResponseStreamCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // InvokeWithResponseStreamRequest - * FunctionName: "STRING_VALUE", // required - * InvocationType: "RequestResponse" || "DryRun", - * LogType: "None" || "Tail", - * ClientContext: "STRING_VALUE", - * Qualifier: "STRING_VALUE", - * Payload: "BLOB_VALUE", - * }; - * const command = new InvokeWithResponseStreamCommand(input); - * const response = await client.send(command); - * // { // InvokeWithResponseStreamResponse - * // StatusCode: Number("int"), - * // ExecutedVersion: "STRING_VALUE", - * // EventStream: { // InvokeWithResponseStreamResponseEvent Union: only one key present - * // PayloadChunk: { // InvokeResponseStreamUpdate - * // Payload: "BLOB_VALUE", - * // }, - * // InvokeComplete: { // InvokeWithResponseStreamCompleteEvent - * // ErrorCode: "STRING_VALUE", - * // ErrorDetails: "STRING_VALUE", - * // LogResult: "STRING_VALUE", - * // }, - * // }, - * // ResponseStreamContentType: "STRING_VALUE", - * // }; - * - * ``` - * - * @param InvokeWithResponseStreamCommandInput - {@link InvokeWithResponseStreamCommandInput} - * @returns {@link InvokeWithResponseStreamCommandOutput} - * @see {@link InvokeWithResponseStreamCommandInput} for command's `input` shape. - * @see {@link InvokeWithResponseStreamCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link EC2AccessDeniedException} (server fault) - *Need additional permissions to configure VPC settings.
- * - * @throws {@link EC2ThrottledException} (server fault) - *Amazon EC2 throttled Lambda during Lambda function initialization using - * the execution role provided for the function.
- * - * @throws {@link EC2UnexpectedException} (server fault) - *Lambda received an unexpected Amazon EC2 client exception while setting up for the - * Lambda function.
- * - * @throws {@link EFSIOException} (client fault) - *An error occurred when reading from or writing to a connected file system.
- * - * @throws {@link EFSMountConnectivityException} (client fault) - *The Lambda function couldn't make a network connection to the configured file system.
- * - * @throws {@link EFSMountFailureException} (client fault) - *The Lambda function couldn't mount the configured file system due to a permission or configuration - * issue.
- * - * @throws {@link EFSMountTimeoutException} (client fault) - *The Lambda function made a network connection to the configured file system, but the mount - * operation timed out.
- * - * @throws {@link ENILimitReachedException} (server fault) - *Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more - * information, see Lambda - * quotas.
- * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link InvalidRequestContentException} (client fault) - *The request body could not be parsed as JSON.
- * - * @throws {@link InvalidRuntimeException} (server fault) - *The runtime or runtime version specified is not supported.
- * - * @throws {@link InvalidSecurityGroupIDException} (server fault) - *The security group ID provided in the Lambda function VPC configuration is not valid.
- * - * @throws {@link InvalidSubnetIDException} (server fault) - *The subnet ID provided in the Lambda function VPC configuration is not valid.
- * - * @throws {@link InvalidZipFileException} (server fault) - *Lambda could not unzip the deployment package.
- * - * @throws {@link KMSAccessDeniedException} (server fault) - *Lambda couldn't decrypt the environment variables because KMS access was denied. - * Check the Lambda function's KMS permissions.
- * - * @throws {@link KMSDisabledException} (server fault) - *Lambda couldn't decrypt the environment variables because the KMS key used is - * disabled. Check the Lambda function's KMS key settings.
- * - * @throws {@link KMSInvalidStateException} (server fault) - *Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
- * - * @throws {@link KMSNotFoundException} (server fault) - *Lambda couldn't decrypt the environment variables because the KMS key was not - * found. Check the function's KMS key settings.
- * - * @throws {@link RecursiveInvocationException} (client fault) - *Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
- * - * @throws {@link RequestTooLargeException} (client fault) - *The request payload exceeded the Invoke request body JSON input quota. For more information, see Lambda
- * quotas.
The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ResourceNotReadyException} (server fault) - *The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to - * reestablish and try again.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link SnapStartException} (client fault) - *The afterRestore()
- * runtime hook encountered an error. For more information, check the Amazon CloudWatch logs.
Lambda is initializing your function. You can invoke the function when the function state becomes Active.
Lambda couldn't restore the snapshot within the timeout limit.
- * - * @throws {@link SubnetIPAddressLimitReachedException} (server fault) - *Lambda couldn't set up VPC access for the Lambda function because one or more - * configured subnets has no available IP addresses.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link UnsupportedMediaTypeException} (client fault) - *The content type of the Invoke request body is not JSON.
Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class InvokeWithResponseStreamCommand extends $CommandReturns a list of aliases - * for a Lambda function.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListAliasesCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListAliasesCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListAliasesRequest - * FunctionName: "STRING_VALUE", // required - * FunctionVersion: "STRING_VALUE", - * Marker: "STRING_VALUE", - * MaxItems: Number("int"), - * }; - * const command = new ListAliasesCommand(input); - * const response = await client.send(command); - * // { // ListAliasesResponse - * // NextMarker: "STRING_VALUE", - * // Aliases: [ // AliasList - * // { // AliasConfiguration - * // AliasArn: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // FunctionVersion: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // RoutingConfig: { // AliasRoutingConfiguration - * // AdditionalVersionWeights: { // AdditionalVersionWeights - * // "One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListAliasesCommand extends $CommandReturns 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.
One of the parameters in the request is not valid.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListCodeSigningConfigsCommand extends $CommandLists event source mappings. Specify an EventSourceArn to show only event source mappings for a
- * single event source.
One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListEventSourceMappingsCommand extends $CommandRetrieves a list of configurations for asynchronous invocation for a function.
- *To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListFunctionEventInvokeConfigsCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListFunctionEventInvokeConfigsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListFunctionEventInvokeConfigsRequest - * FunctionName: "STRING_VALUE", // required - * Marker: "STRING_VALUE", - * MaxItems: Number("int"), - * }; - * const command = new ListFunctionEventInvokeConfigsCommand(input); - * const response = await client.send(command); - * // { // ListFunctionEventInvokeConfigsResponse - * // FunctionEventInvokeConfigs: [ // FunctionEventInvokeConfigList - * // { // FunctionEventInvokeConfig - * // LastModified: new Date("TIMESTAMP"), - * // FunctionArn: "STRING_VALUE", - * // MaximumRetryAttempts: Number("int"), - * // MaximumEventAgeInSeconds: Number("int"), - * // DestinationConfig: { // DestinationConfig - * // OnSuccess: { // OnSuccess - * // Destination: "STRING_VALUE", - * // }, - * // OnFailure: { // OnFailure - * // Destination: "STRING_VALUE", - * // }, - * // }, - * // }, - * // ], - * // NextMarker: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListFunctionEventInvokeConfigsCommandInput - {@link ListFunctionEventInvokeConfigsCommandInput} - * @returns {@link ListFunctionEventInvokeConfigsCommandOutput} - * @see {@link ListFunctionEventInvokeConfigsCommandInput} for command's `input` shape. - * @see {@link ListFunctionEventInvokeConfigsCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListFunctionEventInvokeConfigsCommand extends $CommandReturns a list of Lambda function URLs for the specified function.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListFunctionUrlConfigsCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListFunctionUrlConfigsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListFunctionUrlConfigsRequest - * FunctionName: "STRING_VALUE", // required - * Marker: "STRING_VALUE", - * MaxItems: Number("int"), - * }; - * const command = new ListFunctionUrlConfigsCommand(input); - * const response = await client.send(command); - * // { // ListFunctionUrlConfigsResponse - * // FunctionUrlConfigs: [ // FunctionUrlConfigList // required - * // { // FunctionUrlConfig - * // FunctionUrl: "STRING_VALUE", // required - * // FunctionArn: "STRING_VALUE", // required - * // CreationTime: "STRING_VALUE", // required - * // LastModifiedTime: "STRING_VALUE", // required - * // Cors: { // Cors - * // AllowCredentials: true || false, - * // AllowHeaders: [ // HeadersList - * // "STRING_VALUE", - * // ], - * // AllowMethods: [ // AllowMethodsList - * // "STRING_VALUE", - * // ], - * // AllowOrigins: [ // AllowOriginsList - * // "STRING_VALUE", - * // ], - * // ExposeHeaders: [ - * // "STRING_VALUE", - * // ], - * // MaxAge: Number("int"), - * // }, - * // AuthType: "NONE" || "AWS_IAM", // required - * // InvokeMode: "BUFFERED" || "RESPONSE_STREAM", - * // }, - * // ], - * // NextMarker: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListFunctionUrlConfigsCommandInput - {@link ListFunctionUrlConfigsCommandInput} - * @returns {@link ListFunctionUrlConfigsCommandOutput} - * @see {@link ListFunctionUrlConfigsCommandInput} for command's `input` shape. - * @see {@link ListFunctionUrlConfigsCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListFunctionUrlConfigsCommand extends $CommandList 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.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListFunctionsByCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListFunctionsByCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListFunctionsByCodeSigningConfigRequest - * CodeSigningConfigArn: "STRING_VALUE", // required - * Marker: "STRING_VALUE", - * MaxItems: Number("int"), - * }; - * const command = new ListFunctionsByCodeSigningConfigCommand(input); - * const response = await client.send(command); - * // { // ListFunctionsByCodeSigningConfigResponse - * // NextMarker: "STRING_VALUE", - * // FunctionArns: [ // FunctionArnList - * // "STRING_VALUE", - * // ], - * // }; - * - * ``` - * - * @param ListFunctionsByCodeSigningConfigCommandInput - {@link ListFunctionsByCodeSigningConfigCommandInput} - * @returns {@link ListFunctionsByCodeSigningConfigCommandOutput} - * @see {@link ListFunctionsByCodeSigningConfigCommandInput} for command's `input` shape. - * @see {@link ListFunctionsByCodeSigningConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListFunctionsByCodeSigningConfigCommand extends $CommandReturns 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 operation returns a subset of the FunctionConfiguration fields.
- * To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason,
- * LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.
One of the parameters in the request is not valid.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListFunctionsCommand extends $CommandLists 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. Specify a compatible architecture to include only - * layer versions that are compatible with that architecture.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListLayerVersionsCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListLayerVersionsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListLayerVersionsRequest - * CompatibleRuntime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * LayerName: "STRING_VALUE", // required - * Marker: "STRING_VALUE", - * MaxItems: Number("int"), - * CompatibleArchitecture: "x86_64" || "arm64", - * }; - * const command = new ListLayerVersionsCommand(input); - * const response = await client.send(command); - * // { // ListLayerVersionsResponse - * // NextMarker: "STRING_VALUE", - * // LayerVersions: [ // LayerVersionsList - * // { // LayerVersionsListItem - * // LayerVersionArn: "STRING_VALUE", - * // Version: Number("long"), - * // Description: "STRING_VALUE", - * // CreatedDate: "STRING_VALUE", - * // CompatibleRuntimes: [ // CompatibleRuntimes - * // "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // ], - * // LicenseInfo: "STRING_VALUE", - * // CompatibleArchitectures: [ // CompatibleArchitectures - * // "x86_64" || "arm64", - * // ], - * // }, - * // ], - * // }; - * - * ``` - * - * @param ListLayerVersionsCommandInput - {@link ListLayerVersionsCommandInput} - * @returns {@link ListLayerVersionsCommandOutput} - * @see {@link ListLayerVersionsCommandInput} for command's `input` shape. - * @see {@link ListLayerVersionsCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListLayerVersionsCommand extends $CommandLists 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. Specify a compatible architecture to include only layers that are compatible with - * that instruction set architecture.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListLayersCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListLayersCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListLayersRequest - * CompatibleRuntime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * Marker: "STRING_VALUE", - * MaxItems: Number("int"), - * CompatibleArchitecture: "x86_64" || "arm64", - * }; - * const command = new ListLayersCommand(input); - * const response = await client.send(command); - * // { // ListLayersResponse - * // NextMarker: "STRING_VALUE", - * // Layers: [ // LayersList - * // { // LayersListItem - * // LayerName: "STRING_VALUE", - * // LayerArn: "STRING_VALUE", - * // LatestMatchingVersion: { // LayerVersionsListItem - * // LayerVersionArn: "STRING_VALUE", - * // Version: Number("long"), - * // Description: "STRING_VALUE", - * // CreatedDate: "STRING_VALUE", - * // CompatibleRuntimes: [ // CompatibleRuntimes - * // "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // ], - * // LicenseInfo: "STRING_VALUE", - * // CompatibleArchitectures: [ // CompatibleArchitectures - * // "x86_64" || "arm64", - * // ], - * // }, - * // }, - * // ], - * // }; - * - * ``` - * - * @param ListLayersCommandInput - {@link ListLayersCommandInput} - * @returns {@link ListLayersCommandOutput} - * @see {@link ListLayersCommandInput} for command's `input` shape. - * @see {@link ListLayersCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListLayersCommand extends $CommandRetrieves a list of provisioned concurrency configurations for a function.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListProvisionedConcurrencyConfigsCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListProvisionedConcurrencyConfigsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListProvisionedConcurrencyConfigsRequest - * FunctionName: "STRING_VALUE", // required - * Marker: "STRING_VALUE", - * MaxItems: Number("int"), - * }; - * const command = new ListProvisionedConcurrencyConfigsCommand(input); - * const response = await client.send(command); - * // { // ListProvisionedConcurrencyConfigsResponse - * // ProvisionedConcurrencyConfigs: [ // ProvisionedConcurrencyConfigList - * // { // ProvisionedConcurrencyConfigListItem - * // FunctionArn: "STRING_VALUE", - * // RequestedProvisionedConcurrentExecutions: Number("int"), - * // AvailableProvisionedConcurrentExecutions: Number("int"), - * // AllocatedProvisionedConcurrentExecutions: Number("int"), - * // Status: "IN_PROGRESS" || "READY" || "FAILED", - * // StatusReason: "STRING_VALUE", - * // LastModified: "STRING_VALUE", - * // }, - * // ], - * // NextMarker: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListProvisionedConcurrencyConfigsCommandInput - {@link ListProvisionedConcurrencyConfigsCommandInput} - * @returns {@link ListProvisionedConcurrencyConfigsCommandOutput} - * @see {@link ListProvisionedConcurrencyConfigsCommandInput} for command's `input` shape. - * @see {@link ListProvisionedConcurrencyConfigsCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListProvisionedConcurrencyConfigsCommand extends $CommandReturns a function's tags. You can - * also view tags with GetFunction.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListTagsCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListTagsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListTagsRequest - * Resource: "STRING_VALUE", // required - * }; - * const command = new ListTagsCommand(input); - * const response = await client.send(command); - * // { // ListTagsResponse - * // Tags: { // Tags - * // "One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListTagsCommand extends $CommandReturns a list of versions, - * with the version-specific configuration of each. Lambda returns up to 50 versions per call.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, ListVersionsByFunctionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, ListVersionsByFunctionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // ListVersionsByFunctionRequest - * FunctionName: "STRING_VALUE", // required - * Marker: "STRING_VALUE", - * MaxItems: Number("int"), - * }; - * const command = new ListVersionsByFunctionCommand(input); - * const response = await client.send(command); - * // { // ListVersionsByFunctionResponse - * // NextMarker: "STRING_VALUE", - * // Versions: [ // FunctionList - * // { // FunctionConfiguration - * // FunctionName: "STRING_VALUE", - * // FunctionArn: "STRING_VALUE", - * // Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // Role: "STRING_VALUE", - * // Handler: "STRING_VALUE", - * // CodeSize: Number("long"), - * // Description: "STRING_VALUE", - * // Timeout: Number("int"), - * // MemorySize: Number("int"), - * // LastModified: "STRING_VALUE", - * // CodeSha256: "STRING_VALUE", - * // Version: "STRING_VALUE", - * // VpcConfig: { // VpcConfigResponse - * // SubnetIds: [ // SubnetIds - * // "STRING_VALUE", - * // ], - * // SecurityGroupIds: [ // SecurityGroupIds - * // "STRING_VALUE", - * // ], - * // VpcId: "STRING_VALUE", - * // Ipv6AllowedForDualStack: true || false, - * // }, - * // DeadLetterConfig: { // DeadLetterConfig - * // TargetArn: "STRING_VALUE", - * // }, - * // Environment: { // EnvironmentResponse - * // Variables: { // EnvironmentVariables - * // "One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class ListVersionsByFunctionCommand extends $CommandCreates 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.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, PublishLayerVersionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, PublishLayerVersionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // PublishLayerVersionRequest - * LayerName: "STRING_VALUE", // required - * Description: "STRING_VALUE", - * Content: { // LayerVersionContentInput - * S3Bucket: "STRING_VALUE", - * S3Key: "STRING_VALUE", - * S3ObjectVersion: "STRING_VALUE", - * ZipFile: "BLOB_VALUE", - * }, - * CompatibleRuntimes: [ // CompatibleRuntimes - * "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * ], - * LicenseInfo: "STRING_VALUE", - * CompatibleArchitectures: [ // CompatibleArchitectures - * "x86_64" || "arm64", - * ], - * }; - * const command = new PublishLayerVersionCommand(input); - * const response = await client.send(command); - * // { // PublishLayerVersionResponse - * // Content: { // LayerVersionContentOutput - * // Location: "STRING_VALUE", - * // CodeSha256: "STRING_VALUE", - * // CodeSize: Number("long"), - * // SigningProfileVersionArn: "STRING_VALUE", - * // SigningJobArn: "STRING_VALUE", - * // }, - * // LayerArn: "STRING_VALUE", - * // LayerVersionArn: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // CreatedDate: "STRING_VALUE", - * // Version: Number("long"), - * // CompatibleRuntimes: [ // CompatibleRuntimes - * // "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // ], - * // LicenseInfo: "STRING_VALUE", - * // CompatibleArchitectures: [ // CompatibleArchitectures - * // "x86_64" || "arm64", - * // ], - * // }; - * - * ``` - * - * @param PublishLayerVersionCommandInput - {@link PublishLayerVersionCommandInput} - * @returns {@link PublishLayerVersionCommandOutput} - * @see {@link PublishLayerVersionCommandInput} for command's `input` shape. - * @see {@link PublishLayerVersionCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link CodeStorageExceededException} (client fault) - *Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class PublishLayerVersionCommand extends $CommandCreates 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.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, PublishVersionCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, PublishVersionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // PublishVersionRequest - * FunctionName: "STRING_VALUE", // required - * CodeSha256: "STRING_VALUE", - * Description: "STRING_VALUE", - * RevisionId: "STRING_VALUE", - * }; - * const command = new PublishVersionCommand(input); - * const response = await client.send(command); - * // { // FunctionConfiguration - * // FunctionName: "STRING_VALUE", - * // FunctionArn: "STRING_VALUE", - * // Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10" || "java17" || "ruby3.2" || "python3.11" || "nodejs20.x" || "provided.al2023" || "python3.12" || "java21", - * // Role: "STRING_VALUE", - * // Handler: "STRING_VALUE", - * // CodeSize: Number("long"), - * // Description: "STRING_VALUE", - * // Timeout: Number("int"), - * // MemorySize: Number("int"), - * // LastModified: "STRING_VALUE", - * // CodeSha256: "STRING_VALUE", - * // Version: "STRING_VALUE", - * // VpcConfig: { // VpcConfigResponse - * // SubnetIds: [ // SubnetIds - * // "STRING_VALUE", - * // ], - * // SecurityGroupIds: [ // SecurityGroupIds - * // "STRING_VALUE", - * // ], - * // VpcId: "STRING_VALUE", - * // Ipv6AllowedForDualStack: true || false, - * // }, - * // DeadLetterConfig: { // DeadLetterConfig - * // TargetArn: "STRING_VALUE", - * // }, - * // Environment: { // EnvironmentResponse - * // Variables: { // EnvironmentVariables - * // "Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link PreconditionFailedException} (client fault) - *The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias
- * API operation to retrieve the latest RevisionId for your resource.
The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class PublishVersionCommand extends $CommandUpdate 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.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, PutFunctionCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, PutFunctionCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // PutFunctionCodeSigningConfigRequest - * CodeSigningConfigArn: "STRING_VALUE", // required - * FunctionName: "STRING_VALUE", // required - * }; - * const command = new PutFunctionCodeSigningConfigCommand(input); - * const response = await client.send(command); - * // { // PutFunctionCodeSigningConfigResponse - * // CodeSigningConfigArn: "STRING_VALUE", // required - * // FunctionName: "STRING_VALUE", // required - * // }; - * - * ``` - * - * @param PutFunctionCodeSigningConfigCommandInput - {@link PutFunctionCodeSigningConfigCommandInput} - * @returns {@link PutFunctionCodeSigningConfigCommandOutput} - * @see {@link PutFunctionCodeSigningConfigCommandInput} for command's `input` shape. - * @see {@link PutFunctionCodeSigningConfigCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link CodeSigningConfigNotFoundException} (client fault) - *The specified code signing configuration does not exist.
- * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class PutFunctionCodeSigningConfigCommand extends $CommandSets 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 Lambda function scaling.
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { LambdaClient, PutFunctionConcurrencyCommand } from "@aws-sdk/client-lambda"; // ES Modules import - * // const { LambdaClient, PutFunctionConcurrencyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import - * const client = new LambdaClient(config); - * const input = { // PutFunctionConcurrencyRequest - * FunctionName: "STRING_VALUE", // required - * ReservedConcurrentExecutions: Number("int"), // required - * }; - * const command = new PutFunctionConcurrencyCommand(input); - * const response = await client.send(command); - * // { // Concurrency - * // ReservedConcurrentExecutions: Number("int"), - * // }; - * - * ``` - * - * @param PutFunctionConcurrencyCommandInput - {@link PutFunctionConcurrencyCommandInput} - * @returns {@link PutFunctionConcurrencyCommandOutput} - * @see {@link PutFunctionConcurrencyCommandInput} for command's `input` shape. - * @see {@link PutFunctionConcurrencyCommandOutput} for command's `response` shape. - * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. - * - * @throws {@link InvalidParameterValueException} (client fault) - *One of the parameters in the request is not valid.
- * - * @throws {@link ResourceConflictException} (client fault) - *The resource already exists, or another operation is in progress.
- * - * @throws {@link ResourceNotFoundException} (client fault) - *The resource specified in the request does not exist.
- * - * @throws {@link ServiceException} (server fault) - *The Lambda service encountered an internal error.
- * - * @throws {@link TooManyRequestsException} (client fault) - *The request throughput limit was exceeded. For more information, see Lambda quotas.
- * - * @throws {@link LambdaServiceException} - *Base exception class for all service exceptions from Lambda service.
- * - */ -export declare class PutFunctionConcurrencyCommand extends $CommandConfigures options for