Interface InitFileOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
InitFileAssetOptions
- All Known Implementing Classes:
InitFileAssetOptions.Jsii$Proxy,InitFileOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.377Z")
@Stability(Stable)
public interface InitFileOptions
extends software.amazon.jsii.JsiiSerializable
Options for InitFile.
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 forInitFileOptionsstatic final classAn implementation forInitFileOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic InitFileOptions.Builderbuilder()default BooleanTrue if the inlined content (from a string or file) should be treated as base64 encoded.default StringgetGroup()The name of the owning group for this file.default StringgetMode()A six-digit octal value representing the mode for this file.default StringgetOwner()The name of the owning user for this file.default List<InitServiceRestartHandle>Restart the given service after this file has been written.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBase64Encoded
True if the inlined content (from a string or file) should be treated as base64 encoded.Only applicable for inlined string and file content.
Default: false
-
getGroup
The name of the owning group for this file.Not supported for Windows systems.
Default: 'root'
-
getMode
A six-digit octal value representing the mode for this file.Use the first three digits for symlinks and the last three digits for setting permissions. To create a symlink, specify 120xxx, where xxx defines the permissions of the target file. To specify permissions for a file, use the last three digits, such as 000644.
Not supported for Windows systems.
Default: '000644'
-
getOwner
The name of the owning user for this file.Not supported for Windows systems.
Default: 'root'
-
getServiceRestartHandles
Restart the given service after this file has been written.Default: - Do not restart any service
-
builder
- Returns:
- a
InitFileOptions.BuilderofInitFileOptions
-