interface CfnMicrovmImageProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.CfnMicrovmImageProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnMicrovmImageProps |
Java | software.amazon.awscdk.services.lambda.CfnMicrovmImageProps |
Python | aws_cdk.aws_lambda.CfnMicrovmImageProps |
TypeScript | aws-cdk-lib » aws_lambda » CfnMicrovmImageProps |
Properties for defining a CfnMicrovmImage.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-microvmimage.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const cfnMicrovmImageProps: lambda.CfnMicrovmImageProps = {
additionalOsCapabilities: ['additionalOsCapabilities'],
baseImageArn: 'baseImageArn',
baseImageVersion: 'baseImageVersion',
buildRoleArn: 'buildRoleArn',
codeArtifact: {
uri: 'uri',
},
cpuConfigurations: [{
architecture: 'architecture',
}],
description: 'description',
egressNetworkConnectors: ['egressNetworkConnectors'],
environmentVariables: [{
key: 'key',
value: 'value',
}],
hooks: {
microvmHooks: {
resume: 'resume',
resumeTimeoutInSeconds: 123,
run: 'run',
runTimeoutInSeconds: 123,
suspend: 'suspend',
suspendTimeoutInSeconds: 123,
terminate: 'terminate',
terminateTimeoutInSeconds: 123,
},
microvmImageHooks: {
ready: 'ready',
readyTimeoutInSeconds: 123,
validate: 'validate',
validateTimeoutInSeconds: 123,
},
port: 123,
},
logging: {
cloudWatch: {
logGroup: 'logGroup',
logStream: 'logStream',
},
disabled: false,
},
name: 'name',
resources: [{
minimumMemoryInMiB: 123,
}],
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| additional | string[] | |
| base | string | ARN of the base MicroVM image. |
| base | string | Specific version of the base MicroVM image to use. |
| build | string | ARN of the IAM build role. |
| code | IResolvable | Code | |
| cpu | IResolvable | (IResolvable | Cpu)[] | |
| description | string | Human-readable description of the MicroVM image and its purpose. |
| egress | string[] | |
| environment | IResolvable | (IResolvable | Environment)[] | Environment variables to set in the container during the snapshot build. |
| hooks | IResolvable | Hooks | |
| logging | IResolvable | Logging | |
| name | string | Unique name for the MicroVM image within the account. |
| resources | IResolvable | (IResolvable | Resources)[] | |
| tags? | Cfn[] | Key-value pairs to associate with the MicroVM image for organization and management. |
additionalOsCapabilities
Type:
string[]
baseImageArn
Type:
string
ARN of the base MicroVM image.
baseImageVersion
Type:
string
Specific version of the base MicroVM image to use.
buildRoleArn
Type:
string
ARN of the IAM build role.
codeArtifact
Type:
IResolvable | Code
cpuConfigurations
Type:
IResolvable | (IResolvable | Cpu)[]
description
Type:
string
Human-readable description of the MicroVM image and its purpose.
egressNetworkConnectors
Type:
string[]
environmentVariables
Type:
IResolvable | (IResolvable | Environment)[]
Environment variables to set in the container during the snapshot build.
hooks
Type:
IResolvable | Hooks
logging
Type:
IResolvable | Logging
name
Type:
string
Unique name for the MicroVM image within the account.
resources
Type:
IResolvable | (IResolvable | Resources)[]
tags?
Type:
Cfn[]
(optional)
Key-value pairs to associate with the MicroVM image for organization and management.

.NET
Go
Java
Python
TypeScript