Show / Hide Table of Contents

Interface IInitFileOptions

Options for InitFile.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IInitFileOptions
Syntax (vb)
Public Interface IInitFileOptions
Remarks

ExampleMetadata: infused

Examples
Bucket myBucket;


            var handle = new InitServiceRestartHandle();

            CloudFormationInit.FromElements(InitFile.FromString("/etc/nginx/nginx.conf", "...", new InitFileOptions { ServiceRestartHandles = new [] { handle } }), InitSource.FromS3Object("/var/www/html", myBucket, "html.zip", new InitSourceOptions { ServiceRestartHandles = new [] { handle } }), InitService.Enable("nginx", new InitServiceOptions {
                ServiceRestartHandle = handle
            }));

Synopsis

Properties

Base64Encoded

True if the inlined content (from a string or file) should be treated as base64 encoded.

Group

The name of the owning group for this file.

Mode

A six-digit octal value representing the mode for this file.

Owner

The name of the owning user for this file.

ServiceRestartHandles

Restart the given service after this file has been written.

Properties

Base64Encoded

True if the inlined content (from a string or file) should be treated as base64 encoded.

bool? Base64Encoded { get; }
Property Value

bool?

Remarks

Only applicable for inlined string and file content.

Default: false

Group

The name of the owning group for this file.

string? Group { get; }
Property Value

string

Remarks

Not supported for Windows systems.

Default: 'root'

Mode

A six-digit octal value representing the mode for this file.

string? Mode { get; }
Property Value

string

Remarks

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'

Owner

The name of the owning user for this file.

string? Owner { get; }
Property Value

string

Remarks

Not supported for Windows systems.

Default: 'root'

ServiceRestartHandles

Restart the given service after this file has been written.

InitServiceRestartHandle[]? ServiceRestartHandles { get; }
Property Value

InitServiceRestartHandle[]

Remarks

Default: - Do not restart any service

Back to top Generated by DocFX