class Aws::Lambda::Types::CreateFunctionRequest


@see docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
@return [Types::LoggingConfig]
The function’s Amazon CloudWatch Logs configuration settings.
@!attribute [rw] logging_config
@return [Types::SnapStart]<br>: docs.aws.amazon.com/lambda/latest/dg/snapstart.html<br><br><br><br>The function’s [SnapStart] setting.
@!attribute [rw] snap_start
@return [Types::EphemeralStorage]<br>: docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage<br><br><br><br>(console)][1].
For more information, see [Configuring ephemeral storage
value is 512, but can be any whole number between 512 and 10,240 MB.
The size of the function’s ‘/tmp` directory in MB. The default
@!attribute [rw] ephemeral_storage
@return [Array<String>]
default value is `x86_64`.
string array with one of the valid values (arm64 or x86_64). The
The instruction set architecture that the function supports. Enter a
@!attribute [rw] architectures
@return [String]
this function.
set of signing profiles, which define the trusted publishers for
code-signing configuration. A code-signing configuration includes a
To enable code signing for this function, specify the ARN of a
@!attribute [rw] code_signing_config_arn
@return [Types::ImageConfig]<br>: docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms<br><br><br><br>in the container image Dockerfile.
Container image [configuration values] that override the values
@!attribute [rw] image_config
@return [Array<Types::FileSystemConfig>]
Connection settings for an Amazon EFS file system.
@!attribute [rw] file_system_configs
@return [Array<String>]<br>: docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html<br><br><br><br>environment. Specify each layer by its ARN, including the version.
A list of [function layers] to add to the function’s execution
@!attribute [rw] layers
@return [Hash<String,String>]<br>: docs.aws.amazon.com/lambda/latest/dg/tagging.html<br><br><br><br>A list of [tags] to apply to the function.
@!attribute [rw] tags
@return [Types::TracingConfig]<br>: docs.aws.amazon.com/lambda/latest/dg/services-xray.html<br><br><br><br>requests with [X-Ray].
Set ‘Mode` to `Active` to sample and trace a subset of incoming
@!attribute [rw] tracing_config
@return [String]<br>: docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk<br>[5]: docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk<br>[4]: docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle<br>[3]: docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption<br>[2]: docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html<br>[1]: docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption<br><br><br><br>key][6].
Web Services owned key] or an [Amazon Web Services managed
If you don’t provide a customer managed key, Lambda uses an [Amazon
[Function lifecycle].
Container Registry (Amazon ECR). For more information, see
used to protect your container image in the Amazon Elastic
function invocations. Note that this is not the same key that’s
* The optimized version of the container image that’s used for<br><br>Lambda].
information, see [ Specifying a customer managed key for
deployment package that’s used for function invocations. For more
* When used with ‘SourceKMSKeyArn`, the unzipped version of the .zip
* The function’s [Lambda SnapStart] snapshots.
* The function’s [environment variables].
that’s used to encrypt the following resources:
The ARN of the Key Management Service (KMS) customer managed key
@!attribute [rw] kms_key_arn
@return [Types::Environment]
execution.
Environment variables that are accessible from function code during
@!attribute [rw] environment
@return [Types::DeadLetterConfig]<br>: docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq<br><br><br><br>For more information, see [Dead-letter queues].
where Lambda sends asynchronous events when they fail processing.
A dead-letter queue configuration that specifies the queue or topic
@!attribute [rw] dead_letter_config
@return [String]
and set to ‘Zip` for .zip file archive.
The type of deployment package. Set to `Image` for container image
@!attribute [rw] package_type
@return [Types::VpcConfig]<br>: docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html<br><br><br><br>[Configuring a Lambda function to access resources in a VPC].
internet only through that VPC. For more information, see
connect a function to a VPC, it can access resources and the
specify a list of security groups and subnets in the VPC. When you
For network connectivity to Amazon Web Services resources in a VPC,
@!attribute [rw] vpc_config
@return [Boolean]
creation.
Set to true to publish the first version of the function during
@!attribute [rw] publish
@return [Integer]<br>: docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console<br><br><br><br>The default value is 128 MB. The value can be any multiple of 1 MB.
Increasing the function memory also increases its CPU allocation.
The amount of [memory available to the function] at runtime.
@!attribute [rw] memory_size
@return [Integer]<br>: docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html<br><br><br><br>environment][1].
value is 900 seconds. For more information, see [Lambda execution
before stopping it. The default is 3 seconds. The maximum allowed
The amount of time (in seconds) that Lambda allows a function to run
@!attribute [rw] timeout
@return [String]
A description of the function.
@!attribute [rw] description
@return [Types::FunctionCode]
The code for the function.
@!attribute [rw] code
@return [String]<br>: docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html<br><br><br><br>For more information, see [Lambda programming model].
include namespaces and other qualifiers, depending on the runtime.
.zip file archive. The format includes the file name. It can also
your function. Handler is required if the deployment package is a
The name of the method within your code that Lambda calls to run
@!attribute [rw] handler
@return [String]
The Amazon Resource Name (ARN) of the function’s execution role.
@!attribute [rw] role
@return [String]<br>: docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported<br>[2]: docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels<br>[1]: docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html<br><br><br><br>runtimes][3].
For a list of all currently supported runtimes, see [Supported
after deprecation].
each runtime is deprecated. For more information, see [Runtime use
creating new functions and updating existing functions shortly after
The following list includes deprecated runtimes. Lambda blocks
container image.
runtime results in an error if you’re deploying a function using a
if the deployment package is a .zip file archive. Specifying a
The identifier of the function’s [ runtime]. Runtime is required
@!attribute [rw] runtime
@return [String]
only the function name, it is limited to 64 characters in length.
The length constraint applies only to the full ARN. If you specify
* **Partial ARN** – ‘123456789012:function:my-function`.
`arn:aws:lambda:us-west-2:123456789012:function:my-function`.
* **Function ARN** –
* **Function name** – `my-function`.
**Name formats**
The name or ARN of the Lambda function.
@!attribute [rw] function_name