@Stability(value=Experimental) @Internal public static final class InitCommandOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InitCommandOptions
InitCommandOptionssoftware.amazon.jsii.JsiiObject.InitializationModeInitCommandOptions.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.
|
protected |
Jsii$Proxy(String cwd,
Map<String,String> env,
Boolean ignoreErrors,
String key,
List<? extends InitServiceRestartHandle> serviceRestartHandles,
String testCmd,
InitCommandWaitDuration waitAfterCompletion)
Constructor that initializes the object based on literal property values passed by the
InitCommandOptions.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getCwd()
(experimental) The working directory.
|
Map<String,String> |
getEnv()
(experimental) Sets environment variables for the command.
|
Boolean |
getIgnoreErrors()
(experimental) Continue running if this command fails.
|
String |
getKey()
(experimental) Identifier key for this command.
|
List<InitServiceRestartHandle> |
getServiceRestartHandles()
(experimental) Restart the given service(s) after this command has run.
|
String |
getTestCmd()
(experimental) Command to determine whether this command should be run.
|
InitCommandWaitDuration |
getWaitAfterCompletion()
(experimental) The duration to wait after a command has finished in case the command causes a reboot.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String cwd, Map<String,String> env, Boolean ignoreErrors, String key, List<? extends InitServiceRestartHandle> serviceRestartHandles, String testCmd, InitCommandWaitDuration waitAfterCompletion)
InitCommandOptions.Builder.public final String getCwd()
InitCommandOptionsDefault: - Use default working directory
getCwd in interface InitCommandOptionspublic final Map<String,String> getEnv()
InitCommandOptionsThis property overwrites, rather than appends, the existing environment.
Default: - Use current environment
getEnv in interface InitCommandOptionspublic final Boolean getIgnoreErrors()
InitCommandOptionsDefault: false
getIgnoreErrors in interface InitCommandOptionspublic final String getKey()
InitCommandOptionsCommands are executed in lexicographical order of their key names.
Default: - Automatically generated based on index
getKey in interface InitCommandOptionspublic final List<InitServiceRestartHandle> getServiceRestartHandles()
InitCommandOptionsDefault: - Do not restart any service
getServiceRestartHandles in interface InitCommandOptionspublic final String getTestCmd()
InitCommandOptionsIf the test passes (exits with error code of 0), the command is run.
Default: - Always run the command
getTestCmd in interface InitCommandOptionspublic 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@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.