Skip to content

Create function

async_boto.validation.lambda_.create_function

CreateFunctionRequest

Bases: BaseModel

Request model for creating a Lambda function.

PARAMETER DESCRIPTION
Architectures

The instruction set architecture that the function supports.

TYPE: List[str]

Code

The code for the function.

TYPE: FunctionCode

CodeSigningConfigArn

To enable code signing for this function, specify the ARN of a code-signing configuration.

TYPE: str

DeadLetterConfig

A dead-letter queue configuration for the function.

TYPE: DeadLetterConfig

Description

A description of the function.

TYPE: str

Environment

Environment variables that are accessible from function code during execution.

TYPE: Environment

EphemeralStorage

The size of the function's /tmp directory in MB.

TYPE: EphemeralStorage

FileSystemConfigs

Connection settings for an Amazon EFS file system.

TYPE: List[FileSystemConfig]

FunctionName

The name or ARN of the Lambda function.

TYPE: str

Handler

The name of the method within your code that Lambda calls to run your function.

TYPE: str

ImageConfig

Container image configuration values that override the values in the container image Dockerfile.

TYPE: ImageConfig

KMSKeyArn

The ARN of the AWS Key Management Service (AWS KMS) customer managed key for encryption.

TYPE: str

Layers

A list of function layers to add to the function's execution environment.

TYPE: List[str]

LoggingConfig

The function's Amazon CloudWatch Logs configuration settings.

TYPE: LoggingConfig

MemorySize

The amount of memory available to the function at runtime.

TYPE: int

PackageType

The type of deployment package.

TYPE: str

Publish

Set to true to publish the first version of the function during creation.

TYPE: bool

Role

The Amazon Resource Name (ARN) of the function's execution role.

TYPE: str

Runtime

The identifier of the function's runtime.

TYPE: str

SnapStart

The function's Lambda SnapStart setting.

TYPE: SnapStart

Tags

A list of tags to apply to the function.

TYPE: Dict[str, str]

Timeout

The amount of time (in seconds) that Lambda allows a function to run before stopping it.

TYPE: int

TracingConfig

Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

TYPE: TracingConfig

VpcConfig

For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets.

TYPE: VpcConfig

Code instance-attribute

Code

FunctionName instance-attribute

FunctionName

Role instance-attribute

Role

Architectures class-attribute instance-attribute

Architectures = None

CodeSigningConfigArn class-attribute instance-attribute

CodeSigningConfigArn = None

DeadLetterConfig class-attribute instance-attribute

DeadLetterConfig = None

Description class-attribute instance-attribute

Description = None

Environment class-attribute instance-attribute

Environment = None

EphemeralStorage class-attribute instance-attribute

EphemeralStorage = None

FileSystemConfigs class-attribute instance-attribute

FileSystemConfigs = None

Handler class-attribute instance-attribute

Handler = None

ImageConfig class-attribute instance-attribute

ImageConfig = None

KMSKeyArn class-attribute instance-attribute

KMSKeyArn = None

Layers class-attribute instance-attribute

Layers = None

LoggingConfig class-attribute instance-attribute

LoggingConfig = None

MemorySize class-attribute instance-attribute

MemorySize = None

PackageType class-attribute instance-attribute

PackageType = None

Publish class-attribute instance-attribute

Publish = None

Runtime class-attribute instance-attribute

Runtime = None

SnapStart class-attribute instance-attribute

SnapStart = None

Tags class-attribute instance-attribute

Tags = None

Timeout class-attribute instance-attribute

Timeout = None

TracingConfig class-attribute instance-attribute

TracingConfig = None

VpcConfig class-attribute instance-attribute

VpcConfig = None

CreateFunctionResponse

Bases: BaseModel

Response model for creating a Lambda function.

PARAMETER DESCRIPTION
Architectures

The instruction set architecture that the function supports.

TYPE: List[str]

CodeSha256

The SHA256 hash of the function's deployment package.

TYPE: str

CodeSize

The size of the function's deployment package, in bytes.

TYPE: int

DeadLetterConfig

The function's dead letter queue.

TYPE: DeadLetterConfig

Description

The function's description.

TYPE: str

Environment

The function's environment variables.

TYPE: EnvironmentResponse

EphemeralStorage

The size of the function's /tmp directory in MB.

TYPE: EphemeralStorage

FileSystemConfigs

Connection settings for an Amazon EFS file system.

TYPE: List[FileSystemConfig]

FunctionArn

The function's Amazon Resource Name (ARN).

TYPE: str

FunctionName

The name of the function.

TYPE: str

Handler

The function that Lambda calls to begin running your function.

TYPE: str

ImageConfigResponse

The function's image configuration values.

TYPE: ImageConfigResponse

KMSKeyArn

The ARN of the AWS Key Management Service (AWS KMS) customer managed key.

TYPE: str

LastModified

The date and time that the function was last updated.

TYPE: str

LastUpdateStatus

The status of the last update that was performed on the function.

TYPE: str

LastUpdateStatusReason

The reason for the last update that was performed on the function.

TYPE: str

LastUpdateStatusReasonCode

The reason code for the last update that was performed on the function.

TYPE: str

Layers

The function's layers.

TYPE: List[Layer]

LoggingConfig

The function's Amazon CloudWatch Logs configuration settings.

TYPE: LoggingConfig

MasterArn

For Lambda@Edge functions, the ARN of the main function.

TYPE: str

MemorySize

The amount of memory available to the function at runtime.

TYPE: int

PackageType

The type of deployment package.

TYPE: str

RevisionId

The latest updated revision of the function or alias.

TYPE: str

Role

The function's execution role.

TYPE: str

Runtime

The identifier of the function's runtime.

TYPE: str

RuntimeVersionConfig

The ARN of the runtime and any errors that occurred.

TYPE: RuntimeVersionConfig

SigningJobArn

The ARN of the signing job.

TYPE: str

SigningProfileVersionArn

The ARN of the signing profile version.

TYPE: str

SnapStart

The function's SnapStart setting.

TYPE: SnapStartResponse

State

The current state of the function.

TYPE: str

StateReason

The reason for the function's current state.

TYPE: str

StateReasonCode

The reason code for the function's current state.

TYPE: str

Timeout

The amount of time in seconds that Lambda allows a function to run before stopping it.

TYPE: int

TracingConfig

The function's AWS X-Ray tracing configuration.

TYPE: TracingConfigResponse

Version

The version of the Lambda function.

TYPE: str

VpcConfig

The function's networking configuration.

TYPE: VpcConfigResponse

Architectures class-attribute instance-attribute

Architectures = None

CodeSha256 class-attribute instance-attribute

CodeSha256 = None

CodeSize class-attribute instance-attribute

CodeSize = None

DeadLetterConfig class-attribute instance-attribute

DeadLetterConfig = None

Description class-attribute instance-attribute

Description = None

Environment class-attribute instance-attribute

Environment = None

EphemeralStorage class-attribute instance-attribute

EphemeralStorage = None

FileSystemConfigs class-attribute instance-attribute

FileSystemConfigs = None

FunctionArn class-attribute instance-attribute

FunctionArn = None

FunctionName class-attribute instance-attribute

FunctionName = None

Handler class-attribute instance-attribute

Handler = None

ImageConfigResponse class-attribute instance-attribute

ImageConfigResponse = None

KMSKeyArn class-attribute instance-attribute

KMSKeyArn = None

LastModified class-attribute instance-attribute

LastModified = None

LastUpdateStatus class-attribute instance-attribute

LastUpdateStatus = None

LastUpdateStatusReason class-attribute instance-attribute

LastUpdateStatusReason = None

LastUpdateStatusReasonCode class-attribute instance-attribute

LastUpdateStatusReasonCode = None

Layers class-attribute instance-attribute

Layers = None

LoggingConfig class-attribute instance-attribute

LoggingConfig = None

MasterArn class-attribute instance-attribute

MasterArn = None

MemorySize class-attribute instance-attribute

MemorySize = None

PackageType class-attribute instance-attribute

PackageType = None

RevisionId class-attribute instance-attribute

RevisionId = None

Role class-attribute instance-attribute

Role = None

Runtime class-attribute instance-attribute

Runtime = None

RuntimeVersionConfig class-attribute instance-attribute

RuntimeVersionConfig = None

SigningJobArn class-attribute instance-attribute

SigningJobArn = None

SigningProfileVersionArn class-attribute instance-attribute

SigningProfileVersionArn = None

SnapStart class-attribute instance-attribute

SnapStart = None

State class-attribute instance-attribute

State = None

StateReason class-attribute instance-attribute

StateReason = None

StateReasonCode class-attribute instance-attribute

StateReasonCode = None

Timeout class-attribute instance-attribute

Timeout = None

TracingConfig class-attribute instance-attribute

TracingConfig = None

Version class-attribute instance-attribute

Version = None

VpcConfig class-attribute instance-attribute

VpcConfig = None