Skip to content
v2.275.0

AddOnProperty Struct ​

AddOn is a property of the AWS::Lightsail::Disk resource. It describes the add-ons for a disk.

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 addOnProperty: lightsail.CfnDisk.AddOnProperty = {
  addOnType: 'addOnType',

  // the properties below are optional
  autoSnapshotAddOnRequest: {
    snapshotTimeOfDay: 'snapshotTimeOfDay',
  },
  status: 'status',
};

Properties ​

addOnTypestringadd_on_typestraddOnTypeStringAddOnTypestringAddOnType*stringrequired#
The add-on type (for example, `AutoSnapshot` ).

AutoSnapshot is the only add-on that can be enabled for a disk.

autoSnapshotAddOnRequestoptionalIResolvable | CfnDisk.AutoSnapshotAddOnPropertyauto_snapshot_add_on_requestoptionaltyping.Union[IResolvable, AutoSnapshotAddOnProperty]autoSnapshotAddOnRequestoptionalIResolvableAutoSnapshotAddOnRequestoptionalIResolvableAutoSnapshotAddOnRequestoptionalinterface{}#
The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string#
The status of the add-on.

Valid Values: Enabled | Disabled