From 312b76016cb84187a03a3e8efe1abec43a08c790 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 17:31:12 -0400
Subject: [PATCH 01/19] Add Python examples deployment infrastructure
- Add examples catalog with hello_world function
- Add build script to copy SDK dependencies from hatch environment
- Add deployment script with AWS Lambda integration
- Add SAM template for local testing
- Add GitHub workflow for automated deployment
- Add hatch examples environment with build/deploy/clean commands
---
.github/workflows/deploy-examples.yml | 119 +++++++++++++++++
examples/.env.template | 6 +
examples/.gitignore | 4 +
examples/README.md | 44 +++++++
examples/build.py | 49 +++++++
examples/deploy.py | 179 ++++++++++++++++++++++++++
examples/event.json | 3 +
examples/examples-catalog.json | 16 +++
examples/src/hello_world.py | 8 +-
examples/src/requirements.txt | 1 +
examples/template.yaml | 24 ++++
pyproject.toml | 12 ++
12 files changed, 459 insertions(+), 6 deletions(-)
create mode 100644 .github/workflows/deploy-examples.yml
create mode 100644 examples/.env.template
create mode 100644 examples/.gitignore
create mode 100644 examples/README.md
create mode 100644 examples/build.py
create mode 100755 examples/deploy.py
create mode 100644 examples/event.json
create mode 100644 examples/examples-catalog.json
create mode 100644 examples/src/requirements.txt
create mode 100644 examples/template.yaml
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
new file mode 100644
index 0000000..37b61d4
--- /dev/null
+++ b/.github/workflows/deploy-examples.yml
@@ -0,0 +1,119 @@
+name: Deploy Python Examples
+
+on:
+ push:
+ branches: [ "main", "development" ]
+ paths:
+ - 'src/aws_durable_execution_sdk_python_testing/**'
+ - 'examples/**'
+ - '.github/workflows/deploy-examples.yml'
+ pull_request:
+ branches: [ "main", "development"]
+ paths:
+ - 'src/aws_durable_execution_sdk_python_testing/**'
+ - 'examples/**'
+ - '.github/workflows/deploy-examples.yml'
+ workflow_dispatch:
+
+env:
+ AWS_REGION: us-west-2
+
+permissions:
+ id-token: write
+ contents: read
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ outputs:
+ function-name-map: ${{ steps.deploy-functions.outputs.function-name-map }}
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.13'
+
+ - name: Configure AWS credentials
+ if: github.event_name != 'workflow_dispatch' || github.actor != 'nektos/act'
+ uses: aws-actions/configure-aws-credentials@v4
+ with:
+ role-to-assume: "${{ secrets.ACTIONS_INTEGRATION_ROLE_NAME }}"
+ role-session-name: githubIntegrationTest
+ aws-region: ${{ env.AWS_REGION }}
+
+ - name: Install Hatch
+ run: pip install hatch
+
+ - name: Build examples
+ run: hatch run examples:build
+
+ - name: Deploy functions
+ id: deploy-functions
+ env:
+ AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
+ LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
+ INVOKE_ACCOUNT_ID: ${{ secrets.INVOKE_ACCOUNT_ID }}
+ KMS_KEY_ARN: ${{ secrets.KMS_KEY_ARN }}
+ GITHUB_EVENT_NAME: ${{ github.event_name }}
+ GITHUB_EVENT_NUMBER: ${{ github.event.number }}
+ run: |
+ # Read examples catalog and deploy each function
+ FUNCTION_NAME_MAP="{}"
+
+ for example in $(jq -r '.examples[] | select(.integration == true) | .handler' examples/examples-catalog.json); do
+ EXAMPLE_NAME=$(echo $example | sed 's/\.handler$//')
+
+ if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
+ FUNCTION_NAME="${EXAMPLE_NAME}-Python-PR-$GITHUB_EVENT_NUMBER"
+ else
+ FUNCTION_NAME="${EXAMPLE_NAME}-Python"
+ fi
+
+ echo "Deploying $EXAMPLE_NAME as $FUNCTION_NAME"
+ hatch run examples:deploy "$EXAMPLE_NAME" "$FUNCTION_NAME"
+
+ # Add to function name map
+ FUNCTION_NAME_MAP=$(echo $FUNCTION_NAME_MAP | jq --arg key "$EXAMPLE_NAME" --arg value "$FUNCTION_NAME" '. + {($key): $value}')
+ done
+
+ echo "function-name-map=$FUNCTION_NAME_MAP" >> $GITHUB_OUTPUT
+ echo "Function name map: $FUNCTION_NAME_MAP"
+
+ cleanup:
+ needs: [deploy]
+ runs-on: ubuntu-latest
+ if: always()
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.13'
+
+ - name: Configure AWS credentials
+ if: github.event_name != 'workflow_dispatch' || github.actor != 'nektos/act'
+ uses: aws-actions/configure-aws-credentials@v4
+ with:
+ role-to-assume: "${{ secrets.ACTIONS_INTEGRATION_ROLE_NAME }}"
+ role-session-name: githubIntegrationTest
+ aws-region: ${{ env.AWS_REGION }}
+
+ - name: Install Hatch
+ run: pip install hatch
+
+ - name: Cleanup Lambda functions
+ env:
+ LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
+ FUNCTION_NAME_MAP: ${{ needs.deploy.outputs.function-name-map }}
+ run: |
+ # Delete deployed functions
+ echo "Cleaning up functions: $FUNCTION_NAME_MAP"
+
+ for function_name in $(echo $FUNCTION_NAME_MAP | jq -r '.[]'); do
+ echo "Deleting function: $function_name"
+ aws lambda delete-function --function-name "$function_name" --endpoint-url "$LAMBDA_ENDPOINT" --region "$AWS_REGION" || true
+ done
diff --git a/examples/.env.template b/examples/.env.template
new file mode 100644
index 0000000..6459850
--- /dev/null
+++ b/examples/.env.template
@@ -0,0 +1,6 @@
+# AWS Configuration for Lambda Deployment
+AWS_REGION=us-west-2
+AWS_ACCOUNT_ID=123456789012
+LAMBDA_ENDPOINT=https://lambda.us-west-2.amazonaws.com
+INVOKE_ACCOUNT_ID=123456789012
+KMS_KEY_ARN=arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012
diff --git a/examples/.gitignore b/examples/.gitignore
new file mode 100644
index 0000000..dd6e2ba
--- /dev/null
+++ b/examples/.gitignore
@@ -0,0 +1,4 @@
+build/
+*.zip
+.env
+.aws-sam/
diff --git a/examples/README.md b/examples/README.md
new file mode 100644
index 0000000..1cbc2e2
--- /dev/null
+++ b/examples/README.md
@@ -0,0 +1,44 @@
+# Python Durable Functions Examples
+
+## Local Testing with SAM
+
+Test functions locally:
+```bash
+sam local invoke HelloWorldFunction
+```
+
+Test with custom event:
+```bash
+sam local invoke HelloWorldFunction -e event.json
+```
+
+## Deploy Functions
+
+Deploy with Python script:
+```bash
+python3 deploy.py hello_world
+```
+
+Deploy with SAM:
+```bash
+sam build
+sam deploy --guided
+```
+
+## Environment Variables
+
+- `AWS_ACCOUNT_ID`: Your AWS account ID
+- `LAMBDA_ENDPOINT`: Your Lambda service endpoint
+- `INVOKE_ACCOUNT_ID`: Account ID allowed to invoke functions
+- `AWS_REGION`: AWS region (default: us-west-2)
+- `KMS_KEY_ARN`: KMS key for encryption (optional)
+
+## Available Examples
+
+- **hello_world**: Simple hello world function
+
+## Adding New Examples
+
+1. Add your Python function to `src/`
+2. Update `examples-catalog.json` and `template.yaml`
+3. Deploy using either script above
diff --git a/examples/build.py b/examples/build.py
new file mode 100644
index 0000000..7a30cc5
--- /dev/null
+++ b/examples/build.py
@@ -0,0 +1,49 @@
+#!/usr/bin/env python3
+
+import shutil
+import site
+from pathlib import Path
+
+
+def build():
+ """Build examples with SDK dependencies from current environment."""
+ examples_dir = Path(__file__).parent
+ build_dir = examples_dir / "build"
+
+ # Clean build directory
+ if build_dir.exists():
+ shutil.rmtree(build_dir)
+ build_dir.mkdir()
+
+ print("Copying SDK from current environment...")
+
+ # Copy the SDK from current environment (hatch installs it)
+ for site_dir in site.getsitepackages():
+ sdk_path = Path(site_dir) / "aws_durable_execution_sdk_python"
+ if sdk_path.exists():
+ shutil.copytree(sdk_path, build_dir / "aws_durable_execution_sdk_python")
+ print(f"Copied SDK from {sdk_path}")
+ break
+ else:
+ print("SDK not found in site-packages")
+
+ print("Copying testing SDK source...")
+
+ # Copy testing SDK source
+ sdk_src = examples_dir.parent / "src" / "aws_durable_execution_sdk_python_testing"
+ if sdk_src.exists():
+ shutil.copytree(sdk_src, build_dir / "aws_durable_execution_sdk_python_testing")
+
+ print("Copying example functions...")
+
+ # Copy example source files
+ src_dir = examples_dir / "src"
+ for py_file in src_dir.glob("*.py"):
+ if py_file.name != "__init__.py":
+ shutil.copy2(py_file, build_dir)
+
+ print(f"Build complete: {build_dir}")
+
+
+if __name__ == "__main__":
+ build()
diff --git a/examples/deploy.py b/examples/deploy.py
new file mode 100755
index 0000000..ee3a535
--- /dev/null
+++ b/examples/deploy.py
@@ -0,0 +1,179 @@
+#!/usr/bin/env python3
+
+import json
+import os
+import subprocess
+import sys
+import tempfile
+import zipfile
+from pathlib import Path
+
+try:
+ import boto3
+ from aws_durable_execution_sdk_python.lambda_service import LambdaClient
+except ImportError:
+ print("Error: boto3 and aws_durable_execution_sdk_python are required.")
+ sys.exit(1)
+
+
+def load_catalog():
+ """Load examples catalog."""
+ catalog_path = Path(__file__).parent / "examples-catalog.json"
+ with open(catalog_path) as f:
+ return json.load(f)
+
+
+def create_deployment_package(example_name: str) -> Path:
+ """Create deployment package for example."""
+ print(f"Creating deployment package for {example_name}...")
+
+ # Create temp directory for package
+ temp_dir = Path(tempfile.mkdtemp())
+ package_dir = temp_dir / "package"
+ package_dir.mkdir()
+
+ # Install dependencies
+ subprocess.run([
+ sys.executable, "-m", "pip", "install",
+ "-t", str(package_dir),
+ "aws_durable_execution_sdk_python"
+ ], check=True)
+
+ # Copy example source
+ src_file = Path(__file__).parent / "src" / f"{example_name}.py"
+ (package_dir / f"{example_name}.py").write_text(src_file.read_text())
+
+ # Create zip
+ zip_path = Path(__file__).parent / f"{example_name}.zip"
+ with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zf:
+ for file_path in package_dir.rglob('*'):
+ if file_path.is_file():
+ zf.write(file_path, file_path.relative_to(package_dir))
+
+ print(f"Package created: {zip_path}")
+ return zip_path
+
+
+def deploy_function(example_config: dict, function_name: str):
+ """Deploy function to AWS Lambda."""
+ handler_file = example_config["handler"].replace(".handler", "")
+ zip_path = create_deployment_package(handler_file)
+
+ # AWS configuration
+ region = os.getenv("AWS_REGION", "us-west-2")
+ lambda_endpoint = os.getenv("LAMBDA_ENDPOINT")
+ account_id = os.getenv("AWS_ACCOUNT_ID")
+ invoke_account_id = os.getenv("INVOKE_ACCOUNT_ID")
+ kms_key_arn = os.getenv("KMS_KEY_ARN")
+
+ print(f"Debug - Environment variables:")
+ print(f" AWS_REGION: {region}")
+ print(f" LAMBDA_ENDPOINT: {lambda_endpoint}")
+ print(f" AWS_ACCOUNT_ID: {account_id}")
+ print(f" INVOKE_ACCOUNT_ID: {invoke_account_id}")
+
+ if not all([account_id, lambda_endpoint, invoke_account_id]):
+ raise ValueError("Missing required environment variables")
+
+ # Initialize Lambda client with custom models
+ LambdaClient.load_preview_botocore_models()
+
+ # Use regular lambda client for now
+ lambda_client = boto3.client(
+ "lambda",
+ endpoint_url=lambda_endpoint,
+ region_name=region
+ )
+
+ role_arn = f"arn:aws:iam::{account_id}:role/DurableFunctionsIntegrationTestRole"
+
+ # Function configuration
+ function_config = {
+ "FunctionName": function_name,
+ "Runtime": "python3.13",
+ "Role": role_arn,
+ "Handler": example_config["handler"],
+ "Description": example_config["description"],
+ "Timeout": 60,
+ "MemorySize": 128,
+ "Environment": {
+ "Variables": {
+ "DEX_ENDPOINT": lambda_endpoint
+ }
+ }
+ # TODO: Add DurableConfig support
+ # "DurableConfig": example_config["durableConfig"]
+ }
+
+ if kms_key_arn:
+ function_config["KMSKeyArn"] = kms_key_arn
+
+ # Read zip file
+ with open(zip_path, "rb") as f:
+ zip_content = f.read()
+
+ try:
+ # Try to get existing function
+ lambda_client.get_function(FunctionName=function_name)
+ print(f"Updating existing function: {function_name}")
+
+ # Update code
+ lambda_client.update_function_code(
+ FunctionName=function_name,
+ ZipFile=zip_content
+ )
+
+ # Update configuration
+ lambda_client.update_function_configuration(**function_config)
+
+ except lambda_client.exceptions.ResourceNotFoundException:
+ print(f"Creating new function: {function_name}")
+
+ # Create function
+ lambda_client.create_function(
+ **function_config,
+ Code={"ZipFile": zip_content}
+ )
+
+ # Add invoke permission
+ try:
+ lambda_client.add_permission(
+ FunctionName=function_name,
+ StatementId="dex-invoke-permission",
+ Action="lambda:InvokeFunction",
+ Principal=invoke_account_id
+ )
+ print("Added invoke permission")
+ except lambda_client.exceptions.ResourceConflictException:
+ print("Invoke permission already exists")
+
+ print(f"Successfully deployed: {function_name}")
+
+
+def main():
+ """Main deployment function."""
+ if len(sys.argv) < 2:
+ print("Usage: python deploy.py [function-name]")
+ sys.exit(1)
+
+ example_name = sys.argv[1]
+ function_name = sys.argv[2] if len(sys.argv) > 2 else f"{example_name}-Python"
+
+ catalog = load_catalog()
+
+ # Find example
+ example_config = None
+ for example in catalog["examples"]:
+ if example["handler"].startswith(example_name):
+ example_config = example
+ break
+
+ if not example_config:
+ print(f"Example '{example_name}' not found in catalog")
+ sys.exit(1)
+
+ deploy_function(example_config, function_name)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/examples/event.json b/examples/event.json
new file mode 100644
index 0000000..fcf6566
--- /dev/null
+++ b/examples/event.json
@@ -0,0 +1,3 @@
+{
+ "test": "data"
+}
diff --git a/examples/examples-catalog.json b/examples/examples-catalog.json
new file mode 100644
index 0000000..a18ef6b
--- /dev/null
+++ b/examples/examples-catalog.json
@@ -0,0 +1,16 @@
+{
+ "packageName": "DurableExecutionsPythonExamples-1.0",
+ "examples": [
+ {
+ "name": "Hello World",
+ "description": "A simple hello world example with no durable operations",
+ "handler": "hello_world.handler",
+ "integration": true,
+ "durableConfig": {
+ "RetentionPeriodInDays": 7,
+ "ExecutionTimeout": 300
+ },
+ "path": "./src/hello_world.py"
+ }
+ ]
+}
diff --git a/examples/src/hello_world.py b/examples/src/hello_world.py
index 9a9c016..ed331fe 100644
--- a/examples/src/hello_world.py
+++ b/examples/src/hello_world.py
@@ -1,10 +1,6 @@
from typing import Any
-from aws_durable_execution_sdk_python.context import DurableContext
-from aws_durable_execution_sdk_python.execution import durable_handler
-
-@durable_handler
-def handler(_event: Any, _context: DurableContext) -> str:
- """Simple hello world durable function."""
+def handler(event: Any, context: Any) -> str:
+ """Simple hello world function."""
return "Hello World!"
diff --git a/examples/src/requirements.txt b/examples/src/requirements.txt
new file mode 100644
index 0000000..8d6c13b
--- /dev/null
+++ b/examples/src/requirements.txt
@@ -0,0 +1 @@
+aws_durable_execution_sdk_python
diff --git a/examples/template.yaml b/examples/template.yaml
new file mode 100644
index 0000000..c7544c1
--- /dev/null
+++ b/examples/template.yaml
@@ -0,0 +1,24 @@
+AWSTemplateFormatVersion: '2010-09-09'
+Transform: AWS::Serverless-2016-10-31
+
+Globals:
+ Function:
+ Runtime: python3.13
+ Timeout: 60
+ MemorySize: 128
+ Environment:
+ Variables:
+ DEX_ENDPOINT: !Ref LambdaEndpoint
+
+Parameters:
+ LambdaEndpoint:
+ Type: String
+ Default: "https://lambda.us-west-2.amazonaws.com"
+
+Resources:
+ HelloWorldFunction:
+ Type: AWS::Serverless::Function
+ Properties:
+ CodeUri: build/
+ Handler: hello_world.handler
+ Description: A simple hello world example with no durable operations
diff --git a/pyproject.toml b/pyproject.toml
index b28d4a0..19b5578 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -64,6 +64,18 @@ test = "pytest tests/ -v"
examples = "pytest examples/test/ -v"
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/aws_durable_execution_sdk_python_testing --cov-fail-under=96"
+[tool.hatch.envs.examples]
+dependencies = [
+ "boto3",
+ "aws_durable_execution_sdk_python @ {env:AWS_DURABLE_SDK_URL:git+ssh://git@github.com/aws/aws-durable-execution-sdk-python.git}",
+]
+[tool.hatch.envs.examples.scripts]
+build = "python examples/build.py"
+deploy = "cd examples && python deploy.py {args}"
+sam-build = "build && sam build --template examples/template.yaml"
+sam-invoke = "sam local invoke HelloWorldFunction --template examples/template.yaml"
+clean = "rm -rf examples/build examples/.aws-sam examples/*.zip"
+
[tool.hatch.envs.types]
extra-dependencies = ["mypy>=1.0.0", "pytest"]
[tool.hatch.envs.types.scripts]
From b361fe937d6e45abc79f1eeb5ec1145f9224115b Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 17:35:11 -0400
Subject: [PATCH 02/19] Remove unnecessary requirements.txt
Dependencies are handled by the build script copying from hatch environment
---
examples/src/requirements.txt | 1 -
.../executor.py | 2 ++
.../invoker.py | 6 +++++-
.../scheduler.py | 11 +++++++++--
.../web/handlers.py | 4 ++++
5 files changed, 20 insertions(+), 4 deletions(-)
delete mode 100644 examples/src/requirements.txt
diff --git a/examples/src/requirements.txt b/examples/src/requirements.txt
deleted file mode 100644
index 8d6c13b..0000000
--- a/examples/src/requirements.txt
+++ /dev/null
@@ -1 +0,0 @@
-aws_durable_execution_sdk_python
diff --git a/src/aws_durable_execution_sdk_python_testing/executor.py b/src/aws_durable_execution_sdk_python_testing/executor.py
index a27184e..12b1c55 100644
--- a/src/aws_durable_execution_sdk_python_testing/executor.py
+++ b/src/aws_durable_execution_sdk_python_testing/executor.py
@@ -648,9 +648,11 @@ async def invoke() -> None:
self._invoker.create_invocation_input(execution=execution)
)
+ logger.info("[%s] Invoking Lambda function: %s", execution_arn, execution.start_input.function_name)
response: DurableExecutionInvocationOutput = self._invoker.invoke(
execution.start_input.function_name, invocation_input
)
+ logger.info("[%s] Lambda invocation completed with status: %s", execution_arn, response.status)
# Reload execution after invocation in case it was completed via checkpoint
execution = self._store.load(execution_arn)
diff --git a/src/aws_durable_execution_sdk_python_testing/invoker.py b/src/aws_durable_execution_sdk_python_testing/invoker.py
index afddf67..332d418 100644
--- a/src/aws_durable_execution_sdk_python_testing/invoker.py
+++ b/src/aws_durable_execution_sdk_python_testing/invoker.py
@@ -112,7 +112,11 @@ def create(endpoint_url: str, region_name: str) -> LambdaInvoker:
"""Create with the boto lambda client."""
return LambdaInvoker(
boto3.client(
- "lambdainternal", endpoint_url=endpoint_url, region_name=region_name
+ "lambdainternal",
+ endpoint_url=endpoint_url,
+ region_name=region_name,
+ aws_access_key_id="test",
+ aws_secret_access_key="test"
)
)
diff --git a/src/aws_durable_execution_sdk_python_testing/scheduler.py b/src/aws_durable_execution_sdk_python_testing/scheduler.py
index a45b942..2bf71d6 100644
--- a/src/aws_durable_execution_sdk_python_testing/scheduler.py
+++ b/src/aws_durable_execution_sdk_python_testing/scheduler.py
@@ -197,16 +197,23 @@ async def delayed_func() -> Any:
def create_event(self) -> Event:
"""Create an event controlled by the Scheduler to signal between threads and coroutines."""
+ logger.info("Creating event - submitting to scheduler event loop")
# create event inside the Scheduler event-loop
future: Future[asyncio.Event] = asyncio.run_coroutine_threadsafe(
self._create_event(), self._loop
)
+ logger.info("Event creation future submitted, waiting for result...")
# Add timeout to prevent surprising "hangs" if for whatever reason event fails to create.
# result with block. Do NOT call anything in _create_event that calls back into scheduler
# methods because it could create a circular depdendency which will deadlock.
- event = future.result(timeout=5.0)
- return Event(self, event)
+ try:
+ event = future.result(timeout=5.0)
+ logger.info("Event created successfully")
+ return Event(self, event)
+ except TimeoutError:
+ logger.error("Timeout waiting for event creation - scheduler event loop may be blocked")
+ raise
def wait_for_event(
self, event: asyncio.Event, timeout: float | None = None
diff --git a/src/aws_durable_execution_sdk_python_testing/web/handlers.py b/src/aws_durable_execution_sdk_python_testing/web/handlers.py
index 1fa0143..0c14c6f 100644
--- a/src/aws_durable_execution_sdk_python_testing/web/handlers.py
+++ b/src/aws_durable_execution_sdk_python_testing/web/handlers.py
@@ -249,14 +249,18 @@ def handle(self, parsed_route: Route, request: HTTPRequest) -> HTTPResponse: #
"""
try:
body_data: dict[str, Any] = self._parse_json_body(request)
+ logger.info(f"Parsed request body: {body_data}")
start_input: StartDurableExecutionInput = (
StartDurableExecutionInput.from_dict(body_data)
)
+ logger.info(f"Created start_input: {start_input}")
+ logger.info("Calling executor.start_execution...")
start_output: StartDurableExecutionOutput = self.executor.start_execution(
start_input
)
+ logger.info(f"Successfully started execution: {start_output}")
response_data: dict[str, Any] = start_output.to_dict()
From 9654cbc1f6729b54870176a743df551fd88f0872 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 17:38:37 -0400
Subject: [PATCH 03/19] Fix formatting issues in examples
- Make build.py executable
- Fix unused arguments in hello_world.py
- Fix error message formatting in deploy.py
---
examples/build.py | 16 +++++-----
examples/deploy.py | 60 +++++++++++++++++++------------------
examples/src/hello_world.py | 2 +-
3 files changed, 40 insertions(+), 38 deletions(-)
mode change 100644 => 100755 examples/build.py
diff --git a/examples/build.py b/examples/build.py
old mode 100644
new mode 100755
index 7a30cc5..ccd4d3b
--- a/examples/build.py
+++ b/examples/build.py
@@ -9,14 +9,14 @@ def build():
"""Build examples with SDK dependencies from current environment."""
examples_dir = Path(__file__).parent
build_dir = examples_dir / "build"
-
+
# Clean build directory
if build_dir.exists():
shutil.rmtree(build_dir)
build_dir.mkdir()
-
+
print("Copying SDK from current environment...")
-
+
# Copy the SDK from current environment (hatch installs it)
for site_dir in site.getsitepackages():
sdk_path = Path(site_dir) / "aws_durable_execution_sdk_python"
@@ -26,22 +26,22 @@ def build():
break
else:
print("SDK not found in site-packages")
-
+
print("Copying testing SDK source...")
-
+
# Copy testing SDK source
sdk_src = examples_dir.parent / "src" / "aws_durable_execution_sdk_python_testing"
if sdk_src.exists():
shutil.copytree(sdk_src, build_dir / "aws_durable_execution_sdk_python_testing")
-
+
print("Copying example functions...")
-
+
# Copy example source files
src_dir = examples_dir / "src"
for py_file in src_dir.glob("*.py"):
if py_file.name != "__init__.py":
shutil.copy2(py_file, build_dir)
-
+
print(f"Build complete: {build_dir}")
diff --git a/examples/deploy.py b/examples/deploy.py
index ee3a535..add1149 100755
--- a/examples/deploy.py
+++ b/examples/deploy.py
@@ -8,6 +8,7 @@
import zipfile
from pathlib import Path
+
try:
import boto3
from aws_durable_execution_sdk_python.lambda_service import LambdaClient
@@ -26,30 +27,30 @@ def load_catalog():
def create_deployment_package(example_name: str) -> Path:
"""Create deployment package for example."""
print(f"Creating deployment package for {example_name}...")
-
+
# Create temp directory for package
temp_dir = Path(tempfile.mkdtemp())
package_dir = temp_dir / "package"
package_dir.mkdir()
-
+
# Install dependencies
subprocess.run([
- sys.executable, "-m", "pip", "install",
+ sys.executable, "-m", "pip", "install",
"-t", str(package_dir),
"aws_durable_execution_sdk_python"
], check=True)
-
+
# Copy example source
src_file = Path(__file__).parent / "src" / f"{example_name}.py"
(package_dir / f"{example_name}.py").write_text(src_file.read_text())
-
+
# Create zip
zip_path = Path(__file__).parent / f"{example_name}.zip"
with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zf:
for file_path in package_dir.rglob('*'):
if file_path.is_file():
zf.write(file_path, file_path.relative_to(package_dir))
-
+
print(f"Package created: {zip_path}")
return zip_path
@@ -58,35 +59,36 @@ def deploy_function(example_config: dict, function_name: str):
"""Deploy function to AWS Lambda."""
handler_file = example_config["handler"].replace(".handler", "")
zip_path = create_deployment_package(handler_file)
-
+
# AWS configuration
region = os.getenv("AWS_REGION", "us-west-2")
lambda_endpoint = os.getenv("LAMBDA_ENDPOINT")
account_id = os.getenv("AWS_ACCOUNT_ID")
invoke_account_id = os.getenv("INVOKE_ACCOUNT_ID")
kms_key_arn = os.getenv("KMS_KEY_ARN")
-
- print(f"Debug - Environment variables:")
+
+ print("Debug - Environment variables:")
print(f" AWS_REGION: {region}")
print(f" LAMBDA_ENDPOINT: {lambda_endpoint}")
print(f" AWS_ACCOUNT_ID: {account_id}")
print(f" INVOKE_ACCOUNT_ID: {invoke_account_id}")
-
+
if not all([account_id, lambda_endpoint, invoke_account_id]):
- raise ValueError("Missing required environment variables")
-
+ msg = "Missing required environment variables"
+ raise ValueError(msg)
+
# Initialize Lambda client with custom models
LambdaClient.load_preview_botocore_models()
-
+
# Use regular lambda client for now
lambda_client = boto3.client(
"lambda",
endpoint_url=lambda_endpoint,
region_name=region
)
-
+
role_arn = f"arn:aws:iam::{account_id}:role/DurableFunctionsIntegrationTestRole"
-
+
# Function configuration
function_config = {
"FunctionName": function_name,
@@ -104,37 +106,37 @@ def deploy_function(example_config: dict, function_name: str):
# TODO: Add DurableConfig support
# "DurableConfig": example_config["durableConfig"]
}
-
+
if kms_key_arn:
function_config["KMSKeyArn"] = kms_key_arn
-
+
# Read zip file
with open(zip_path, "rb") as f:
zip_content = f.read()
-
+
try:
# Try to get existing function
lambda_client.get_function(FunctionName=function_name)
print(f"Updating existing function: {function_name}")
-
+
# Update code
lambda_client.update_function_code(
FunctionName=function_name,
ZipFile=zip_content
)
-
+
# Update configuration
lambda_client.update_function_configuration(**function_config)
-
+
except lambda_client.exceptions.ResourceNotFoundException:
print(f"Creating new function: {function_name}")
-
+
# Create function
lambda_client.create_function(
**function_config,
Code={"ZipFile": zip_content}
)
-
+
# Add invoke permission
try:
lambda_client.add_permission(
@@ -146,7 +148,7 @@ def deploy_function(example_config: dict, function_name: str):
print("Added invoke permission")
except lambda_client.exceptions.ResourceConflictException:
print("Invoke permission already exists")
-
+
print(f"Successfully deployed: {function_name}")
@@ -155,23 +157,23 @@ def main():
if len(sys.argv) < 2:
print("Usage: python deploy.py [function-name]")
sys.exit(1)
-
+
example_name = sys.argv[1]
function_name = sys.argv[2] if len(sys.argv) > 2 else f"{example_name}-Python"
-
+
catalog = load_catalog()
-
+
# Find example
example_config = None
for example in catalog["examples"]:
if example["handler"].startswith(example_name):
example_config = example
break
-
+
if not example_config:
print(f"Example '{example_name}' not found in catalog")
sys.exit(1)
-
+
deploy_function(example_config, function_name)
diff --git a/examples/src/hello_world.py b/examples/src/hello_world.py
index ed331fe..b5d6768 100644
--- a/examples/src/hello_world.py
+++ b/examples/src/hello_world.py
@@ -1,6 +1,6 @@
from typing import Any
-def handler(event: Any, context: Any) -> str:
+def handler(_event: Any, _context: Any) -> str:
"""Simple hello world function."""
return "Hello World!"
From 65adb1a44efc21fcb1b180f63d6eb04ba9912590 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 17:41:24 -0400
Subject: [PATCH 04/19] Remove src/ changes from examples deployment PR
Keep this PR focused only on examples deployment infrastructure
---
.../executor.py | 2 --
.../invoker.py | 6 +-----
.../scheduler.py | 11 ++---------
.../web/handlers.py | 4 ----
4 files changed, 3 insertions(+), 20 deletions(-)
diff --git a/src/aws_durable_execution_sdk_python_testing/executor.py b/src/aws_durable_execution_sdk_python_testing/executor.py
index 12b1c55..a27184e 100644
--- a/src/aws_durable_execution_sdk_python_testing/executor.py
+++ b/src/aws_durable_execution_sdk_python_testing/executor.py
@@ -648,11 +648,9 @@ async def invoke() -> None:
self._invoker.create_invocation_input(execution=execution)
)
- logger.info("[%s] Invoking Lambda function: %s", execution_arn, execution.start_input.function_name)
response: DurableExecutionInvocationOutput = self._invoker.invoke(
execution.start_input.function_name, invocation_input
)
- logger.info("[%s] Lambda invocation completed with status: %s", execution_arn, response.status)
# Reload execution after invocation in case it was completed via checkpoint
execution = self._store.load(execution_arn)
diff --git a/src/aws_durable_execution_sdk_python_testing/invoker.py b/src/aws_durable_execution_sdk_python_testing/invoker.py
index 332d418..afddf67 100644
--- a/src/aws_durable_execution_sdk_python_testing/invoker.py
+++ b/src/aws_durable_execution_sdk_python_testing/invoker.py
@@ -112,11 +112,7 @@ def create(endpoint_url: str, region_name: str) -> LambdaInvoker:
"""Create with the boto lambda client."""
return LambdaInvoker(
boto3.client(
- "lambdainternal",
- endpoint_url=endpoint_url,
- region_name=region_name,
- aws_access_key_id="test",
- aws_secret_access_key="test"
+ "lambdainternal", endpoint_url=endpoint_url, region_name=region_name
)
)
diff --git a/src/aws_durable_execution_sdk_python_testing/scheduler.py b/src/aws_durable_execution_sdk_python_testing/scheduler.py
index 2bf71d6..a45b942 100644
--- a/src/aws_durable_execution_sdk_python_testing/scheduler.py
+++ b/src/aws_durable_execution_sdk_python_testing/scheduler.py
@@ -197,23 +197,16 @@ async def delayed_func() -> Any:
def create_event(self) -> Event:
"""Create an event controlled by the Scheduler to signal between threads and coroutines."""
- logger.info("Creating event - submitting to scheduler event loop")
# create event inside the Scheduler event-loop
future: Future[asyncio.Event] = asyncio.run_coroutine_threadsafe(
self._create_event(), self._loop
)
- logger.info("Event creation future submitted, waiting for result...")
# Add timeout to prevent surprising "hangs" if for whatever reason event fails to create.
# result with block. Do NOT call anything in _create_event that calls back into scheduler
# methods because it could create a circular depdendency which will deadlock.
- try:
- event = future.result(timeout=5.0)
- logger.info("Event created successfully")
- return Event(self, event)
- except TimeoutError:
- logger.error("Timeout waiting for event creation - scheduler event loop may be blocked")
- raise
+ event = future.result(timeout=5.0)
+ return Event(self, event)
def wait_for_event(
self, event: asyncio.Event, timeout: float | None = None
diff --git a/src/aws_durable_execution_sdk_python_testing/web/handlers.py b/src/aws_durable_execution_sdk_python_testing/web/handlers.py
index 0c14c6f..1fa0143 100644
--- a/src/aws_durable_execution_sdk_python_testing/web/handlers.py
+++ b/src/aws_durable_execution_sdk_python_testing/web/handlers.py
@@ -249,18 +249,14 @@ def handle(self, parsed_route: Route, request: HTTPRequest) -> HTTPResponse: #
"""
try:
body_data: dict[str, Any] = self._parse_json_body(request)
- logger.info(f"Parsed request body: {body_data}")
start_input: StartDurableExecutionInput = (
StartDurableExecutionInput.from_dict(body_data)
)
- logger.info(f"Created start_input: {start_input}")
- logger.info("Calling executor.start_execution...")
start_output: StartDurableExecutionOutput = self.executor.start_execution(
start_input
)
- logger.info(f"Successfully started execution: {start_output}")
response_data: dict[str, Any] = start_output.to_dict()
From 5f378d2b271a3265ed677a6a57f54e090051f8f9 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 17:44:26 -0400
Subject: [PATCH 05/19] Update role session name to
pythonTestingLibraryGitHubIntegrationTest
---
.github/workflows/deploy-examples.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index 37b61d4..e074e30 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -40,7 +40,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: "${{ secrets.ACTIONS_INTEGRATION_ROLE_NAME }}"
- role-session-name: githubIntegrationTest
+ role-session-name: pythonTestingLibraryGitHubIntegrationTest
aws-region: ${{ env.AWS_REGION }}
- name: Install Hatch
@@ -99,7 +99,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: "${{ secrets.ACTIONS_INTEGRATION_ROLE_NAME }}"
- role-session-name: githubIntegrationTest
+ role-session-name: pythonTestingLibraryGitHubIntegrationTest
aws-region: ${{ env.AWS_REGION }}
- name: Install Hatch
From 2f61a57b4385d0811fd99ba9880a815356a86ba9 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 17:45:42 -0400
Subject: [PATCH 06/19] Fix static analysis issues
- Add ruff configuration to allow print statements in examples scripts
- Fix code formatting in deploy.py
---
examples/deploy.py | 41 +++++++++++++++++++----------------------
pyproject.toml | 4 ++++
2 files changed, 23 insertions(+), 22 deletions(-)
diff --git a/examples/deploy.py b/examples/deploy.py
index add1149..0505071 100755
--- a/examples/deploy.py
+++ b/examples/deploy.py
@@ -34,11 +34,18 @@ def create_deployment_package(example_name: str) -> Path:
package_dir.mkdir()
# Install dependencies
- subprocess.run([
- sys.executable, "-m", "pip", "install",
- "-t", str(package_dir),
- "aws_durable_execution_sdk_python"
- ], check=True)
+ subprocess.run(
+ [
+ sys.executable,
+ "-m",
+ "pip",
+ "install",
+ "-t",
+ str(package_dir),
+ "aws_durable_execution_sdk_python",
+ ],
+ check=True,
+ )
# Copy example source
src_file = Path(__file__).parent / "src" / f"{example_name}.py"
@@ -46,8 +53,8 @@ def create_deployment_package(example_name: str) -> Path:
# Create zip
zip_path = Path(__file__).parent / f"{example_name}.zip"
- with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zf:
- for file_path in package_dir.rglob('*'):
+ with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zf:
+ for file_path in package_dir.rglob("*"):
if file_path.is_file():
zf.write(file_path, file_path.relative_to(package_dir))
@@ -82,9 +89,7 @@ def deploy_function(example_config: dict, function_name: str):
# Use regular lambda client for now
lambda_client = boto3.client(
- "lambda",
- endpoint_url=lambda_endpoint,
- region_name=region
+ "lambda", endpoint_url=lambda_endpoint, region_name=region
)
role_arn = f"arn:aws:iam::{account_id}:role/DurableFunctionsIntegrationTestRole"
@@ -98,11 +103,7 @@ def deploy_function(example_config: dict, function_name: str):
"Description": example_config["description"],
"Timeout": 60,
"MemorySize": 128,
- "Environment": {
- "Variables": {
- "DEX_ENDPOINT": lambda_endpoint
- }
- }
+ "Environment": {"Variables": {"DEX_ENDPOINT": lambda_endpoint}},
# TODO: Add DurableConfig support
# "DurableConfig": example_config["durableConfig"]
}
@@ -121,8 +122,7 @@ def deploy_function(example_config: dict, function_name: str):
# Update code
lambda_client.update_function_code(
- FunctionName=function_name,
- ZipFile=zip_content
+ FunctionName=function_name, ZipFile=zip_content
)
# Update configuration
@@ -132,10 +132,7 @@ def deploy_function(example_config: dict, function_name: str):
print(f"Creating new function: {function_name}")
# Create function
- lambda_client.create_function(
- **function_config,
- Code={"ZipFile": zip_content}
- )
+ lambda_client.create_function(**function_config, Code={"ZipFile": zip_content})
# Add invoke permission
try:
@@ -143,7 +140,7 @@ def deploy_function(example_config: dict, function_name: str):
FunctionName=function_name,
StatementId="dex-invoke-permission",
Action="lambda:InvokeFunction",
- Principal=invoke_account_id
+ Principal=invoke_account_id,
)
print("Added invoke permission")
except lambda_client.exceptions.ResourceConflictException:
diff --git a/pyproject.toml b/pyproject.toml
index 19b5578..516f7a4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -133,6 +133,10 @@ lines-after-imports = 2
"SIM117",
"TRY301",
]
+"examples/*.py" = [
+ "T201", # Allow print statements in deployment scripts
+ "PLR2004", # Allow magic values in deployment scripts
+]
"src/aws_durable_execution_sdk_python_testing/invoker.py" = [
"A002", # Argument `input` is shadowing a Python builtin
]
From 9635bc08911919d5d1cb0817b773337cf928cc91 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 17:47:15 -0400
Subject: [PATCH 07/19] Add SSH agent setup for cross-repo dependencies
Required for git+ssh:// dependency URLs to work in GitHub Actions
---
.github/workflows/deploy-examples.yml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index e074e30..c46383b 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -30,6 +30,11 @@ jobs:
steps:
- uses: actions/checkout@v4
+ - name: Setup SSH Agent
+ uses: webfactory/ssh-agent@v0.9.0
+ with:
+ ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
+
- name: Setup Python
uses: actions/setup-python@v4
with:
@@ -89,6 +94,11 @@ jobs:
steps:
- uses: actions/checkout@v4
+ - name: Setup SSH Agent
+ uses: webfactory/ssh-agent@v0.9.0
+ with:
+ ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
+
- name: Setup Python
uses: actions/setup-python@v4
with:
From de0c763093c4c6085d3eb992eebebcb7e9dfbdc3 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 17:48:19 -0400
Subject: [PATCH 08/19] Fix SSH private key secret names
Use LANGUAGE_SDK_SSH_PRIVATE_KEY and TESTING_SSH_PRIVATE_KEY to match other workflows
---
.github/workflows/deploy-examples.yml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index c46383b..084dc21 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -31,9 +31,9 @@ jobs:
- uses: actions/checkout@v4
- name: Setup SSH Agent
- uses: webfactory/ssh-agent@v0.9.0
+ uses: webfactory/ssh-agent@v0.9.1
with:
- ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
+ ssh-private-key: ${{ secrets.SDK_KEY }}
- name: Setup Python
uses: actions/setup-python@v4
@@ -97,7 +97,9 @@ jobs:
- name: Setup SSH Agent
uses: webfactory/ssh-agent@v0.9.0
with:
- ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
+ ssh-private-key: |
+ ${{ secrets.LANGUAGE_SDK_SSH_PRIVATE_KEY }}
+ ${{ secrets.TESTING_SSH_PRIVATE_KEY }}
- name: Setup Python
uses: actions/setup-python@v4
From ba0d2a3e0884228440f42eda417cf6c1be54538d Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:12:13 -0400
Subject: [PATCH 09/19] Fix GitHub workflow function naming and output format
- Use catalog name and strip spaces (HelloWorld-Python-PR-13)
- Fix GitHub output format using heredoc to avoid JSON parsing issues
- Parse full example objects to get both name and handler
---
.github/workflows/deploy-examples.yml | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index 084dc21..35c4fc5 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -67,23 +67,32 @@ jobs:
# Read examples catalog and deploy each function
FUNCTION_NAME_MAP="{}"
- for example in $(jq -r '.examples[] | select(.integration == true) | .handler' examples/examples-catalog.json); do
- EXAMPLE_NAME=$(echo $example | sed 's/\.handler$//')
+ for row in $(jq -r '.examples[] | select(.integration == true) | @base64' examples/examples-catalog.json); do
+ _jq() {
+ echo ${row} | base64 --decode | jq -r ${1}
+ }
+
+ EXAMPLE_HANDLER=$(_jq '.handler')
+ EXAMPLE_NAME=$(_jq '.name')
+ EXAMPLE_NAME_CLEAN=$(echo "$EXAMPLE_NAME" | sed 's/ //g')
+ HANDLER_FILE=$(echo $EXAMPLE_HANDLER | sed 's/\.handler$//')
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
- FUNCTION_NAME="${EXAMPLE_NAME}-Python-PR-$GITHUB_EVENT_NUMBER"
+ FUNCTION_NAME="${EXAMPLE_NAME_CLEAN}-Python-PR-$GITHUB_EVENT_NUMBER"
else
- FUNCTION_NAME="${EXAMPLE_NAME}-Python"
+ FUNCTION_NAME="${EXAMPLE_NAME_CLEAN}-Python"
fi
- echo "Deploying $EXAMPLE_NAME as $FUNCTION_NAME"
- hatch run examples:deploy "$EXAMPLE_NAME" "$FUNCTION_NAME"
+ echo "Deploying $HANDLER_FILE as $FUNCTION_NAME"
+ hatch run examples:deploy "$HANDLER_FILE" "$FUNCTION_NAME"
# Add to function name map
- FUNCTION_NAME_MAP=$(echo $FUNCTION_NAME_MAP | jq --arg key "$EXAMPLE_NAME" --arg value "$FUNCTION_NAME" '. + {($key): $value}')
+ FUNCTION_NAME_MAP=$(echo $FUNCTION_NAME_MAP | jq --arg key "$HANDLER_FILE" --arg value "$FUNCTION_NAME" '. + {($key): $value}')
done
- echo "function-name-map=$FUNCTION_NAME_MAP" >> $GITHUB_OUTPUT
+ echo "function-name-map<> $GITHUB_OUTPUT
+ echo "$FUNCTION_NAME_MAP" >> $GITHUB_OUTPUT
+ echo "EOF" >> $GITHUB_OUTPUT
echo "Function name map: $FUNCTION_NAME_MAP"
cleanup:
From 5f06d1575bd86b50fedb429e094e621b2d0e9523 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:20:17 -0400
Subject: [PATCH 10/19] Add function invocation and durable execution history
testing
- Invoke deployed functions with test payload
- List durable executions and get execution history
- Test job runs in parallel for each deployed function
- Cleanup depends on both deploy and test jobs
---
.github/workflows/deploy-examples.yml | 86 ++++++++++++++++++++++++++-
examples/src/hello_world.py | 10 +++-
2 files changed, 90 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index 35c4fc5..84b3290 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -95,10 +95,13 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
echo "Function name map: $FUNCTION_NAME_MAP"
- cleanup:
- needs: [deploy]
+ test:
+ needs: deploy
runs-on: ubuntu-latest
- if: always()
+ strategy:
+ matrix:
+ example: ${{ fromJson(needs.deploy.outputs.function-name-map) }}
+ fail-fast: false
steps:
- uses: actions/checkout@v4
@@ -123,6 +126,83 @@ jobs:
role-session-name: pythonTestingLibraryGitHubIntegrationTest
aws-region: ${{ env.AWS_REGION }}
+ - name: Invoke Lambda function
+ env:
+ LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
+ FUNCTION_NAME: ${{ matrix.example }}
+ run: |
+ echo "Testing function: $FUNCTION_NAME"
+ aws lambda invoke \
+ --function-name "$FUNCTION_NAME" \
+ --cli-binary-format raw-in-base64-out \
+ --payload '{"name": "World"}' \
+ --region "${{ env.AWS_REGION }}" \
+ --endpoint-url "$LAMBDA_ENDPOINT" \
+ /tmp/response.json
+ echo "Response:"
+ cat /tmp/response.json
+
+ - name: Find Durable Execution
+ env:
+ LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
+ FUNCTION_NAME: ${{ matrix.example }}
+ run: |
+ echo "Listing durable executions for function: $FUNCTION_NAME"
+ aws lambda list-durable-executions \
+ --function-name "$FUNCTION_NAME" \
+ --region "${{ env.AWS_REGION }}" \
+ --endpoint-url "$LAMBDA_ENDPOINT" \
+ --cli-binary-format raw-in-base64-out \
+ --status-filter SUCCEEDED \
+ > /tmp/executions.json
+ echo "Durable Executions:"
+ cat /tmp/executions.json
+
+ # Extract the first execution ARN for history retrieval
+ EXECUTION_ARN=$(jq -r '.DurableExecutions[0].DurableExecutionArn // empty' /tmp/executions.json)
+ echo "EXECUTION_ARN=$EXECUTION_ARN" >> $GITHUB_ENV
+
+ - name: Get Durable Execution History
+ if: env.EXECUTION_ARN != ''
+ env:
+ LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
+ run: |
+ echo "Getting execution history for: $EXECUTION_ARN"
+ aws lambda get-durable-execution-history \
+ --durable-execution-arn "$EXECUTION_ARN" \
+ --region "${{ env.AWS_REGION }}" \
+ --endpoint-url "$LAMBDA_ENDPOINT" \
+ --cli-binary-format raw-in-base64-out \
+ > /tmp/history.json
+ echo "Execution History:"
+ cat /tmp/history.json
+
+ cleanup:
+ needs: [deploy, test]
+ runs-on: ubuntu-latest
+ if: always()
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup SSH Agent
+ uses: webfactory/ssh-agent@v0.9.0
+ with:
+ ssh-private-key: ${{ secrets.SDK_KEY }}
+
+ - name: Setup Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.13'
+
+ - name: Configure AWS credentials
+ if: github.event_name != 'workflow_dispatch' || github.actor != 'nektos/act'
+ uses: aws-actions/configure-aws-credentials@v4
+ with:
+ role-to-assume: "${{ secrets.ACTIONS_INTEGRATION_ROLE_NAME }}"
+ role-session-name: pythonTestingLibraryGitHubIntegrationTest
+ aws-region: ${{ env.AWS_REGION }}
+
- name: Install Hatch
run: pip install hatch
diff --git a/examples/src/hello_world.py b/examples/src/hello_world.py
index b5d6768..54384c0 100644
--- a/examples/src/hello_world.py
+++ b/examples/src/hello_world.py
@@ -1,6 +1,10 @@
from typing import Any
+from aws_durable_execution_sdk_python.context import DurableContext
+from aws_durable_execution_sdk_python.execution import durable_handler
-def handler(_event: Any, _context: Any) -> str:
- """Simple hello world function."""
- return "Hello World!"
+
+@durable_handler
+def handler(_event: Any, _context: DurableContext) -> str:
+ """Simple hello world durable function."""
+ return "Hello World!"
\ No newline at end of file
From 8ff45f3b20a65285ab94ab86165b13a4ff72b010 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:32:10 -0400
Subject: [PATCH 11/19] Use catalog matrix strategy for deploy/test/cleanup per
example
---
.github/workflows/deploy-examples.yml | 159 ++++++++------------------
1 file changed, 49 insertions(+), 110 deletions(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index 84b3290..4318b5d 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -23,17 +23,37 @@ permissions:
contents: read
jobs:
- deploy:
+ setup:
runs-on: ubuntu-latest
outputs:
- function-name-map: ${{ steps.deploy-functions.outputs.function-name-map }}
+ examples: ${{ steps.get-examples.outputs.examples }}
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Get examples from catalog
+ id: get-examples
+ working-directory: ./examples
+ run: |
+ echo "examples=$(jq -c '.examples | map(select(.integration == true))' examples-catalog.json)" >> $GITHUB_OUTPUT
+
+ integration-test:
+ needs: setup
+ runs-on: ubuntu-latest
+ name: ${{ matrix.example.name }}
+ strategy:
+ matrix:
+ example: ${{ fromJson(needs.setup.outputs.examples) }}
+ fail-fast: false
+
steps:
- uses: actions/checkout@v4
- name: Setup SSH Agent
- uses: webfactory/ssh-agent@v0.9.1
+ uses: webfactory/ssh-agent@v0.9.0
with:
- ssh-private-key: ${{ secrets.SDK_KEY }}
+ ssh-private-key: |
+ ${{ secrets.LANGUAGE_SDK_SSH_PRIVATE_KEY }}
+ ${{ secrets.TESTING_SSH_PRIVATE_KEY }}
- name: Setup Python
uses: actions/setup-python@v4
@@ -54,82 +74,33 @@ jobs:
- name: Build examples
run: hatch run examples:build
- - name: Deploy functions
- id: deploy-functions
+ - name: Deploy Lambda function - ${{ matrix.example.name }}
env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
INVOKE_ACCOUNT_ID: ${{ secrets.INVOKE_ACCOUNT_ID }}
KMS_KEY_ARN: ${{ secrets.KMS_KEY_ARN }}
- GITHUB_EVENT_NAME: ${{ github.event_name }}
- GITHUB_EVENT_NUMBER: ${{ github.event.number }}
run: |
- # Read examples catalog and deploy each function
- FUNCTION_NAME_MAP="{}"
+ # Build function name
+ EXAMPLE_NAME_CLEAN=$(echo "${{ matrix.example.name }}" | sed 's/ //g')
+ if [ "${{ github.event_name }}" = "pull_request" ]; then
+ FUNCTION_NAME="${EXAMPLE_NAME_CLEAN}-Python-PR-${{ github.event.number }}"
+ else
+ FUNCTION_NAME="${EXAMPLE_NAME_CLEAN}-Python"
+ fi
- for row in $(jq -r '.examples[] | select(.integration == true) | @base64' examples/examples-catalog.json); do
- _jq() {
- echo ${row} | base64 --decode | jq -r ${1}
- }
-
- EXAMPLE_HANDLER=$(_jq '.handler')
- EXAMPLE_NAME=$(_jq '.name')
- EXAMPLE_NAME_CLEAN=$(echo "$EXAMPLE_NAME" | sed 's/ //g')
- HANDLER_FILE=$(echo $EXAMPLE_HANDLER | sed 's/\.handler$//')
-
- if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
- FUNCTION_NAME="${EXAMPLE_NAME_CLEAN}-Python-PR-$GITHUB_EVENT_NUMBER"
- else
- FUNCTION_NAME="${EXAMPLE_NAME_CLEAN}-Python"
- fi
-
- echo "Deploying $HANDLER_FILE as $FUNCTION_NAME"
- hatch run examples:deploy "$HANDLER_FILE" "$FUNCTION_NAME"
-
- # Add to function name map
- FUNCTION_NAME_MAP=$(echo $FUNCTION_NAME_MAP | jq --arg key "$HANDLER_FILE" --arg value "$FUNCTION_NAME" '. + {($key): $value}')
- done
+ # Extract handler file name
+ HANDLER_FILE=$(echo "${{ matrix.example.handler }}" | sed 's/\.handler$//')
- echo "function-name-map<> $GITHUB_OUTPUT
- echo "$FUNCTION_NAME_MAP" >> $GITHUB_OUTPUT
- echo "EOF" >> $GITHUB_OUTPUT
- echo "Function name map: $FUNCTION_NAME_MAP"
-
- test:
- needs: deploy
- runs-on: ubuntu-latest
- strategy:
- matrix:
- example: ${{ fromJson(needs.deploy.outputs.function-name-map) }}
- fail-fast: false
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup SSH Agent
- uses: webfactory/ssh-agent@v0.9.0
- with:
- ssh-private-key: |
- ${{ secrets.LANGUAGE_SDK_SSH_PRIVATE_KEY }}
- ${{ secrets.TESTING_SSH_PRIVATE_KEY }}
-
- - name: Setup Python
- uses: actions/setup-python@v4
- with:
- python-version: '3.13'
-
- - name: Configure AWS credentials
- if: github.event_name != 'workflow_dispatch' || github.actor != 'nektos/act'
- uses: aws-actions/configure-aws-credentials@v4
- with:
- role-to-assume: "${{ secrets.ACTIONS_INTEGRATION_ROLE_NAME }}"
- role-session-name: pythonTestingLibraryGitHubIntegrationTest
- aws-region: ${{ env.AWS_REGION }}
+ echo "Deploying $HANDLER_FILE as $FUNCTION_NAME"
+ hatch run examples:deploy "$HANDLER_FILE" "$FUNCTION_NAME"
+
+ # Store function name for later steps
+ echo "FUNCTION_NAME=$FUNCTION_NAME" >> $GITHUB_ENV
- - name: Invoke Lambda function
+ - name: Invoke Lambda function - ${{ matrix.example.name }}
env:
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
- FUNCTION_NAME: ${{ matrix.example }}
run: |
echo "Testing function: $FUNCTION_NAME"
aws lambda invoke \
@@ -142,10 +113,9 @@ jobs:
echo "Response:"
cat /tmp/response.json
- - name: Find Durable Execution
+ - name: Find Durable Execution - ${{ matrix.example.name }}
env:
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
- FUNCTION_NAME: ${{ matrix.example }}
run: |
echo "Listing durable executions for function: $FUNCTION_NAME"
aws lambda list-durable-executions \
@@ -162,7 +132,7 @@ jobs:
EXECUTION_ARN=$(jq -r '.DurableExecutions[0].DurableExecutionArn // empty' /tmp/executions.json)
echo "EXECUTION_ARN=$EXECUTION_ARN" >> $GITHUB_ENV
- - name: Get Durable Execution History
+ - name: Get Durable Execution History - ${{ matrix.example.name }}
if: env.EXECUTION_ARN != ''
env:
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
@@ -177,44 +147,13 @@ jobs:
echo "Execution History:"
cat /tmp/history.json
- cleanup:
- needs: [deploy, test]
- runs-on: ubuntu-latest
- if: always()
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup SSH Agent
- uses: webfactory/ssh-agent@v0.9.0
- with:
- ssh-private-key: ${{ secrets.SDK_KEY }}
-
- - name: Setup Python
- uses: actions/setup-python@v4
- with:
- python-version: '3.13'
-
- - name: Configure AWS credentials
- if: github.event_name != 'workflow_dispatch' || github.actor != 'nektos/act'
- uses: aws-actions/configure-aws-credentials@v4
- with:
- role-to-assume: "${{ secrets.ACTIONS_INTEGRATION_ROLE_NAME }}"
- role-session-name: pythonTestingLibraryGitHubIntegrationTest
- aws-region: ${{ env.AWS_REGION }}
-
- - name: Install Hatch
- run: pip install hatch
-
- - name: Cleanup Lambda functions
+ - name: Cleanup Lambda function
+ if: always()
env:
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
- FUNCTION_NAME_MAP: ${{ needs.deploy.outputs.function-name-map }}
run: |
- # Delete deployed functions
- echo "Cleaning up functions: $FUNCTION_NAME_MAP"
-
- for function_name in $(echo $FUNCTION_NAME_MAP | jq -r '.[]'); do
- echo "Deleting function: $function_name"
- aws lambda delete-function --function-name "$function_name" --endpoint-url "$LAMBDA_ENDPOINT" --region "$AWS_REGION" || true
- done
+ echo "Deleting function: $FUNCTION_NAME"
+ aws lambda delete-function \
+ --function-name "$FUNCTION_NAME" \
+ --endpoint-url "$LAMBDA_ENDPOINT" \
+ --region "${{ env.AWS_REGION }}" || echo "Function already deleted or doesn't exist"
From 3fdaedde4f44e53a2992101a1531c6f63ca825f1 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:33:20 -0400
Subject: [PATCH 12/19] Fix SSH key to use single SDK_KEY secret
---
.github/workflows/deploy-examples.yml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index 4318b5d..4d967ac 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -51,9 +51,7 @@ jobs:
- name: Setup SSH Agent
uses: webfactory/ssh-agent@v0.9.0
with:
- ssh-private-key: |
- ${{ secrets.LANGUAGE_SDK_SSH_PRIVATE_KEY }}
- ${{ secrets.TESTING_SSH_PRIVATE_KEY }}
+ ssh-private-key: ${{ secrets.SDK_KEY }}
- name: Setup Python
uses: actions/setup-python@v4
From 741460cf70e25549aa9874ee3a77017bd7776d87 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:35:08 -0400
Subject: [PATCH 13/19] Add custom Lambda model for DurableConfig support
---
.github/model/lambda.json | 6566 +++++++++++++++++++++++++
.github/workflows/deploy-examples.yml | 4 +
2 files changed, 6570 insertions(+)
create mode 100644 .github/model/lambda.json
diff --git a/.github/model/lambda.json b/.github/model/lambda.json
new file mode 100644
index 0000000..d50c545
--- /dev/null
+++ b/.github/model/lambda.json
@@ -0,0 +1,6566 @@
+{
+ "version":"2.0",
+ "metadata":{
+ "apiVersion":"2015-03-31",
+ "endpointPrefix":"lambda",
+ "protocol":"rest-json",
+ "serviceFullName":"AWS Lambda",
+ "serviceId":"Lambda",
+ "signatureVersion":"v4",
+ "uid":"lambda-2015-03-31"
+ },
+ "operations":{
+ "AddLayerVersionPermission":{
+ "name":"AddLayerVersionPermission",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy",
+ "responseCode":201
+ },
+ "input":{"shape":"AddLayerVersionPermissionRequest"},
+ "output":{"shape":"AddLayerVersionPermissionResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"PolicyLengthExceededException"},
+ {"shape":"PreconditionFailedException"}
+ ],
+ "documentation":"Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
"
+ },
+ "AddPermission":{
+ "name":"AddPermission",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/policy",
+ "responseCode":201
+ },
+ "input":{"shape":"AddPermissionRequest"},
+ "output":{"shape":"AddPermissionResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"PolicyLengthExceededException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"PreconditionFailedException"}
+ ],
+ "documentation":"Grants an Amazon Web Services service, account, or 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 services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.
This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Lambda Function Policies.
"
+ },
+ "CreateAlias":{
+ "name":"CreateAlias",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/aliases",
+ "responseCode":201
+ },
+ "input":{"shape":"CreateAliasRequest"},
+ "output":{"shape":"AliasConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.
"
+ },
+ "CreateCodeSigningConfig":{
+ "name":"CreateCodeSigningConfig",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2020-04-22/code-signing-configs/",
+ "responseCode":201
+ },
+ "input":{"shape":"CreateCodeSigningConfigRequest"},
+ "output":{"shape":"CreateCodeSigningConfigResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"}
+ ],
+ "documentation":"Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
"
+ },
+ "CreateEventSourceMapping":{
+ "name":"CreateEventSourceMapping",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2015-03-31/event-source-mappings/",
+ "responseCode":202
+ },
+ "input":{"shape":"CreateEventSourceMappingRequest"},
+ "output":{"shape":"EventSourceMappingConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceNotFoundException"}
+ ],
+ "documentation":"Creates 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.
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.
"
+ },
+ "CreateFunction":{
+ "name":"CreateFunction",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2015-03-31/functions",
+ "responseCode":201
+ },
+ "input":{"shape":"CreateFunctionRequest"},
+ "output":{"shape":"FunctionConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"CodeStorageExceededException"},
+ {"shape":"CodeVerificationFailedException"},
+ {"shape":"InvalidCodeSignatureException"},
+ {"shape":"CodeSigningConfigNotFoundException"}
+ ],
+ "documentation":"Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
You set the package type to Image if the deployment package is a container image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.
You set the package type to Zip if the deployment package is a .zip file archive. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. 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, 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 Function States.
A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.
The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.
If another account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.
To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.
"
+ },
+ "CreateFunctionUrlConfig":{
+ "name":"CreateFunctionUrlConfig",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2021-10-31/functions/{FunctionName}/url",
+ "responseCode":201
+ },
+ "input":{"shape":"CreateFunctionUrlConfigRequest"},
+ "output":{"shape":"CreateFunctionUrlConfigResponse"},
+ "errors":[
+ {"shape":"ResourceConflictException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ServiceException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Creates 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.
"
+ },
+ "DeleteAlias":{
+ "name":"DeleteAlias",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteAliasRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Deletes a Lambda function alias.
"
+ },
+ "DeleteCodeSigningConfig":{
+ "name":"DeleteCodeSigningConfig",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteCodeSigningConfigRequest"},
+ "output":{"shape":"DeleteCodeSigningConfigResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
"
+ },
+ "DeleteEventSourceMapping":{
+ "name":"DeleteEventSourceMapping",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2015-03-31/event-source-mappings/{UUID}",
+ "responseCode":202
+ },
+ "input":{"shape":"DeleteEventSourceMappingRequest"},
+ "output":{"shape":"EventSourceMappingConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceInUseException"}
+ ],
+ "documentation":"Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.
"
+ },
+ "DeleteFunction":{
+ "name":"DeleteFunction",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2015-03-31/functions/{FunctionName}",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteFunctionRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted.
To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
"
+ },
+ "DeleteFunctionCodeSigningConfig":{
+ "name":"DeleteFunctionCodeSigningConfig",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2020-06-30/functions/{FunctionName}/code-signing-config",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteFunctionCodeSigningConfigRequest"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"CodeSigningConfigNotFoundException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Removes the code signing configuration from the function.
"
+ },
+ "DeleteFunctionConcurrency":{
+ "name":"DeleteFunctionConcurrency",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2017-10-31/functions/{FunctionName}/concurrency",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteFunctionConcurrencyRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Removes a concurrent execution limit from a function.
"
+ },
+ "DeleteFunctionEventInvokeConfig":{
+ "name":"DeleteFunctionEventInvokeConfig",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2019-09-25/functions/{FunctionName}/event-invoke-config",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteFunctionEventInvokeConfigRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
"
+ },
+ "DeleteFunctionUrlConfig":{
+ "name":"DeleteFunctionUrlConfig",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2021-10-31/functions/{FunctionName}/url",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteFunctionUrlConfigRequest"},
+ "errors":[
+ {"shape":"ResourceConflictException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Deletes 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.
"
+ },
+ "DeleteLayerVersion":{
+ "name":"DeleteLayerVersion",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteLayerVersionRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
"
+ },
+ "DeleteProvisionedConcurrencyConfig":{
+ "name":"DeleteProvisionedConcurrencyConfig",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2019-09-30/functions/{FunctionName}/provisioned-concurrency",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteProvisionedConcurrencyConfigRequest"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ],
+ "documentation":"Deletes the provisioned concurrency configuration for a function.
"
+ },
+ "GetAccountSettings":{
+ "name":"GetAccountSettings",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2016-08-19/account-settings/",
+ "responseCode":200
+ },
+ "input":{"shape":"GetAccountSettingsRequest"},
+ "output":{"shape":"GetAccountSettingsResponse"},
+ "errors":[
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ],
+ "documentation":"Retrieves details about your account's limits and usage in an Amazon Web Services Region.
"
+ },
+ "GetAlias":{
+ "name":"GetAlias",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}",
+ "responseCode":200
+ },
+ "input":{"shape":"GetAliasRequest"},
+ "output":{"shape":"AliasConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Returns details about a Lambda function alias.
"
+ },
+ "GetCodeSigningConfig":{
+ "name":"GetCodeSigningConfig",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",
+ "responseCode":200
+ },
+ "input":{"shape":"GetCodeSigningConfigRequest"},
+ "output":{"shape":"GetCodeSigningConfigResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"}
+ ],
+ "documentation":"Returns information about the specified code signing configuration.
"
+ },
+ "GetEventSourceMapping":{
+ "name":"GetEventSourceMapping",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/event-source-mappings/{UUID}",
+ "responseCode":200
+ },
+ "input":{"shape":"GetEventSourceMappingRequest"},
+ "output":{"shape":"EventSourceMappingConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
"
+ },
+ "GetFunction":{
+ "name":"GetFunction",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/functions/{FunctionName}",
+ "responseCode":200
+ },
+ "input":{"shape":"GetFunctionRequest"},
+ "output":{"shape":"GetFunctionResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"}
+ ],
+ "documentation":"Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
"
+ },
+ "GetFunctionCodeSigningConfig":{
+ "name":"GetFunctionCodeSigningConfig",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2020-06-30/functions/{FunctionName}/code-signing-config",
+ "responseCode":200
+ },
+ "input":{"shape":"GetFunctionCodeSigningConfigRequest"},
+ "output":{"shape":"GetFunctionCodeSigningConfigResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Returns the code signing configuration for the specified function.
"
+ },
+ "GetFunctionConcurrency":{
+ "name":"GetFunctionConcurrency",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2019-09-30/functions/{FunctionName}/concurrency",
+ "responseCode":200
+ },
+ "input":{"shape":"GetFunctionConcurrencyRequest"},
+ "output":{"shape":"GetFunctionConcurrencyResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ],
+ "documentation":"Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
"
+ },
+ "GetFunctionConfiguration":{
+ "name":"GetFunctionConfiguration",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/configuration",
+ "responseCode":200
+ },
+ "input":{"shape":"GetFunctionConfigurationRequest"},
+ "output":{"shape":"FunctionConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"}
+ ],
+ "documentation":"Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.
To get all of a function's details, including function-level settings, use GetFunction.
"
+ },
+ "GetFunctionEventInvokeConfig":{
+ "name":"GetFunctionEventInvokeConfig",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2019-09-25/functions/{FunctionName}/event-invoke-config",
+ "responseCode":200
+ },
+ "input":{"shape":"GetFunctionEventInvokeConfigRequest"},
+ "output":{"shape":"FunctionEventInvokeConfig"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
"
+ },
+ "GetFunctionUrlConfig":{
+ "name":"GetFunctionUrlConfig",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2021-10-31/functions/{FunctionName}/url",
+ "responseCode":200
+ },
+ "input":{"shape":"GetFunctionUrlConfigRequest"},
+ "output":{"shape":"GetFunctionUrlConfigResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Returns details about a Lambda function URL.
"
+ },
+ "CheckpointDurableExecution":{
+ "name":"CheckpointDurableExecution",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2025-12-01/durable-execution-state/{CheckpointToken}/checkpoint",
+ "responseCode":200
+ },
+ "input":{"shape":"CheckpointDurableExecutionRequest"},
+ "output":{"shape":"CheckpointDurableExecutionResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ],
+ "idempotent":true
+ },
+ "GetDurableExecution":{
+ "name":"GetDurableExecution",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2025-12-01/durable-executions/{DurableExecutionArn}",
+ "responseCode":200
+ },
+ "input":{"shape":"GetDurableExecutionRequest"},
+ "output":{"shape":"GetDurableExecutionResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"}
+ ]
+ },
+ "GetDurableExecutionState":{
+ "name":"GetDurableExecutionState",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2025-12-01/durable-execution-state/{CheckpointToken}/getState",
+ "responseCode":200
+ },
+ "input":{"shape":"GetDurableExecutionStateRequest"},
+ "output":{"shape":"GetDurableExecutionStateResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ]
+ },
+ "GetDurableExecutionHistory":{
+ "name":"GetDurableExecutionHistory",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2025-12-01/durable-executions/{DurableExecutionArn}/history",
+ "responseCode":200
+ },
+ "input":{"shape":"GetDurableExecutionHistoryRequest"},
+ "output":{"shape":"GetDurableExecutionHistoryResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"}
+ ]
+ },
+ "SendDurableExecutionCallbackFailure":{
+ "name":"SendDurableExecutionCallbackFailure",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2025-12-01/durable-execution-callbacks/{CallbackId}/fail",
+ "responseCode":200
+ },
+ "input":{"shape":"SendDurableExecutionCallbackFailureRequest"},
+ "output":{"shape":"SendDurableExecutionCallbackFailureResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"},
+ {"shape":"CallbackTimeoutException"}
+ ]
+ },
+ "SendDurableExecutionCallbackHeartbeat":{
+ "name":"SendDurableExecutionCallbackHeartbeat",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2025-12-01/durable-execution-callbacks/{CallbackId}/heartbeat",
+ "responseCode":200
+ },
+ "input":{"shape":"SendDurableExecutionCallbackHeartbeatRequest"},
+ "output":{"shape":"SendDurableExecutionCallbackHeartbeatResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"},
+ {"shape":"CallbackTimeoutException"}
+ ]
+ },
+ "SendDurableExecutionCallbackSuccess":{
+ "name":"SendDurableExecutionCallbackSuccess",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2025-12-01/durable-execution-callbacks/{CallbackId}/succeed",
+ "responseCode":200
+ },
+ "input":{"shape":"SendDurableExecutionCallbackSuccessRequest"},
+ "output":{"shape":"SendDurableExecutionCallbackSuccessResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"},
+ {"shape":"CallbackTimeoutException"}
+ ]
+ },
+ "GetLayerVersion":{
+ "name":"GetLayerVersion",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}",
+ "responseCode":200
+ },
+ "input":{"shape":"GetLayerVersionRequest"},
+ "output":{"shape":"GetLayerVersionResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceNotFoundException"}
+ ],
+ "documentation":"Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
"
+ },
+ "GetLayerVersionByArn":{
+ "name":"GetLayerVersionByArn",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2018-10-31/layers?find=LayerVersion",
+ "responseCode":200
+ },
+ "input":{"shape":"GetLayerVersionByArnRequest"},
+ "output":{"shape":"GetLayerVersionResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceNotFoundException"}
+ ],
+ "documentation":"Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
"
+ },
+ "GetLayerVersionPolicy":{
+ "name":"GetLayerVersionPolicy",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy",
+ "responseCode":200
+ },
+ "input":{"shape":"GetLayerVersionPolicyRequest"},
+ "output":{"shape":"GetLayerVersionPolicyResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"}
+ ],
+ "documentation":"Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
"
+ },
+ "GetPolicy":{
+ "name":"GetPolicy",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/policy",
+ "responseCode":200
+ },
+ "input":{"shape":"GetPolicyRequest"},
+ "output":{"shape":"GetPolicyResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"}
+ ],
+ "documentation":"Returns the resource-based IAM policy for a function, version, or alias.
"
+ },
+ "GetProvisionedConcurrencyConfig":{
+ "name":"GetProvisionedConcurrencyConfig",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2019-09-30/functions/{FunctionName}/provisioned-concurrency",
+ "responseCode":200
+ },
+ "input":{"shape":"GetProvisionedConcurrencyConfigRequest"},
+ "output":{"shape":"GetProvisionedConcurrencyConfigResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"},
+ {"shape":"ProvisionedConcurrencyConfigNotFoundException"}
+ ],
+ "documentation":"Retrieves the provisioned concurrency configuration for a function's alias or version.
"
+ },
+ "Invoke":{
+ "name":"Invoke",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/invocations"
+ },
+ "input":{"shape":"InvocationRequest"},
+ "output":{"shape":"InvocationResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidRequestContentException"},
+ {"shape":"RequestTooLargeException"},
+ {"shape":"UnsupportedMediaTypeException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"EC2UnexpectedException"},
+ {"shape":"SubnetIPAddressLimitReachedException"},
+ {"shape":"ENILimitReachedException"},
+ {"shape":"EFSMountConnectivityException"},
+ {"shape":"EFSMountFailureException"},
+ {"shape":"EFSMountTimeoutException"},
+ {"shape":"EFSIOException"},
+ {"shape":"EC2ThrottledException"},
+ {"shape":"EC2AccessDeniedException"},
+ {"shape":"InvalidSubnetIDException"},
+ {"shape":"InvalidSecurityGroupIDException"},
+ {"shape":"InvalidZipFileException"},
+ {"shape":"KMSDisabledException"},
+ {"shape":"KMSInvalidStateException"},
+ {"shape":"KMSAccessDeniedException"},
+ {"shape":"KMSNotFoundException"},
+ {"shape":"InvalidRuntimeException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"ResourceNotReadyException"},
+ {"shape":"DurableExecutionAlreadyStartedException"}
+ ],
+ "documentation":"Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event.
For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace.
When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior.
For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.
The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, limit errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if executing the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).
For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.
This operation requires permission for the lambda:InvokeFunction action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.
"
+ },
+ "InvokeAsync":{
+ "name":"InvokeAsync",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2014-11-13/functions/{FunctionName}/invoke-async/",
+ "responseCode":202
+ },
+ "input":{"shape":"InvokeAsyncRequest"},
+ "output":{"shape":"InvokeAsyncResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidRequestContentException"},
+ {"shape":"InvalidRuntimeException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":" For asynchronous function invocation, use Invoke.
Invokes a function asynchronously.
",
+ "deprecated":true
+ },
+ "ListAliases":{
+ "name":"ListAliases",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/aliases",
+ "responseCode":200
+ },
+ "input":{"shape":"ListAliasesRequest"},
+ "output":{"shape":"ListAliasesResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Returns a list of aliases for a Lambda function.
"
+ },
+ "ListCodeSigningConfigs":{
+ "name":"ListCodeSigningConfigs",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2020-04-22/code-signing-configs/",
+ "responseCode":200
+ },
+ "input":{"shape":"ListCodeSigningConfigsRequest"},
+ "output":{"shape":"ListCodeSigningConfigsResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"}
+ ],
+ "documentation":"Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.
"
+ },
+ "ListEventSourceMappings":{
+ "name":"ListEventSourceMappings",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/event-source-mappings/",
+ "responseCode":200
+ },
+ "input":{"shape":"ListEventSourceMappingsRequest"},
+ "output":{"shape":"ListEventSourceMappingsResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Lists event source mappings. Specify an EventSourceArn to show only event source mappings for a single event source.
"
+ },
+ "ListDurableExecutions":{
+ "name":"ListDurableExecutions",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2025-12-01/durable-executions",
+ "responseCode":200
+ },
+ "input":{"shape":"ListDurableExecutionsRequest"},
+ "output":{"shape":"ListDurableExecutionsResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ]
+ },
+ "ListFunctionEventInvokeConfigs":{
+ "name":"ListFunctionEventInvokeConfigs",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2019-09-25/functions/{FunctionName}/event-invoke-config/list",
+ "responseCode":200
+ },
+ "input":{"shape":"ListFunctionEventInvokeConfigsRequest"},
+ "output":{"shape":"ListFunctionEventInvokeConfigsResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ],
+ "documentation":"Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
"
+ },
+ "ListFunctionUrlConfigs":{
+ "name":"ListFunctionUrlConfigs",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2021-10-31/functions/{FunctionName}/urls",
+ "responseCode":200
+ },
+ "input":{"shape":"ListFunctionUrlConfigsRequest"},
+ "output":{"shape":"ListFunctionUrlConfigsResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Returns a list of Lambda function URLs for the specified function.
"
+ },
+ "ListFunctions":{
+ "name":"ListFunctions",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/functions/",
+ "responseCode":200
+ },
+ "input":{"shape":"ListFunctionsRequest"},
+ "output":{"shape":"ListFunctionsResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"}
+ ],
+ "documentation":"Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.
The ListFunctions action returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or version, use GetFunction.
"
+ },
+ "ListFunctionsByCodeSigningConfig":{
+ "name":"ListFunctionsByCodeSigningConfig",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions",
+ "responseCode":200
+ },
+ "input":{"shape":"ListFunctionsByCodeSigningConfigRequest"},
+ "output":{"shape":"ListFunctionsByCodeSigningConfigResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"}
+ ],
+ "documentation":"List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.
"
+ },
+ "ListLayerVersions":{
+ "name":"ListLayerVersions",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2018-10-31/layers/{LayerName}/versions",
+ "responseCode":200
+ },
+ "input":{"shape":"ListLayerVersionsRequest"},
+ "output":{"shape":"ListLayerVersionsResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Lists the versions of an Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.
"
+ },
+ "ListLayers":{
+ "name":"ListLayers",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2018-10-31/layers",
+ "responseCode":200
+ },
+ "input":{"shape":"ListLayersRequest"},
+ "output":{"shape":"ListLayersResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Lists Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.
"
+ },
+ "ListProvisionedConcurrencyConfigs":{
+ "name":"ListProvisionedConcurrencyConfigs",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2019-09-30/functions/{FunctionName}/provisioned-concurrency?List=ALL",
+ "responseCode":200
+ },
+ "input":{"shape":"ListProvisionedConcurrencyConfigsRequest"},
+ "output":{"shape":"ListProvisionedConcurrencyConfigsResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ],
+ "documentation":"Retrieves a list of provisioned concurrency configurations for a function.
"
+ },
+ "ListTags":{
+ "name":"ListTags",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2017-03-31/tags/{ARN}"
+ },
+ "input":{"shape":"ListTagsRequest"},
+ "output":{"shape":"ListTagsResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Returns a function's tags. You can also view tags with GetFunction.
"
+ },
+ "ListVersionsByFunction":{
+ "name":"ListVersionsByFunction",
+ "http":{
+ "method":"GET",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/versions",
+ "responseCode":200
+ },
+ "input":{"shape":"ListVersionsByFunctionRequest"},
+ "output":{"shape":"ListVersionsByFunctionResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
"
+ },
+ "PublishLayerVersion":{
+ "name":"PublishLayerVersion",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2018-10-31/layers/{LayerName}/versions",
+ "responseCode":201
+ },
+ "input":{"shape":"PublishLayerVersionRequest"},
+ "output":{"shape":"PublishLayerVersionResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"CodeStorageExceededException"}
+ ],
+ "documentation":"Creates an Lambda layer from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
"
+ },
+ "PublishVersion":{
+ "name":"PublishVersion",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/versions",
+ "responseCode":201
+ },
+ "input":{"shape":"PublishVersionRequest"},
+ "output":{"shape":"FunctionConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"CodeStorageExceededException"},
+ {"shape":"PreconditionFailedException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.
Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.
Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.
"
+ },
+ "PutFunctionCodeSigningConfig":{
+ "name":"PutFunctionCodeSigningConfig",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2020-06-30/functions/{FunctionName}/code-signing-config",
+ "responseCode":200
+ },
+ "input":{"shape":"PutFunctionCodeSigningConfigRequest"},
+ "output":{"shape":"PutFunctionCodeSigningConfigResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"CodeSigningConfigNotFoundException"}
+ ],
+ "documentation":"Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
"
+ },
+ "PutFunctionConcurrency":{
+ "name":"PutFunctionConcurrency",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2017-10-31/functions/{FunctionName}/concurrency",
+ "responseCode":200
+ },
+ "input":{"shape":"PutFunctionConcurrencyRequest"},
+ "output":{"shape":"Concurrency"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.
Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.
Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.
"
+ },
+ "PutFunctionEventInvokeConfig":{
+ "name":"PutFunctionEventInvokeConfig",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2019-09-25/functions/{FunctionName}/event-invoke-config",
+ "responseCode":200
+ },
+ "input":{"shape":"PutFunctionEventInvokeConfigRequest"},
+ "output":{"shape":"FunctionEventInvokeConfig"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.
By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.
To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.
"
+ },
+ "PutProvisionedConcurrencyConfig":{
+ "name":"PutProvisionedConcurrencyConfig",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2019-09-30/functions/{FunctionName}/provisioned-concurrency",
+ "responseCode":202
+ },
+ "input":{"shape":"PutProvisionedConcurrencyConfigRequest"},
+ "output":{"shape":"PutProvisionedConcurrencyConfigResponse"},
+ "errors":[
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ServiceException"}
+ ],
+ "documentation":"Adds a provisioned concurrency configuration to a function's alias or version.
"
+ },
+ "RemoveLayerVersionPermission":{
+ "name":"RemoveLayerVersionPermission",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}",
+ "responseCode":204
+ },
+ "input":{"shape":"RemoveLayerVersionPermissionRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"PreconditionFailedException"}
+ ],
+ "documentation":"Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
"
+ },
+ "RemovePermission":{
+ "name":"RemovePermission",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/policy/{StatementId}",
+ "responseCode":204
+ },
+ "input":{"shape":"RemovePermissionRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"PreconditionFailedException"}
+ ],
+ "documentation":"Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement from the output of GetPolicy.
"
+ },
+ "TagResource":{
+ "name":"TagResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2017-03-31/tags/{ARN}",
+ "responseCode":204
+ },
+ "input":{"shape":"TagResourceRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Adds tags to a function.
"
+ },
+ "UntagResource":{
+ "name":"UntagResource",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/2017-03-31/tags/{ARN}",
+ "responseCode":204
+ },
+ "input":{"shape":"UntagResourceRequest"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Removes tags from a function.
"
+ },
+ "UpdateAlias":{
+ "name":"UpdateAlias",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}",
+ "responseCode":200
+ },
+ "input":{"shape":"UpdateAliasRequest"},
+ "output":{"shape":"AliasConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"PreconditionFailedException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Updates the configuration of a Lambda function alias.
"
+ },
+ "UpdateCodeSigningConfig":{
+ "name":"UpdateCodeSigningConfig",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",
+ "responseCode":200
+ },
+ "input":{"shape":"UpdateCodeSigningConfigRequest"},
+ "output":{"shape":"UpdateCodeSigningConfigResponse"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"}
+ ],
+ "documentation":"Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
"
+ },
+ "UpdateEventSourceMapping":{
+ "name":"UpdateEventSourceMapping",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2015-03-31/event-source-mappings/{UUID}",
+ "responseCode":202
+ },
+ "input":{"shape":"UpdateEventSourceMappingRequest"},
+ "output":{"shape":"EventSourceMappingConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"ResourceInUseException"}
+ ],
+ "documentation":"Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.
For details about how to configure different event sources, see the following topics.
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.
"
+ },
+ "UpdateFunctionCode":{
+ "name":"UpdateFunctionCode",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/code",
+ "responseCode":200
+ },
+ "input":{"shape":"UpdateFunctionCodeRequest"},
+ "output":{"shape":"FunctionConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"CodeStorageExceededException"},
+ {"shape":"PreconditionFailedException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"CodeVerificationFailedException"},
+ {"shape":"InvalidCodeSignatureException"},
+ {"shape":"CodeSigningConfigNotFoundException"}
+ ],
+ "documentation":"Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing.
If the function's package type is Image, you must specify the code package in ImageUri as the URI of a container image in the Amazon ECR registry.
If the function's package type is Zip, you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using the ZipFile field.
The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64).
The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.
"
+ },
+ "UpdateFunctionConfiguration":{
+ "name":"UpdateFunctionConfiguration",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2015-03-31/functions/{FunctionName}/configuration",
+ "responseCode":200
+ },
+ "input":{"shape":"UpdateFunctionConfigurationRequest"},
+ "output":{"shape":"FunctionConfiguration"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"},
+ {"shape":"PreconditionFailedException"},
+ {"shape":"CodeVerificationFailedException"},
+ {"shape":"InvalidCodeSignatureException"},
+ {"shape":"CodeSigningConfigNotFoundException"}
+ ],
+ "documentation":"Modify the version-specific settings of a Lambda function.
When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Function States.
These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.
To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or Amazon Web Services service, use AddPermission.
"
+ },
+ "UpdateFunctionEventInvokeConfig":{
+ "name":"UpdateFunctionEventInvokeConfig",
+ "http":{
+ "method":"POST",
+ "requestUri":"/2019-09-25/functions/{FunctionName}/event-invoke-config",
+ "responseCode":200
+ },
+ "input":{"shape":"UpdateFunctionEventInvokeConfigRequest"},
+ "output":{"shape":"FunctionEventInvokeConfig"},
+ "errors":[
+ {"shape":"ServiceException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceConflictException"}
+ ],
+ "documentation":"Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
"
+ },
+ "UpdateFunctionUrlConfig":{
+ "name":"UpdateFunctionUrlConfig",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/2021-10-31/functions/{FunctionName}/url",
+ "responseCode":200
+ },
+ "input":{"shape":"UpdateFunctionUrlConfigRequest"},
+ "output":{"shape":"UpdateFunctionUrlConfigResponse"},
+ "errors":[
+ {"shape":"ResourceConflictException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ServiceException"},
+ {"shape":"TooManyRequestsException"}
+ ],
+ "documentation":"Updates the configuration for a Lambda function URL.
"
+ }
+ },
+ "shapes":{
+ "AccountLimit":{
+ "type":"structure",
+ "members":{
+ "TotalCodeSize":{
+ "shape":"Long",
+ "documentation":"The amount of storage space that you can use for all deployment packages and layer archives.
"
+ },
+ "CodeSizeUnzipped":{
+ "shape":"Long",
+ "documentation":"The maximum size of a function's deployment package and layers when they're extracted.
"
+ },
+ "CodeSizeZipped":{
+ "shape":"Long",
+ "documentation":"The maximum size of a deployment package when it's uploaded directly to Lambda. Use Amazon S3 for larger files.
"
+ },
+ "ConcurrentExecutions":{
+ "shape":"Integer",
+ "documentation":"The maximum number of simultaneous function executions.
"
+ },
+ "UnreservedConcurrentExecutions":{
+ "shape":"UnreservedConcurrentExecutions",
+ "documentation":"The maximum number of simultaneous function executions, minus the capacity that's reserved for individual functions with PutFunctionConcurrency.
"
+ }
+ },
+ "documentation":"Limits that are related to concurrency and storage. All file and storage sizes are in bytes.
"
+ },
+ "AccountUsage":{
+ "type":"structure",
+ "members":{
+ "TotalCodeSize":{
+ "shape":"Long",
+ "documentation":"The amount of storage space, in bytes, that's being used by deployment packages and layer archives.
"
+ },
+ "FunctionCount":{
+ "shape":"Long",
+ "documentation":"The number of Lambda functions.
"
+ }
+ },
+ "documentation":"The number of functions and amount of storage in use.
"
+ },
+ "Action":{
+ "type":"string",
+ "pattern":"(lambda:[*]|lambda:[a-zA-Z]+|[*])"
+ },
+ "AddLayerVersionPermissionRequest":{
+ "type":"structure",
+ "required":[
+ "LayerName",
+ "VersionNumber",
+ "StatementId",
+ "Action",
+ "Principal"
+ ],
+ "members":{
+ "LayerName":{
+ "shape":"LayerName",
+ "documentation":"The name or Amazon Resource Name (ARN) of the layer.
",
+ "location":"uri",
+ "locationName":"LayerName"
+ },
+ "VersionNumber":{
+ "shape":"LayerVersionNumber",
+ "documentation":"The version number.
",
+ "location":"uri",
+ "locationName":"VersionNumber"
+ },
+ "StatementId":{
+ "shape":"StatementId",
+ "documentation":"An identifier that distinguishes the policy from others on the same layer version.
"
+ },
+ "Action":{
+ "shape":"LayerPermissionAllowedAction",
+ "documentation":"The API action that grants access to the layer. For example, lambda:GetLayerVersion.
"
+ },
+ "Principal":{
+ "shape":"LayerPermissionAllowedPrincipal",
+ "documentation":"An account ID, or * to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if organizationId is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.
"
+ },
+ "OrganizationId":{
+ "shape":"OrganizationId",
+ "documentation":"With the principal set to *, grant permission to all accounts in the specified organization.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
",
+ "location":"querystring",
+ "locationName":"RevisionId"
+ }
+ }
+ },
+ "AddLayerVersionPermissionResponse":{
+ "type":"structure",
+ "members":{
+ "Statement":{
+ "shape":"String",
+ "documentation":"The permission statement.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"A unique identifier for the current revision of the policy.
"
+ }
+ }
+ },
+ "AddPermissionRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "StatementId",
+ "Action",
+ "Principal"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "StatementId":{
+ "shape":"StatementId",
+ "documentation":"A statement identifier that differentiates the statement from others in the same policy.
"
+ },
+ "Action":{
+ "shape":"Action",
+ "documentation":"The action that the principal can use on the function. For example, lambda:InvokeFunction or lambda:GetFunction.
"
+ },
+ "Principal":{
+ "shape":"Principal",
+ "documentation":"The Amazon Web Services service or account that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.
"
+ },
+ "SourceArn":{
+ "shape":"Arn",
+ "documentation":"For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.
Note that Lambda configures the comparison using the StringLike operator.
"
+ },
+ "SourceAccount":{
+ "shape":"SourceOwner",
+ "documentation":"For Amazon S3, the ID of the account that owns the resource. Use this together with SourceArn to ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.
"
+ },
+ "EventSourceToken":{
+ "shape":"EventSourceToken",
+ "documentation":"For Alexa Smart Home functions, a token that must be supplied by the invoker.
"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"Specify a version or alias to add permissions to a published version of the function.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.
"
+ },
+ "PrincipalOrgID":{
+ "shape":"PrincipalOrgID",
+ "documentation":"The identifier for your organization in Organizations. Use this to grant permissions to all the Amazon Web Services accounts under this organization.
"
+ },
+ "FunctionUrlAuthType":{
+ "shape":"FunctionUrlAuthType",
+ "documentation":"The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
"
+ }
+ }
+ },
+ "AddPermissionResponse":{
+ "type":"structure",
+ "members":{
+ "Statement":{
+ "shape":"String",
+ "documentation":"The permission statement that's added to the function policy.
"
+ }
+ }
+ },
+ "AdditionalVersion":{
+ "type":"string",
+ "max":1024,
+ "min":1,
+ "pattern":"[0-9]+"
+ },
+ "AdditionalVersionWeights":{
+ "type":"map",
+ "key":{"shape":"AdditionalVersion"},
+ "value":{"shape":"Weight"}
+ },
+ "Alias":{
+ "type":"string",
+ "max":128,
+ "min":1,
+ "pattern":"(?!^[0-9]+$)([a-zA-Z0-9-_]+)"
+ },
+ "AliasConfiguration":{
+ "type":"structure",
+ "members":{
+ "AliasArn":{
+ "shape":"FunctionArn",
+ "documentation":"The Amazon Resource Name (ARN) of the alias.
"
+ },
+ "Name":{
+ "shape":"Alias",
+ "documentation":"The name of the alias.
"
+ },
+ "FunctionVersion":{
+ "shape":"Version",
+ "documentation":"The function version that the alias invokes.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"A description of the alias.
"
+ },
+ "RoutingConfig":{
+ "shape":"AliasRoutingConfiguration",
+ "documentation":"The routing configuration of the alias.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"A unique identifier that changes when you update the alias.
"
+ }
+ },
+ "documentation":"Provides configuration information about a Lambda function alias.
"
+ },
+ "AliasList":{
+ "type":"list",
+ "member":{"shape":"AliasConfiguration"}
+ },
+ "AliasRoutingConfiguration":{
+ "type":"structure",
+ "members":{
+ "AdditionalVersionWeights":{
+ "shape":"AdditionalVersionWeights",
+ "documentation":"The second version, and the percentage of traffic that's routed to it.
"
+ }
+ },
+ "documentation":"The traffic-shifting configuration of a Lambda function alias.
"
+ },
+ "AllowCredentials":{"type":"boolean"},
+ "AllowMethodsList":{
+ "type":"list",
+ "member":{"shape":"Method"},
+ "max":6
+ },
+ "AllowOriginsList":{
+ "type":"list",
+ "member":{"shape":"Origin"},
+ "max":100
+ },
+ "AllowedPublishers":{
+ "type":"structure",
+ "required":["SigningProfileVersionArns"],
+ "members":{
+ "SigningProfileVersionArns":{
+ "shape":"SigningProfileVersionArns",
+ "documentation":"The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
"
+ }
+ },
+ "documentation":"List of signing profiles that can sign a code package.
"
+ },
+ "AmazonManagedKafkaEventSourceConfig":{
+ "type":"structure",
+ "members":{
+ "ConsumerGroupId":{
+ "shape":"URI",
+ "documentation":"The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see services-msk-consumer-group-id.
"
+ }
+ },
+ "documentation":"Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
"
+ },
+ "Architecture":{
+ "type":"string",
+ "enum":[
+ "x86_64",
+ "arm64"
+ ]
+ },
+ "ArchitecturesList":{
+ "type":"list",
+ "member":{"shape":"Architecture"},
+ "max":1,
+ "min":1
+ },
+ "Arn":{
+ "type":"string",
+ "pattern":"arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)"
+ },
+ "BatchSize":{
+ "type":"integer",
+ "max":10000,
+ "min":1
+ },
+ "BisectBatchOnFunctionError":{"type":"boolean"},
+ "Blob":{
+ "type":"blob",
+ "sensitive":true
+ },
+ "BlobStream":{
+ "type":"blob",
+ "streaming":true
+ },
+ "Boolean":{"type":"boolean"},
+ "CallbackDetails":{
+ "type":"structure",
+ "members":{
+ "CallbackId":{"shape":"CallbackId"},
+ "Result":{"shape":"OperationPayload"},
+ "Error":{"shape":"ErrorObject"}
+ }
+ },
+ "CallbackFailedDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"},
+ "RetryDetails":{"shape":"RetryDetails"}
+ }
+ },
+ "CallbackId":{
+ "type":"string",
+ "max":1024,
+ "min":1
+ },
+ "CallbackOptions":{
+ "type":"structure",
+ "members":{
+ "TimeoutSeconds":{"shape":"DurationSeconds"},
+ "HeartbeatTimeoutSeconds":{"shape":"DurationSeconds"}
+ }
+ },
+ "CallbackStartedDetails":{
+ "type":"structure",
+ "members":{
+ "CallbackId":{"shape":"CallbackId"},
+ "Input":{"shape":"EventInput"},
+ "HeartbeatTimeout":{"shape":"DurationSeconds"},
+ "Timeout":{"shape":"DurationSeconds"}
+ }
+ },
+ "CallbackSucceededDetails":{
+ "type":"structure",
+ "members":{
+ "Result":{"shape":"EventResult"},
+ "RetryDetails":{"shape":"RetryDetails"}
+ }
+ },
+ "CallbackTimedOutDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"},
+ "RetryDetails":{"shape":"RetryDetails"}
+ }
+ },
+ "CallbackTimeoutException":{
+ "type":"structure",
+ "required":["message"],
+ "members":{
+ "message":{"shape":"String"}
+ },
+ "error":{
+ "httpStatusCode":400,
+ "senderFault":true
+ },
+ "exception":true
+ },
+ "ContextFailedDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "ContextStartedDetails":{
+ "type":"structure",
+ "members":{}
+ },
+ "ContextSucceededDetails":{
+ "type":"structure",
+ "members":{
+ "Result":{"shape":"EventResult"}
+ }
+ },
+ "CodeSigningConfig":{
+ "type":"structure",
+ "required":[
+ "CodeSigningConfigId",
+ "CodeSigningConfigArn",
+ "AllowedPublishers",
+ "CodeSigningPolicies",
+ "LastModified"
+ ],
+ "members":{
+ "CodeSigningConfigId":{
+ "shape":"CodeSigningConfigId",
+ "documentation":"Unique identifer for the Code signing configuration.
"
+ },
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"The Amazon Resource Name (ARN) of the Code signing configuration.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"Code signing configuration description.
"
+ },
+ "AllowedPublishers":{
+ "shape":"AllowedPublishers",
+ "documentation":"List of allowed publishers.
"
+ },
+ "CodeSigningPolicies":{
+ "shape":"CodeSigningPolicies",
+ "documentation":"The code signing policy controls the validation failure action for signature mismatch or expiry.
"
+ },
+ "LastModified":{
+ "shape":"Timestamp",
+ "documentation":"The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ }
+ },
+ "documentation":"Details about a Code signing configuration.
"
+ },
+ "CodeSigningConfigArn":{
+ "type":"string",
+ "max":200,
+ "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}"
+ },
+ "CodeSigningConfigId":{
+ "type":"string",
+ "pattern":"csc-[a-zA-Z0-9-_\\.]{17}"
+ },
+ "CodeSigningConfigList":{
+ "type":"list",
+ "member":{"shape":"CodeSigningConfig"}
+ },
+ "CodeSigningConfigNotFoundException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The specified code signing configuration does not exist.
",
+ "error":{"httpStatusCode":404},
+ "exception":true
+ },
+ "CodeSigningPolicies":{
+ "type":"structure",
+ "members":{
+ "UntrustedArtifactOnDeployment":{
+ "shape":"CodeSigningPolicy",
+ "documentation":"Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if signature validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log.
Default value: Warn
"
+ }
+ },
+ "documentation":"Code signing configuration policies specify the validation failure action for signature mismatch or expiry.
"
+ },
+ "CodeSigningPolicy":{
+ "type":"string",
+ "enum":[
+ "Warn",
+ "Enforce"
+ ]
+ },
+ "CodeStorageExceededException":{
+ "type":"structure",
+ "members":{
+ "Type":{
+ "shape":"String",
+ "documentation":"The exception type.
"
+ },
+ "message":{"shape":"String"}
+ },
+ "documentation":"You have exceeded your maximum total code size per account. Learn more
",
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "CodeVerificationFailedException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"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.
",
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "CompatibleArchitectures":{
+ "type":"list",
+ "member":{"shape":"Architecture"},
+ "max":2
+ },
+ "CompatibleRuntimes":{
+ "type":"list",
+ "member":{"shape":"Runtime"},
+ "max":15
+ },
+ "Concurrency":{
+ "type":"structure",
+ "members":{
+ "ReservedConcurrentExecutions":{
+ "shape":"ReservedConcurrentExecutions",
+ "documentation":"The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency.
"
+ }
+ }
+ },
+ "Cors":{
+ "type":"structure",
+ "members":{
+ "AllowCredentials":{
+ "shape":"AllowCredentials",
+ "documentation":"Whether to allow cookies or other credentials in requests to your function URL. The default is false.
"
+ },
+ "AllowHeaders":{
+ "shape":"HeadersList",
+ "documentation":"The HTTP headers that origins can include in requests to your function URL. For example: Date, Keep-Alive, X-Custom-Header.
"
+ },
+ "AllowMethods":{
+ "shape":"AllowMethodsList",
+ "documentation":"The HTTP methods that are allowed when calling your function URL. For example: GET, POST, DELETE, or the wildcard character (*).
"
+ },
+ "AllowOrigins":{
+ "shape":"AllowOriginsList",
+ "documentation":"The origins that can access your function URL. You can list any number of specific origins, separated by a comma. For example: https://www.example.com, http://localhost:60905.
Alternatively, you can grant access to all origins using the wildcard character (*).
"
+ },
+ "ExposeHeaders":{
+ "shape":"HeadersList",
+ "documentation":"The HTTP headers in your function response that you want to expose to origins that call your function URL. For example: Date, Keep-Alive, X-Custom-Header.
"
+ },
+ "MaxAge":{
+ "shape":"MaxAge",
+ "documentation":"The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to 0, which means that the browser doesn't cache results.
"
+ }
+ },
+ "documentation":"The cross-origin resource sharing (CORS) settings for your Lambda function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL.
"
+ },
+ "CreateAliasRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "Name",
+ "FunctionVersion"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Name":{
+ "shape":"Alias",
+ "documentation":"The name of the alias.
"
+ },
+ "FunctionVersion":{
+ "shape":"Version",
+ "documentation":"The function version that the alias invokes.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"A description of the alias.
"
+ },
+ "RoutingConfig":{
+ "shape":"AliasRoutingConfiguration",
+ "documentation":"The routing configuration of the alias.
"
+ }
+ }
+ },
+ "CreateCodeSigningConfigRequest":{
+ "type":"structure",
+ "required":["AllowedPublishers"],
+ "members":{
+ "Description":{
+ "shape":"Description",
+ "documentation":"Descriptive name for this code signing configuration.
"
+ },
+ "AllowedPublishers":{
+ "shape":"AllowedPublishers",
+ "documentation":"Signing profiles for this code signing configuration.
"
+ },
+ "CodeSigningPolicies":{
+ "shape":"CodeSigningPolicies",
+ "documentation":"The code signing policies define the actions to take if the validation checks fail.
"
+ }
+ }
+ },
+ "CreateCodeSigningConfigResponse":{
+ "type":"structure",
+ "required":["CodeSigningConfig"],
+ "members":{
+ "CodeSigningConfig":{
+ "shape":"CodeSigningConfig",
+ "documentation":"The code signing configuration.
"
+ }
+ }
+ },
+ "CreateEventSourceMappingRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "EventSourceArn":{
+ "shape":"Arn",
+ "documentation":"The Amazon Resource Name (ARN) of the event source.
-
Amazon Kinesis - The ARN of the data stream or a stream consumer.
-
Amazon DynamoDB Streams - The ARN of the stream.
-
Amazon Simple Queue Service - The ARN of the queue.
-
Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.
"
+ },
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
"
+ },
+ "Enabled":{
+ "shape":"Enabled",
+ "documentation":"When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
"
+ },
+ "BatchSize":{
+ "shape":"BatchSize",
+ "documentation":"The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
-
Amazon Kinesis - Default 100. Max 10,000.
-
Amazon DynamoDB Streams - Default 100. Max 10,000.
-
Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
-
Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.
-
Self-managed Apache Kafka - Default 100. Max 10,000.
-
Amazon MQ (ActiveMQ and RabbitMQ) - Default 100. Max 10,000.
"
+ },
+ "FilterCriteria":{
+ "shape":"FilterCriteria",
+ "documentation":"(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
"
+ },
+ "MaximumBatchingWindowInSeconds":{
+ "shape":"MaximumBatchingWindowInSeconds",
+ "documentation":"(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
Default: 0
Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
"
+ },
+ "ParallelizationFactor":{
+ "shape":"ParallelizationFactor",
+ "documentation":"(Streams only) The number of batches to process from each shard concurrently.
"
+ },
+ "StartingPosition":{
+ "shape":"EventSourcePosition",
+ "documentation":"The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.
"
+ },
+ "StartingPositionTimestamp":{
+ "shape":"Date",
+ "documentation":"With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.
"
+ },
+ "DestinationConfig":{
+ "shape":"DestinationConfig",
+ "documentation":"(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
"
+ },
+ "MaximumRecordAgeInSeconds":{
+ "shape":"MaximumRecordAgeInSeconds",
+ "documentation":"(Streams only) Discard records older than the specified age. The default value is infinite (-1).
"
+ },
+ "BisectBatchOnFunctionError":{
+ "shape":"BisectBatchOnFunctionError",
+ "documentation":"(Streams only) If the function returns an error, split the batch in two and retry.
"
+ },
+ "MaximumRetryAttempts":{
+ "shape":"MaximumRetryAttemptsEventSourceMapping",
+ "documentation":"(Streams only) 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.
"
+ },
+ "TumblingWindowInSeconds":{
+ "shape":"TumblingWindowInSeconds",
+ "documentation":"(Streams only) The duration in seconds of a processing window. The range is between 1 second and 900 seconds.
"
+ },
+ "Topics":{
+ "shape":"Topics",
+ "documentation":"The name of the Kafka topic.
"
+ },
+ "Queues":{
+ "shape":"Queues",
+ "documentation":" (MQ) The name of the Amazon MQ broker destination queue to consume.
"
+ },
+ "SourceAccessConfigurations":{
+ "shape":"SourceAccessConfigurations",
+ "documentation":"An array of authentication protocols or VPC components required to secure your event source.
"
+ },
+ "SelfManagedEventSource":{
+ "shape":"SelfManagedEventSource",
+ "documentation":"The self-managed Apache Kafka cluster to receive records from.
"
+ },
+ "FunctionResponseTypes":{
+ "shape":"FunctionResponseTypeList",
+ "documentation":"(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
"
+ },
+ "AmazonManagedKafkaEventSourceConfig":{
+ "shape":"AmazonManagedKafkaEventSourceConfig",
+ "documentation":"Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
"
+ },
+ "SelfManagedKafkaEventSourceConfig":{
+ "shape":"SelfManagedKafkaEventSourceConfig",
+ "documentation":"Specific configuration settings for a self-managed Apache Kafka event source.
"
+ }
+ }
+ },
+ "CreateFunctionRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "Role",
+ "Code"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
"
+ },
+ "Runtime":{
+ "shape":"Runtime",
+ "documentation":"The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
"
+ },
+ "Role":{
+ "shape":"RoleArn",
+ "documentation":"The Amazon Resource Name (ARN) of the function's execution role.
"
+ },
+ "Handler":{
+ "shape":"Handler",
+ "documentation":"The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
"
+ },
+ "Code":{
+ "shape":"FunctionCode",
+ "documentation":"The code for the function.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"A description of the function.
"
+ },
+ "Timeout":{
+ "shape":"Timeout",
+ "documentation":"The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.
"
+ },
+ "MemorySize":{
+ "shape":"MemorySize",
+ "documentation":"The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
"
+ },
+ "Publish":{
+ "shape":"Boolean",
+ "documentation":"Set to true to publish the first version of the function during creation.
"
+ },
+ "VpcConfig":{
+ "shape":"VpcConfig",
+ "documentation":"For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
"
+ },
+ "PackageType":{
+ "shape":"PackageType",
+ "documentation":"The type of deployment package. Set to Image for container image and set Zip for ZIP archive.
"
+ },
+ "DeadLetterConfig":{
+ "shape":"DeadLetterConfig",
+ "documentation":"A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
"
+ },
+ "Environment":{
+ "shape":"Environment",
+ "documentation":"Environment variables that are accessible from function code during execution.
"
+ },
+ "KMSKeyArn":{
+ "shape":"KMSKeyArn",
+ "documentation":"The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.
"
+ },
+ "TracingConfig":{
+ "shape":"TracingConfig",
+ "documentation":"Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
"
+ },
+ "Tags":{
+ "shape":"Tags",
+ "documentation":"A list of tags to apply to the function.
"
+ },
+ "Layers":{
+ "shape":"LayerList",
+ "documentation":"A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
"
+ },
+ "FileSystemConfigs":{
+ "shape":"FileSystemConfigList",
+ "documentation":"Connection settings for an Amazon EFS file system.
"
+ },
+ "ImageConfig":{
+ "shape":"ImageConfig",
+ "documentation":"Container image configuration values that override the values in the container image Dockerfile.
"
+ },
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
"
+ },
+ "Architectures":{
+ "shape":"ArchitecturesList",
+ "documentation":"The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.
"
+ },
+ "EphemeralStorage":{
+ "shape":"EphemeralStorage",
+ "documentation":"The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
"
+ }
+ ,
+ "SnapStart":{
+ "shape":"SnapStart",
+ "documentation":"The function's SnapStart setting.
"
+ },
+ "LoggingConfig":{
+ "shape":"LoggingConfig",
+ "documentation":"The function's logging configuration.
"
+ },
+ "DurableConfig":{
+ "shape":"DurableConfig",
+ "documentation":"Configuration for durable function execution, including retention period and execution timeout.
"
+ }
+ }
+ },
+ "CreateFunctionUrlConfigRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "AuthType"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"FunctionUrlQualifier",
+ "documentation":"The alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ },
+ "AuthType":{
+ "shape":"FunctionUrlAuthType",
+ "documentation":"The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
"
+ },
+ "Cors":{
+ "shape":"Cors",
+ "documentation":"The cross-origin resource sharing (CORS) settings for your function URL.
"
+ }
+ }
+ },
+ "CreateFunctionUrlConfigResponse":{
+ "type":"structure",
+ "required":[
+ "FunctionUrl",
+ "FunctionArn",
+ "AuthType",
+ "CreationTime"
+ ],
+ "members":{
+ "FunctionUrl":{
+ "shape":"FunctionUrl",
+ "documentation":"The HTTP URL endpoint for your function.
"
+ },
+ "FunctionArn":{
+ "shape":"FunctionArn",
+ "documentation":"The Amazon Resource Name (ARN) of your function.
"
+ },
+ "AuthType":{
+ "shape":"FunctionUrlAuthType",
+ "documentation":"The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
"
+ },
+ "Cors":{
+ "shape":"Cors",
+ "documentation":"The cross-origin resource sharing (CORS) settings for your function URL.
"
+ },
+ "CreationTime":{
+ "shape":"Timestamp",
+ "documentation":"When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ }
+ }
+ },
+ "Date":{"type":"timestamp"},
+ "DeadLetterConfig":{
+ "type":"structure",
+ "members":{
+ "TargetArn":{
+ "shape":"ResourceArn",
+ "documentation":"The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.
"
+ }
+ },
+ "documentation":"The dead-letter queue for failed asynchronous invocations.
"
+ },
+ "DeleteAliasRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "Name"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Name":{
+ "shape":"Alias",
+ "documentation":"The name of the alias.
",
+ "location":"uri",
+ "locationName":"Name"
+ }
+ }
+ },
+ "DeleteCodeSigningConfigRequest":{
+ "type":"structure",
+ "required":["CodeSigningConfigArn"],
+ "members":{
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"The The Amazon Resource Name (ARN) of the code signing configuration.
",
+ "location":"uri",
+ "locationName":"CodeSigningConfigArn"
+ }
+ }
+ },
+ "DeleteCodeSigningConfigResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "DeleteEventSourceMappingRequest":{
+ "type":"structure",
+ "required":["UUID"],
+ "members":{
+ "UUID":{
+ "shape":"String",
+ "documentation":"The identifier of the event source mapping.
",
+ "location":"uri",
+ "locationName":"UUID"
+ }
+ }
+ },
+ "DeleteFunctionCodeSigningConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ }
+ }
+ },
+ "DeleteFunctionConcurrencyRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ }
+ }
+ },
+ "DeleteFunctionEventInvokeConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"A version number or alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "DeleteFunctionRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function or version.
Name formats
-
Function name - my-function (name-only), my-function:1 (with version).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"Specify a version to delete. You can't delete a version that's referenced by an alias.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "DeleteFunctionUrlConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"FunctionUrlQualifier",
+ "documentation":"The alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "DeleteLayerVersionRequest":{
+ "type":"structure",
+ "required":[
+ "LayerName",
+ "VersionNumber"
+ ],
+ "members":{
+ "LayerName":{
+ "shape":"LayerName",
+ "documentation":"The name or Amazon Resource Name (ARN) of the layer.
",
+ "location":"uri",
+ "locationName":"LayerName"
+ },
+ "VersionNumber":{
+ "shape":"LayerVersionNumber",
+ "documentation":"The version number.
",
+ "location":"uri",
+ "locationName":"VersionNumber"
+ }
+ }
+ },
+ "DeleteProvisionedConcurrencyConfigRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "Qualifier"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"The version number or alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "Description":{
+ "type":"string",
+ "max":256,
+ "min":0
+ },
+ "DestinationArn":{
+ "type":"string",
+ "max":350,
+ "min":0,
+ "pattern":"^$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)"
+ },
+ "DestinationConfig":{
+ "type":"structure",
+ "members":{
+ "OnSuccess":{
+ "shape":"OnSuccess",
+ "documentation":"The destination configuration for successful invocations.
"
+ },
+ "OnFailure":{
+ "shape":"OnFailure",
+ "documentation":"The destination configuration for failed invocations.
"
+ }
+ },
+ "documentation":"A configuration object that specifies the destination of an event after Lambda processes it.
"
+ },
+ "DurableExecutionArn":{
+ "type":"string",
+ "max":1024,
+ "min":1
+ },
+ "DurableExecutionName":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"[a-zA-Z0-9-_]+"
+ },
+ "DurableExecutions":{
+ "type":"list",
+ "member":{"shape":"Execution"}
+ },
+ "DurationSeconds":{
+ "type":"integer",
+ "min":1
+ },
+ "EC2AccessDeniedException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Need additional permissions to configure VPC settings.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "EC2ThrottledException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "EC2UnexpectedException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"},
+ "EC2ErrorCode":{"shape":"String"}
+ },
+ "documentation":"Lambda received an unexpected EC2 client exception while setting up for the Lambda function.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "EFSIOException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"An error occurred when reading from or writing to a connected file system.
",
+ "error":{"httpStatusCode":410},
+ "exception":true
+ },
+ "EFSMountConnectivityException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The function couldn't make a network connection to the configured file system.
",
+ "error":{"httpStatusCode":408},
+ "exception":true
+ },
+ "EFSMountFailureException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The function couldn't mount the configured file system due to a permission or configuration issue.
",
+ "error":{"httpStatusCode":403},
+ "exception":true
+ },
+ "EFSMountTimeoutException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The function was able to make a network connection to the configured file system, but the mount operation timed out.
",
+ "error":{"httpStatusCode":408},
+ "exception":true
+ },
+ "ENILimitReachedException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "Enabled":{"type":"boolean"},
+ "EndPointType":{
+ "type":"string",
+ "enum":["KAFKA_BOOTSTRAP_SERVERS"]
+ },
+ "Endpoint":{
+ "type":"string",
+ "max":300,
+ "min":1,
+ "pattern":"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9]):[0-9]{1,5}"
+ },
+ "EndpointLists":{
+ "type":"list",
+ "member":{"shape":"Endpoint"},
+ "max":10,
+ "min":1
+ },
+ "Endpoints":{
+ "type":"map",
+ "key":{"shape":"EndPointType"},
+ "value":{"shape":"EndpointLists"},
+ "max":2,
+ "min":1
+ },
+ "Environment":{
+ "type":"structure",
+ "members":{
+ "Variables":{
+ "shape":"EnvironmentVariables",
+ "documentation":"Environment variable key-value pairs. For more information, see Using Lambda environment variables.
"
+ }
+ },
+ "documentation":"A function's environment variable settings. You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.
"
+ },
+ "EnvironmentError":{
+ "type":"structure",
+ "members":{
+ "ErrorCode":{
+ "shape":"String",
+ "documentation":"The error code.
"
+ },
+ "Message":{
+ "shape":"SensitiveString",
+ "documentation":"The error message.
"
+ }
+ },
+ "documentation":"Error messages for environment variables that couldn't be applied.
"
+ },
+ "EnvironmentResponse":{
+ "type":"structure",
+ "members":{
+ "Variables":{
+ "shape":"EnvironmentVariables",
+ "documentation":"Environment variable key-value pairs.
"
+ },
+ "Error":{
+ "shape":"EnvironmentError",
+ "documentation":"Error messages for environment variables that couldn't be applied.
"
+ }
+ },
+ "documentation":"The results of an operation to update or read environment variables. If the operation is successful, the response contains the environment variables. If it failed, the response contains details about the error.
"
+ },
+ "EnvironmentVariableName":{
+ "type":"string",
+ "pattern":"[a-zA-Z]([a-zA-Z0-9_])+",
+ "sensitive":true
+ },
+ "EnvironmentVariableValue":{
+ "type":"string",
+ "sensitive":true
+ },
+ "EnvironmentVariables":{
+ "type":"map",
+ "key":{"shape":"EnvironmentVariableName"},
+ "value":{"shape":"EnvironmentVariableValue"},
+ "sensitive":true
+ },
+ "EphemeralStorage":{
+ "type":"structure",
+ "required":["Size"],
+ "members":{
+ "Size":{
+ "shape":"EphemeralStorageSize",
+ "documentation":"The size of the function’s /tmp directory.
"
+ }
+ },
+ "documentation":"The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
"
+ },
+ "EphemeralStorageSize":{
+ "type":"integer",
+ "max":10240,
+ "min":512
+ },
+ "EventSourceMappingConfiguration":{
+ "type":"structure",
+ "members":{
+ "UUID":{
+ "shape":"String",
+ "documentation":"The identifier of the event source mapping.
"
+ },
+ "StartingPosition":{
+ "shape":"EventSourcePosition",
+ "documentation":"The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.
"
+ },
+ "StartingPositionTimestamp":{
+ "shape":"Date",
+ "documentation":"With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.
"
+ },
+ "BatchSize":{
+ "shape":"BatchSize",
+ "documentation":"The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.
Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
"
+ },
+ "MaximumBatchingWindowInSeconds":{
+ "shape":"MaximumBatchingWindowInSeconds",
+ "documentation":"(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
Default: 0
Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
"
+ },
+ "ParallelizationFactor":{
+ "shape":"ParallelizationFactor",
+ "documentation":"(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
"
+ },
+ "EventSourceArn":{
+ "shape":"Arn",
+ "documentation":"The Amazon Resource Name (ARN) of the event source.
"
+ },
+ "FilterCriteria":{
+ "shape":"FilterCriteria",
+ "documentation":"(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
"
+ },
+ "FunctionArn":{
+ "shape":"FunctionArn",
+ "documentation":"The ARN of the Lambda function.
"
+ },
+ "LastModified":{
+ "shape":"Date",
+ "documentation":"The date that the event source mapping was last updated or that its state changed.
"
+ },
+ "LastProcessingResult":{
+ "shape":"String",
+ "documentation":"The result of the last Lambda invocation of your function.
"
+ },
+ "State":{
+ "shape":"String",
+ "documentation":"The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.
"
+ },
+ "StateTransitionReason":{
+ "shape":"String",
+ "documentation":"Indicates whether a user or Lambda made the last change to the event source mapping.
"
+ },
+ "DestinationConfig":{
+ "shape":"DestinationConfig",
+ "documentation":"(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
"
+ },
+ "Topics":{
+ "shape":"Topics",
+ "documentation":"The name of the Kafka topic.
"
+ },
+ "Queues":{
+ "shape":"Queues",
+ "documentation":" (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
"
+ },
+ "SourceAccessConfigurations":{
+ "shape":"SourceAccessConfigurations",
+ "documentation":"An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
"
+ },
+ "SelfManagedEventSource":{
+ "shape":"SelfManagedEventSource",
+ "documentation":"The self-managed Apache Kafka cluster for your event source.
"
+ },
+ "MaximumRecordAgeInSeconds":{
+ "shape":"MaximumRecordAgeInSeconds",
+ "documentation":"(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
"
+ },
+ "BisectBatchOnFunctionError":{
+ "shape":"BisectBatchOnFunctionError",
+ "documentation":"(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
"
+ },
+ "MaximumRetryAttempts":{
+ "shape":"MaximumRetryAttemptsEventSourceMapping",
+ "documentation":"(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
"
+ },
+ "TumblingWindowInSeconds":{
+ "shape":"TumblingWindowInSeconds",
+ "documentation":"(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.
"
+ },
+ "FunctionResponseTypes":{
+ "shape":"FunctionResponseTypeList",
+ "documentation":"(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
"
+ },
+ "AmazonManagedKafkaEventSourceConfig":{
+ "shape":"AmazonManagedKafkaEventSourceConfig",
+ "documentation":"Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
"
+ },
+ "SelfManagedKafkaEventSourceConfig":{
+ "shape":"SelfManagedKafkaEventSourceConfig",
+ "documentation":"Specific configuration settings for a self-managed Apache Kafka event source.
"
+ }
+ },
+ "documentation":"A mapping between an Amazon Web Services resource and a Lambda function. For details, see CreateEventSourceMapping.
"
+ },
+ "EventSourceMappingsList":{
+ "type":"list",
+ "member":{"shape":"EventSourceMappingConfiguration"}
+ },
+ "EventSourcePosition":{
+ "type":"string",
+ "enum":[
+ "TRIM_HORIZON",
+ "LATEST",
+ "AT_TIMESTAMP"
+ ]
+ },
+ "EventSourceToken":{
+ "type":"string",
+ "max":256,
+ "min":0,
+ "pattern":"[a-zA-Z0-9._\\-]+"
+ },
+ "Event":{
+ "type":"structure",
+ "members":{
+ "EventType":{"shape":"EventType"},
+ "SubType":{"shape":"OperationSubType"},
+ "EventId":{"shape":"EventId"},
+ "Id":{"shape":"OperationId"},
+ "Name":{"shape":"OperationName"},
+ "EventTimestamp":{"shape":"ExecutionTimestamp"},
+ "ParentId":{"shape":"OperationId"},
+ "ExecutionStartedDetails":{"shape":"ExecutionStartedDetails"},
+ "ExecutionSucceededDetails":{"shape":"ExecutionSucceededDetails"},
+ "ExecutionFailedDetails":{"shape":"ExecutionFailedDetails"},
+ "ExecutionTimedOutDetails":{"shape":"ExecutionTimedOutDetails"},
+ "ExecutionStoppedDetails":{"shape":"ExecutionStoppedDetails"},
+ "ContextStartedDetails":{"shape":"ContextStartedDetails"},
+ "ContextSucceededDetails":{"shape":"ContextSucceededDetails"},
+ "ContextFailedDetails":{"shape":"ContextFailedDetails"},
+ "WaitStartedDetails":{"shape":"WaitStartedDetails"},
+ "WaitSucceededDetails":{"shape":"WaitSucceededDetails"},
+ "WaitCancelledDetails":{"shape":"WaitCancelledDetails"},
+ "StepStartedDetails":{"shape":"StepStartedDetails"},
+ "StepSucceededDetails":{"shape":"StepSucceededDetails"},
+ "StepFailedDetails":{"shape":"StepFailedDetails"},
+ "InvokeStartedDetails":{"shape":"InvokeStartedDetails"},
+ "InvokeSucceededDetails":{"shape":"InvokeSucceededDetails"},
+ "InvokeFailedDetails":{"shape":"InvokeFailedDetails"},
+ "InvokeTimedOutDetails":{"shape":"InvokeTimedOutDetails"},
+ "InvokeCancelledDetails":{"shape":"InvokeCancelledDetails"},
+ "CallbackStartedDetails":{"shape":"CallbackStartedDetails"},
+ "CallbackSucceededDetails":{"shape":"CallbackSucceededDetails"},
+ "CallbackFailedDetails":{"shape":"CallbackFailedDetails"},
+ "CallbackTimedOutDetails":{"shape":"CallbackTimedOutDetails"}
+ }
+ },
+ "EventId":{
+ "type":"integer",
+ "box":true,
+ "min":1
+ },
+ "Events":{
+ "type":"list",
+ "member":{"shape":"Event"}
+ },
+ "EventDetails":{
+ "type":"structure",
+ "members":{
+ "ExecutionStartedDetails":{"shape":"ExecutionStartedDetails"},
+ "ExecutionSucceededDetails":{"shape":"ExecutionSucceededDetails"},
+ "ExecutionFailedDetails":{"shape":"ExecutionFailedDetails"},
+ "ExecutionTimedOutDetails":{"shape":"ExecutionTimedOutDetails"},
+ "ExecutionStoppedDetails":{"shape":"ExecutionStoppedDetails"},
+ "StepStartedDetails":{"shape":"StepStartedDetails"},
+ "StepSucceededDetails":{"shape":"StepSucceededDetails"},
+ "StepFailedDetails":{"shape":"StepFailedDetails"},
+ "StepTimedOutDetails":{"shape":"StepTimedOutDetails"},
+ "WaitStartedDetails":{"shape":"WaitStartedDetails"},
+ "WaitSucceededDetails":{"shape":"WaitSucceededDetails"},
+ "WaitFailedDetails":{"shape":"WaitFailedDetails"},
+ "WaitTimedOutDetails":{"shape":"WaitTimedOutDetails"},
+ "InvokeStartedDetails":{"shape":"InvokeStartedDetails"},
+ "InvokeSucceededDetails":{"shape":"InvokeSucceededDetails"},
+ "InvokeFailedDetails":{"shape":"InvokeFailedDetails"},
+ "InvokeTimedOutDetails":{"shape":"InvokeTimedOutDetails"},
+ "InvokeCancelledDetails":{"shape":"InvokeCancelledDetails"},
+ "CallbackStartedDetails":{"shape":"CallbackStartedDetails"},
+ "CallbackSucceededDetails":{"shape":"CallbackSucceededDetails"},
+ "CallbackFailedDetails":{"shape":"CallbackFailedDetails"},
+ "CallbackTimedOutDetails":{"shape":"CallbackTimedOutDetails"}
+ }
+ },
+ "EventError":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"String"},
+ "Cause":{"shape":"String"}
+ }
+ },
+ "EventInput":{
+ "type":"string",
+ "max":262144,
+ "min":0,
+ "sensitive":true
+ },
+ "EventResult":{
+ "type":"string",
+ "max":262144,
+ "min":0,
+ "sensitive":true
+ },
+ "EventType":{
+ "type":"string",
+ "enum":[
+ "ExecutionStarted",
+ "ExecutionSucceeded",
+ "ExecutionFailed",
+ "ExecutionTimedOut",
+ "ExecutionStopped",
+ "StepStarted",
+ "StepSucceeded",
+ "StepFailed",
+ "StepTimedOut",
+ "WaitStarted",
+ "WaitSucceeded",
+ "WaitFailed",
+ "WaitTimedOut",
+ "InvokeStarted",
+ "InvokeSucceeded",
+ "InvokeFailed",
+ "InvokeTimedOut",
+ "InvokeCancelled",
+ "CallbackStarted",
+ "CallbackSucceeded",
+ "CallbackFailed",
+ "CallbackTimedOut"
+ ]
+ },
+ "Execution":{
+ "type":"structure",
+ "members":{
+ "DurableExecutionArn":{"shape":"DurableExecutionArn"},
+ "DurableExecutionName":{"shape":"DurableExecutionName"},
+ "FunctionArn":{"shape":"FunctionArn"},
+ "Status":{"shape":"ExecutionStatus"},
+ "StartDate":{"shape":"ExecutionTimestamp"},
+ "StopDate":{"shape":"ExecutionTimestamp"}
+ }
+ },
+ "ExecutionStatus":{
+ "type":"string",
+ "enum":[
+ "RUNNING",
+ "SUCCEEDED",
+ "FAILED",
+ "TIMED_OUT",
+ "STOPPED"
+ ]
+ },
+ "ExecutionTimestamp":{"type":"timestamp"},
+ "FileSystemArn":{
+ "type":"string",
+ "max":200,
+ "pattern":"arn:aws[a-zA-Z-]*:elasticfilesystem:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:access-point/fsap-[a-f0-9]{17}"
+ },
+ "FileSystemConfig":{
+ "type":"structure",
+ "required":[
+ "Arn",
+ "LocalMountPath"
+ ],
+ "members":{
+ "Arn":{
+ "shape":"FileSystemArn",
+ "documentation":"The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.
"
+ },
+ "LocalMountPath":{
+ "shape":"LocalMountPath",
+ "documentation":"The path where the function can access the file system, starting with /mnt/.
"
+ }
+ },
+ "documentation":"Details about the connection between a Lambda function and an Amazon EFS file system.
"
+ },
+ "FileSystemConfigList":{
+ "type":"list",
+ "member":{"shape":"FileSystemConfig"},
+ "max":1
+ },
+ "Filter":{
+ "type":"structure",
+ "members":{
+ "Pattern":{
+ "shape":"Pattern",
+ "documentation":" A filter pattern. For more information on the syntax of a filter pattern, see Filter rule syntax.
"
+ }
+ },
+ "documentation":" A structure within a FilterCriteria object that defines an event filtering pattern.
"
+ },
+ "FilterCriteria":{
+ "type":"structure",
+ "members":{
+ "Filters":{
+ "shape":"FilterList",
+ "documentation":" A list of filters.
"
+ }
+ },
+ "documentation":" An object that contains the filters for an event source.
"
+ },
+ "FilterList":{
+ "type":"list",
+ "member":{"shape":"Filter"}
+ },
+ "FunctionArn":{
+ "type":"string",
+ "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?"
+ },
+ "FunctionArnList":{
+ "type":"list",
+ "member":{"shape":"FunctionArn"}
+ },
+ "FunctionCode":{
+ "type":"structure",
+ "members":{
+ "ZipFile":{
+ "shape":"Blob",
+ "documentation":"The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.
"
+ },
+ "S3Bucket":{
+ "shape":"S3Bucket",
+ "documentation":"An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.
"
+ },
+ "S3Key":{
+ "shape":"S3Key",
+ "documentation":"The Amazon S3 key of the deployment package.
"
+ },
+ "S3ObjectVersion":{
+ "shape":"S3ObjectVersion",
+ "documentation":"For versioned objects, the version of the deployment package object to use.
"
+ },
+ "ImageUri":{
+ "shape":"String",
+ "documentation":"URI of a container image in the Amazon ECR registry.
"
+ }
+ },
+ "documentation":"The code for the Lambda function. You can specify either an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.
"
+ },
+ "FunctionCodeLocation":{
+ "type":"structure",
+ "members":{
+ "RepositoryType":{
+ "shape":"String",
+ "documentation":"The service that's hosting the file.
"
+ },
+ "Location":{
+ "shape":"String",
+ "documentation":"A presigned URL that you can use to download the deployment package.
"
+ },
+ "ImageUri":{
+ "shape":"String",
+ "documentation":"URI of a container image in the Amazon ECR registry.
"
+ },
+ "ResolvedImageUri":{
+ "shape":"String",
+ "documentation":"The resolved URI for the image.
"
+ }
+ },
+ "documentation":"Details about a function's deployment package.
"
+ },
+ "FunctionConfiguration":{
+ "type":"structure",
+ "members":{
+ "FunctionName":{
+ "shape":"NamespacedFunctionName",
+ "documentation":"The name of the function.
"
+ },
+ "FunctionArn":{
+ "shape":"NameSpacedFunctionArn",
+ "documentation":"The function's Amazon Resource Name (ARN).
"
+ },
+ "Runtime":{
+ "shape":"Runtime",
+ "documentation":"The runtime environment for the Lambda function.
"
+ },
+ "Role":{
+ "shape":"RoleArn",
+ "documentation":"The function's execution role.
"
+ },
+ "Handler":{
+ "shape":"Handler",
+ "documentation":"The function that Lambda calls to begin executing your function.
"
+ },
+ "CodeSize":{
+ "shape":"Long",
+ "documentation":"The size of the function's deployment package, in bytes.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"The function's description.
"
+ },
+ "Timeout":{
+ "shape":"Timeout",
+ "documentation":"The amount of time in seconds that Lambda allows a function to run before stopping it.
"
+ },
+ "MemorySize":{
+ "shape":"MemorySize",
+ "documentation":"The amount of memory available to the function at runtime.
"
+ },
+ "LastModified":{
+ "shape":"Timestamp",
+ "documentation":"The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ },
+ "CodeSha256":{
+ "shape":"String",
+ "documentation":"The SHA256 hash of the function's deployment package.
"
+ },
+ "Version":{
+ "shape":"Version",
+ "documentation":"The version of the Lambda function.
"
+ },
+ "VpcConfig":{
+ "shape":"VpcConfigResponse",
+ "documentation":"The function's networking configuration.
"
+ },
+ "DeadLetterConfig":{
+ "shape":"DeadLetterConfig",
+ "documentation":"The function's dead letter queue.
"
+ },
+ "Environment":{
+ "shape":"EnvironmentResponse",
+ "documentation":"The function's environment variables.
"
+ },
+ "KMSKeyArn":{
+ "shape":"KMSKeyArn",
+ "documentation":"The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed key.
"
+ },
+ "TracingConfig":{
+ "shape":"TracingConfigResponse",
+ "documentation":"The function's X-Ray tracing configuration.
"
+ },
+ "MasterArn":{
+ "shape":"FunctionArn",
+ "documentation":"For Lambda@Edge functions, the ARN of the main function.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"The latest updated revision of the function or alias.
"
+ },
+ "Layers":{
+ "shape":"LayersReferenceList",
+ "documentation":"The function's layers.
"
+ },
+ "State":{
+ "shape":"State",
+ "documentation":"The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.
"
+ },
+ "StateReason":{
+ "shape":"StateReason",
+ "documentation":"The reason for the function's current state.
"
+ },
+ "StateReasonCode":{
+ "shape":"StateReasonCode",
+ "documentation":"The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.
"
+ },
+ "LastUpdateStatus":{
+ "shape":"LastUpdateStatus",
+ "documentation":"The status of the last update that was performed on the function. This is first set to Successful after function creation completes.
"
+ },
+ "LastUpdateStatusReason":{
+ "shape":"LastUpdateStatusReason",
+ "documentation":"The reason for the last update that was performed on the function.
"
+ },
+ "LastUpdateStatusReasonCode":{
+ "shape":"LastUpdateStatusReasonCode",
+ "documentation":"The reason code for the last update that was performed on the function.
"
+ },
+ "FileSystemConfigs":{
+ "shape":"FileSystemConfigList",
+ "documentation":"Connection settings for an Amazon EFS file system.
"
+ },
+ "PackageType":{
+ "shape":"PackageType",
+ "documentation":"The type of deployment package. Set to Image for container image and set Zip for .zip file archive.
"
+ },
+ "ImageConfigResponse":{
+ "shape":"ImageConfigResponse",
+ "documentation":"The function's image configuration values.
"
+ },
+ "SigningProfileVersionArn":{
+ "shape":"Arn",
+ "documentation":"The ARN of the signing profile version.
"
+ },
+ "SigningJobArn":{
+ "shape":"Arn",
+ "documentation":"The ARN of the signing job.
"
+ },
+ "Architectures":{
+ "shape":"ArchitecturesList",
+ "documentation":"The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.
"
+ },
+ "DurableConfig":{
+ "shape":"DurableConfig",
+ "documentation":"Configuration for durable function execution, including retention period and execution timeout.
"
+ },
+ "SnapStart":{
+ "shape":"SnapStartResponse",
+ "documentation":"The function's SnapStart setting.
"
+ },
+ "LoggingConfig":{
+ "shape":"LoggingConfig",
+ "documentation":"The function's logging configuration.
"
+ },
+ "EphemeralStorage":{
+ "shape":"EphemeralStorage",
+ "documentation":"The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
"
+ }
+ },
+ "documentation":"Details about a function's configuration.
"
+ },
+ "FunctionEventInvokeConfig":{
+ "type":"structure",
+ "members":{
+ "LastModified":{
+ "shape":"Date",
+ "documentation":"The date and time that the configuration was last updated.
"
+ },
+ "FunctionArn":{
+ "shape":"FunctionArn",
+ "documentation":"The Amazon Resource Name (ARN) of the function.
"
+ },
+ "MaximumRetryAttempts":{
+ "shape":"MaximumRetryAttempts",
+ "documentation":"The maximum number of times to retry when the function returns an error.
"
+ },
+ "MaximumEventAgeInSeconds":{
+ "shape":"MaximumEventAgeInSeconds",
+ "documentation":"The maximum age of a request that Lambda sends to a function for processing.
"
+ },
+ "DestinationConfig":{
+ "shape":"DestinationConfig",
+ "documentation":"A destination for events after they have been sent to a function for processing.
Destinations
-
Function - The Amazon Resource Name (ARN) of a Lambda function.
-
Queue - The ARN of an SQS queue.
-
Topic - The ARN of an SNS topic.
-
Event Bus - The ARN of an Amazon EventBridge event bus.
"
+ }
+ }
+ },
+ "FunctionEventInvokeConfigList":{
+ "type":"list",
+ "member":{"shape":"FunctionEventInvokeConfig"}
+ },
+ "FunctionList":{
+ "type":"list",
+ "member":{"shape":"FunctionConfiguration"}
+ },
+ "FunctionName":{
+ "type":"string",
+ "max":140,
+ "min":1,
+ "pattern":"(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?"
+ },
+ "FunctionResponseType":{
+ "type":"string",
+ "enum":["ReportBatchItemFailures"]
+ },
+ "FunctionResponseTypeList":{
+ "type":"list",
+ "member":{"shape":"FunctionResponseType"},
+ "max":1,
+ "min":0
+ },
+ "FunctionUrl":{
+ "type":"string",
+ "max":100,
+ "min":40
+ },
+ "FunctionUrlAuthType":{
+ "type":"string",
+ "enum":[
+ "NONE",
+ "AWS_IAM"
+ ]
+ },
+ "FunctionUrlConfig":{
+ "type":"structure",
+ "required":[
+ "FunctionUrl",
+ "FunctionArn",
+ "CreationTime",
+ "LastModifiedTime",
+ "AuthType"
+ ],
+ "members":{
+ "FunctionUrl":{
+ "shape":"FunctionUrl",
+ "documentation":"The HTTP URL endpoint for your function.
"
+ },
+ "FunctionArn":{
+ "shape":"FunctionArn",
+ "documentation":"The Amazon Resource Name (ARN) of your function.
"
+ },
+ "CreationTime":{
+ "shape":"Timestamp",
+ "documentation":"When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ },
+ "LastModifiedTime":{
+ "shape":"Timestamp",
+ "documentation":"When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ },
+ "Cors":{
+ "shape":"Cors",
+ "documentation":"The cross-origin resource sharing (CORS) settings for your function URL.
"
+ },
+ "AuthType":{
+ "shape":"FunctionUrlAuthType",
+ "documentation":"The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
"
+ }
+ },
+ "documentation":"Details about a Lambda function URL.
"
+ },
+ "FunctionUrlConfigList":{
+ "type":"list",
+ "member":{"shape":"FunctionUrlConfig"}
+ },
+ "FunctionUrlQualifier":{
+ "type":"string",
+ "max":128,
+ "min":1,
+ "pattern":"(^\\$LATEST$)|((?!^[0-9]+$)([a-zA-Z0-9-_]+))"
+ },
+ "FunctionVersion":{
+ "type":"string",
+ "enum":["ALL"]
+ },
+ "GetAccountSettingsRequest":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "GetAccountSettingsResponse":{
+ "type":"structure",
+ "members":{
+ "AccountLimit":{
+ "shape":"AccountLimit",
+ "documentation":"Limits that are related to concurrency and code storage.
"
+ },
+ "AccountUsage":{
+ "shape":"AccountUsage",
+ "documentation":"The number of functions and amount of storage in use.
"
+ }
+ }
+ },
+ "GetAliasRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "Name"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Name":{
+ "shape":"Alias",
+ "documentation":"The name of the alias.
",
+ "location":"uri",
+ "locationName":"Name"
+ }
+ }
+ },
+ "GetCodeSigningConfigRequest":{
+ "type":"structure",
+ "required":["CodeSigningConfigArn"],
+ "members":{
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"The The Amazon Resource Name (ARN) of the code signing configuration.
",
+ "location":"uri",
+ "locationName":"CodeSigningConfigArn"
+ }
+ }
+ },
+ "GetCodeSigningConfigResponse":{
+ "type":"structure",
+ "required":["CodeSigningConfig"],
+ "members":{
+ "CodeSigningConfig":{
+ "shape":"CodeSigningConfig",
+ "documentation":"The code signing configuration
"
+ }
+ }
+ },
+ "GetEventSourceMappingRequest":{
+ "type":"structure",
+ "required":["UUID"],
+ "members":{
+ "UUID":{
+ "shape":"String",
+ "documentation":"The identifier of the event source mapping.
",
+ "location":"uri",
+ "locationName":"UUID"
+ }
+ }
+ },
+ "GetDurableExecutionHistoryRequest":{
+ "type":"structure",
+ "required":["DurableExecutionArn"],
+ "members":{
+ "DurableExecutionArn":{
+ "shape":"DurableExecutionArn",
+ "location":"uri",
+ "locationName":"DurableExecutionArn"
+ },
+ "IncludeExecutionData":{
+ "shape":"IncludeExecutionData",
+ "location":"querystring",
+ "locationName":"IncludeExecutionData"
+ },
+ "MaxItems":{
+ "shape":"ItemCount",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ },
+ "Marker":{
+ "shape":"PaginationMarker",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "ReverseOrder":{
+ "shape":"ReverseOrder",
+ "location":"querystring",
+ "locationName":"ReverseOrder"
+ }
+ }
+ },
+ "GetDurableExecutionHistoryResponse":{
+ "type":"structure",
+ "members":{
+ "Events":{"shape":"Events"},
+ "NextMarker":{"shape":"PaginationMarker"}
+ }
+ },
+ "GetFunctionCodeSigningConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ }
+ }
+ },
+ "GetFunctionCodeSigningConfigResponse":{
+ "type":"structure",
+ "required":[
+ "CodeSigningConfigArn",
+ "FunctionName"
+ ],
+ "members":{
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"The The Amazon Resource Name (ARN) of the code signing configuration.
"
+ },
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
"
+ }
+ }
+ },
+ "GetFunctionConcurrencyRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ }
+ }
+ },
+ "GetFunctionConcurrencyResponse":{
+ "type":"structure",
+ "members":{
+ "ReservedConcurrentExecutions":{
+ "shape":"ReservedConcurrentExecutions",
+ "documentation":"The number of simultaneous executions that are reserved for the function.
"
+ }
+ }
+ },
+ "GetFunctionConfigurationRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"NamespacedFunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"Specify a version or alias to get details about a published version of the function.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "GetFunctionEventInvokeConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"A version number or alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "GetFunctionRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"NamespacedFunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"Specify a version or alias to get details about a published version of the function.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "GetFunctionResponse":{
+ "type":"structure",
+ "members":{
+ "Configuration":{
+ "shape":"FunctionConfiguration",
+ "documentation":"The configuration of the function or version.
"
+ },
+ "Code":{
+ "shape":"FunctionCodeLocation",
+ "documentation":"The deployment package of the function or version.
"
+ },
+ "Tags":{
+ "shape":"Tags",
+ "documentation":"The function's tags.
"
+ },
+ "Concurrency":{
+ "shape":"Concurrency",
+ "documentation":"The function's reserved concurrency.
"
+ }
+ }
+ },
+ "GetFunctionUrlConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"FunctionUrlQualifier",
+ "documentation":"The alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "GetFunctionUrlConfigResponse":{
+ "type":"structure",
+ "required":[
+ "FunctionUrl",
+ "FunctionArn",
+ "AuthType",
+ "CreationTime",
+ "LastModifiedTime"
+ ],
+ "members":{
+ "FunctionUrl":{
+ "shape":"FunctionUrl",
+ "documentation":"The HTTP URL endpoint for your function.
"
+ },
+ "FunctionArn":{
+ "shape":"FunctionArn",
+ "documentation":"The Amazon Resource Name (ARN) of your function.
"
+ },
+ "AuthType":{
+ "shape":"FunctionUrlAuthType",
+ "documentation":"The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
"
+ },
+ "Cors":{
+ "shape":"Cors",
+ "documentation":"The cross-origin resource sharing (CORS) settings for your function URL.
"
+ },
+ "CreationTime":{
+ "shape":"Timestamp",
+ "documentation":"When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ },
+ "LastModifiedTime":{
+ "shape":"Timestamp",
+ "documentation":"When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ }
+ }
+ },
+ "GetLayerVersionByArnRequest":{
+ "type":"structure",
+ "required":["Arn"],
+ "members":{
+ "Arn":{
+ "shape":"LayerVersionArn",
+ "documentation":"The ARN of the layer version.
",
+ "location":"querystring",
+ "locationName":"Arn"
+ }
+ }
+ },
+ "GetLayerVersionPolicyRequest":{
+ "type":"structure",
+ "required":[
+ "LayerName",
+ "VersionNumber"
+ ],
+ "members":{
+ "LayerName":{
+ "shape":"LayerName",
+ "documentation":"The name or Amazon Resource Name (ARN) of the layer.
",
+ "location":"uri",
+ "locationName":"LayerName"
+ },
+ "VersionNumber":{
+ "shape":"LayerVersionNumber",
+ "documentation":"The version number.
",
+ "location":"uri",
+ "locationName":"VersionNumber"
+ }
+ }
+ },
+ "GetLayerVersionPolicyResponse":{
+ "type":"structure",
+ "members":{
+ "Policy":{
+ "shape":"String",
+ "documentation":"The policy document.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"A unique identifier for the current revision of the policy.
"
+ }
+ }
+ },
+ "GetLayerVersionRequest":{
+ "type":"structure",
+ "required":[
+ "LayerName",
+ "VersionNumber"
+ ],
+ "members":{
+ "LayerName":{
+ "shape":"LayerName",
+ "documentation":"The name or Amazon Resource Name (ARN) of the layer.
",
+ "location":"uri",
+ "locationName":"LayerName"
+ },
+ "VersionNumber":{
+ "shape":"LayerVersionNumber",
+ "documentation":"The version number.
",
+ "location":"uri",
+ "locationName":"VersionNumber"
+ }
+ }
+ },
+ "GetLayerVersionResponse":{
+ "type":"structure",
+ "members":{
+ "Content":{
+ "shape":"LayerVersionContentOutput",
+ "documentation":"Details about the layer version.
"
+ },
+ "LayerArn":{
+ "shape":"LayerArn",
+ "documentation":"The ARN of the layer.
"
+ },
+ "LayerVersionArn":{
+ "shape":"LayerVersionArn",
+ "documentation":"The ARN of the layer version.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"The description of the version.
"
+ },
+ "CreatedDate":{
+ "shape":"Timestamp",
+ "documentation":"The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ },
+ "Version":{
+ "shape":"LayerVersionNumber",
+ "documentation":"The version number.
"
+ },
+ "CompatibleRuntimes":{
+ "shape":"CompatibleRuntimes",
+ "documentation":"The layer's compatible runtimes.
"
+ },
+ "LicenseInfo":{
+ "shape":"LicenseInfo",
+ "documentation":"The layer's software license.
"
+ },
+ "CompatibleArchitectures":{
+ "shape":"CompatibleArchitectures",
+ "documentation":"A list of compatible instruction set architectures.
"
+ }
+ }
+ },
+ "GetPolicyRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"NamespacedFunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"Specify a version or alias to get the policy for that resource.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "GetPolicyResponse":{
+ "type":"structure",
+ "members":{
+ "Policy":{
+ "shape":"String",
+ "documentation":"The resource-based policy.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"A unique identifier for the current revision of the policy.
"
+ }
+ }
+ },
+ "GetProvisionedConcurrencyConfigRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "Qualifier"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"The version number or alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ }
+ },
+ "GetProvisionedConcurrencyConfigResponse":{
+ "type":"structure",
+ "members":{
+ "RequestedProvisionedConcurrentExecutions":{
+ "shape":"PositiveInteger",
+ "documentation":"The amount of provisioned concurrency requested.
"
+ },
+ "AvailableProvisionedConcurrentExecutions":{
+ "shape":"NonNegativeInteger",
+ "documentation":"The amount of provisioned concurrency available.
"
+ },
+ "AllocatedProvisionedConcurrentExecutions":{
+ "shape":"NonNegativeInteger",
+ "documentation":"The amount of provisioned concurrency allocated.
"
+ },
+ "Status":{
+ "shape":"ProvisionedConcurrencyStatusEnum",
+ "documentation":"The status of the allocation process.
"
+ },
+ "StatusReason":{
+ "shape":"String",
+ "documentation":"For failed allocations, the reason that provisioned concurrency could not be allocated.
"
+ },
+ "LastModified":{
+ "shape":"Timestamp",
+ "documentation":"The date and time that a user last updated the configuration, in ISO 8601 format.
"
+ }
+ }
+ },
+ "Handler":{
+ "type":"string",
+ "max":128,
+ "pattern":"[^\\s]+"
+ },
+ "Header":{
+ "type":"string",
+ "max":1024,
+ "pattern":".*"
+ },
+ "HeadersList":{
+ "type":"list",
+ "member":{"shape":"Header"},
+ "max":100
+ },
+ "HttpStatus":{"type":"integer"},
+ "ImageConfig":{
+ "type":"structure",
+ "members":{
+ "EntryPoint":{
+ "shape":"StringList",
+ "documentation":"Specifies the entry point to their application, which is typically the location of the runtime executable.
"
+ },
+ "Command":{
+ "shape":"StringList",
+ "documentation":"Specifies parameters that you want to pass in with ENTRYPOINT.
"
+ },
+ "WorkingDirectory":{
+ "shape":"WorkingDirectory",
+ "documentation":"Specifies the working directory.
"
+ }
+ },
+ "documentation":"Configuration values that override the container image Dockerfile settings. See Container settings.
"
+ },
+ "ImageConfigError":{
+ "type":"structure",
+ "members":{
+ "ErrorCode":{
+ "shape":"String",
+ "documentation":"Error code.
"
+ },
+ "Message":{
+ "shape":"SensitiveString",
+ "documentation":"Error message.
"
+ }
+ },
+ "documentation":"Error response to GetFunctionConfiguration.
"
+ },
+ "ImageConfigResponse":{
+ "type":"structure",
+ "members":{
+ "ImageConfig":{
+ "shape":"ImageConfig",
+ "documentation":"Configuration values that override the container image Dockerfile.
"
+ },
+ "Error":{
+ "shape":"ImageConfigError",
+ "documentation":"Error response to GetFunctionConfiguration.
"
+ }
+ },
+ "documentation":"Response to GetFunctionConfiguration request.
"
+ },
+ "Integer":{"type":"integer"},
+ "InvalidCodeSignatureException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The code signature failed the integrity check. Lambda always blocks deployment if the integrity check fails, even if code signing policy is set to WARN.
",
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "InvalidParameterValueException":{
+ "type":"structure",
+ "members":{
+ "Type":{
+ "shape":"String",
+ "documentation":"The exception type.
"
+ },
+ "message":{
+ "shape":"String",
+ "documentation":"The exception message.
"
+ }
+ },
+ "documentation":"One of the parameters in the request is invalid.
",
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "InvalidRequestContentException":{
+ "type":"structure",
+ "members":{
+ "Type":{
+ "shape":"String",
+ "documentation":"The exception type.
"
+ },
+ "message":{
+ "shape":"String",
+ "documentation":"The exception message.
"
+ }
+ },
+ "documentation":"The request body could not be parsed as JSON.
",
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "InvalidRuntimeException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The runtime or runtime version specified is not supported.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "InvalidSecurityGroupIDException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The Security Group ID provided in the Lambda function VPC configuration is invalid.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "InvalidSubnetIDException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The Subnet ID provided in the Lambda function VPC configuration is invalid.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "InvalidZipFileException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Lambda could not unzip the deployment package.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "InvocationRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"NamespacedFunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "InvocationType":{
+ "shape":"InvocationType",
+ "documentation":"Choose from the following options.
-
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data.
-
Event - Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if it's configured). The API response only includes a status code.
-
DryRun - Validate parameter values and verify that the user or role has permission to invoke the function.
",
+ "location":"header",
+ "locationName":"X-Amz-Invocation-Type"
+ },
+ "LogType":{
+ "shape":"LogType",
+ "documentation":"Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.
",
+ "location":"header",
+ "locationName":"X-Amz-Log-Type"
+ },
+ "ClientContext":{
+ "shape":"String",
+ "documentation":"Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function in the context object.
",
+ "location":"header",
+ "locationName":"X-Amz-Client-Context"
+ },
+ "Payload":{
+ "shape":"Blob",
+ "documentation":"The JSON that you want to provide to your Lambda function as input.
You can enter the JSON directly. For example, --payload '{ \"key\": \"value\" }'. You can also specify a file path. For example, --payload file://payload.json.
"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"Specify a version or alias to invoke a published version of the function.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ }
+ },
+ "payload":"Payload"
+ },
+ "InvocationResponse":{
+ "type":"structure",
+ "members":{
+ "StatusCode":{
+ "shape":"Integer",
+ "documentation":"The HTTP status code is in the 200 range for a successful request. For the RequestResponse invocation type, this status code is 200. For the Event invocation type, this status code is 202. For the DryRun invocation type, the status code is 204.
",
+ "location":"statusCode"
+ },
+ "FunctionError":{
+ "shape":"String",
+ "documentation":"If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
",
+ "location":"header",
+ "locationName":"X-Amz-Function-Error"
+ },
+ "LogResult":{
+ "shape":"String",
+ "documentation":"The last 4 KB of the execution log, which is base64 encoded.
",
+ "location":"header",
+ "locationName":"X-Amz-Log-Result"
+ },
+ "Payload":{
+ "shape":"Blob",
+ "documentation":"The response from the function, or an error object.
"
+ },
+ "ExecutedVersion":{
+ "shape":"Version",
+ "documentation":"The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
",
+ "location":"header",
+ "locationName":"X-Amz-Executed-Version"
+ }
+ },
+ "payload":"Payload"
+ },
+ "InvocationType":{
+ "type":"string",
+ "enum":[
+ "Event",
+ "RequestResponse",
+ "DryRun"
+ ]
+ },
+ "InvokeAsyncRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "InvokeArgs"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"NamespacedFunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "InvokeArgs":{
+ "shape":"BlobStream",
+ "documentation":"The JSON that you want to provide to your Lambda function as input.
"
+ }
+ },
+ "deprecated":true,
+ "payload":"InvokeArgs"
+ },
+ "InvokeAsyncResponse":{
+ "type":"structure",
+ "members":{
+ "Status":{
+ "shape":"HttpStatus",
+ "documentation":"The status code.
",
+ "location":"statusCode"
+ }
+ },
+ "documentation":"A success response (202 Accepted) indicates that the request is queued for invocation.
",
+ "deprecated":true
+ },
+ "KMSAccessDeniedException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "KMSDisabledException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "KMSInvalidStateException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for Decrypt. Check the function's KMS key settings.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "KMSKeyArn":{
+ "type":"string",
+ "pattern":"(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()"
+ },
+ "KMSNotFoundException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "LastUpdateStatus":{
+ "type":"string",
+ "enum":[
+ "Successful",
+ "Failed",
+ "InProgress"
+ ]
+ },
+ "LastUpdateStatusReason":{"type":"string"},
+ "LastUpdateStatusReasonCode":{
+ "type":"string",
+ "enum":[
+ "EniLimitExceeded",
+ "InsufficientRolePermissions",
+ "InvalidConfiguration",
+ "InternalError",
+ "SubnetOutOfIPAddresses",
+ "InvalidSubnet",
+ "InvalidSecurityGroup",
+ "ImageDeleted",
+ "ImageAccessDenied",
+ "InvalidImage"
+ ]
+ },
+ "IncludeExecutionData":{
+ "type":"boolean",
+ "box":true
+ },
+ "Integer":{"type":"integer"},
+ "ItemCount":{
+ "type":"integer",
+ "min":0
+ },
+ "Layer":{
+ "type":"structure",
+ "members":{
+ "Arn":{
+ "shape":"LayerVersionArn",
+ "documentation":"The Amazon Resource Name (ARN) of the function layer.
"
+ },
+ "CodeSize":{
+ "shape":"Long",
+ "documentation":"The size of the layer archive in bytes.
"
+ },
+ "SigningProfileVersionArn":{
+ "shape":"Arn",
+ "documentation":"The Amazon Resource Name (ARN) for a signing profile version.
"
+ },
+ "SigningJobArn":{
+ "shape":"Arn",
+ "documentation":"The Amazon Resource Name (ARN) of a signing job.
"
+ }
+ },
+ "documentation":"An Lambda layer.
"
+ },
+ "LayerArn":{
+ "type":"string",
+ "max":140,
+ "min":1,
+ "pattern":"arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\\d{12}:layer:[a-zA-Z0-9-_]+"
+ },
+ "LayerList":{
+ "type":"list",
+ "member":{"shape":"LayerVersionArn"}
+ },
+ "LayerName":{
+ "type":"string",
+ "max":140,
+ "min":1,
+ "pattern":"(arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+"
+ },
+ "LayerPermissionAllowedAction":{
+ "type":"string",
+ "max":22,
+ "pattern":"lambda:GetLayerVersion"
+ },
+ "LayerPermissionAllowedPrincipal":{
+ "type":"string",
+ "pattern":"\\d{12}|\\*|arn:(aws[a-zA-Z-]*):iam::\\d{12}:root"
+ },
+ "LayerVersionArn":{
+ "type":"string",
+ "max":140,
+ "min":1,
+ "pattern":"arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+"
+ },
+ "LayerVersionContentInput":{
+ "type":"structure",
+ "members":{
+ "S3Bucket":{
+ "shape":"S3Bucket",
+ "documentation":"The Amazon S3 bucket of the layer archive.
"
+ },
+ "S3Key":{
+ "shape":"S3Key",
+ "documentation":"The Amazon S3 key of the layer archive.
"
+ },
+ "S3ObjectVersion":{
+ "shape":"S3ObjectVersion",
+ "documentation":"For versioned objects, the version of the layer archive object to use.
"
+ },
+ "ZipFile":{
+ "shape":"Blob",
+ "documentation":"The base64-encoded contents of the layer archive. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.
"
+ }
+ },
+ "documentation":"A ZIP archive that contains the contents of an Lambda layer. You can specify either an Amazon S3 location, or upload a layer archive directly.
"
+ },
+ "LayerVersionContentOutput":{
+ "type":"structure",
+ "members":{
+ "Location":{
+ "shape":"String",
+ "documentation":"A link to the layer archive in Amazon S3 that is valid for 10 minutes.
"
+ },
+ "CodeSha256":{
+ "shape":"String",
+ "documentation":"The SHA-256 hash of the layer archive.
"
+ },
+ "CodeSize":{
+ "shape":"Long",
+ "documentation":"The size of the layer archive in bytes.
"
+ },
+ "SigningProfileVersionArn":{
+ "shape":"String",
+ "documentation":"The Amazon Resource Name (ARN) for a signing profile version.
"
+ },
+ "SigningJobArn":{
+ "shape":"String",
+ "documentation":"The Amazon Resource Name (ARN) of a signing job.
"
+ }
+ },
+ "documentation":"Details about a version of an Lambda layer.
"
+ },
+ "LayerVersionNumber":{"type":"long"},
+ "LayerVersionsList":{
+ "type":"list",
+ "member":{"shape":"LayerVersionsListItem"}
+ },
+ "LayerVersionsListItem":{
+ "type":"structure",
+ "members":{
+ "LayerVersionArn":{
+ "shape":"LayerVersionArn",
+ "documentation":"The ARN of the layer version.
"
+ },
+ "Version":{
+ "shape":"LayerVersionNumber",
+ "documentation":"The version number.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"The description of the version.
"
+ },
+ "CreatedDate":{
+ "shape":"Timestamp",
+ "documentation":"The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.
"
+ },
+ "CompatibleRuntimes":{
+ "shape":"CompatibleRuntimes",
+ "documentation":"The layer's compatible runtimes.
"
+ },
+ "LicenseInfo":{
+ "shape":"LicenseInfo",
+ "documentation":"The layer's open-source license.
"
+ },
+ "CompatibleArchitectures":{
+ "shape":"CompatibleArchitectures",
+ "documentation":"A list of compatible instruction set architectures.
"
+ }
+ },
+ "documentation":"Details about a version of an Lambda layer.
"
+ },
+ "LayersList":{
+ "type":"list",
+ "member":{"shape":"LayersListItem"}
+ },
+ "LayersListItem":{
+ "type":"structure",
+ "members":{
+ "LayerName":{
+ "shape":"LayerName",
+ "documentation":"The name of the layer.
"
+ },
+ "LayerArn":{
+ "shape":"LayerArn",
+ "documentation":"The Amazon Resource Name (ARN) of the function layer.
"
+ },
+ "LatestMatchingVersion":{
+ "shape":"LayerVersionsListItem",
+ "documentation":"The newest version of the layer.
"
+ }
+ },
+ "documentation":"Details about an Lambda layer.
"
+ },
+ "LayersReferenceList":{
+ "type":"list",
+ "member":{"shape":"Layer"}
+ },
+ "LicenseInfo":{
+ "type":"string",
+ "max":512
+ },
+ "ListAliasesRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "FunctionVersion":{
+ "shape":"Version",
+ "documentation":"Specify a function version to only list aliases that invoke that version.
",
+ "location":"querystring",
+ "locationName":"FunctionVersion"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxListItems",
+ "documentation":"Limit the number of aliases returned.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListAliasesResponse":{
+ "type":"structure",
+ "members":{
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"The pagination token that's included if more results are available.
"
+ },
+ "Aliases":{
+ "shape":"AliasList",
+ "documentation":"A list of aliases.
"
+ }
+ }
+ },
+ "ListCodeSigningConfigsRequest":{
+ "type":"structure",
+ "members":{
+ "Marker":{
+ "shape":"String",
+ "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxListItems",
+ "documentation":"Maximum number of items to return.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListCodeSigningConfigsResponse":{
+ "type":"structure",
+ "members":{
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"The pagination token that's included if more results are available.
"
+ },
+ "CodeSigningConfigs":{
+ "shape":"CodeSigningConfigList",
+ "documentation":"The code signing configurations
"
+ }
+ }
+ },
+ "ListDurableExecutionsRequest":{
+ "type":"structure",
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "location":"querystring",
+ "locationName":"FunctionName"
+ },
+ "FunctionVersion":{
+ "shape":"Version",
+ "location":"querystring",
+ "locationName":"FunctionVersion"
+ },
+ "DurableExecutionName":{
+ "shape":"DurableExecutionName",
+ "location":"querystring",
+ "locationName":"DurableExecutionName"
+ },
+ "StatusFilter":{
+ "shape":"ExecutionStatus",
+ "location":"querystring",
+ "locationName":"StatusFilter"
+ },
+ "TimeFilter":{
+ "shape":"TimeFilter",
+ "location":"querystring",
+ "locationName":"TimeFilter"
+ },
+ "TimeAfter":{
+ "shape":"ExecutionTimestamp",
+ "location":"querystring",
+ "locationName":"TimeAfter"
+ },
+ "TimeBefore":{
+ "shape":"ExecutionTimestamp",
+ "location":"querystring",
+ "locationName":"TimeBefore"
+ },
+ "ReverseOrder":{
+ "shape":"ReverseOrder",
+ "location":"querystring",
+ "locationName":"ReverseOrder"
+ },
+ "Marker":{
+ "shape":"PaginationMarker",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"ItemCount",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListDurableExecutionsResponse":{
+ "type":"structure",
+ "members":{
+ "DurableExecutions":{"shape":"DurableExecutions"},
+ "NextMarker":{"shape":"PaginationMarker"}
+ }
+ },
+ "ListEventSourceMappingsRequest":{
+ "type":"structure",
+ "members":{
+ "EventSourceArn":{
+ "shape":"Arn",
+ "documentation":"The Amazon Resource Name (ARN) of the event source.
-
Amazon Kinesis - The ARN of the data stream or a stream consumer.
-
Amazon DynamoDB Streams - The ARN of the stream.
-
Amazon Simple Queue Service - The ARN of the queue.
-
Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.
",
+ "location":"querystring",
+ "locationName":"EventSourceArn"
+ },
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
",
+ "location":"querystring",
+ "locationName":"FunctionName"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"A pagination token returned by a previous call.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxListItems",
+ "documentation":"The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListEventSourceMappingsResponse":{
+ "type":"structure",
+ "members":{
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"A pagination token that's returned when the response doesn't contain all event source mappings.
"
+ },
+ "EventSourceMappings":{
+ "shape":"EventSourceMappingsList",
+ "documentation":"A list of event source mappings.
"
+ }
+ }
+ },
+ "ListFunctionEventInvokeConfigsRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxFunctionEventInvokeConfigListItems",
+ "documentation":"The maximum number of configurations to return.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListFunctionEventInvokeConfigsResponse":{
+ "type":"structure",
+ "members":{
+ "FunctionEventInvokeConfigs":{
+ "shape":"FunctionEventInvokeConfigList",
+ "documentation":"A list of configurations.
"
+ },
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"The pagination token that's included if more results are available.
"
+ }
+ }
+ },
+ "ListFunctionUrlConfigsRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxItems",
+ "documentation":"The maximum number of function URLs to return in the response. Note that ListFunctionUrlConfigs returns a maximum of 50 items in each response, even if you set the number higher.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListFunctionUrlConfigsResponse":{
+ "type":"structure",
+ "required":["FunctionUrlConfigs"],
+ "members":{
+ "FunctionUrlConfigs":{
+ "shape":"FunctionUrlConfigList",
+ "documentation":"A list of function URL configurations.
"
+ },
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"The pagination token that's included if more results are available.
"
+ }
+ }
+ },
+ "ListFunctionsByCodeSigningConfigRequest":{
+ "type":"structure",
+ "required":["CodeSigningConfigArn"],
+ "members":{
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"The The Amazon Resource Name (ARN) of the code signing configuration.
",
+ "location":"uri",
+ "locationName":"CodeSigningConfigArn"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxListItems",
+ "documentation":"Maximum number of items to return.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListFunctionsByCodeSigningConfigResponse":{
+ "type":"structure",
+ "members":{
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"The pagination token that's included if more results are available.
"
+ },
+ "FunctionArns":{
+ "shape":"FunctionArnList",
+ "documentation":"The function ARNs.
"
+ }
+ }
+ },
+ "ListFunctionsRequest":{
+ "type":"structure",
+ "members":{
+ "MasterRegion":{
+ "shape":"MasterRegion",
+ "documentation":"For Lambda@Edge functions, the Amazon Web Services Region of the master function. For example, us-east-1 filters the list of functions to only include Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must set FunctionVersion to ALL.
",
+ "location":"querystring",
+ "locationName":"MasterRegion"
+ },
+ "FunctionVersion":{
+ "shape":"FunctionVersion",
+ "documentation":"Set to ALL to include entries for all published versions of each function.
",
+ "location":"querystring",
+ "locationName":"FunctionVersion"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxListItems",
+ "documentation":"The maximum number of functions to return in the response. Note that ListFunctions returns a maximum of 50 items in each response, even if you set the number higher.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListFunctionsResponse":{
+ "type":"structure",
+ "members":{
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"The pagination token that's included if more results are available.
"
+ },
+ "Functions":{
+ "shape":"FunctionList",
+ "documentation":"A list of Lambda functions.
"
+ }
+ },
+ "documentation":"A list of Lambda functions.
"
+ },
+ "ListLayerVersionsRequest":{
+ "type":"structure",
+ "required":["LayerName"],
+ "members":{
+ "CompatibleRuntime":{
+ "shape":"Runtime",
+ "documentation":"A runtime identifier. For example, go1.x.
",
+ "location":"querystring",
+ "locationName":"CompatibleRuntime"
+ },
+ "LayerName":{
+ "shape":"LayerName",
+ "documentation":"The name or Amazon Resource Name (ARN) of the layer.
",
+ "location":"uri",
+ "locationName":"LayerName"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"A pagination token returned by a previous call.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxLayerListItems",
+ "documentation":"The maximum number of versions to return.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ },
+ "CompatibleArchitecture":{
+ "shape":"Architecture",
+ "documentation":"The compatible instruction set architecture.
",
+ "location":"querystring",
+ "locationName":"CompatibleArchitecture"
+ }
+ }
+ },
+ "ListLayerVersionsResponse":{
+ "type":"structure",
+ "members":{
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"A pagination token returned when the response doesn't contain all versions.
"
+ },
+ "LayerVersions":{
+ "shape":"LayerVersionsList",
+ "documentation":"A list of versions.
"
+ }
+ }
+ },
+ "ListLayersRequest":{
+ "type":"structure",
+ "members":{
+ "CompatibleRuntime":{
+ "shape":"Runtime",
+ "documentation":"A runtime identifier. For example, go1.x.
",
+ "location":"querystring",
+ "locationName":"CompatibleRuntime"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"A pagination token returned by a previous call.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxLayerListItems",
+ "documentation":"The maximum number of layers to return.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ },
+ "CompatibleArchitecture":{
+ "shape":"Architecture",
+ "documentation":"The compatible instruction set architecture.
",
+ "location":"querystring",
+ "locationName":"CompatibleArchitecture"
+ }
+ }
+ },
+ "ListLayersResponse":{
+ "type":"structure",
+ "members":{
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"A pagination token returned when the response doesn't contain all layers.
"
+ },
+ "Layers":{
+ "shape":"LayersList",
+ "documentation":"A list of function layers.
"
+ }
+ }
+ },
+ "ListProvisionedConcurrencyConfigsRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxProvisionedConcurrencyConfigListItems",
+ "documentation":"Specify a number to limit the number of configurations returned.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListProvisionedConcurrencyConfigsResponse":{
+ "type":"structure",
+ "members":{
+ "ProvisionedConcurrencyConfigs":{
+ "shape":"ProvisionedConcurrencyConfigList",
+ "documentation":"A list of provisioned concurrency configurations.
"
+ },
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"The pagination token that's included if more results are available.
"
+ }
+ }
+ },
+ "ListTagsRequest":{
+ "type":"structure",
+ "required":["Resource"],
+ "members":{
+ "Resource":{
+ "shape":"FunctionArn",
+ "documentation":"The function's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to aliases or versions.
",
+ "location":"uri",
+ "locationName":"ARN"
+ }
+ }
+ },
+ "ListTagsResponse":{
+ "type":"structure",
+ "members":{
+ "Tags":{
+ "shape":"Tags",
+ "documentation":"The function's tags.
"
+ }
+ }
+ },
+ "ListVersionsByFunctionRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"NamespacedFunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Marker":{
+ "shape":"String",
+ "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "location":"querystring",
+ "locationName":"Marker"
+ },
+ "MaxItems":{
+ "shape":"MaxListItems",
+ "documentation":"The maximum number of versions to return. Note that ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher.
",
+ "location":"querystring",
+ "locationName":"MaxItems"
+ }
+ }
+ },
+ "ListVersionsByFunctionResponse":{
+ "type":"structure",
+ "members":{
+ "NextMarker":{
+ "shape":"String",
+ "documentation":"The pagination token that's included if more results are available.
"
+ },
+ "Versions":{
+ "shape":"FunctionList",
+ "documentation":"A list of Lambda function versions.
"
+ }
+ }
+ },
+ "LocalMountPath":{
+ "type":"string",
+ "max":160,
+ "pattern":"^/mnt/[a-zA-Z0-9-_.]+$"
+ },
+ "LogType":{
+ "type":"string",
+ "enum":[
+ "None",
+ "Tail"
+ ]
+ },
+ "Long":{"type":"long"},
+ "MasterRegion":{
+ "type":"string",
+ "pattern":"ALL|[a-z]{2}(-gov)?-[a-z]+-\\d{1}"
+ },
+ "MaxAge":{
+ "type":"integer",
+ "max":86400,
+ "min":0
+ },
+ "MaxFunctionEventInvokeConfigListItems":{
+ "type":"integer",
+ "max":50,
+ "min":1
+ },
+ "MaxItems":{
+ "type":"integer",
+ "max":50,
+ "min":1
+ },
+ "MaxLayerListItems":{
+ "type":"integer",
+ "max":50,
+ "min":1
+ },
+ "MaxListItems":{
+ "type":"integer",
+ "max":10000,
+ "min":1
+ },
+ "MaxProvisionedConcurrencyConfigListItems":{
+ "type":"integer",
+ "max":50,
+ "min":1
+ },
+ "MaximumBatchingWindowInSeconds":{
+ "type":"integer",
+ "max":300,
+ "min":0
+ },
+ "MaximumEventAgeInSeconds":{
+ "type":"integer",
+ "max":21600,
+ "min":60
+ },
+ "MaximumRecordAgeInSeconds":{
+ "type":"integer",
+ "max":604800,
+ "min":-1
+ },
+ "MaximumRetryAttempts":{
+ "type":"integer",
+ "max":2,
+ "min":0
+ },
+ "MaximumRetryAttemptsEventSourceMapping":{
+ "type":"integer",
+ "max":10000,
+ "min":-1
+ },
+ "MemorySize":{
+ "type":"integer",
+ "max":10240,
+ "min":128
+ },
+ "Method":{
+ "type":"string",
+ "max":6,
+ "pattern":".*"
+ },
+ "NameSpacedFunctionArn":{
+ "type":"string",
+ "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?"
+ },
+ "NamespacedFunctionName":{
+ "type":"string",
+ "max":170,
+ "min":1,
+ "pattern":"(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?"
+ },
+ "NamespacedStatementId":{
+ "type":"string",
+ "max":100,
+ "min":1,
+ "pattern":"([a-zA-Z0-9-_.]+)"
+ },
+ "NonNegativeInteger":{
+ "type":"integer",
+ "min":0
+ },
+ "OnFailure":{
+ "type":"structure",
+ "members":{
+ "Destination":{
+ "shape":"DestinationArn",
+ "documentation":"The Amazon Resource Name (ARN) of the destination resource.
"
+ }
+ },
+ "documentation":"A destination for events that failed processing.
"
+ },
+ "OnSuccess":{
+ "type":"structure",
+ "members":{
+ "Destination":{
+ "shape":"DestinationArn",
+ "documentation":"The Amazon Resource Name (ARN) of the destination resource.
"
+ }
+ },
+ "documentation":"A destination for events that were processed successfully.
"
+ },
+ "OrganizationId":{
+ "type":"string",
+ "max":34,
+ "pattern":"o-[a-z0-9]{10,32}"
+ },
+ "OperationPayload":{
+ "type":"blob",
+ "max":262144,
+ "min":0,
+ "sensitive":true
+ },
+ "ErrorObject":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"String"},
+ "Cause":{"shape":"String"}
+ }
+ },
+ "RetryDetails":{
+ "type":"structure",
+ "members":{
+ "AttemptCount":{"shape":"AttemptCount"}
+ }
+ },
+ "AttemptCount":{
+ "type":"integer",
+ "min":0
+ },
+ "ExecutionStartedDetails":{
+ "type":"structure",
+ "members":{}
+ },
+ "ExecutionSucceededDetails":{
+ "type":"structure",
+ "members":{
+ "Result":{"shape":"EventResult"}
+ }
+ },
+ "ExecutionFailedDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "ExecutionTimedOutDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "ExecutionStoppedDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "StepStartedDetails":{
+ "type":"structure",
+ "members":{}
+ },
+ "StepSucceededDetails":{
+ "type":"structure",
+ "members":{
+ "Result":{"shape":"EventResult"}
+ }
+ },
+ "StepFailedDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "StepTimedOutDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "WaitStartedDetails":{
+ "type":"structure",
+ "members":{}
+ },
+ "WaitSucceededDetails":{
+ "type":"structure",
+ "members":{}
+ },
+ "WaitFailedDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "WaitTimedOutDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "WaitCancelledDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "InvokeStartedDetails":{
+ "type":"structure",
+ "members":{}
+ },
+ "InvokeSucceededDetails":{
+ "type":"structure",
+ "members":{
+ "Result":{"shape":"EventResult"}
+ }
+ },
+ "InvokeFailedDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "InvokeTimedOutDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "InvokeCancelledDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "ExecutionDetails":{
+ "type":"structure",
+ "members":{
+ "InputPayload":{"shape":"InputPayload"}
+ }
+ },
+ "ContextDetails":{
+ "type":"structure",
+ "members":{
+ "Result":{"shape":"OperationPayload"},
+ "Error":{"shape":"ErrorObject"}
+ }
+ },
+ "Origin":{
+ "type":"string",
+ "max":253,
+ "min":1,
+ "pattern":".*"
+ },
+ "PaginationMarker":{
+ "type":"string",
+ "max":1024,
+ "min":1
+ },
+ "PackageType":{
+ "type":"string",
+ "enum":[
+ "Zip",
+ "Image"
+ ]
+ },
+ "ParallelizationFactor":{
+ "type":"integer",
+ "max":10,
+ "min":1
+ },
+ "Pattern":{
+ "type":"string",
+ "max":4096,
+ "min":0,
+ "pattern":".*"
+ },
+ "PolicyLengthExceededException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "message":{"shape":"String"}
+ },
+ "documentation":"The permissions policy for the resource is too large. Learn more
",
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "PositiveInteger":{
+ "type":"integer",
+ "min":1
+ },
+ "PreconditionFailedException":{
+ "type":"structure",
+ "members":{
+ "Type":{
+ "shape":"String",
+ "documentation":"The exception type.
"
+ },
+ "message":{
+ "shape":"String",
+ "documentation":"The exception message.
"
+ }
+ },
+ "documentation":"The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.
",
+ "error":{"httpStatusCode":412},
+ "exception":true
+ },
+ "Principal":{
+ "type":"string",
+ "pattern":"[^\\s]+"
+ },
+ "PrincipalOrgID":{
+ "type":"string",
+ "max":34,
+ "min":12,
+ "pattern":"^o-[a-z0-9]{10,32}$"
+ },
+ "ProvisionedConcurrencyConfigList":{
+ "type":"list",
+ "member":{"shape":"ProvisionedConcurrencyConfigListItem"}
+ },
+ "ProvisionedConcurrencyConfigListItem":{
+ "type":"structure",
+ "members":{
+ "FunctionArn":{
+ "shape":"FunctionArn",
+ "documentation":"The Amazon Resource Name (ARN) of the alias or version.
"
+ },
+ "RequestedProvisionedConcurrentExecutions":{
+ "shape":"PositiveInteger",
+ "documentation":"The amount of provisioned concurrency requested.
"
+ },
+ "AvailableProvisionedConcurrentExecutions":{
+ "shape":"NonNegativeInteger",
+ "documentation":"The amount of provisioned concurrency available.
"
+ },
+ "AllocatedProvisionedConcurrentExecutions":{
+ "shape":"NonNegativeInteger",
+ "documentation":"The amount of provisioned concurrency allocated.
"
+ },
+ "Status":{
+ "shape":"ProvisionedConcurrencyStatusEnum",
+ "documentation":"The status of the allocation process.
"
+ },
+ "StatusReason":{
+ "shape":"String",
+ "documentation":"For failed allocations, the reason that provisioned concurrency could not be allocated.
"
+ },
+ "LastModified":{
+ "shape":"Timestamp",
+ "documentation":"The date and time that a user last updated the configuration, in ISO 8601 format.
"
+ }
+ },
+ "documentation":"Details about the provisioned concurrency configuration for a function alias or version.
"
+ },
+ "ProvisionedConcurrencyConfigNotFoundException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "message":{"shape":"String"}
+ },
+ "documentation":"The specified configuration does not exist.
",
+ "error":{"httpStatusCode":404},
+ "exception":true
+ },
+ "ProvisionedConcurrencyStatusEnum":{
+ "type":"string",
+ "enum":[
+ "IN_PROGRESS",
+ "READY",
+ "FAILED"
+ ]
+ },
+ "PublishLayerVersionRequest":{
+ "type":"structure",
+ "required":[
+ "LayerName",
+ "Content"
+ ],
+ "members":{
+ "LayerName":{
+ "shape":"LayerName",
+ "documentation":"The name or Amazon Resource Name (ARN) of the layer.
",
+ "location":"uri",
+ "locationName":"LayerName"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"The description of the version.
"
+ },
+ "Content":{
+ "shape":"LayerVersionContentInput",
+ "documentation":"The function layer archive.
"
+ },
+ "CompatibleRuntimes":{
+ "shape":"CompatibleRuntimes",
+ "documentation":"A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
"
+ },
+ "LicenseInfo":{
+ "shape":"LicenseInfo",
+ "documentation":"The layer's software license. It can be any of the following:
-
An SPDX license identifier. For example, MIT.
-
The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT.
-
The full text of the license.
"
+ },
+ "CompatibleArchitectures":{
+ "shape":"CompatibleArchitectures",
+ "documentation":"A list of compatible instruction set architectures.
"
+ }
+ }
+ },
+ "PublishLayerVersionResponse":{
+ "type":"structure",
+ "members":{
+ "Content":{
+ "shape":"LayerVersionContentOutput",
+ "documentation":"Details about the layer version.
"
+ },
+ "LayerArn":{
+ "shape":"LayerArn",
+ "documentation":"The ARN of the layer.
"
+ },
+ "LayerVersionArn":{
+ "shape":"LayerVersionArn",
+ "documentation":"The ARN of the layer version.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"The description of the version.
"
+ },
+ "CreatedDate":{
+ "shape":"Timestamp",
+ "documentation":"The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ },
+ "Version":{
+ "shape":"LayerVersionNumber",
+ "documentation":"The version number.
"
+ },
+ "CompatibleRuntimes":{
+ "shape":"CompatibleRuntimes",
+ "documentation":"The layer's compatible runtimes.
"
+ },
+ "LicenseInfo":{
+ "shape":"LicenseInfo",
+ "documentation":"The layer's software license.
"
+ },
+ "CompatibleArchitectures":{
+ "shape":"CompatibleArchitectures",
+ "documentation":"A list of compatible instruction set architectures.
"
+ }
+ }
+ },
+ "PublishVersionRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "CodeSha256":{
+ "shape":"String",
+ "documentation":"Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"A description for the version to override the description in the function configuration.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.
"
+ }
+ }
+ },
+ "PutFunctionCodeSigningConfigRequest":{
+ "type":"structure",
+ "required":[
+ "CodeSigningConfigArn",
+ "FunctionName"
+ ],
+ "members":{
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"The The Amazon Resource Name (ARN) of the code signing configuration.
"
+ },
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ }
+ }
+ },
+ "PutFunctionCodeSigningConfigResponse":{
+ "type":"structure",
+ "required":[
+ "CodeSigningConfigArn",
+ "FunctionName"
+ ],
+ "members":{
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"The The Amazon Resource Name (ARN) of the code signing configuration.
"
+ },
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
"
+ }
+ }
+ },
+ "PutFunctionConcurrencyRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "ReservedConcurrentExecutions"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "ReservedConcurrentExecutions":{
+ "shape":"ReservedConcurrentExecutions",
+ "documentation":"The number of simultaneous executions to reserve for the function.
"
+ }
+ }
+ },
+ "PutFunctionEventInvokeConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"A version number or alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ },
+ "MaximumRetryAttempts":{
+ "shape":"MaximumRetryAttempts",
+ "documentation":"The maximum number of times to retry when the function returns an error.
"
+ },
+ "MaximumEventAgeInSeconds":{
+ "shape":"MaximumEventAgeInSeconds",
+ "documentation":"The maximum age of a request that Lambda sends to a function for processing.
"
+ },
+ "DestinationConfig":{
+ "shape":"DestinationConfig",
+ "documentation":"A destination for events after they have been sent to a function for processing.
Destinations
-
Function - The Amazon Resource Name (ARN) of a Lambda function.
-
Queue - The ARN of an SQS queue.
-
Topic - The ARN of an SNS topic.
-
Event Bus - The ARN of an Amazon EventBridge event bus.
"
+ }
+ }
+ },
+ "PutProvisionedConcurrencyConfigRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "Qualifier",
+ "ProvisionedConcurrentExecutions"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"The version number or alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ },
+ "ProvisionedConcurrentExecutions":{
+ "shape":"PositiveInteger",
+ "documentation":"The amount of provisioned concurrency to allocate for the version or alias.
"
+ }
+ }
+ },
+ "PutProvisionedConcurrencyConfigResponse":{
+ "type":"structure",
+ "members":{
+ "RequestedProvisionedConcurrentExecutions":{
+ "shape":"PositiveInteger",
+ "documentation":"The amount of provisioned concurrency requested.
"
+ },
+ "AvailableProvisionedConcurrentExecutions":{
+ "shape":"NonNegativeInteger",
+ "documentation":"The amount of provisioned concurrency available.
"
+ },
+ "AllocatedProvisionedConcurrentExecutions":{
+ "shape":"NonNegativeInteger",
+ "documentation":"The amount of provisioned concurrency allocated.
"
+ },
+ "Status":{
+ "shape":"ProvisionedConcurrencyStatusEnum",
+ "documentation":"The status of the allocation process.
"
+ },
+ "StatusReason":{
+ "shape":"String",
+ "documentation":"For failed allocations, the reason that provisioned concurrency could not be allocated.
"
+ },
+ "LastModified":{
+ "shape":"Timestamp",
+ "documentation":"The date and time that a user last updated the configuration, in ISO 8601 format.
"
+ }
+ }
+ },
+ "Qualifier":{
+ "type":"string",
+ "max":128,
+ "min":1,
+ "pattern":"(|[a-zA-Z0-9$_-]+)"
+ },
+ "Queue":{
+ "type":"string",
+ "max":1000,
+ "min":1,
+ "pattern":"[\\s\\S]*"
+ },
+ "Queues":{
+ "type":"list",
+ "member":{"shape":"Queue"},
+ "max":1,
+ "min":1
+ },
+ "RemoveLayerVersionPermissionRequest":{
+ "type":"structure",
+ "required":[
+ "LayerName",
+ "VersionNumber",
+ "StatementId"
+ ],
+ "members":{
+ "LayerName":{
+ "shape":"LayerName",
+ "documentation":"The name or Amazon Resource Name (ARN) of the layer.
",
+ "location":"uri",
+ "locationName":"LayerName"
+ },
+ "VersionNumber":{
+ "shape":"LayerVersionNumber",
+ "documentation":"The version number.
",
+ "location":"uri",
+ "locationName":"VersionNumber"
+ },
+ "StatementId":{
+ "shape":"StatementId",
+ "documentation":"The identifier that was specified when the statement was added.
",
+ "location":"uri",
+ "locationName":"StatementId"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
",
+ "location":"querystring",
+ "locationName":"RevisionId"
+ }
+ }
+ },
+ "RemovePermissionRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "StatementId"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "StatementId":{
+ "shape":"NamespacedStatementId",
+ "documentation":"Statement ID of the permission to remove.
",
+ "location":"uri",
+ "locationName":"StatementId"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"Specify a version or alias to remove permissions from a published version of the function.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.
",
+ "location":"querystring",
+ "locationName":"RevisionId"
+ }
+ }
+ },
+ "RequestTooLargeException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "message":{"shape":"String"}
+ },
+ "documentation":"The request payload exceeded the Invoke request body JSON input limit. For more information, see Limits.
",
+ "error":{"httpStatusCode":413},
+ "exception":true
+ },
+ "ReservedConcurrentExecutions":{
+ "type":"integer",
+ "min":0
+ },
+ "ResourceArn":{
+ "type":"string",
+ "pattern":"(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()"
+ },
+ "ResourceConflictException":{
+ "type":"structure",
+ "members":{
+ "Type":{
+ "shape":"String",
+ "documentation":"The exception type.
"
+ },
+ "message":{
+ "shape":"String",
+ "documentation":"The exception message.
"
+ }
+ },
+ "documentation":"The resource already exists, or another operation is in progress.
",
+ "error":{"httpStatusCode":409},
+ "exception":true
+ },
+ "ResourceInUseException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The operation conflicts with the resource's availability. For example, you attempted to update an EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING state.
",
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "ResourceNotFoundException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The resource specified in the request does not exist.
",
+ "error":{"httpStatusCode":404},
+ "exception":true
+ },
+ "ResourceNotReadyException":{
+ "type":"structure",
+ "members":{
+ "Type":{
+ "shape":"String",
+ "documentation":"The exception type.
"
+ },
+ "message":{
+ "shape":"String",
+ "documentation":"The exception message.
"
+ }
+ },
+ "documentation":"The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "RoleArn":{
+ "type":"string",
+ "pattern":"arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+"
+ },
+ "ReverseOrder":{
+ "type":"boolean",
+ "box":true
+ },
+ "Runtime":{
+ "type":"string",
+ "enum":[
+ "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"
+ ]
+ },
+ "S3Bucket":{
+ "type":"string",
+ "max":63,
+ "min":3,
+ "pattern":"^[0-9A-Za-z\\.\\-_]*(?The list of bootstrap servers for your Kafka brokers in the following format: \"KAFKA_BOOTSTRAP_SERVERS\": [\"abc.xyz.com:xxxx\",\"abc2.xyz.com:xxxx\"].
"
+ }
+ },
+ "documentation":"The self-managed Apache Kafka cluster for your event source.
"
+ },
+ "SelfManagedKafkaEventSourceConfig":{
+ "type":"structure",
+ "members":{
+ "ConsumerGroupId":{
+ "shape":"URI",
+ "documentation":"The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see services-msk-consumer-group-id.
"
+ }
+ },
+ "documentation":"Specific configuration settings for a self-managed Apache Kafka event source.
"
+ },
+ "SensitiveString":{
+ "type":"string",
+ "sensitive":true
+ },
+ "ServiceException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"The Lambda service encountered an internal error.
",
+ "error":{"httpStatusCode":500},
+ "exception":true
+ },
+ "SigningProfileVersionArns":{
+ "type":"list",
+ "member":{"shape":"Arn"},
+ "max":20,
+ "min":1
+ },
+ "SourceAccessConfiguration":{
+ "type":"structure",
+ "members":{
+ "Type":{
+ "shape":"SourceAccessType",
+ "documentation":"The type of authentication protocol, VPC components, or virtual host for your event source. For example: \"Type\":\"SASL_SCRAM_512_AUTH\".
-
BASIC_AUTH - (Amazon MQ) The Secrets Manager secret that stores your broker credentials.
-
BASIC_AUTH - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
-
VPC_SUBNET - The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
-
VPC_SECURITY_GROUP - The VPC security group used to manage access to your self-managed Apache Kafka brokers.
-
SASL_SCRAM_256_AUTH - The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
-
SASL_SCRAM_512_AUTH - The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
-
VIRTUAL_HOST - (Amazon MQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.
-
CLIENT_CERTIFICATE_TLS_AUTH - (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.
-
SERVER_ROOT_CA_CERTIFICATE - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
"
+ },
+ "URI":{
+ "shape":"URI",
+ "documentation":"The value for your chosen configuration in Type. For example: \"URI\": \"arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName\".
"
+ }
+ },
+ "documentation":"To secure and define access to your event source, you can specify the authentication protocol, VPC components, or virtual host.
"
+ },
+ "SourceAccessConfigurations":{
+ "type":"list",
+ "member":{"shape":"SourceAccessConfiguration"},
+ "max":22,
+ "min":0
+ },
+ "SourceAccessType":{
+ "type":"string",
+ "enum":[
+ "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"
+ ]
+ },
+ "SourceOwner":{
+ "type":"string",
+ "max":12,
+ "pattern":"\\d{12}"
+ },
+ "State":{
+ "type":"string",
+ "enum":[
+ "Pending",
+ "Active",
+ "Inactive",
+ "Failed"
+ ]
+ },
+ "StateReason":{"type":"string"},
+ "StateReasonCode":{
+ "type":"string",
+ "enum":[
+ "Idle",
+ "Creating",
+ "Restoring",
+ "EniLimitExceeded",
+ "InsufficientRolePermissions",
+ "InvalidConfiguration",
+ "InternalError",
+ "SubnetOutOfIPAddresses",
+ "InvalidSubnet",
+ "InvalidSecurityGroup",
+ "ImageDeleted",
+ "ImageAccessDenied",
+ "InvalidImage"
+ ]
+ },
+ "StatementId":{
+ "type":"string",
+ "max":100,
+ "min":1,
+ "pattern":"([a-zA-Z0-9-_]+)"
+ },
+ "String":{"type":"string"},
+ "StringList":{
+ "type":"list",
+ "member":{"shape":"String"},
+ "max":1500
+ },
+ "SubnetIPAddressLimitReachedException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "Message":{"shape":"String"}
+ },
+ "documentation":"Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
",
+ "error":{"httpStatusCode":502},
+ "exception":true
+ },
+ "SubnetId":{"type":"string"},
+ "SubnetIds":{
+ "type":"list",
+ "member":{"shape":"SubnetId"},
+ "max":16
+ },
+ "TagKey":{"type":"string"},
+ "TagKeyList":{
+ "type":"list",
+ "member":{"shape":"TagKey"}
+ },
+ "TagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "Resource",
+ "Tags"
+ ],
+ "members":{
+ "Resource":{
+ "shape":"FunctionArn",
+ "documentation":"The function's Amazon Resource Name (ARN).
",
+ "location":"uri",
+ "locationName":"ARN"
+ },
+ "Tags":{
+ "shape":"Tags",
+ "documentation":"A list of tags to apply to the function.
"
+ }
+ }
+ },
+ "TagValue":{"type":"string"},
+ "Tags":{
+ "type":"map",
+ "key":{"shape":"TagKey"},
+ "value":{"shape":"TagValue"}
+ },
+ "ThrottleReason":{
+ "type":"string",
+ "enum":[
+ "ConcurrentInvocationLimitExceeded",
+ "FunctionInvocationRateLimitExceeded",
+ "ReservedFunctionConcurrentInvocationLimitExceeded",
+ "ReservedFunctionInvocationRateLimitExceeded",
+ "CallerRateLimitExceeded"
+ ]
+ },
+ "TimeFilter":{
+ "type":"string",
+ "enum":[
+ "START",
+ "END"
+ ]
+ },
+ "Timeout":{
+ "type":"integer",
+ "min":1
+ },
+ "Timestamp":{"type":"string"},
+ "TooManyRequestsException":{
+ "type":"structure",
+ "members":{
+ "retryAfterSeconds":{
+ "shape":"String",
+ "documentation":"The number of seconds the caller should wait before retrying.
",
+ "location":"header",
+ "locationName":"Retry-After"
+ },
+ "Type":{"shape":"String"},
+ "message":{"shape":"String"},
+ "Reason":{"shape":"ThrottleReason"}
+ },
+ "documentation":"The request throughput limit was exceeded.
",
+ "error":{"httpStatusCode":429},
+ "exception":true
+ },
+ "Topic":{
+ "type":"string",
+ "max":249,
+ "min":1,
+ "pattern":"^[^.]([a-zA-Z0-9\\-_.]+)"
+ },
+ "Topics":{
+ "type":"list",
+ "member":{"shape":"Topic"},
+ "max":1,
+ "min":1
+ },
+ "TracingConfig":{
+ "type":"structure",
+ "members":{
+ "Mode":{
+ "shape":"TracingMode",
+ "documentation":"The tracing mode.
"
+ }
+ },
+ "documentation":"The function's X-Ray tracing configuration. To sample and record incoming requests, set Mode to Active.
"
+ },
+ "TracingConfigResponse":{
+ "type":"structure",
+ "members":{
+ "Mode":{
+ "shape":"TracingMode",
+ "documentation":"The tracing mode.
"
+ }
+ },
+ "documentation":"The function's X-Ray tracing configuration.
"
+ },
+ "TracingMode":{
+ "type":"string",
+ "enum":[
+ "Active",
+ "PassThrough"
+ ]
+ },
+ "TumblingWindowInSeconds":{
+ "type":"integer",
+ "max":900,
+ "min":0
+ },
+ "URI":{
+ "type":"string",
+ "max":200,
+ "min":1,
+ "pattern":"[a-zA-Z0-9-\\/*:_+=.@-]*"
+ },
+ "UnreservedConcurrentExecutions":{
+ "type":"integer",
+ "min":0
+ },
+ "UnsupportedMediaTypeException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "message":{"shape":"String"}
+ },
+ "documentation":"The content type of the Invoke request body is not JSON.
",
+ "error":{"httpStatusCode":415},
+ "exception":true
+ },
+ "UntagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "Resource",
+ "TagKeys"
+ ],
+ "members":{
+ "Resource":{
+ "shape":"FunctionArn",
+ "documentation":"The function's Amazon Resource Name (ARN).
",
+ "location":"uri",
+ "locationName":"ARN"
+ },
+ "TagKeys":{
+ "shape":"TagKeyList",
+ "documentation":"A list of tag keys to remove from the function.
",
+ "location":"querystring",
+ "locationName":"tagKeys"
+ }
+ }
+ },
+ "UpdateAliasRequest":{
+ "type":"structure",
+ "required":[
+ "FunctionName",
+ "Name"
+ ],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Name":{
+ "shape":"Alias",
+ "documentation":"The name of the alias.
",
+ "location":"uri",
+ "locationName":"Name"
+ },
+ "FunctionVersion":{
+ "shape":"Version",
+ "documentation":"The function version that the alias invokes.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"A description of the alias.
"
+ },
+ "RoutingConfig":{
+ "shape":"AliasRoutingConfiguration",
+ "documentation":"The routing configuration of the alias.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"Only update the alias if the revision ID matches the ID that's specified. Use this option to avoid modifying an alias that has changed since you last read it.
"
+ }
+ }
+ },
+ "UpdateCodeSigningConfigRequest":{
+ "type":"structure",
+ "required":["CodeSigningConfigArn"],
+ "members":{
+ "CodeSigningConfigArn":{
+ "shape":"CodeSigningConfigArn",
+ "documentation":"The The Amazon Resource Name (ARN) of the code signing configuration.
",
+ "location":"uri",
+ "locationName":"CodeSigningConfigArn"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"Descriptive name for this code signing configuration.
"
+ },
+ "AllowedPublishers":{
+ "shape":"AllowedPublishers",
+ "documentation":"Signing profiles for this code signing configuration.
"
+ },
+ "CodeSigningPolicies":{
+ "shape":"CodeSigningPolicies",
+ "documentation":"The code signing policy.
"
+ }
+ }
+ },
+ "UpdateCodeSigningConfigResponse":{
+ "type":"structure",
+ "required":["CodeSigningConfig"],
+ "members":{
+ "CodeSigningConfig":{
+ "shape":"CodeSigningConfig",
+ "documentation":"The code signing configuration
"
+ }
+ }
+ },
+ "UpdateEventSourceMappingRequest":{
+ "type":"structure",
+ "required":["UUID"],
+ "members":{
+ "UUID":{
+ "shape":"String",
+ "documentation":"The identifier of the event source mapping.
",
+ "location":"uri",
+ "locationName":"UUID"
+ },
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - MyFunction.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
-
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.
-
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
"
+ },
+ "Enabled":{
+ "shape":"Enabled",
+ "documentation":"When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
"
+ },
+ "BatchSize":{
+ "shape":"BatchSize",
+ "documentation":"The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
-
Amazon Kinesis - Default 100. Max 10,000.
-
Amazon DynamoDB Streams - Default 100. Max 10,000.
-
Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
-
Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.
-
Self-managed Apache Kafka - Default 100. Max 10,000.
-
Amazon MQ (ActiveMQ and RabbitMQ) - Default 100. Max 10,000.
"
+ },
+ "FilterCriteria":{
+ "shape":"FilterCriteria",
+ "documentation":"(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
"
+ },
+ "MaximumBatchingWindowInSeconds":{
+ "shape":"MaximumBatchingWindowInSeconds",
+ "documentation":"(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
Default: 0
Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
"
+ },
+ "DestinationConfig":{
+ "shape":"DestinationConfig",
+ "documentation":"(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
"
+ },
+ "MaximumRecordAgeInSeconds":{
+ "shape":"MaximumRecordAgeInSeconds",
+ "documentation":"(Streams only) Discard records older than the specified age. The default value is infinite (-1).
"
+ },
+ "BisectBatchOnFunctionError":{
+ "shape":"BisectBatchOnFunctionError",
+ "documentation":"(Streams only) If the function returns an error, split the batch in two and retry.
"
+ },
+ "MaximumRetryAttempts":{
+ "shape":"MaximumRetryAttemptsEventSourceMapping",
+ "documentation":"(Streams only) 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":{
+ "shape":"ParallelizationFactor",
+ "documentation":"(Streams only) The number of batches to process from each shard concurrently.
"
+ },
+ "SourceAccessConfigurations":{
+ "shape":"SourceAccessConfigurations",
+ "documentation":"An array of authentication protocols or VPC components required to secure your event source.
"
+ },
+ "TumblingWindowInSeconds":{
+ "shape":"TumblingWindowInSeconds",
+ "documentation":"(Streams only) The duration in seconds of a processing window. The range is between 1 second and 900 seconds.
"
+ },
+ "FunctionResponseTypes":{
+ "shape":"FunctionResponseTypeList",
+ "documentation":"(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
"
+ }
+ }
+ },
+ "UpdateFunctionCodeRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "ZipFile":{
+ "shape":"Blob",
+ "documentation":"The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you. Use only with a function defined with a .zip file archive deployment package.
"
+ },
+ "S3Bucket":{
+ "shape":"S3Bucket",
+ "documentation":"An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. Use only with a function defined with a .zip file archive deployment package.
"
+ },
+ "S3Key":{
+ "shape":"S3Key",
+ "documentation":"The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
"
+ },
+ "S3ObjectVersion":{
+ "shape":"S3ObjectVersion",
+ "documentation":"For versioned objects, the version of the deployment package object to use.
"
+ },
+ "ImageUri":{
+ "shape":"String",
+ "documentation":"URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
"
+ },
+ "Publish":{
+ "shape":"Boolean",
+ "documentation":"Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
"
+ },
+ "DryRun":{
+ "shape":"Boolean",
+ "documentation":"Set to true to validate the request parameters and access permissions without modifying the function code.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
"
+ },
+ "Architectures":{
+ "shape":"ArchitecturesList",
+ "documentation":"The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.
"
+ }
+ }
+ },
+ "UpdateFunctionConfigurationRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Role":{
+ "shape":"RoleArn",
+ "documentation":"The Amazon Resource Name (ARN) of the function's execution role.
"
+ },
+ "Handler":{
+ "shape":"Handler",
+ "documentation":"The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
"
+ },
+ "Description":{
+ "shape":"Description",
+ "documentation":"A description of the function.
"
+ },
+ "Timeout":{
+ "shape":"Timeout",
+ "documentation":"The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.
"
+ },
+ "MemorySize":{
+ "shape":"MemorySize",
+ "documentation":"The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
"
+ },
+ "VpcConfig":{
+ "shape":"VpcConfig",
+ "documentation":"For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
"
+ },
+ "Environment":{
+ "shape":"Environment",
+ "documentation":"Environment variables that are accessible from function code during execution.
"
+ },
+ "Runtime":{
+ "shape":"Runtime",
+ "documentation":"The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
"
+ },
+ "DeadLetterConfig":{
+ "shape":"DeadLetterConfig",
+ "documentation":"A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
"
+ },
+ "KMSKeyArn":{
+ "shape":"KMSKeyArn",
+ "documentation":"The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.
"
+ },
+ "TracingConfig":{
+ "shape":"TracingConfig",
+ "documentation":"Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
"
+ },
+ "RevisionId":{
+ "shape":"String",
+ "documentation":"Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
"
+ },
+ "Layers":{
+ "shape":"LayerList",
+ "documentation":"A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
"
+ },
+ "FileSystemConfigs":{
+ "shape":"FileSystemConfigList",
+ "documentation":"Connection settings for an Amazon EFS file system.
"
+ },
+ "ImageConfig":{
+ "shape":"ImageConfig",
+ "documentation":" Container image configuration values that override the values in the container image Docker file.
"
+ },
+ "EphemeralStorage":{
+ "shape":"EphemeralStorage",
+ "documentation":"The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
"
+ },
+ "DurableConfig":{"shape":"DurableConfig"}
+ }
+ },
+ "UpdateFunctionEventInvokeConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function, version, or alias.
Name formats
-
Function name - my-function (name-only), my-function:v1 (with alias).
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"Qualifier",
+ "documentation":"A version number or alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ },
+ "MaximumRetryAttempts":{
+ "shape":"MaximumRetryAttempts",
+ "documentation":"The maximum number of times to retry when the function returns an error.
"
+ },
+ "MaximumEventAgeInSeconds":{
+ "shape":"MaximumEventAgeInSeconds",
+ "documentation":"The maximum age of a request that Lambda sends to a function for processing.
"
+ },
+ "DestinationConfig":{
+ "shape":"DestinationConfig",
+ "documentation":"A destination for events after they have been sent to a function for processing.
Destinations
-
Function - The Amazon Resource Name (ARN) of a Lambda function.
-
Queue - The ARN of an SQS queue.
-
Topic - The ARN of an SNS topic.
-
Event Bus - The ARN of an Amazon EventBridge event bus.
"
+ }
+ }
+ },
+ "UpdateFunctionUrlConfigRequest":{
+ "type":"structure",
+ "required":["FunctionName"],
+ "members":{
+ "FunctionName":{
+ "shape":"FunctionName",
+ "documentation":"The name of the Lambda function.
Name formats
-
Function name - my-function.
-
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
-
Partial ARN - 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
",
+ "location":"uri",
+ "locationName":"FunctionName"
+ },
+ "Qualifier":{
+ "shape":"FunctionUrlQualifier",
+ "documentation":"The alias name.
",
+ "location":"querystring",
+ "locationName":"Qualifier"
+ },
+ "AuthType":{
+ "shape":"FunctionUrlAuthType",
+ "documentation":"The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
"
+ },
+ "Cors":{
+ "shape":"Cors",
+ "documentation":"The cross-origin resource sharing (CORS) settings for your function URL.
"
+ }
+ }
+ },
+ "UpdateFunctionUrlConfigResponse":{
+ "type":"structure",
+ "required":[
+ "FunctionUrl",
+ "FunctionArn",
+ "AuthType",
+ "CreationTime",
+ "LastModifiedTime"
+ ],
+ "members":{
+ "FunctionUrl":{
+ "shape":"FunctionUrl",
+ "documentation":"The HTTP URL endpoint for your function.
"
+ },
+ "FunctionArn":{
+ "shape":"FunctionArn",
+ "documentation":"The Amazon Resource Name (ARN) of your function.
"
+ },
+ "AuthType":{
+ "shape":"FunctionUrlAuthType",
+ "documentation":"The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
"
+ },
+ "Cors":{
+ "shape":"Cors",
+ "documentation":"The cross-origin resource sharing (CORS) settings for your function URL.
"
+ },
+ "CreationTime":{
+ "shape":"Timestamp",
+ "documentation":"When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ },
+ "LastModifiedTime":{
+ "shape":"Timestamp",
+ "documentation":"When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
"
+ }
+ }
+ },
+ "Version":{
+ "type":"string",
+ "max":1024,
+ "min":1,
+ "pattern":"(\\$LATEST|[0-9]+)"
+ },
+ "VpcConfig":{
+ "type":"structure",
+ "members":{
+ "SubnetIds":{
+ "shape":"SubnetIds",
+ "documentation":"A list of VPC subnet IDs.
"
+ },
+ "SecurityGroupIds":{
+ "shape":"SecurityGroupIds",
+ "documentation":"A list of VPC security groups IDs.
"
+ }
+ },
+ "documentation":"The VPC security groups and subnets that are attached to a Lambda function. For more information, see VPC Settings.
"
+ },
+ "VpcConfigResponse":{
+ "type":"structure",
+ "members":{
+ "SubnetIds":{
+ "shape":"SubnetIds",
+ "documentation":"A list of VPC subnet IDs.
"
+ },
+ "SecurityGroupIds":{
+ "shape":"SecurityGroupIds",
+ "documentation":"A list of VPC security groups IDs.
"
+ },
+ "VpcId":{
+ "shape":"VpcId",
+ "documentation":"The ID of the VPC.
"
+ }
+ },
+ "documentation":"The VPC security groups and subnets that are attached to a Lambda function.
"
+ },
+ "VpcId":{"type":"string"},
+ "Weight":{
+ "type":"double",
+ "max":1.0,
+ "min":0.0
+ },
+ "DurableConfig":{
+ "type":"structure",
+ "members":{
+ "RetentionPeriodInDays":{
+ "shape":"RetentionPeriodInDays",
+ "documentation":"The number of days to retain durable function execution data. Must be between 1 and 90 days.
"
+ },
+ "ExecutionTimeout":{
+ "shape":"ExecutionTimeout",
+ "documentation":"The maximum execution timeout for durable functions in seconds. Must be between 1 and 31622400 seconds (1 year).
"
+ }
+ },
+ "documentation":"Configuration for durable function execution, including retention period and execution timeout.
"
+ },
+ "DurableExecutionAlreadyStartedException":{
+ "type":"structure",
+ "members":{
+ "Type":{"shape":"String"},
+ "message":{"shape":"String"}
+ },
+ "error":{
+ "httpStatusCode":400,
+ "senderFault":true
+ },
+ "exception":true
+ },
+ "ExecutionTimeout":{
+ "type":"integer",
+ "max":31622400,
+ "min":1
+ },
+ "RetentionPeriodInDays":{
+ "type":"integer",
+ "max":90,
+ "min":1
+ },
+ "SendDurableExecutionCallbackFailureRequest":{
+ "type":"structure",
+ "required":["CallbackId"],
+ "members":{
+ "CallbackId":{
+ "shape":"CallbackId",
+ "location":"uri",
+ "locationName":"CallbackId"
+ },
+ "Error":{"shape":"ErrorObject"}
+ },
+ "payload":"Error"
+ },
+ "SendDurableExecutionCallbackFailureResponse":{
+ "type":"structure",
+ "members":{}
+ },
+ "SendDurableExecutionCallbackHeartbeatRequest":{
+ "type":"structure",
+ "required":["CallbackId"],
+ "members":{
+ "CallbackId":{
+ "shape":"CallbackId",
+ "location":"uri",
+ "locationName":"CallbackId"
+ }
+ }
+ },
+ "SendDurableExecutionCallbackHeartbeatResponse":{
+ "type":"structure",
+ "members":{}
+ },
+ "SendDurableExecutionCallbackSuccessRequest":{
+ "type":"structure",
+ "required":["CallbackId"],
+ "members":{
+ "CallbackId":{
+ "shape":"CallbackId",
+ "location":"uri",
+ "locationName":"CallbackId"
+ },
+ "Result":{"shape":"BinaryOperationPayload"}
+ },
+ "payload":"Result"
+ },
+ "SendDurableExecutionCallbackSuccessResponse":{
+ "type":"structure",
+ "members":{}
+ },
+ "BinaryOperationPayload":{
+ "type":"blob",
+ "max":262144,
+ "min":0,
+ "sensitive":true
+ },
+ "CheckpointDurableExecutionRequest":{
+ "type":"structure",
+ "required":["CheckpointToken"],
+ "members":{
+ "CheckpointToken":{
+ "shape":"CheckpointToken",
+ "location":"uri",
+ "locationName":"CheckpointToken"
+ },
+ "Updates":{"shape":"OperationUpdates"},
+ "ClientToken":{"shape":"ClientToken"}
+ }
+ },
+ "CheckpointDurableExecutionResponse":{
+ "type":"structure",
+ "members":{
+ "CheckpointToken":{"shape":"CheckpointToken"},
+ "NewExecutionState":{"shape":"CheckpointUpdatedExecutionState"}
+ }
+ },
+ "CheckpointToken":{
+ "type":"string",
+ "max":1024,
+ "min":1
+ },
+ "CheckpointUpdatedExecutionState":{
+ "type":"structure",
+ "members":{
+ "Operations":{"shape":"Operations"},
+ "NextMarker":{"shape":"PaginationMarker"}
+ }
+ },
+ "ClientToken":{
+ "type":"string",
+ "max":64,
+ "min":1
+ },
+ "GetDurableExecutionRequest":{
+ "type":"structure",
+ "required":["DurableExecutionArn"],
+ "members":{
+ "DurableExecutionArn":{
+ "shape":"DurableExecutionArn",
+ "location":"uri",
+ "locationName":"DurableExecutionArn"
+ }
+ }
+ },
+ "GetDurableExecutionResponse":{
+ "type":"structure",
+ "members":{
+ "DurableExecutionArn":{"shape":"DurableExecutionArn"},
+ "DurableExecutionName":{"shape":"DurableExecutionName"},
+ "FunctionArn":{"shape":"FunctionArn"},
+ "InputPayload":{"shape":"InputPayload"},
+ "Status":{"shape":"ExecutionStatus"},
+ "StartDate":{"shape":"ExecutionTimestamp"},
+ "StopDate":{"shape":"ExecutionTimestamp"},
+ "ResultPayload":{"shape":"ResultPayload"},
+ "ErrorPayload":{"shape":"ErrorPayload"}
+ }
+ },
+ "GetDurableExecutionStateRequest":{
+ "type":"structure",
+ "required":["CheckpointToken"],
+ "members":{
+ "CheckpointToken":{
+ "shape":"CheckpointToken",
+ "location":"uri",
+ "locationName":"CheckpointToken"
+ },
+ "MaxItems":{"shape":"ItemCount"},
+ "Marker":{"shape":"PaginationMarker"}
+ }
+ },
+ "GetDurableExecutionStateResponse":{
+ "type":"structure",
+ "members":{
+ "Operations":{"shape":"Operations"},
+ "NextMarker":{"shape":"PaginationMarker"}
+ }
+ },
+ "InputPayload":{
+ "type":"blob",
+ "max":6291456,
+ "min":0,
+ "sensitive":true
+ },
+ "ResultPayload":{
+ "type":"blob",
+ "max":6291456,
+ "min":0,
+ "sensitive":true
+ },
+ "ErrorPayload":{
+ "type":"blob",
+ "max":262144,
+ "min":0,
+ "sensitive":true
+ },
+ "Operations":{
+ "type":"list",
+ "member":{"shape":"Operation"}
+ },
+ "Operation":{
+ "type":"structure",
+ "members":{
+ "Id":{"shape":"OperationId"},
+ "Type":{"shape":"OperationType"},
+ "Status":{"shape":"OperationStatus"},
+ "ExecutionDetails":{"shape":"ExecutionDetails"},
+ "ContextDetails":{"shape":"ContextDetails"},
+ "StepDetails":{"shape":"StepDetails"},
+ "WaitDetails":{"shape":"WaitDetails"},
+ "CallbackDetails":{"shape":"CallbackDetails"},
+ "InvokeDetails":{"shape":"InvokeDetails"}
+ }
+ },
+ "OperationId":{
+ "type":"string",
+ "max":1024,
+ "min":1
+ },
+ "OperationName":{
+ "type":"string",
+ "max":128,
+ "min":1
+ },
+ "OperationSubType":{
+ "type":"string",
+ "max":128,
+ "min":1
+ },
+ "OperationType":{
+ "type":"string",
+ "enum":[
+ "EXECUTION",
+ "CONTEXT",
+ "STEP",
+ "WAIT",
+ "CALLBACK",
+ "INVOKE"
+ ]
+ },
+ "OperationStatus":{
+ "type":"string",
+ "enum":[
+ "PENDING",
+ "RUNNING",
+ "SUCCEEDED",
+ "FAILED",
+ "TIMED_OUT",
+ "CANCELLED"
+ ]
+ },
+ "OperationUpdates":{
+ "type":"list",
+ "member":{"shape":"OperationUpdate"}
+ },
+ "OperationUpdate":{
+ "type":"structure",
+ "members":{
+ "Id":{"shape":"OperationId"},
+ "Action":{"shape":"OperationAction"},
+ "Payload":{"shape":"OperationPayload"},
+ "Error":{"shape":"ErrorObject"},
+ "StepOptions":{"shape":"StepOptions"},
+ "WaitOptions":{"shape":"WaitOptions"},
+ "CallbackOptions":{"shape":"CallbackOptions"},
+ "InvokeOptions":{"shape":"InvokeOptions"}
+ }
+ },
+ "OperationAction":{
+ "type":"string",
+ "enum":[
+ "START",
+ "SUCCEED",
+ "FAIL",
+ "CANCEL"
+ ]
+ },
+ "StepDetails":{
+ "type":"structure",
+ "members":{
+ "Result":{"shape":"OperationPayload"},
+ "Error":{"shape":"ErrorObject"}
+ }
+ },
+ "WaitCancelledDetails":{
+ "type":"structure",
+ "members":{
+ "Error":{"shape":"EventError"}
+ }
+ },
+ "WaitDetails":{
+ "type":"structure",
+ "members":{
+ "Result":{"shape":"OperationPayload"},
+ "Error":{"shape":"ErrorObject"}
+ }
+ },
+ "InvokeDetails":{
+ "type":"structure",
+ "members":{
+ "DurableExecutionArn":{"shape":"DurableExecutionArn"},
+ "Result":{"shape":"OperationPayload"},
+ "Error":{"shape":"ErrorObject"}
+ }
+ },
+ "StepOptions":{
+ "type":"structure",
+ "members":{}
+ },
+ "WaitOptions":{
+ "type":"structure",
+ "members":{
+ "TimeoutSeconds":{"shape":"DurationSeconds"}
+ }
+ },
+ "InvokeOptions":{
+ "type":"structure",
+ "members":{
+ "FunctionName":{"shape":"FunctionName"},
+ "FunctionQualifier":{"shape":"Version"},
+ "DurableExecutionName":{"shape":"DurableExecutionName"}
+ }
+ },
+ "WorkingDirectory":{
+ "type":"string",
+ "max":1000
+ },
+ "LoggingConfig":{
+ "type":"structure",
+ "members":{
+ "LogFormat":{"shape":"LogFormat"},
+ "ApplicationLogLevel":{"shape":"ApplicationLogLevel"},
+ "SystemLogLevel":{"shape":"SystemLogLevel"},
+ "LogGroup":{"shape":"LogGroup"}
+ }
+ },
+ "LogFormat":{
+ "type":"string",
+ "enum":[
+ "JSON",
+ "Text"
+ ]
+ },
+ "ApplicationLogLevel":{
+ "type":"string",
+ "enum":[
+ "TRACE",
+ "DEBUG",
+ "INFO",
+ "WARN",
+ "ERROR",
+ "FATAL"
+ ]
+ },
+ "SystemLogLevel":{
+ "type":"string",
+ "enum":[
+ "DEBUG",
+ "INFO",
+ "WARN"
+ ]
+ },
+ "LogGroup":{
+ "type":"string",
+ "max":512,
+ "min":1
+ },
+ "SnapStart":{
+ "type":"structure",
+ "members":{
+ "ApplyOn":{"shape":"SnapStartApplyOn"}
+ }
+ },
+ "SnapStartApplyOn":{
+ "type":"string",
+ "enum":[
+ "PublishedVersions",
+ "None"
+ ]
+ },
+ "SnapStartResponse":{
+ "type":"structure",
+ "members":{
+ "ApplyOn":{"shape":"SnapStartApplyOn"},
+ "OptimizationStatus":{"shape":"SnapStartOptimizationStatus"}
+ }
+ },
+ "SnapStartOptimizationStatus":{
+ "type":"string",
+ "enum":[
+ "On",
+ "Off"
+ ]
+ }
+ },
+ "documentation":"Lambda 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:
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.
"
+}
\ No newline at end of file
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index 4d967ac..ad736b9 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -66,6 +66,10 @@ jobs:
role-session-name: pythonTestingLibraryGitHubIntegrationTest
aws-region: ${{ env.AWS_REGION }}
+ - name: Install custom Lambda model
+ run: |
+ aws configure add-model --service-model file://.github/model/lambda.json --service-name lambda
+
- name: Install Hatch
run: pip install hatch
From 23ac7dc4886362e8f4b1c027f4c464fa412ff7d2 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:39:12 -0400
Subject: [PATCH 14/19] Capture invocation ID from Lambda invoke response
headers
---
.github/workflows/deploy-examples.yml | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index ad736b9..dd94532 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -111,9 +111,23 @@ jobs:
--payload '{"name": "World"}' \
--region "${{ env.AWS_REGION }}" \
--endpoint-url "$LAMBDA_ENDPOINT" \
- /tmp/response.json
+ /tmp/response.json \
+ > /tmp/invoke_response.json
+
echo "Response:"
cat /tmp/response.json
+
+ echo "Invoke Response Headers:"
+ cat /tmp/invoke_response.json
+
+ # Extract invocation ID from response headers
+ INVOCATION_ID=$(jq -r '.ResponseMetadata.HTTPHeaders["x-amzn-invocation-id"] // empty' /tmp/invoke_response.json)
+ if [ -n "$INVOCATION_ID" ]; then
+ echo "INVOCATION_ID=$INVOCATION_ID" >> $GITHUB_ENV
+ echo "Captured Invocation ID: $INVOCATION_ID"
+ else
+ echo "Warning: Could not capture invocation ID from response"
+ fi
- name: Find Durable Execution - ${{ matrix.example.name }}
env:
From d92ea6600d455ce436e6e5931fc2795699e83cd7 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:48:38 -0400
Subject: [PATCH 15/19] Fix deployment to use build directory with SDK
dependencies
---
examples/deploy.py | 32 +++++++-------------------------
1 file changed, 7 insertions(+), 25 deletions(-)
diff --git a/examples/deploy.py b/examples/deploy.py
index 0505071..fa939ce 100755
--- a/examples/deploy.py
+++ b/examples/deploy.py
@@ -28,35 +28,17 @@ def create_deployment_package(example_name: str) -> Path:
"""Create deployment package for example."""
print(f"Creating deployment package for {example_name}...")
- # Create temp directory for package
- temp_dir = Path(tempfile.mkdtemp())
- package_dir = temp_dir / "package"
- package_dir.mkdir()
-
- # Install dependencies
- subprocess.run(
- [
- sys.executable,
- "-m",
- "pip",
- "install",
- "-t",
- str(package_dir),
- "aws_durable_execution_sdk_python",
- ],
- check=True,
- )
-
- # Copy example source
- src_file = Path(__file__).parent / "src" / f"{example_name}.py"
- (package_dir / f"{example_name}.py").write_text(src_file.read_text())
+ # Use the build directory that already has SDK + examples
+ build_dir = Path(__file__).parent / "build"
+ if not build_dir.exists():
+ raise ValueError("Build directory not found. Run 'hatch run examples:build' first.")
- # Create zip
+ # Create zip from build directory
zip_path = Path(__file__).parent / f"{example_name}.zip"
with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zf:
- for file_path in package_dir.rglob("*"):
+ for file_path in build_dir.rglob("*"):
if file_path.is_file():
- zf.write(file_path, file_path.relative_to(package_dir))
+ zf.write(file_path, file_path.relative_to(build_dir))
print(f"Package created: {zip_path}")
return zip_path
From a143184ff1f791fd4577d961d6ad478323a8c214 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:51:10 -0400
Subject: [PATCH 16/19] Add DurableConfig back to function configuration
---
examples/deploy.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/examples/deploy.py b/examples/deploy.py
index fa939ce..67274fd 100755
--- a/examples/deploy.py
+++ b/examples/deploy.py
@@ -86,8 +86,7 @@ def deploy_function(example_config: dict, function_name: str):
"Timeout": 60,
"MemorySize": 128,
"Environment": {"Variables": {"DEX_ENDPOINT": lambda_endpoint}},
- # TODO: Add DurableConfig support
- # "DurableConfig": example_config["durableConfig"]
+ "DurableConfig": example_config["durableConfig"],
}
if kms_key_arn:
From 5fbf26b080911ef3a19e10cc523b7ce53713910f Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 18:52:31 -0400
Subject: [PATCH 17/19] Fix formatting and limit workflow to pull_request only
---
.github/workflows/deploy-examples.yml | 6 ------
examples/deploy.py | 5 ++---
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index dd94532..30cc484 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -1,12 +1,6 @@
name: Deploy Python Examples
on:
- push:
- branches: [ "main", "development" ]
- paths:
- - 'src/aws_durable_execution_sdk_python_testing/**'
- - 'examples/**'
- - '.github/workflows/deploy-examples.yml'
pull_request:
branches: [ "main", "development"]
paths:
diff --git a/examples/deploy.py b/examples/deploy.py
index 67274fd..9f9fcca 100755
--- a/examples/deploy.py
+++ b/examples/deploy.py
@@ -2,9 +2,7 @@
import json
import os
-import subprocess
import sys
-import tempfile
import zipfile
from pathlib import Path
@@ -31,7 +29,8 @@ def create_deployment_package(example_name: str) -> Path:
# Use the build directory that already has SDK + examples
build_dir = Path(__file__).parent / "build"
if not build_dir.exists():
- raise ValueError("Build directory not found. Run 'hatch run examples:build' first.")
+ msg = "Build directory not found. Run 'hatch run examples:build' first."
+ raise ValueError(msg)
# Create zip from build directory
zip_path = Path(__file__).parent / f"{example_name}.zip"
From d5abd15c74fef260d55fcbc29564f918d66ef8f7 Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 19:12:49 -0400
Subject: [PATCH 18/19] Add debug output for response headers and skip cleanup
---
.github/workflows/deploy-examples.yml | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml
index 30cc484..d8809b3 100644
--- a/.github/workflows/deploy-examples.yml
+++ b/.github/workflows/deploy-examples.yml
@@ -111,9 +111,12 @@ jobs:
echo "Response:"
cat /tmp/response.json
- echo "Invoke Response Headers:"
+ echo "Full Invoke Response:"
cat /tmp/invoke_response.json
+ echo "All Response Headers:"
+ jq -r '.ResponseMetadata.HTTPHeaders' /tmp/invoke_response.json || echo "No HTTPHeaders found"
+
# Extract invocation ID from response headers
INVOCATION_ID=$(jq -r '.ResponseMetadata.HTTPHeaders["x-amzn-invocation-id"] // empty' /tmp/invoke_response.json)
if [ -n "$INVOCATION_ID" ]; then
@@ -157,13 +160,13 @@ jobs:
echo "Execution History:"
cat /tmp/history.json
- - name: Cleanup Lambda function
- if: always()
- env:
- LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
- run: |
- echo "Deleting function: $FUNCTION_NAME"
- aws lambda delete-function \
- --function-name "$FUNCTION_NAME" \
- --endpoint-url "$LAMBDA_ENDPOINT" \
- --region "${{ env.AWS_REGION }}" || echo "Function already deleted or doesn't exist"
+ # - name: Cleanup Lambda function
+ # if: always()
+ # env:
+ # LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT }}
+ # run: |
+ # echo "Deleting function: $FUNCTION_NAME"
+ # aws lambda delete-function \
+ # --function-name "$FUNCTION_NAME" \
+ # --endpoint-url "$LAMBDA_ENDPOINT" \
+ # --region "${{ env.AWS_REGION }}" || echo "Function already deleted or doesn't exist"
From d709b56e24edf385651cda129588379b8231864d Mon Sep 17 00:00:00 2001
From: Brent Champion
Date: Sat, 4 Oct 2025 19:14:21 -0400
Subject: [PATCH 19/19] fix: add whitespace to end of example
---
examples/src/hello_world.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/src/hello_world.py b/examples/src/hello_world.py
index 54384c0..9a9c016 100644
--- a/examples/src/hello_world.py
+++ b/examples/src/hello_world.py
@@ -7,4 +7,4 @@
@durable_handler
def handler(_event: Any, _context: DurableContext) -> str:
"""Simple hello world durable function."""
- return "Hello World!"
\ No newline at end of file
+ return "Hello World!"