# MicrovmHooksProperty

- Source: Generated at build time
- Type last changed: v2.261.0 · 2 Jul 2026

## Example

TypeScript:

```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 microvmHooksProperty: lambda.CfnMicrovmImage.MicrovmHooksProperty = {
  resume: 'resume',
  resumeTimeoutInSeconds: 123,
  run: 'run',
  runTimeoutInSeconds: 123,
  suspend: 'suspend',
  suspendTimeoutInSeconds: 123,
  terminate: 'terminate',
  terminateTimeoutInSeconds: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

microvm_hooks_property = lambda.CfnMicrovmImage.MicrovmHooksProperty(
    resume="resume",
    resume_timeout_in_seconds=123,
    run="run",
    run_timeout_in_seconds=123,
    suspend="suspend",
    suspend_timeout_in_seconds=123,
    terminate="terminate",
    terminate_timeout_in_seconds=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

MicrovmHooksProperty microvmHooksProperty = MicrovmHooksProperty.builder()
        .resume("resume")
        .resumeTimeoutInSeconds(123)
        .run("run")
        .runTimeoutInSeconds(123)
        .suspend("suspend")
        .suspendTimeoutInSeconds(123)
        .terminate("terminate")
        .terminateTimeoutInSeconds(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var microvmHooksProperty = new MicrovmHooksProperty {
    Resume = "resume",
    ResumeTimeoutInSeconds = 123,
    Run = "run",
    RunTimeoutInSeconds = 123,
    Suspend = "suspend",
    SuspendTimeoutInSeconds = 123,
    Terminate = "terminate",
    TerminateTimeoutInSeconds = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

microvmHooksProperty := &MicrovmHooksProperty{
	Resume: jsii.String("resume"),
	ResumeTimeoutInSeconds: jsii.Number(123),
	Run: jsii.String("run"),
	RunTimeoutInSeconds: jsii.Number(123),
	Suspend: jsii.String("suspend"),
	SuspendTimeoutInSeconds: jsii.Number(123),
	Terminate: jsii.String("terminate"),
	TerminateTimeoutInSeconds: jsii.Number(123),
}
```

## Properties

- `resume`: string

- `resumeTimeoutInSeconds`: number

- `run`: string

- `runTimeoutInSeconds`: number

- `suspend`: string

- `suspendTimeoutInSeconds`: number

- `terminate`: string

- `terminateTimeoutInSeconds`: number
