@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.640Z") @Stability(value=Experimental) public interface InitServiceOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
InitServiceOptions.Builder
A builder for
InitServiceOptions |
static class |
InitServiceOptions.Jsii$Proxy
An implementation for
InitServiceOptions |
| Modifier and Type | Method and Description |
|---|---|
static InitServiceOptions.Builder |
builder() |
default Boolean |
getEnabled()
(experimental) Enable or disable this service.
|
default Boolean |
getEnsureRunning()
(experimental) Make sure this service is running or not running after cfn-init finishes.
|
default InitServiceRestartHandle |
getServiceRestartHandle()
(experimental) Restart service when the actions registered into the restartHandle have been performed.
|
@Stability(value=Experimental) @Nullable default Boolean getEnabled()
Set to true to ensure that the service will be started automatically upon boot.
Set to false to ensure that the service will not be started automatically upon boot.
Default: - true if used in `InitService.enable()`, no change to service state if used in `InitService.fromOptions()`.
@Stability(value=Experimental) @Nullable default Boolean getEnsureRunning()
Set to true to ensure that the service is running after cfn-init finishes.
Set to false to ensure that the service is not running after cfn-init finishes.
Default: - same value as `enabled`.
@Stability(value=Experimental) @Nullable default InitServiceRestartHandle getServiceRestartHandle()
Register actions into the restartHandle by passing it to InitFile, InitCommand,
InitPackage and InitSource objects.
Default: - No files trigger restart
@Stability(value=Experimental) static InitServiceOptions.Builder builder()
InitServiceOptions.Builder of InitServiceOptionsCopyright © 2021. All rights reserved.