NamedPackageOptions

class aws_cdk.aws_ec2.NamedPackageOptions(*, service_restart_handles=None, version=None)

Bases: object

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

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

  • version (Optional[List[str]]) – Specify the versions to install. Default: - Install the latest version

Attributes

service_restart_handles

Restart the given services after this command has run.

Default
  • Do not restart any service

Return type

Optional[List[InitServiceRestartHandle]]

version

Specify the versions to install.

Default
  • Install the latest version

Return type

Optional[List[str]]