Interface IInitSourceOptions
Additional options for an InitSource.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IInitSourceOptions
Syntax (vb)
Public Interface 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
Properties
ServiceRestartHandles | Restart the given services after this archive has been extracted. |
Properties
ServiceRestartHandles
Restart the given services after this archive has been extracted.
virtual InitServiceRestartHandle[] ServiceRestartHandles { get; }
Property Value
Remarks
Default: - Do not restart any service