Class InitCommandOptions.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class InitCommandOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InitCommandOptions
An implementation for InitCommandOptions
  • 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(InitCommandOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the InitCommandOptions.Builder.
  • Method Details

    • getCwd

      public final String getCwd()
      Description copied from interface: InitCommandOptions
      The working directory.

      Default: - Use default working directory

      Specified by:
      getCwd in interface InitCommandOptions
    • getEnv

      public final Map<String,String> getEnv()
      Description copied from interface: InitCommandOptions
      Sets environment variables for the command.

      This property overwrites, rather than appends, the existing environment.

      Default: - Use current environment

      Specified by:
      getEnv in interface InitCommandOptions
    • getIgnoreErrors

      public final Boolean getIgnoreErrors()
      Description copied from interface: InitCommandOptions
      Continue running if this command fails.

      Default: false

      Specified by:
      getIgnoreErrors in interface InitCommandOptions
    • getKey

      public final String getKey()
      Description copied from interface: InitCommandOptions
      Identifier key for this command.

      Commands are executed in lexicographical order of their key names.

      Default: - Automatically generated based on index

      Specified by:
      getKey in interface InitCommandOptions
    • getServiceRestartHandles

      public final List<InitServiceRestartHandle> getServiceRestartHandles()
      Description copied from interface: InitCommandOptions
      Restart the given service(s) after this command has run.

      Default: - Do not restart any service

      Specified by:
      getServiceRestartHandles in interface InitCommandOptions
    • getTestCmd

      public final String getTestCmd()
      Description copied from interface: InitCommandOptions
      Command to determine whether this command should be run.

      If the test passes (exits with error code of 0), the command is run.

      Default: - Always run the command

      Specified by:
      getTestCmd in interface InitCommandOptions
    • getWaitAfterCompletion

      public final InitCommandWaitDuration getWaitAfterCompletion()
      Description copied from interface: InitCommandOptions
      The duration to wait after a command has finished in case the command causes a reboot.

      Set this value to InitCommandWaitDuration.none() if you do not want to wait for every command; InitCommandWaitDuration.forever() directs cfn-init to exit and resume only after the reboot is complete.

      For Windows systems only.

      Default: - 60 seconds

      Specified by:
      getWaitAfterCompletion in interface InitCommandOptions
    • $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