Class NamedPackageOptions
Options for InitPackage.yum/apt/rubyGem/python.
Inheritance
System.Object
NamedPackageOptions
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NamedPackageOptions : Object, INamedPackageOptions
Syntax (vb)
Public Class NamedPackageOptions
Inherits Object
Implements INamedPackageOptions
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 namedPackageOptions = new NamedPackageOptions {
ServiceRestartHandles = new [] { initServiceRestartHandle },
Version = new [] { "version" }
};
Synopsis
Constructors
NamedPackageOptions() |
Properties
ServiceRestartHandles | Restart the given services after this command has run. |
Version | Specify the versions to install. |
Constructors
NamedPackageOptions()
public NamedPackageOptions()
Properties
ServiceRestartHandles
Restart the given services after this command has run.
public InitServiceRestartHandle[] ServiceRestartHandles { get; set; }
Property Value
Remarks
Default: - Do not restart any service
Version
Specify the versions to install.
public string[] Version { get; set; }
Property Value
System.String[]
Remarks
Default: - Install the latest version