aws-cdk-lib.aws_ec2.NamedPackageOptions

interface NamedPackageOptions

LanguageType name
.NETAmazon.CDK.AWS.EC2.NamedPackageOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#NamedPackageOptions
Javasoftware.amazon.awscdk.services.ec2.NamedPackageOptions
Pythonaws_cdk.aws_ec2.NamedPackageOptions
TypeScript (source)aws-cdk-lib » 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 { aws_ec2 as ec2 } from 'aws-cdk-lib';

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

Properties

NameTypeDescription
serviceRestartHandles?InitServiceRestartHandle[]Restart the given services after this command has run.
version?string[]Specify the versions to install.

serviceRestartHandles?

Type: InitServiceRestartHandle[] (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.