aws-cdk-lib.aws_ec2.LocationPackageOptions

interface LocationPackageOptions

LanguageType name
.NETAmazon.CDK.AWS.EC2.LocationPackageOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#LocationPackageOptions
Javasoftware.amazon.awscdk.services.ec2.LocationPackageOptions
Pythonaws_cdk.aws_ec2.LocationPackageOptions
TypeScript (source)aws-cdk-lib » aws_ec2 » LocationPackageOptions

Options for InitPackage.rpm/InitPackage.msi.

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 locationPackageOptions: ec2.LocationPackageOptions = {
  key: 'key',
  serviceRestartHandles: [initServiceRestartHandle],
};

Properties

NameTypeDescription
key?stringIdentifier key for this package.
serviceRestartHandles?InitServiceRestartHandle[]Restart the given service after this command has run.

key?

Type: string (optional, default: Automatically generated)

Identifier key for this package.

You can use this to order package installs.


serviceRestartHandles?

Type: InitServiceRestartHandle[] (optional, default: Do not restart any service)

Restart the given service after this command has run.