interface NamedPackageOptions
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.EC2.NamedPackageOptions | 
|  Java | software.amazon.awscdk.services.ec2.NamedPackageOptions | 
|  Python | aws_cdk.aws_ec2.NamedPackageOptions | 
|  TypeScript (source) | @aws-cdk/aws-ec2»NamedPackageOptions | 
Options for InitPackage.yum/apt/rubyGem/python.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
declare const initServiceRestartHandle: ec2.InitServiceRestartHandle;
const namedPackageOptions: ec2.NamedPackageOptions = {
  serviceRestartHandles: [initServiceRestartHandle],
  version: ['version'],
};
Properties
| Name | Type | Description | 
|---|---|---|
| service | Init[] | Restart the given services after this command has run. | 
| version? | string[] | Specify the versions to install. | 
serviceRestartHandles?
Type:
Init[]
(optional, default: Do not restart any service)
Restart the given services after this command has run.
version?
Type:
string[]
(optional, default: Install the latest version)
Specify the versions to install.
