Class InitServiceOptions.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.InitServiceOptions.Jsii$Proxy
All Implemented Interfaces:
InitServiceOptions, software.amazon.jsii.JsiiSerializable
Enclosing interface:
InitServiceOptions

@Stability(Stable) @Internal public static final class InitServiceOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InitServiceOptions
An implementation for InitServiceOptions
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(InitServiceOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the InitServiceOptions.Builder.
  • Method Details

    • getEnabled

      public final Boolean getEnabled()
      Description copied from interface: InitServiceOptions
      Enable or disable this service.

      Set to true to ensure that the service will be started automatically upon boot.

      Set to false to ensure that the service will not be started automatically upon boot.

      Default: - true if used in `InitService.enable()`, no change to service state if used in `InitService.fromOptions()`.

      Specified by:
      getEnabled in interface InitServiceOptions
    • getEnsureRunning

      public final Boolean getEnsureRunning()
      Description copied from interface: InitServiceOptions
      Make sure this service is running or not running after cfn-init finishes.

      Set to true to ensure that the service is running after cfn-init finishes.

      Set to false to ensure that the service is not running after cfn-init finishes.

      Default: - same value as `enabled`.

      Specified by:
      getEnsureRunning in interface InitServiceOptions
    • getServiceManager

      public final ServiceManager getServiceManager()
      Description copied from interface: InitServiceOptions
      What service manager to use.

      This needs to match the actual service manager on your Operating System. For example, Amazon Linux 1 uses SysVinit, but Amazon Linux 2 uses Systemd.

      Default: ServiceManager.SYSVINIT for Linux images, ServiceManager.WINDOWS for Windows images

      Specified by:
      getServiceManager in interface InitServiceOptions
    • getServiceRestartHandle

      public final InitServiceRestartHandle getServiceRestartHandle()
      Description copied from interface: InitServiceOptions
      Restart service when the actions registered into the restartHandle have been performed.

      Register actions into the restartHandle by passing it to InitFile, InitCommand, InitPackage and InitSource objects.

      Default: - No files trigger restart

      Specified by:
      getServiceRestartHandle in interface InitServiceOptions
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object