Interface CfnInstance.AddOnProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnInstance.AddOnProperty.Jsii$Proxy
Enclosing class:
CfnInstance

@Stability(Stable) public static interface CfnInstance.AddOnProperty extends software.amazon.jsii.JsiiSerializable
AddOn is a property of the AWS::Lightsail::Instance resource. It describes the add-ons for an instance.

Example:

 // 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.*;
 AddOnProperty addOnProperty = AddOnProperty.builder()
         .addOnType("addOnType")
         // the properties below are optional
         .autoSnapshotAddOnRequest(AutoSnapshotAddOnProperty.builder()
                 .snapshotTimeOfDay("snapshotTimeOfDay")
                 .build())
         .status("status")
         .build();
 
  • Method Details

    • getAddOnType

      @Stability(Stable) @NotNull String getAddOnType()
      The add-on type (for example, AutoSnapshot ).

      AutoSnapshot is the only add-on that can be enabled for an instance.

    • getAutoSnapshotAddOnRequest

      @Stability(Stable) @Nullable default Object getAutoSnapshotAddOnRequest()
      The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.
    • getStatus

      @Stability(Stable) @Nullable default String getStatus()
      The status of the add-on.

      Valid Values: Enabled | Disabled

    • builder

      @Stability(Stable) static CfnInstance.AddOnProperty.Builder builder()
      Returns:
      a CfnInstance.AddOnProperty.Builder of CfnInstance.AddOnProperty