Interface InitSourceOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
InitSourceAssetOptions
- All Known Implementing Classes:
InitSourceAssetOptions.Jsii$Proxy
,InitSourceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.391Z")
@Stability(Stable)
public interface InitSourceOptions
extends software.amazon.jsii.JsiiSerializable
Additional options for an InitSource.
Example:
Bucket myBucket; InitServiceRestartHandle handle = new InitServiceRestartHandle(); CloudFormationInit.fromElements(InitFile.fromString("/etc/nginx/nginx.conf", "...", InitFileOptions.builder().serviceRestartHandles(List.of(handle)).build()), InitSource.fromS3Object("/var/www/html", myBucket, "html.zip", InitSourceOptions.builder().serviceRestartHandles(List.of(handle)).build()), InitService.enable("nginx", InitServiceOptions.builder() .serviceRestartHandle(handle) .build()));
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forInitSourceOptions
static final class
An implementation forInitSourceOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic InitSourceOptions.Builder
builder()
default List<InitServiceRestartHandle>
Restart the given services after this archive has been extracted.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getServiceRestartHandles
Restart the given services after this archive has been extracted.Default: - Do not restart any service
-
builder
- Returns:
- a
InitSourceOptions.Builder
ofInitSourceOptions
-