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:
|
Code
|
The code for the function.
TYPE:
|
CodeSigningConfigArn
|
To enable code signing for this function, specify the ARN of a code-signing configuration.
TYPE:
|
DeadLetterConfig
|
A dead-letter queue configuration for the function.
TYPE:
|
Description
|
A description of the function.
TYPE:
|
Environment
|
Environment variables that are accessible from function code during execution.
TYPE:
|
EphemeralStorage
|
The size of the function's /tmp directory in MB.
TYPE:
|
FileSystemConfigs
|
Connection settings for an Amazon EFS file system.
TYPE:
|
FunctionName
|
The name or ARN of the Lambda function.
TYPE:
|
Handler
|
The name of the method within your code that Lambda calls to run your function.
TYPE:
|
ImageConfig
|
Container image configuration values that override the values in the container image Dockerfile.
TYPE:
|
KMSKeyArn
|
The ARN of the AWS Key Management Service (AWS KMS) customer managed key for encryption.
TYPE:
|
Layers
|
A list of function layers to add to the function's execution environment.
TYPE:
|
LoggingConfig
|
The function's Amazon CloudWatch Logs configuration settings.
TYPE:
|
MemorySize
|
The amount of memory available to the function at runtime.
TYPE:
|
PackageType
|
The type of deployment package.
TYPE:
|
Publish
|
Set to true to publish the first version of the function during creation.
TYPE:
|
Role
|
The Amazon Resource Name (ARN) of the function's execution role.
TYPE:
|
Runtime
|
The identifier of the function's runtime.
TYPE:
|
SnapStart
|
The function's Lambda SnapStart setting.
TYPE:
|
Tags
|
A list of tags to apply to the function.
TYPE:
|
Timeout
|
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
TYPE:
|
TracingConfig
|
Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
TYPE:
|
VpcConfig
|
For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets.
TYPE:
|
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:
|
CodeSha256
|
The SHA256 hash of the function's deployment package.
TYPE:
|
CodeSize
|
The size of the function's deployment package, in bytes.
TYPE:
|
DeadLetterConfig
|
The function's dead letter queue.
TYPE:
|
Description
|
The function's description.
TYPE:
|
Environment
|
The function's environment variables.
TYPE:
|
EphemeralStorage
|
The size of the function's /tmp directory in MB.
TYPE:
|
FileSystemConfigs
|
Connection settings for an Amazon EFS file system.
TYPE:
|
FunctionArn
|
The function's Amazon Resource Name (ARN).
TYPE:
|
FunctionName
|
The name of the function.
TYPE:
|
Handler
|
The function that Lambda calls to begin running your function.
TYPE:
|
ImageConfigResponse
|
The function's image configuration values.
TYPE:
|
KMSKeyArn
|
The ARN of the AWS Key Management Service (AWS KMS) customer managed key.
TYPE:
|
LastModified
|
The date and time that the function was last updated.
TYPE:
|
LastUpdateStatus
|
The status of the last update that was performed on the function.
TYPE:
|
LastUpdateStatusReason
|
The reason for the last update that was performed on the function.
TYPE:
|
LastUpdateStatusReasonCode
|
The reason code for the last update that was performed on the function.
TYPE:
|
Layers
|
The function's layers.
TYPE:
|
LoggingConfig
|
The function's Amazon CloudWatch Logs configuration settings.
TYPE:
|
MasterArn
|
For Lambda@Edge functions, the ARN of the main function.
TYPE:
|
MemorySize
|
The amount of memory available to the function at runtime.
TYPE:
|
PackageType
|
The type of deployment package.
TYPE:
|
RevisionId
|
The latest updated revision of the function or alias.
TYPE:
|
Role
|
The function's execution role.
TYPE:
|
Runtime
|
The identifier of the function's runtime.
TYPE:
|
RuntimeVersionConfig
|
The ARN of the runtime and any errors that occurred.
TYPE:
|
SigningJobArn
|
The ARN of the signing job.
TYPE:
|
SigningProfileVersionArn
|
The ARN of the signing profile version.
TYPE:
|
SnapStart
|
The function's SnapStart setting.
TYPE:
|
State
|
The current state of the function.
TYPE:
|
StateReason
|
The reason for the function's current state.
TYPE:
|
StateReasonCode
|
The reason code for the function's current state.
TYPE:
|
Timeout
|
The amount of time in seconds that Lambda allows a function to run before stopping it.
TYPE:
|
TracingConfig
|
The function's AWS X-Ray tracing configuration.
TYPE:
|
Version
|
The version of the Lambda function.
TYPE:
|
VpcConfig
|
The function's networking configuration.
TYPE:
|
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