Class InitSourceOptions
Additional options for an InitSource.
Inheritance
System.Object
InitSourceOptions
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InitSourceOptions : Object, IInitSourceOptions
Syntax (vb)
Public Class InitSourceOptions
Inherits Object
Implements IInitSourceOptions
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
Constructors
InitSourceOptions() |
Properties
ServiceRestartHandles | Restart the given services after this archive has been extracted. |
Constructors
InitSourceOptions()
public InitSourceOptions()
Properties
ServiceRestartHandles
Restart the given services after this archive has been extracted.
public InitServiceRestartHandle[] ServiceRestartHandles { get; set; }
Property Value
Remarks
Default: - Do not restart any service