FunctionState constructor
- Input<
List< ? architectures,String> ?> - Input<
String?> ? arn, - Input<
FunctionCapacityProviderConfig?> ? capacityProviderConfig, - Input? code,
- Input<
String?> ? codeSha256, - Input<
String?> ? codeSigningConfigArn, - Input<
FunctionDeadLetterConfig?> ? deadLetterConfig, - Input<
String?> ? description, - Input<
FunctionDurableConfig?> ? durableConfig, - Input<
FunctionEnvironment?> ? environment, - Input<
FunctionEphemeralStorage?> ? ephemeralStorage, - Input<
FunctionFileSystemConfig?> ? fileSystemConfig, - Input<
String?> ? handler, - Input<
FunctionImageConfig?> ? imageConfig, - Input<
String?> ? imageUri, - Input<
String?> ? invokeArn, - Input<
String?> ? kmsKeyArn, - Input<
String?> ? lastModified, - Input<
List< ? layers,String> ?> - Input<
FunctionLoggingConfig?> ? loggingConfig, - Input<
int?> ? memorySize, - Input<
String?> ? name, - Input<
String?> ? packageType, - Input<
bool?> ? publish, - Input<
String?> ? publishTo, - Input<
String?> ? qualifiedArn, - Input<
String?> ? qualifiedInvokeArn, - Input<
String?> ? region, - Input<
bool?> ? replaceSecurityGroupsOnDestroy, - Input<
List< ? replacementSecurityGroupIds,String> ?> - Input<
int?> ? reservedConcurrentExecutions, - Input<
String?> ? responseStreamingInvokeArn, - Input<
String?> ? role, - Input? runtime,
- Input<
String?> ? s3Bucket, - Input<
String?> ? s3Key, - Input<
String?> ? s3ObjectVersion, - Input<
String?> ? signingJobArn, - Input<
String?> ? signingProfileVersionArn, - Input<
bool?> ? skipDestroy, - Input<
FunctionSnapStart?> ? snapStart, - Input<
String?> ? sourceCodeHash, - Input<
int?> ? sourceCodeSize, - Input<
String?> ? sourceKmsKeyArn, - Input<
Map< ? tags,String, String> ?> - Input<
Map< ? tagsAll,String, String> ?> - Input<
FunctionTenancyConfig?> ? tenancyConfig, - Input<
int?> ? timeout, - Input<
FunctionTracingConfig?> ? tracingConfig, - Input<
bool?> ? useResourceTimeoutForPropagation, - Input<
String?> ? version, - Input<
FunctionVpcConfig?> ? vpcConfig,
Creates a new FunctionState.
architectures Instruction set architecture for your Lambda function. Valid values are ["x8664"] and ["arm64"]. Default is ["x8664"]. Removing this attribute, function's architecture stays the same.
arn ARN identifying your Lambda Function.
capacityProviderConfig Configuration block for Lambda Capacity Provider. See below.
code Path to the function's deployment package within the local filesystem. Conflicts with imageUri and s3Bucket. One of filename, imageUri, or s3Bucket must be specified.
codeSha256 Base64-encoded representation the source code package file. Use this argument to trigger updates when the function source code changes. For OCI, this value is relayed directly from the image digest. For zip files, this value is the Base64 encoded SHA-256 hash of the .zip file. Layers are not included in the calculation. To trigger updates using a non-standard hashing algorithm, use the sourceCodeHash argument instead.
codeSigningConfigArn ARN of a code-signing configuration to enable code signing for this function.
deadLetterConfig Configuration block for dead letter queue. See below.
description Description of what your Lambda Function does.
durableConfig Configuration block for durable function settings. See below. durableConfig may only be available in limited regions, including us-east-2.
environment Configuration block for environment variables. See below.
ephemeralStorage Amount of ephemeral storage (/tmp) to allocate for the Lambda Function. See below.
fileSystemConfig Configuration block for EFS or S3 Files file system. See below.
handler Function entry point in your code. Required if packageType is Zip.
imageConfig Container image configuration values. See below.
imageUri ECR image URI containing the function's deployment package. Conflicts with filename and s3Bucket. One of filename, imageUri, or s3Bucket must be specified.
invokeArn ARN to be used for invoking Lambda Function from API Gateway - to be used in aws.apigateway.Integration's uri.
kmsKeyArn ARN of the KMS key used to encrypt environment variables. If not provided when environment variables are in use, AWS Lambda uses a default service key. If provided when environment variables are not in use, the AWS Lambda API does not save this configuration.
lastModified Date this resource was last modified.
layers List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function.
loggingConfig Configuration block for advanced logging settings. See below.
memorySize Amount of memory in MB your Lambda Function can use at runtime. Valid value between 128 MB to 32,768 MB (32 GB), in 1 MB increments. Defaults to 128.
name Unique name for your Lambda Function.
packageType Lambda deployment package type. Valid values are Zip and Image. Defaults to Zip.
publish Whether to publish creation/change as new Lambda Function Version. Defaults to false.
publishTo Whether to publish to a alias or version number. Omit for regular version publishing. Option is LATEST_PUBLISHED.
qualifiedArn ARN identifying your Lambda Function Version (if versioning is enabled via publish = true).
qualifiedInvokeArn Qualified ARN (ARN with lambda version number) to be used for invoking Lambda Function from API Gateway - to be used in aws.apigateway.Integration's uri.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
replaceSecurityGroupsOnDestroy Whether to replace the security groups on the function's VPC configuration prior to destruction. Default is false.
replacementSecurityGroupIds List of security group IDs to assign to the function's VPC configuration prior to destruction. Required if replaceSecurityGroupsOnDestroy is true.
reservedConcurrentExecutions Amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1.
responseStreamingInvokeArn ARN to be used for invoking Lambda Function from API Gateway with response streaming - to be used in aws.apigateway.Integration's uri.
role ARN of the function's execution role. The role provides the function's identity and access to AWS services and resources.
runtime Identifier of the function's runtime. Required if packageType is Zip. See Runtimes for valid values.
s3Bucket S3 bucket location containing the function's deployment package. Conflicts with filename and imageUri. One of filename, imageUri, or s3Bucket must be specified.
s3Key S3 key of an object containing the function's deployment package. Required if s3Bucket is set.
s3ObjectVersion Object version containing the function's deployment package. Conflicts with filename and imageUri.
signingJobArn ARN of the signing job.
signingProfileVersionArn ARN of the signing profile version.
skipDestroy Whether to retain the old version of a previously deployed Lambda Layer. Default is false.
snapStart Configuration block for snap start settings. See below.
sourceCodeHash User-defined hash of the source code package file. Use this argument to trigger updates when the local function source code changes. This is a synthetic argument tracked only by the AWS provider and does not need to match the hashing algorithm used by Lambda to compute the CodeSha256 response value. Out-of-band changes to the source code will not be captured by this argument. To include out-of-band source code changes as an update trigger, use the codeSha256 argument instead.
sourceCodeSize Size in bytes of the function .zip file.
sourceKmsKeyArn ARN of the KMS key used to encrypt the function's .zip deployment package. Conflicts with imageUri.
tags Key-value map of tags for the Lambda function. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
tenancyConfig Configuration block for Tenancy. See below.
timeout Amount of time your Lambda Function has to run in seconds. Defaults to 3. Valid between 1 and 900.
tracingConfig Configuration block for X-Ray tracing. See below.
useResourceTimeoutForPropagation Whether to apply resource level timeout values while retrying eventually consistent API operations. By default the provider uses a 5 minute timeout to allow for propagation in the Lambda service. When set to true, this default value is replaced with the configurable resource timeouts. Increased timeout values may be useful in highly active accounts, or regions where propagation delays are inconsistent.
version Latest published version of your Lambda Function.
vpcConfig Configuration block for VPC. See below.
Implementation
const FunctionState({
this.architectures,
this.arn,
this.capacityProviderConfig,
this.code,
this.codeSha256,
this.codeSigningConfigArn,
this.deadLetterConfig,
this.description,
this.durableConfig,
this.environment,
this.ephemeralStorage,
this.fileSystemConfig,
this.handler,
this.imageConfig,
this.imageUri,
this.invokeArn,
this.kmsKeyArn,
this.lastModified,
this.layers,
this.loggingConfig,
this.memorySize,
this.name,
this.packageType,
this.publish,
this.publishTo,
this.qualifiedArn,
this.qualifiedInvokeArn,
this.region,
this.replaceSecurityGroupsOnDestroy,
this.replacementSecurityGroupIds,
this.reservedConcurrentExecutions,
this.responseStreamingInvokeArn,
this.role,
this.runtime,
this.s3Bucket,
this.s3Key,
this.s3ObjectVersion,
this.signingJobArn,
this.signingProfileVersionArn,
this.skipDestroy,
this.snapStart,
this.sourceCodeHash,
this.sourceCodeSize,
this.sourceKmsKeyArn,
this.tags,
this.tagsAll,
this.tenancyConfig,
this.timeout,
this.tracingConfig,
this.useResourceTimeoutForPropagation,
this.version,
this.vpcConfig,
});