Class InitSourceOptions
Additional options for an InitSource.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InitSourceOptions : IInitSourceOptions
Syntax (vb)
Public Class InitSourceOptions 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() | Additional options for an InitSource. |
Properties
| ServiceRestartHandles | Restart the given services after this archive has been extracted. |
Constructors
InitSourceOptions()
Additional options for an InitSource.
public InitSourceOptions()
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
}));
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