@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:46.948Z") @Stability(value=Experimental) public interface InitFileOptions extends software.amazon.jsii.JsiiSerializable
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()));
| Modifier and Type | Interface and Description |
|---|---|
static class |
InitFileOptions.Builder
A builder for
InitFileOptions |
static class |
InitFileOptions.Jsii$Proxy
An implementation for
InitFileOptions |
| Modifier and Type | Method and Description |
|---|---|
static InitFileOptions.Builder |
builder() |
default Boolean |
getBase64Encoded()
(experimental) True if the inlined content (from a string or file) should be treated as base64 encoded.
|
default String |
getGroup()
(experimental) The name of the owning group for this file.
|
default String |
getMode()
(experimental) A six-digit octal value representing the mode for this file.
|
default String |
getOwner()
(experimental) The name of the owning user for this file.
|
default List<InitServiceRestartHandle> |
getServiceRestartHandles()
(experimental) Restart the given service after this file has been written.
|
@Stability(value=Experimental) @Nullable default Boolean getBase64Encoded()
Only applicable for inlined string and file content.
Default: false
@Stability(value=Experimental) @Nullable default String getGroup()
Not supported for Windows systems.
Default: 'root'
@Stability(value=Experimental) @Nullable default String getMode()
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'
@Stability(value=Experimental) @Nullable default String getOwner()
Not supported for Windows systems.
Default: 'root'
@Stability(value=Experimental) @Nullable default List<InitServiceRestartHandle> getServiceRestartHandles()
Default: - Do not restart any service
@Stability(value=Experimental) static InitFileOptions.Builder builder()
InitFileOptions.Builder of InitFileOptionsCopyright © 2022. All rights reserved.