Skip to content
v2.278.0

MaintenanceOptionsProperty Struct ​

The maintenance options of your instance.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const maintenanceOptionsProperty: ec2.CfnLaunchTemplate.MaintenanceOptionsProperty = {
  autoRecovery: 'autoRecovery',
};
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_ec2 as ec2

maintenance_options_property = ec2.CfnLaunchTemplate.MaintenanceOptionsProperty(
    auto_recovery="autoRecovery"
)
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.ec2.*;

MaintenanceOptionsProperty maintenanceOptionsProperty = MaintenanceOptionsProperty.builder()
        .autoRecovery("autoRecovery")
        .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.EC2;

var maintenanceOptionsProperty = new MaintenanceOptionsProperty {
    AutoRecovery = "autoRecovery"
};
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"

maintenanceOptionsProperty := &MaintenanceOptionsProperty{
	AutoRecovery: jsii.String("autoRecovery"),
}

Properties ​

autoRecoveryoptionalstringauto_recoveryoptionalstrautoRecoveryoptionalStringAutoRecoveryoptionalstringAutoRecoveryoptional*string #
Disables the automatic recovery behavior of your instance or sets it to default.