{
  "tagging" : {
    "permissions" : [ "lambda:ListTags", "lambda:TagResource", "lambda:UntagResource" ],
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "tagProperty" : "/properties/Tags",
    "cloudFormationSystemTags" : true
  },
  "typeName" : "AWS::Lambda::Function",
  "readOnlyProperties" : [ "/properties/SnapStartResponse", "/properties/SnapStartResponse/ApplyOn", "/properties/SnapStartResponse/OptimizationStatus", "/properties/Arn" ],
  "description" : "The ``AWS::Lambda::Function`` resource creates a Lambda function. To create a function, you need a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) and an [execution role](https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html). 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 AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing.\n You set the package type to ``Image`` if the deployment package is a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html). For these functions, include the URI of the container image in the ECR registry in the [ImageUri property of the Code property](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-imageuri). You do not need to specify the handler and runtime properties. \n You set the package type to ``Zip`` if the deployment package is a [.zip file archive](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip). For these functions, specify the S3 location of your .zip file in the ``Code`` property. Alternatively, for Node.js and Python functions, you can define your function inline in the [ZipFile property of the Code property](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile). In both cases, you must also specify the handler and runtime properties.\n You can use [code signing](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html) 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 a set of signing profiles, which define the trusted publishers for this function.\n When you update a ``AWS::Lambda::Function`` resource, CFNshort calls the [UpdateFunctionConfiguration](https://docs.aws.amazon.com/lambda/latest/api/API_UpdateFunctionConfiguration.html) and [UpdateFunctionCode](https://docs.aws.amazon.com/lambda/latest/api/API_UpdateFunctionCode.html)LAM APIs under the hood. Because these calls happen sequentially, and invocations can happen between these calls, your function may encounter errors in the time between the calls. For example, if you remove an environment variable, and the code that references that environment variable in the same CFNshort update, you may see invocation errors related to a missing environment variable. To work around this, you can invoke your function against a version or alias by default, rather than the ``$LATEST`` version.\n Note that you configure [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html) on a ``AWS::Lambda::Version`` or a ``AWS::Lambda::Alias``.\n For a complete introduction to Lambda functions, see [What is Lambda?](https://docs.aws.amazon.com/lambda/latest/dg/lambda-welcome.html) in the *Lambda developer guide.*",
  "createOnlyProperties" : [ "/properties/FunctionName", "/properties/PackageType", "/properties/TenancyConfig" ],
  "primaryIdentifier" : [ "/properties/FunctionName" ],
  "conditionalCreateOnlyProperties" : [ "/properties/DurableConfig" ],
  "required" : [ "Code", "Role" ],
  "handlers" : {
    "read" : {
      "permissions" : [ "lambda:GetFunction", "kms:Decrypt", "lambda:GetFunctionCodeSigningConfig", "lambda:GetFunctionRecursionConfig", "lambda:GetRuntimeManagementConfig", "lambda:GetFunctionScalingConfig" ]
    },
    "create" : {
      "permissions" : [ "lambda:CreateFunction", "lambda:GetFunction", "lambda:PutFunctionConcurrency", "iam:PassRole", "s3:GetObject", "s3:GetObjectVersion", "ec2:DescribeSecurityGroups", "ec2:DescribeSubnets", "ec2:DescribeVpcs", "elasticfilesystem:DescribeMountTargets", "s3files:ListMountTargets", "kms:CreateGrant", "kms:Decrypt", "kms:DescribeKey", "kms:Encrypt", "kms:GenerateDataKey", "kms:GenerateDataKeyWithoutPlaintext", "lambda:GetCodeSigningConfig", "lambda:GetFunctionCodeSigningConfig", "lambda:GetLayerVersion", "lambda:GetRuntimeManagementConfig", "lambda:PutRuntimeManagementConfig", "lambda:TagResource", "lambda:PutFunctionRecursionConfig", "lambda:GetFunctionRecursionConfig", "lambda:PutFunctionScalingConfig", "lambda:PassCapacityProvider" ]
    },
    "update" : {
      "permissions" : [ "lambda:DeleteFunctionConcurrency", "lambda:GetFunction", "lambda:PutFunctionConcurrency", "lambda:TagResource", "lambda:UntagResource", "lambda:UpdateFunctionConfiguration", "lambda:UpdateFunctionCode", "iam:PassRole", "s3:GetObject", "s3:GetObjectVersion", "ec2:DescribeSecurityGroups", "ec2:DescribeSubnets", "ec2:DescribeVpcs", "elasticfilesystem:DescribeMountTargets", "s3files:ListMountTargets", "kms:CreateGrant", "kms:Decrypt", "kms:DescribeKey", "kms:GenerateDataKey", "kms:GenerateDataKeyWithoutPlaintext", "lambda:GetRuntimeManagementConfig", "lambda:PutRuntimeManagementConfig", "lambda:PutFunctionCodeSigningConfig", "lambda:DeleteFunctionCodeSigningConfig", "lambda:GetCodeSigningConfig", "lambda:GetFunctionCodeSigningConfig", "lambda:PutFunctionRecursionConfig", "lambda:GetFunctionRecursionConfig", "lambda:PutFunctionScalingConfig", "lambda:PublishVersion", "lambda:PassCapacityProvider" ]
    },
    "list" : {
      "permissions" : [ "lambda:ListFunctions" ]
    },
    "delete" : {
      "permissions" : [ "lambda:DeleteFunction", "lambda:GetFunction", "ec2:DescribeNetworkInterfaces" ]
    }
  },
  "writeOnlyProperties" : [ "/properties/SnapStart", "/properties/SnapStart/ApplyOn", "/properties/Code/ImageUri", "/properties/Code/S3Bucket", "/properties/Code/S3Key", "/properties/Code/S3ObjectVersion", "/properties/Code/ZipFile", "/properties/Code/SourceKMSKeyArn", "/properties/PublishToLatestPublished" ],
  "additionalProperties" : false,
  "definitions" : {
    "ImageConfig" : {
      "description" : "Configuration values that override the container image Dockerfile settings. For more information, see [Container image settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms).",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "WorkingDirectory" : {
          "description" : "Specifies the working directory. The length of the directory string cannot exceed 1,000 characters.",
          "type" : "string"
        },
        "Command" : {
          "maxItems" : 1500,
          "uniqueItems" : true,
          "description" : "Specifies parameters that you want to pass in with ENTRYPOINT. You can specify a maximum of 1,500 parameters in the list.",
          "type" : "array",
          "items" : {
            "type" : "string"
          }
        },
        "EntryPoint" : {
          "maxItems" : 1500,
          "uniqueItems" : true,
          "description" : "Specifies the entry point to their application, which is typically the location of the runtime executable. You can specify a maximum of 1,500 string entries in the list.",
          "type" : "array",
          "items" : {
            "type" : "string"
          }
        }
      }
    },
    "FunctionScalingConfig" : {
      "description" : "Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "MinExecutionEnvironments" : {
          "description" : "The minimum number of execution environments to maintain for the function.",
          "maximum" : 15000,
          "type" : "integer",
          "minimum" : 0
        },
        "MaxExecutionEnvironments" : {
          "description" : "The maximum number of execution environments that can be provisioned for the function.",
          "maximum" : 15000,
          "type" : "integer",
          "minimum" : 0
        }
      }
    },
    "LambdaManagedInstancesCapacityProviderConfig" : {
      "description" : "Configuration for Lambda-managed instances used by the capacity provider.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "ExecutionEnvironmentMemoryGiBPerVCpu" : {
          "description" : "The amount of memory in GiB allocated per vCPU for execution environments.",
          "maximum" : 8,
          "type" : "number",
          "minimum" : 2
        },
        "CapacityProviderArn" : {
          "minLength" : 1,
          "pattern" : "^arn:aws[a-zA-Z-]*:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:capacity-provider:[a-zA-Z0-9-_]+$",
          "description" : "The Amazon Resource Name (ARN) of the capacity provider.",
          "type" : "string",
          "maxLength" : 140
        },
        "PerExecutionEnvironmentMaxConcurrency" : {
          "description" : "The maximum number of concurrent executions that can run on each execution environment.",
          "maximum" : 1600,
          "type" : "integer",
          "minimum" : 1
        }
      },
      "required" : [ "CapacityProviderArn" ]
    },
    "TracingConfig" : {
      "description" : "The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To sample and record incoming requests, set ``Mode`` to ``Active``.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Mode" : {
          "description" : "The tracing mode.",
          "type" : "string",
          "enum" : [ "Active", "PassThrough" ]
        }
      }
    },
    "VpcConfig" : {
      "description" : "The VPC security groups and subnets that are attached to a Lambda function. When you connect a function to a VPC, Lambda creates an elastic network interface for each combination of security group and subnet in the function's VPC configuration. The function can only access resources and the internet through that VPC. For more information, see [VPC Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html).\n  When you delete a function, CFN monitors the state of its network interfaces and waits for Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network interfaces need to be deleted by Lambda before CFN can delete the VPC's resources.\n To monitor network interfaces, CFN needs the ``ec2:DescribeNetworkInterfaces`` permission. It obtains this from the user or role that modifies the stack. If you don't provide this permission, CFN does not wait for network interfaces to be deleted.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Ipv6AllowedForDualStack" : {
          "description" : "Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.",
          "type" : "boolean"
        },
        "SecurityGroupIds" : {
          "maxItems" : 5,
          "uniqueItems" : false,
          "description" : "A list of VPC security group IDs.",
          "type" : "array",
          "items" : {
            "type" : "string"
          }
        },
        "SubnetIds" : {
          "maxItems" : 16,
          "uniqueItems" : false,
          "description" : "A list of VPC subnet IDs.",
          "type" : "array",
          "items" : {
            "type" : "string"
          }
        }
      }
    },
    "DeadLetterConfig" : {
      "description" : "The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq) for failed asynchronous invocations.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "TargetArn" : {
          "pattern" : "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
          "description" : "The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.",
          "type" : "string"
        }
      }
    },
    "CapacityProviderConfig" : {
      "description" : "Configuration for the capacity provider that manages compute resources for Lambda functions.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "LambdaManagedInstancesCapacityProviderConfig" : {
          "description" : "Configuration for Lambda-managed instances used by the capacity provider.",
          "$ref" : "#/definitions/LambdaManagedInstancesCapacityProviderConfig"
        }
      },
      "required" : [ "LambdaManagedInstancesCapacityProviderConfig" ]
    },
    "RuntimeManagementConfig" : {
      "description" : "Sets the runtime management configuration for a function's version. For more information, see [Runtime updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html).",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "UpdateRuntimeOn" : {
          "description" : "Specify the runtime update mode.\n  +  *Auto (default)* - Automatically update to the most recent and secure runtime version using a [Two-phase runtime version rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). This is the best choice for most customers to ensure they always benefit from runtime updates.\n  +  *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.\n  +  *Manual* - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely. In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information, see [Roll back a runtime version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback).\n  \n *Valid Values*: ``Auto`` | ``FunctionUpdate`` | ``Manual``",
          "type" : "string",
          "enum" : [ "Auto", "FunctionUpdate", "Manual" ]
        },
        "RuntimeVersionArn" : {
          "description" : "The ARN of the runtime version you want the function to use.\n  This is only required if you're using the *Manual* runtime update mode.",
          "type" : "string"
        }
      },
      "required" : [ "UpdateRuntimeOn" ]
    },
    "DurableConfig" : {
      "description" : "Configuration settings for [durable functions](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html), including execution timeout and retention period for execution history.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "ExecutionTimeout" : {
          "description" : "The maximum time (in seconds) that a durable execution can run before timing out. This timeout applies to the entire durable execution, not individual function invocations.",
          "maximum" : 31622400,
          "type" : "integer",
          "minimum" : 1
        },
        "RetentionPeriodInDays" : {
          "default" : 14,
          "description" : "The number of days to retain execution history after a durable execution completes. After this period, execution history is no longer available through the GetDurableExecutionHistory API.",
          "maximum" : 90,
          "type" : "integer",
          "minimum" : 1
        }
      },
      "required" : [ "ExecutionTimeout" ]
    },
    "SnapStart" : {
      "description" : "The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "ApplyOn" : {
          "description" : "Set ``ApplyOn`` to ``PublishedVersions`` to create a snapshot of the initialized execution environment when you publish a function version.",
          "type" : "string",
          "enum" : [ "PublishedVersions", "None" ]
        }
      },
      "required" : [ "ApplyOn" ]
    },
    "SnapStartResponse" : {
      "description" : "The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "OptimizationStatus" : {
          "description" : "When you provide a [qualified Amazon Resource Name (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using), this response element indicates whether SnapStart is activated for the specified function version.",
          "type" : "string",
          "enum" : [ "On", "Off" ]
        },
        "ApplyOn" : {
          "description" : "When set to ``PublishedVersions``, Lambda creates a snapshot of the execution environment when you publish a function version.",
          "type" : "string",
          "enum" : [ "PublishedVersions", "None" ]
        }
      }
    },
    "Code" : {
      "description" : "The [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda function. To deploy a function defined as a container image, you specify the location of a container image in the Amazon ECR registry. For a .zip file deployment package, you can specify the location of an object in Amazon S3. For Node.js and Python functions, you can specify the function code inline in the template.\n  When you specify source code inline for a Node.js function, the ``index`` file that CFN creates uses the extension ``.js``. This means that Node.js treats the file as a CommonJS module.\n  Changes to a deployment package in Amazon S3 or a container image in ECR are not detected automatically during stack updates. To update the function code, change the object key or version in the template.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "SourceKMSKeyArn" : {
          "pattern" : "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
          "description" : "The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an [owned key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk).",
          "type" : "string"
        },
        "S3ObjectVersion" : {
          "minLength" : 1,
          "description" : "For versioned objects, the version of the deployment package object to use.",
          "type" : "string",
          "maxLength" : 1024
        },
        "S3Bucket" : {
          "minLength" : 3,
          "pattern" : "^[0-9A-Za-z\\.\\-_]*(?<!\\.)$",
          "description" : "An Amazon S3 bucket in the same AWS-Region as your function. The bucket can be in a different AWS-account.",
          "type" : "string",
          "maxLength" : 63
        },
        "ZipFile" : {
          "description" : "(Node.js and Python) The source code of your Lambda function. If you include your function source inline with this parameter, CFN places it in a file named ``index`` and zips it to create a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). This zip file cannot exceed 4MB. For the ``Handler`` property, the first part of the handler identifier must be ``index``. For example, ``index.handler``.\n  When you specify source code inline for a Node.js function, the ``index`` file that CFN creates uses the extension ``.js``. This means that Node.js treats the file as a CommonJS module.\n When using Node.js 24 or later, Node.js can automatically detect if a ``.js`` file should be treated as CommonJS or as an ES module. To enable auto-detection, add the ``--experimental-detect-module`` flag to the ``NODE_OPTIONS`` environment variable. For more information, see [Experimental Node.js features](https://docs.aws.amazon.com//lambda/latest/dg/lambda-nodejs.html#nodejs-experimental-features).\n   For JSON, you must escape quotes and special characters such as newline (``\\n``) with a backslash.\n If you specify a function that interacts with an AWS CloudFormation custom resource, you don't have to write your own functions to send responses to the custom resource that invoked the function. AWS CloudFormation provides a response module ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) that simplifies sending responses. See [Using Lambda with CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for details.",
          "type" : "string"
        },
        "S3Key" : {
          "minLength" : 1,
          "description" : "The Amazon S3 key of the deployment package.",
          "type" : "string",
          "maxLength" : 1024
        },
        "ImageUri" : {
          "description" : "URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry.",
          "type" : "string"
        }
      }
    },
    "LoggingConfig" : {
      "description" : "The function's Amazon CloudWatch Logs configuration settings.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "LogFormat" : {
          "description" : "The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.",
          "type" : "string",
          "enum" : [ "Text", "JSON" ]
        },
        "ApplicationLogLevel" : {
          "description" : "Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.",
          "type" : "string",
          "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL" ]
        },
        "LogGroup" : {
          "minLength" : 1,
          "pattern" : "[\\.\\-_/#A-Za-z0-9]+",
          "description" : "The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named ``/aws/lambda/<function name>``. To use a different log group, enter an existing log group or enter a new log group name.",
          "type" : "string",
          "maxLength" : 512
        },
        "SystemLogLevel" : {
          "description" : "Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.",
          "type" : "string",
          "enum" : [ "DEBUG", "INFO", "WARN" ]
        }
      }
    },
    "RecursiveLoop" : {
      "description" : "The function recursion configuration.",
      "type" : "string",
      "enum" : [ "Allow", "Terminate" ]
    },
    "Environment" : {
      "description" : "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.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Variables" : {
          "patternProperties" : {
            "[a-zA-Z][a-zA-Z0-9_]+" : {
              "type" : "string"
            }
          },
          "description" : "Environment variable key-value pairs. For more information, see [Using Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html).\n If the value of the environment variable is a time or a duration, enclose the value in quotes.",
          "additionalProperties" : false,
          "type" : "object"
        }
      }
    },
    "FileSystemConfig" : {
      "description" : "Details about the connection between a Lambda function and an [Amazon EFS file system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html) or an [Amazon S3 Files file system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html).",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Arn" : {
          "pattern" : "^arn:aws[a-zA-Z-]*:elasticfilesystem:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:access-point/fsap-[a-f0-9]{17}$|^arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}/access-point/fsap-[0-9a-f]{17,40}$",
          "description" : "The Amazon Resource Name (ARN) of the Amazon EFS or Amazon S3 Files access point that provides access to the file system.",
          "type" : "string",
          "maxLength" : 200
        },
        "LocalMountPath" : {
          "pattern" : "^/mnt/[a-zA-Z0-9-_.]+$",
          "description" : "The path where the function can access the file system, starting with ``/mnt/``.",
          "type" : "string",
          "maxLength" : 160
        }
      },
      "required" : [ "Arn", "LocalMountPath" ]
    },
    "Tag" : {
      "description" : "A [tag](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Value" : {
          "minLength" : 0,
          "description" : "The value for this tag.",
          "type" : "string",
          "maxLength" : 256
        },
        "Key" : {
          "minLength" : 1,
          "description" : "The key for this tag.",
          "type" : "string",
          "maxLength" : 128
        }
      },
      "required" : [ "Key" ]
    },
    "EphemeralStorage" : {
      "description" : "The size of the function's ``/tmp`` directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Size" : {
          "description" : "The size of the function's ``/tmp`` directory.",
          "maximum" : 10240,
          "type" : "integer",
          "minimum" : 512
        }
      },
      "required" : [ "Size" ]
    },
    "TenancyConfig" : {
      "description" : "Specifies the tenant isolation mode configuration for a Lambda function. This allows you to configure specific tenant isolation strategies for your function invocations. Tenant isolation configuration cannot be modified after function creation.",
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "TenantIsolationMode" : {
          "description" : "Tenant isolation mode allows for invocation to be sent to a corresponding execution environment dedicated to a specific tenant ID.",
          "type" : "string",
          "enum" : [ "PER_TENANT" ]
        }
      },
      "required" : [ "TenantIsolationMode" ]
    }
  },
  "properties" : {
    "FunctionScalingConfig" : {
      "description" : "Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.",
      "$ref" : "#/definitions/FunctionScalingConfig"
    },
    "Description" : {
      "description" : "A description of the function.",
      "type" : "string",
      "maxLength" : 256
    },
    "TracingConfig" : {
      "description" : "Set ``Mode`` to ``Active`` to sample and trace a subset of incoming requests with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html).",
      "$ref" : "#/definitions/TracingConfig"
    },
    "VpcConfig" : {
      "description" : "For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see [Configuring a Lambda function to access resources in a VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html).",
      "$ref" : "#/definitions/VpcConfig"
    },
    "RuntimeManagementConfig" : {
      "description" : "Sets the runtime management configuration for a function's version. For more information, see [Runtime updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html).",
      "$ref" : "#/definitions/RuntimeManagementConfig"
    },
    "DurableConfig" : {
      "description" : "Configuration settings for [durable functions](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html), including execution timeout and retention period for execution history.",
      "$ref" : "#/definitions/DurableConfig"
    },
    "ReservedConcurrentExecutions" : {
      "description" : "The number of simultaneous executions to reserve for the function.",
      "type" : "integer",
      "minimum" : 0
    },
    "SnapStart" : {
      "description" : "The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.",
      "$ref" : "#/definitions/SnapStart"
    },
    "FileSystemConfigs" : {
      "maxItems" : 1,
      "description" : "Connection settings for an Amazon EFS or Amazon S3 Files file system. To connect a function to a file system, a mount target must be available in every Availability Zone that your function connects to. If your template contains an [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) or [AWS::S3Files::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3files-mounttarget.html) resource, you must also specify a ``DependsOn`` attribute to ensure that the mount target is created or updated before the function.\n For more information about using the ``DependsOn`` attribute, see [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html).",
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/FileSystemConfig"
      }
    },
    "FunctionName" : {
      "minLength" : 1,
      "description" : "The name of the Lambda function, up to 64 characters in length. If you don't specify a name, CFN generates one.\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
      "type" : "string"
    },
    "Runtime" : {
      "description" : "The identifier of the function's [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.\n The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see [Runtime use after deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels).\n For a list of all currently supported runtimes, see [Supported runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported).",
      "type" : "string"
    },
    "KmsKeyArn" : {
      "pattern" : "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
      "description" : "The ARN of the KMSlong (KMS) customer managed key that's used to encrypt the following resources:\n  +  The function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption).\n  +  The function's [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) snapshots.\n  +  When used with ``SourceKMSKeyArn``, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see [Specifying a customer managed key for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption).\n  +  The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see [Function lifecycle](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle).\n  \n If you don't provide a customer managed key, Lambda uses an [owned key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) or an [](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk).",
      "type" : "string"
    },
    "PublishToLatestPublished" : {
      "description" : "",
      "type" : "boolean"
    },
    "PackageType" : {
      "description" : "The type of deployment package. Set to ``Image`` for container image and set ``Zip`` for .zip file archive.",
      "type" : "string",
      "enum" : [ "Image", "Zip" ]
    },
    "CodeSigningConfigArn" : {
      "pattern" : "arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}",
      "description" : "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.",
      "type" : "string"
    },
    "Layers" : {
      "uniqueItems" : false,
      "description" : "A list of [function layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add to the function's execution environment. Specify each layer by its ARN, including the version.",
      "type" : "array",
      "items" : {
        "type" : "string"
      }
    },
    "TenancyConfig" : {
      "description" : "The function's tenant isolation configuration settings. Determines whether the Lambda function runs on a shared or dedicated infrastructure per unique tenant.",
      "$ref" : "#/definitions/TenancyConfig"
    },
    "Tags" : {
      "uniqueItems" : true,
      "description" : "A list of [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.\n  You must have the ``lambda:TagResource``, ``lambda:UntagResource``, and ``lambda:ListTags`` permissions for your [principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html) to manage the CFN stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.",
      "insertionOrder" : false,
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "ImageConfig" : {
      "description" : "Configuration values that override the container image Dockerfile settings. For more information, see [Container image settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms).",
      "$ref" : "#/definitions/ImageConfig"
    },
    "MemorySize" : {
      "description" : "The amount of [memory available to the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) 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. Note that new AWS accounts have reduced concurrency and memory quotas. AWS raises these quotas automatically based on your usage. You can also request a quota increase.",
      "type" : "integer"
    },
    "DeadLetterConfig" : {
      "description" : "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](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq).",
      "$ref" : "#/definitions/DeadLetterConfig"
    },
    "Timeout" : {
      "description" : "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 more information, see [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html).",
      "type" : "integer",
      "minimum" : 1
    },
    "CapacityProviderConfig" : {
      "description" : "Configuration for the capacity provider that manages compute resources for Lambda functions.",
      "$ref" : "#/definitions/CapacityProviderConfig"
    },
    "Handler" : {
      "pattern" : "^[^\\s]+$",
      "description" : "The name of the method within your code that Lambda calls to run 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 [Lambda programming model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html).",
      "type" : "string",
      "maxLength" : 128
    },
    "SnapStartResponse" : {
      "description" : "",
      "$ref" : "#/definitions/SnapStartResponse"
    },
    "Code" : {
      "description" : "The code for the function. You can define your function code in multiple ways:\n  +  For .zip deployment packages, you can specify the S3 location of the .zip file in the ``S3Bucket``, ``S3Key``, and ``S3ObjectVersion`` properties.\n  +  For .zip deployment packages, you can alternatively define the function code inline in the ``ZipFile`` property. This method works only for Node.js and Python functions.\n  +  For container images, specify the URI of your container image in the ECR registry in the ``ImageUri`` property.",
      "$ref" : "#/definitions/Code"
    },
    "Role" : {
      "pattern" : "^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$",
      "description" : "The Amazon Resource Name (ARN) of the function's execution role.",
      "type" : "string"
    },
    "LoggingConfig" : {
      "description" : "The function's Amazon CloudWatch Logs configuration settings.",
      "$ref" : "#/definitions/LoggingConfig"
    },
    "RecursiveLoop" : {
      "description" : "The status of your function's recursive loop detection configuration.\n When this value is set to ``Allow``and Lambda detects your function being invoked as part of a recursive loop, it doesn't take any action.\n When this value is set to ``Terminate`` and Lambda detects your function being invoked as part of a recursive loop, it stops your function being invoked and notifies you.",
      "$ref" : "#/definitions/RecursiveLoop"
    },
    "Environment" : {
      "description" : "Environment variables that are accessible from function code during execution.",
      "$ref" : "#/definitions/Environment"
    },
    "Arn" : {
      "description" : "",
      "type" : "string"
    },
    "EphemeralStorage" : {
      "description" : "The size of the function's ``/tmp`` directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.",
      "$ref" : "#/definitions/EphemeralStorage"
    },
    "Architectures" : {
      "minItems" : 1,
      "maxItems" : 1,
      "uniqueItems" : true,
      "description" : "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``.",
      "type" : "array",
      "items" : {
        "type" : "string",
        "enum" : [ "x86_64", "arm64" ]
      }
    }
  }
}