Class CfnInstance.AddOnProperty
AddOn is a property of the AWS::Lightsail::Instance resource. It describes the add-ons for an instance.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstance.AddOnProperty : CfnInstance.IAddOnPropertySyntax (vb)
Public Class CfnInstance.AddOnProperty Implements CfnInstance.IAddOnPropertyRemarks
ExampleMetadata: fixture=_generated
Examples
// 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 addOnProperty = new AddOnProperty {
                 AddOnType = "addOnType",
                 // the properties below are optional
                 AutoSnapshotAddOnRequest = new AutoSnapshotAddOnProperty {
                     SnapshotTimeOfDay = "snapshotTimeOfDay"
                 },
                 Status = "status"
             };Synopsis
Constructors
| AddOnProperty() | 
 | 
Properties
| AddOnType | The add-on type (for example,  | 
| AutoSnapshotAddOnRequest | The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created. | 
| Status | The status of the add-on. | 
Constructors
AddOnProperty()
AddOn is a property of the AWS::Lightsail::Instance resource. It describes the add-ons for an instance.
public AddOnProperty()Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 addOnProperty = new AddOnProperty {
                 AddOnType = "addOnType",
                 // the properties below are optional
                 AutoSnapshotAddOnRequest = new AutoSnapshotAddOnProperty {
                     SnapshotTimeOfDay = "snapshotTimeOfDay"
                 },
                 Status = "status"
             };Properties
AddOnType
The add-on type (for example, AutoSnapshot ).
public string AddOnType { get; set; }Property Value
Remarks
<code>AutoSnapshot</code> is the only add-on that can be enabled for an instance.
AutoSnapshotAddOnRequest
The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
public object? AutoSnapshotAddOnRequest { get; set; }Property Value
Remarks
Status
The status of the add-on.
public string? Status { get; set; }Property Value
Remarks
Valid Values: Enabled | Disabled