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.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.450Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forInitSourceOptionsstatic final classAn implementation forInitSourceOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic InitSourceOptions.Builderbuilder()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.BuilderofInitSourceOptions
-