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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.InitCommandOptions
InitCommandOptions.Builder, InitCommandOptions.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(InitCommandOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theInitCommandOptions.Builder.protectedJsii$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.JsonNodefinal booleanfinal StringgetCwd()The working directory.getEnv()Sets environment variables for the command.final BooleanContinue running if this command fails.final StringgetKey()Identifier key for this command.final List<InitServiceRestartHandle> Restart the given service(s) after this command has run.final StringCommand to determine whether this command should be run.final InitCommandWaitDurationThe duration to wait after a command has finished in case the command causes a reboot.final inthashCode()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:InitCommandOptionsThe working directory.Default: - Use default working directory
- Specified by:
getCwdin interfaceInitCommandOptions
-
getEnv
Description copied from interface:InitCommandOptionsSets environment variables for the command.This property overwrites, rather than appends, the existing environment.
Default: - Use current environment
- Specified by:
getEnvin interfaceInitCommandOptions
-
getIgnoreErrors
Description copied from interface:InitCommandOptionsContinue running if this command fails.Default: false
- Specified by:
getIgnoreErrorsin interfaceInitCommandOptions
-
getKey
Description copied from interface:InitCommandOptionsIdentifier key for this command.Commands are executed in lexicographical order of their key names.
Default: - Automatically generated based on index
- Specified by:
getKeyin interfaceInitCommandOptions
-
getServiceRestartHandles
Description copied from interface:InitCommandOptionsRestart the given service(s) after this command has run.Default: - Do not restart any service
- Specified by:
getServiceRestartHandlesin interfaceInitCommandOptions
-
getTestCmd
Description copied from interface:InitCommandOptionsCommand 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:
getTestCmdin interfaceInitCommandOptions
-
getWaitAfterCompletion
Description copied from interface:InitCommandOptionsThe 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:
getWaitAfterCompletionin interfaceInitCommandOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-