@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.638Z") @Stability(value=Experimental) public interface InitCommandOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
InitCommandOptions.Builder
A builder for
InitCommandOptions |
static class |
InitCommandOptions.Jsii$Proxy
An implementation for
InitCommandOptions |
| Modifier and Type | Method and Description |
|---|---|
static InitCommandOptions.Builder |
builder() |
default String |
getCwd()
(experimental) The working directory.
|
default Map<String,String> |
getEnv()
(experimental) Sets environment variables for the command.
|
default Boolean |
getIgnoreErrors()
(experimental) Continue running if this command fails.
|
default String |
getKey()
(experimental) Identifier key for this command.
|
default List<InitServiceRestartHandle> |
getServiceRestartHandles()
(experimental) Restart the given service(s) after this command has run.
|
default String |
getTestCmd()
(experimental) Command to determine whether this command should be run.
|
default InitCommandWaitDuration |
getWaitAfterCompletion()
(experimental) The duration to wait after a command has finished in case the command causes a reboot.
|
@Stability(value=Experimental) @Nullable default String getCwd()
Default: - Use default working directory
@Stability(value=Experimental) @Nullable default Map<String,String> getEnv()
This property overwrites, rather than appends, the existing environment.
Default: - Use current environment
@Stability(value=Experimental) @Nullable default Boolean getIgnoreErrors()
Default: false
@Stability(value=Experimental) @Nullable default String getKey()
Commands are executed in lexicographical order of their key names.
Default: - Automatically generated based on index
@Stability(value=Experimental) @Nullable default List<InitServiceRestartHandle> getServiceRestartHandles()
Default: - Do not restart any service
@Stability(value=Experimental) @Nullable default String getTestCmd()
If the test passes (exits with error code of 0), the command is run.
Default: - Always run the command
@Stability(value=Experimental) @Nullable default InitCommandWaitDuration getWaitAfterCompletion()
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
@Stability(value=Experimental) static InitCommandOptions.Builder builder()
InitCommandOptions.Builder of InitCommandOptionsCopyright © 2021. All rights reserved.