Skip to content
v2.274.0

NamedPackageOptions Struct ​

Options for InitPackage.yum/apt/rubyGem/python.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const initServiceRestartHandle: ec2.InitServiceRestartHandle;
const namedPackageOptions: ec2.NamedPackageOptions = {
  serviceRestartHandles: [initServiceRestartHandle],
  version: ['version'],
};

Properties ​

serviceRestartHandlesoptionalInitServiceRestartHandle[]service_restart_handlesoptionaltyping.List[InitServiceRestartHandle]serviceRestartHandlesoptionalList<InitServiceRestartHandle>ServiceRestartHandlesoptionalInitServiceRestartHandle[]ServiceRestartHandlesoptional*[]InitServiceRestartHandle#
Restart the given services after this command has run.

Default: Do not restart any service

versionoptionalstring[]versionoptionaltyping.List[str]versionoptionalList<String>Versionoptionalstring[]Versionoptional*[]*string#
Specify the versions to install.

Default: Install the latest version