Class: AWSCDK::Interfaces::AWSSSM::MaintenanceWindowTaskReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsssm/maintenance_window_task_reference.rb

Overview

A reference to a MaintenanceWindowTask resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(window_id:, window_task_id:) ⇒ MaintenanceWindowTaskReference

Returns a new instance of MaintenanceWindowTaskReference.

Parameters:

  • window_id (String)

    The WindowId of the MaintenanceWindowTask resource.

  • window_task_id (String)

    The WindowTaskId of the MaintenanceWindowTask resource.



9
10
11
12
13
14
# File 'interfaces/awsssm/maintenance_window_task_reference.rb', line 9

def initialize(window_id:, window_task_id:)
  @window_id = window_id
  Jsii::Type.check_type(@window_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "windowId")
  @window_task_id = window_task_id
  Jsii::Type.check_type(@window_task_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "windowTaskId")
end

Instance Attribute Details

#window_idString (readonly)

The WindowId of the MaintenanceWindowTask resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awsssm/maintenance_window_task_reference.rb', line 19

def window_id
  @window_id
end

#window_task_idString (readonly)

The WindowTaskId of the MaintenanceWindowTask resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awsssm/maintenance_window_task_reference.rb', line 23

def window_task_id
  @window_task_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/awsssm/maintenance_window_task_reference.rb', line 25

def self.jsii_properties
  {
    :window_id => "windowId",
    :window_task_id => "windowTaskId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/awsssm/maintenance_window_task_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "windowId" => @window_id,
    "windowTaskId" => @window_task_id,
  })
  result.compact
end