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
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.InitCommandOptions
InitCommandOptions.Builder, InitCommandOptions.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(InitCommandOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theInitCommandOptions.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final String
getCwd()
The working directory.getEnv()
Sets environment variables for the command.final Boolean
Continue running if this command fails.final String
getKey()
Identifier key for this command.final List<InitServiceRestartHandle>
Restart the given service(s) after this command has run.final String
Command to determine whether this command should be run.final InitCommandWaitDuration
The duration to wait after a command has finished in case the command causes a reboot.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
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
Constructor that initializes the object based on literal property values passed by theInitCommandOptions.Builder
.
-
-
Method Details
-
getCwd
Description copied from interface:InitCommandOptions
The working directory.Default: - Use default working directory
- Specified by:
getCwd
in interfaceInitCommandOptions
-
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 interfaceInitCommandOptions
-
getIgnoreErrors
Description copied from interface:InitCommandOptions
Continue running if this command fails.Default: false
- Specified by:
getIgnoreErrors
in interfaceInitCommandOptions
-
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 interfaceInitCommandOptions
-
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 interfaceInitCommandOptions
-
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 interfaceInitCommandOptions
-
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 interfaceInitCommandOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-