# LocationPackageOptions

Options for InitPackage.rpm/InitPackage.msi.

- Source: [`aws-ec2/lib/cfn-init-elements.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-ec2/lib/cfn-init-elements.ts#L616)

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

## Properties

- `key`: string — Identifier key for this package.

  **Default:** Automatically generated

  You can use this to order package installs.

- `serviceRestartHandles`: [InitServiceRestartHandle](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.InitServiceRestartHandle.html)[] — Restart the given service after this command has run.

  **Default:** Do not restart any service
