# CfnMicrovmImageProps

Properties for defining a `CfnMicrovmImage`.

Extends: CfnMicrovmImageProps
Used as props by: CfnMicrovmImage

- Source: Generated code
- Type last changed: v2.261.0 · 2 Jul 2026

## Example

```ts
// 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

- `additionalOsCapabilities`: string[] (required)

- `baseImageArn`: string (required) — ARN of the base MicroVM image.

- `baseImageVersion`: string (required) — Specific version of the base MicroVM image to use.

- `buildRoleArn`: string (required) — ARN of the IAM build role.

- `codeArtifact`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMicrovmImage.CodeArtifactProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnMicrovmImage.CodeArtifactProperty.html) (required)

- `cpuConfigurations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMicrovmImage.CpuConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnMicrovmImage.CpuConfigurationProperty.html)[] (required)

- `description`: string (required) — Human-readable description of the MicroVM image and its purpose.

- `egressNetworkConnectors`: string[] (required)

- `environmentVariables`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMicrovmImage.EnvironmentVariableProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnMicrovmImage.EnvironmentVariableProperty.html)[] (required) — Environment variables to set in the container during the snapshot build.

- `hooks`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMicrovmImage.HooksProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnMicrovmImage.HooksProperty.html) (required)

- `logging`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMicrovmImage.LoggingProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnMicrovmImage.LoggingProperty.html) (required)

- `name`: string (required) — Unique name for the MicroVM image within the account.

- `resources`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMicrovmImage.ResourcesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnMicrovmImage.ResourcesProperty.html)[] (required)

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Key-value pairs to associate with the MicroVM image for organization and management.
