Class: AWSCDK::EC2::LocationPackageOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::LocationPackageOptions
- Defined in:
- ec2/location_package_options.rb
Overview
Options for InitPackage.rpm/InitPackage.msi.
Instance Attribute Summary collapse
-
#key ⇒ String?
readonly
Identifier key for this package.
-
#service_restart_handles ⇒ Array<AWSCDK::EC2::InitServiceRestartHandle>?
readonly
Restart the given service after this command has run.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, service_restart_handles: nil) ⇒ LocationPackageOptions
constructor
A new instance of LocationPackageOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key: nil, service_restart_handles: nil) ⇒ LocationPackageOptions
Returns a new instance of LocationPackageOptions.
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
#key ⇒ String? (readonly)
Note:
Default: - Automatically generated
Identifier key for this package.
You can use this to order package installs.
22 23 24 |
# File 'ec2/location_package_options.rb', line 22 def key @key end |
#service_restart_handles ⇒ Array<AWSCDK::EC2::InitServiceRestartHandle>? (readonly)
Note:
Default: - Do not restart any service
Restart the given service after this command has run.
27 28 29 |
# File 'ec2/location_package_options.rb', line 27 def service_restart_handles @service_restart_handles end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |