public static final class InitCommandOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InitCommandOptions
InitCommandOptions
InitCommandOptions.Builder, InitCommandOptions.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCwd()
The working directory.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnv()
Sets environment variables for the command.
|
java.lang.Boolean |
getIgnoreErrors()
Continue running if this command fails.
|
java.lang.String |
getKey()
Identifier key for this command.
|
java.util.List<InitServiceRestartHandle> |
getServiceRestartHandles()
Restart the given service(s) after this command has run.
|
java.lang.String |
getTestCmd()
Command to determine whether this command should be run.
|
InitCommandWaitDuration |
getWaitAfterCompletion()
The duration to wait after a command has finished in case the command causes a reboot.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.String getCwd()
InitCommandOptions
Default: - Use default working directory
getCwd
in interface InitCommandOptions
public final java.util.Map<java.lang.String,java.lang.String> getEnv()
InitCommandOptions
This property overwrites, rather than appends, the existing environment.
Default: - Use current environment
getEnv
in interface InitCommandOptions
public final java.lang.Boolean getIgnoreErrors()
InitCommandOptions
Default: false
getIgnoreErrors
in interface InitCommandOptions
public final java.lang.String getKey()
InitCommandOptions
Commands are executed in lexicographical order of their key names.
Default: - Automatically generated based on index
getKey
in interface InitCommandOptions
public final java.util.List<InitServiceRestartHandle> getServiceRestartHandles()
InitCommandOptions
Default: - Do not restart any service
getServiceRestartHandles
in interface InitCommandOptions
public final java.lang.String getTestCmd()
InitCommandOptions
If the test passes (exits with error code of 0), the command is run.
Default: - Always run the command
getTestCmd
in interface InitCommandOptions
public final InitCommandWaitDuration getWaitAfterCompletion()
InitCommandOptions
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
getWaitAfterCompletion
in interface InitCommandOptions
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()