FunctionState class
Input properties used for looking up and filtering Function resources.
Constructors
-
FunctionState({Input<
List< ? architectures, Input<String> ?>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, Input<String> ?>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, Input<String> ?>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, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>FunctionTenancyConfig?> ? tenancyConfig, Input<int?> ? timeout, Input<FunctionTracingConfig?> ? tracingConfig, Input<bool?> ? useResourceTimeoutForPropagation, Input<String?> ? version, Input<FunctionVpcConfig?> ? vpcConfig}) -
Creates a new FunctionState.
architecturesInstruction set architecture for your Lambda function. Valid values are["x8664"]and["arm64"]. Default is["x8664"]. Removing this attribute, function's architecture stays the same.arnARN identifying your Lambda Function.capacityProviderConfigConfiguration block for Lambda Capacity Provider. See below.codePath to the function's deployment package within the local filesystem. Conflicts withimageUriands3Bucket. One offilename,imageUri, ors3Bucketmust be specified.codeSha256Base64-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.zipfile. Layers are not included in the calculation. To trigger updates using a non-standard hashing algorithm, use thesourceCodeHashargument instead.codeSigningConfigArnARN of a code-signing configuration to enable code signing for this function.deadLetterConfigConfiguration block for dead letter queue. See below.descriptionDescription of what your Lambda Function does.durableConfigConfiguration block for durable function settings. See below.durableConfigmay only be available in limited regions, includingus-east-2.environmentConfiguration block for environment variables. See below.ephemeralStorageAmount of ephemeral storage (/tmp) to allocate for the Lambda Function. See below.fileSystemConfigConfiguration block for EFS or S3 Files file system. See below.handlerFunction entry point in your code. Required ifpackageTypeisZip.imageConfigContainer image configuration values. See below.imageUriECR image URI containing the function's deployment package. Conflicts withfilenameands3Bucket. One offilename,imageUri, ors3Bucketmust be specified.invokeArnARN to be used for invoking Lambda Function from API Gateway - to be used inaws.apigateway.Integration'suri.kmsKeyArnARN 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.lastModifiedDate this resource was last modified.layersList of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function.loggingConfigConfiguration block for advanced logging settings. See below.memorySizeAmount 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.nameUnique name for your Lambda Function.packageTypeLambda deployment package type. Valid values areZipandImage. Defaults toZip.publishWhether to publish creation/change as new Lambda Function Version. Defaults tofalse.publishToWhether to publish to a alias or version number. Omit for regular version publishing. Option isLATEST_PUBLISHED.qualifiedArnARN identifying your Lambda Function Version (if versioning is enabled viapublish = true).qualifiedInvokeArnQualified ARN (ARN with lambda version number) to be used for invoking Lambda Function from API Gateway - to be used inaws.apigateway.Integration'suri.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.replaceSecurityGroupsOnDestroyWhether to replace the security groups on the function's VPC configuration prior to destruction. Default isfalse.replacementSecurityGroupIdsList of security group IDs to assign to the function's VPC configuration prior to destruction. Required ifreplaceSecurityGroupsOnDestroyistrue.reservedConcurrentExecutionsAmount of reserved concurrent executions for this lambda function. A value of0disables lambda from being triggered and-1removes any concurrency limitations. Defaults to Unreserved Concurrency Limits-1.responseStreamingInvokeArnARN to be used for invoking Lambda Function from API Gateway with response streaming - to be used inaws.apigateway.Integration'suri.roleARN of the function's execution role. The role provides the function's identity and access to AWS services and resources.runtimeIdentifier of the function's runtime. Required ifpackageTypeisZip. See Runtimes for valid values.s3BucketS3 bucket location containing the function's deployment package. Conflicts withfilenameandimageUri. One offilename,imageUri, ors3Bucketmust be specified.s3KeyS3 key of an object containing the function's deployment package. Required ifs3Bucketis set.s3ObjectVersionObject version containing the function's deployment package. Conflicts withfilenameandimageUri.signingJobArnARN of the signing job.signingProfileVersionArnARN of the signing profile version.skipDestroyWhether to retain the old version of a previously deployed Lambda Layer. Default isfalse.snapStartConfiguration block for snap start settings. See below.sourceCodeHashUser-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 theCodeSha256response 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 thecodeSha256argument instead.sourceCodeSizeSize in bytes of the function .zip file.sourceKmsKeyArnARN of the KMS key used to encrypt the function's.zipdeployment package. Conflicts withimageUri.tagsKey-value map of tags for the Lambda function. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.tagsAllMap of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.tenancyConfigConfiguration block for Tenancy. See below.timeoutAmount of time your Lambda Function has to run in seconds. Defaults to 3. Valid between 1 and 900.tracingConfigConfiguration block for X-Ray tracing. See below.useResourceTimeoutForPropagationWhether 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 totrue, 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.versionLatest published version of your Lambda Function.vpcConfigConfiguration block for VPC. See below.const -
FunctionState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
architectures
→ Input<
List< ?String> ?> -
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.final -
arn
→ Input<
String?> ? -
ARN identifying your Lambda Function.
final
-
capacityProviderConfig
→ Input<
FunctionCapacityProviderConfig?> ? -
Configuration block for Lambda Capacity Provider. See below.
final
- code → Input?
-
Path to the function's deployment package within the local filesystem. Conflicts with
imageUriands3Bucket. One offilename,imageUri, ors3Bucketmust be specified.final -
codeSha256
→ Input<
String?> ? -
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
.zipfile. Layers are not included in the calculation. To trigger updates using a non-standard hashing algorithm, use thesourceCodeHashargument instead.final -
codeSigningConfigArn
→ Input<
String?> ? -
ARN of a code-signing configuration to enable code signing for this function.
final
-
deadLetterConfig
→ Input<
FunctionDeadLetterConfig?> ? -
Configuration block for dead letter queue. See below.
final
-
description
→ Input<
String?> ? -
Description of what your Lambda Function does.
final
-
durableConfig
→ Input<
FunctionDurableConfig?> ? -
Configuration block for durable function settings. See below.
durableConfigmay only be available in limited regions, includingus-east-2.final -
environment
→ Input<
FunctionEnvironment?> ? -
Configuration block for environment variables. See below.
final
-
ephemeralStorage
→ Input<
FunctionEphemeralStorage?> ? -
Amount of ephemeral storage (
/tmp) to allocate for the Lambda Function. See below.final -
fileSystemConfig
→ Input<
FunctionFileSystemConfig?> ? -
Configuration block for EFS or S3 Files file system. See below.
final
-
handler
→ Input<
String?> ? -
Function entry point in your code. Required if
packageTypeisZip.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
imageConfig
→ Input<
FunctionImageConfig?> ? -
Container image configuration values. See below.
final
-
imageUri
→ Input<
String?> ? -
ECR image URI containing the function's deployment package. Conflicts with
filenameands3Bucket. One offilename,imageUri, ors3Bucketmust be specified.final -
invokeArn
→ Input<
String?> ? -
ARN to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration'suri.final -
kmsKeyArn
→ Input<
String?> ? -
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.
final
-
lastModified
→ Input<
String?> ? -
Date this resource was last modified.
final
-
layers
→ Input<
List< ?String> ?> -
List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function.
final
-
loggingConfig
→ Input<
FunctionLoggingConfig?> ? -
Configuration block for advanced logging settings. See below.
final
-
memorySize
→ Input<
int?> ? -
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.
final
-
name
→ Input<
String?> ? -
Unique name for your Lambda Function.
final
-
packageType
→ Input<
String?> ? -
Lambda deployment package type. Valid values are
ZipandImage. Defaults toZip.final -
publish
→ Input<
bool?> ? -
Whether to publish creation/change as new Lambda Function Version. Defaults to
false.final -
publishTo
→ Input<
String?> ? -
Whether to publish to a alias or version number. Omit for regular version publishing. Option is
LATEST_PUBLISHED.final -
qualifiedArn
→ Input<
String?> ? -
ARN identifying your Lambda Function Version (if versioning is enabled via
publish = true).final -
qualifiedInvokeArn
→ Input<
String?> ? -
Qualified ARN (ARN with lambda version number) to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration'suri.final -
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
-
replacementSecurityGroupIds
→ Input<
List< ?String> ?> -
List of security group IDs to assign to the function's VPC configuration prior to destruction. Required if
replaceSecurityGroupsOnDestroyistrue.final -
replaceSecurityGroupsOnDestroy
→ Input<
bool?> ? -
Whether to replace the security groups on the function's VPC configuration prior to destruction. Default is
false.final -
reservedConcurrentExecutions
→ Input<
int?> ? -
Amount of reserved concurrent executions for this lambda function. A value of
0disables lambda from being triggered and-1removes any concurrency limitations. Defaults to Unreserved Concurrency Limits-1.final -
responseStreamingInvokeArn
→ Input<
String?> ? -
ARN to be used for invoking Lambda Function from API Gateway with response streaming - to be used in
aws.apigateway.Integration'suri.final -
role
→ Input<
String?> ? -
ARN of the function's execution role. The role provides the function's identity and access to AWS services and resources.
final
- runtime → Input?
-
Identifier of the function's runtime. Required if
packageTypeisZip. See Runtimes for valid values.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
s3Bucket
→ Input<
String?> ? -
S3 bucket location containing the function's deployment package. Conflicts with
filenameandimageUri. One offilename,imageUri, ors3Bucketmust be specified.final -
s3Key
→ Input<
String?> ? -
S3 key of an object containing the function's deployment package. Required if
s3Bucketis set.final -
s3ObjectVersion
→ Input<
String?> ? -
Object version containing the function's deployment package. Conflicts with
filenameandimageUri.final -
signingJobArn
→ Input<
String?> ? -
ARN of the signing job.
final
-
signingProfileVersionArn
→ Input<
String?> ? -
ARN of the signing profile version.
final
-
skipDestroy
→ Input<
bool?> ? -
Whether to retain the old version of a previously deployed Lambda Layer. Default is
false.final -
snapStart
→ Input<
FunctionSnapStart?> ? -
Configuration block for snap start settings. See below.
final
-
sourceCodeHash
→ Input<
String?> ? -
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
CodeSha256response 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 thecodeSha256argument instead.final -
sourceCodeSize
→ Input<
int?> ? -
Size in bytes of the function .zip file.
final
-
sourceKmsKeyArn
→ Input<
String?> ? -
ARN of the KMS key used to encrypt the function's
.zipdeployment package. Conflicts withimageUri.final -
Key-value map of tags for the Lambda function. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.final -
tenancyConfig
→ Input<
FunctionTenancyConfig?> ? -
Configuration block for Tenancy. See below.
final
-
timeout
→ Input<
int?> ? -
Amount of time your Lambda Function has to run in seconds. Defaults to 3. Valid between 1 and 900.
final
-
tracingConfig
→ Input<
FunctionTracingConfig?> ? -
Configuration block for X-Ray tracing. See below.
final
-
useResourceTimeoutForPropagation
→ Input<
bool?> ? -
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.final -
version
→ Input<
String?> ? -
Latest published version of your Lambda Function.
final
-
vpcConfig
→ Input<
FunctionVpcConfig?> ? -
Configuration block for VPC. See below.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited