Class: AWSCDK::EC2::LocationPackageOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/location_package_options.rb

Overview

Options for InitPackage.rpm/InitPackage.msi.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key: nil, service_restart_handles: nil) ⇒ LocationPackageOptions

Returns a new instance of LocationPackageOptions.

Parameters:

  • key (String, nil) (defaults to: nil)

    Identifier key for this package.

  • service_restart_handles (Array<AWSCDK::EC2::InitServiceRestartHandle>, nil) (defaults to: nil)

    Restart the given service after this command has run.



9
10
11
12
13
14
# File 'ec2/location_package_options.rb', line 9

def initialize(key: nil, service_restart_handles: nil)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil?
  @service_restart_handles = service_restart_handles
  Jsii::Type.check_type(@service_restart_handles, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSW5pdFNlcnZpY2VSZXN0YXJ0SGFuZGxlIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "serviceRestartHandles") unless @service_restart_handles.nil?
end

Instance Attribute Details

#keyString? (readonly)

Note:

Default: - Automatically generated

Identifier key for this package.

You can use this to order package installs.

Returns:

  • (String, nil)


22
23
24
# File 'ec2/location_package_options.rb', line 22

def key
  @key
end

#service_restart_handlesArray<AWSCDK::EC2::InitServiceRestartHandle>? (readonly)

Note:

Default: - Do not restart any service

Restart the given service after this command has run.

Returns:



27
28
29
# File 'ec2/location_package_options.rb', line 27

def service_restart_handles
  @service_restart_handles
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'ec2/location_package_options.rb', line 29

def self.jsii_properties
  {
    :key => "key",
    :service_restart_handles => "serviceRestartHandles",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'ec2/location_package_options.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "serviceRestartHandles" => @service_restart_handles,
  })
  result.compact
end