LocationPackageOptions

class aws_cdk.aws_ec2.LocationPackageOptions(*, key=None, service_restart_handles=None)

Bases: object

Options for InitPackage.rpm/InitPackage.msi.

Parameters:
  • key (Optional[str]) – Identifier key for this package. You can use this to order package installs. Default: - Automatically generated

  • service_restart_handles (Optional[Sequence[InitServiceRestartHandle]]) – Restart the given service after this command has run. Default: - Do not restart any service

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

# init_service_restart_handle: ec2.InitServiceRestartHandle

location_package_options = ec2.LocationPackageOptions(
    key="key",
    service_restart_handles=[init_service_restart_handle]
)

Attributes

key

Identifier key for this package.

You can use this to order package installs.

Default:
  • Automatically generated

service_restart_handles

Restart the given service after this command has run.

Default:
  • Do not restart any service