HooksProperty Struct
| Source | |
|---|---|
| Type last changed |
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 hooksProperty: lambda.CfnMicrovmImage.HooksProperty = {
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,
};
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_
hooks_property = lambda.CfnMicrovmImage.HooksProperty(
microvm_hooks=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
),
microvm_image_hooks=lambda.CfnMicrovmImage.MicrovmImageHooksProperty(
ready="ready",
ready_timeout_in_seconds=123,
validate="validate",
validate_timeout_in_seconds=123
),
port=123
)
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.*;
HooksProperty hooksProperty = HooksProperty.builder()
.microvmHooks(MicrovmHooksProperty.builder()
.resume("resume")
.resumeTimeoutInSeconds(123)
.run("run")
.runTimeoutInSeconds(123)
.suspend("suspend")
.suspendTimeoutInSeconds(123)
.terminate("terminate")
.terminateTimeoutInSeconds(123)
.build())
.microvmImageHooks(MicrovmImageHooksProperty.builder()
.ready("ready")
.readyTimeoutInSeconds(123)
.validate("validate")
.validateTimeoutInSeconds(123)
.build())
.port(123)
.build();
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 hooksProperty = new HooksProperty {
MicrovmHooks = new MicrovmHooksProperty {
Resume = "resume",
ResumeTimeoutInSeconds = 123,
Run = "run",
RunTimeoutInSeconds = 123,
Suspend = "suspend",
SuspendTimeoutInSeconds = 123,
Terminate = "terminate",
TerminateTimeoutInSeconds = 123
},
MicrovmImageHooks = new MicrovmImageHooksProperty {
Ready = "ready",
ReadyTimeoutInSeconds = 123,
Validate = "validate",
ValidateTimeoutInSeconds = 123
},
Port = 123
};
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"
hooksProperty := &HooksProperty{
MicrovmHooks: &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),
},
MicrovmImageHooks: &MicrovmImageHooksProperty{
Ready: jsii.String("ready"),
ReadyTimeoutInSeconds: jsii.Number(123),
Validate: jsii.String("validate"),
ValidateTimeoutInSeconds: jsii.Number(123),
},
Port: jsii.Number(123),
}
Properties
microvmHooksoptionalIResolvable | CfnMicrovmImage.microvm_hooksoptionaltyping.Union[IResolvable, MicrovmHooksProperty]microvmHooksoptionalIResolvableMicrovmHooksoptionalIResolvableMicrovmHooksoptionalinterface{} #microvmImageHooksoptionalIResolvable | CfnMicrovmImage.microvm_image_hooksoptionaltyping.Union[IResolvable, MicrovmImageHooksProperty]microvmImageHooksoptionalIResolvableMicrovmImageHooksoptionalIResolvableMicrovmImageHooksoptionalinterface{} #