Class: AWSCDK::Interfaces::AWSIot::ResourceSpecificLoggingReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_iot/resource_specific_logging_reference.rb

Overview

A reference to a ResourceSpecificLogging resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_id:) ⇒ ResourceSpecificLoggingReference

Returns a new instance of ResourceSpecificLoggingReference.

Parameters:

  • target_id (String)

    The TargetId of the ResourceSpecificLogging resource.



8
9
10
11
# File 'interfaces/aws_iot/resource_specific_logging_reference.rb', line 8

def initialize(target_id:)
  @target_id = target_id
  Jsii::Type.check_type(@target_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetId")
end

Instance Attribute Details

#target_idString (readonly)

The TargetId of the ResourceSpecificLogging resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/aws_iot/resource_specific_logging_reference.rb', line 16

def target_id
  @target_id
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/aws_iot/resource_specific_logging_reference.rb', line 18

def self.jsii_properties
  {
    :target_id => "targetId",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/aws_iot/resource_specific_logging_reference.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "targetId" => @target_id,
  })
  result.compact
end