Class LocationPackageOptions
Options for InitPackage.rpm/InitPackage.msi.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LocationPackageOptions : ILocationPackageOptions
Syntax (vb)
Public Class LocationPackageOptions Implements ILocationPackageOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
InitServiceRestartHandle initServiceRestartHandle;
var locationPackageOptions = new LocationPackageOptions {
Key = "key",
ServiceRestartHandles = new [] { initServiceRestartHandle }
};
Synopsis
Constructors
| LocationPackageOptions() | Options for InitPackage.rpm/InitPackage.msi. |
Properties
| Key | Identifier key for this package. |
| ServiceRestartHandles | Restart the given service after this command has run. |
Constructors
LocationPackageOptions()
Options for InitPackage.rpm/InitPackage.msi.
public LocationPackageOptions()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
InitServiceRestartHandle initServiceRestartHandle;
var locationPackageOptions = new LocationPackageOptions {
Key = "key",
ServiceRestartHandles = new [] { initServiceRestartHandle }
};
Properties
Key
Identifier key for this package.
public string? Key { get; set; }
Property Value
Remarks
You can use this to order package installs.
Default: - Automatically generated
ServiceRestartHandles
Restart the given service after this command has run.
public InitServiceRestartHandle[]? ServiceRestartHandles { get; set; }
Property Value
Remarks
Default: - Do not restart any service