Skip to content
v2.277.0

AutoSnapshotAddOnProperty Struct ​

AutoSnapshotAddOn is a property of the AddOn property. It describes the automatic snapshot add-on for an instance.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const autoSnapshotAddOnProperty: lightsail.CfnInstance.AutoSnapshotAddOnProperty = {
  snapshotTimeOfDay: 'snapshotTimeOfDay',
};
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_lightsail as lightsail

auto_snapshot_add_on_property = lightsail.CfnInstance.AutoSnapshotAddOnProperty(
    snapshot_time_of_day="snapshotTimeOfDay"
)
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.lightsail.*;

AutoSnapshotAddOnProperty autoSnapshotAddOnProperty = AutoSnapshotAddOnProperty.builder()
        .snapshotTimeOfDay("snapshotTimeOfDay")
        .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.Lightsail;

var autoSnapshotAddOnProperty = new AutoSnapshotAddOnProperty {
    SnapshotTimeOfDay = "snapshotTimeOfDay"
};
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"

autoSnapshotAddOnProperty := &AutoSnapshotAddOnProperty{
	SnapshotTimeOfDay: jsii.String("snapshotTimeOfDay"),
}

Properties ​

snapshotTimeOfDayoptionalstringsnapshot_time_of_dayoptionalstrsnapshotTimeOfDayoptionalStringSnapshotTimeOfDayoptionalstringSnapshotTimeOfDayoptional*string #
The daily time when an automatic snapshot will be created.

Constraints:

  • Must be in HH:00 format, and in an hourly increment.
  • Specified in Coordinated Universal Time (UTC).
  • The snapshot will be automatically created between the time specified and up to 45 minutes after.