Class: AWSCDK::Interfaces::AWSIotsitewise::DashboardReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_iotsitewise/dashboard_reference.rb

Overview

A reference to a Dashboard resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dashboard_arn:, dashboard_id:) ⇒ DashboardReference

Returns a new instance of DashboardReference.

Parameters:

  • dashboard_arn (String)

    The ARN of the Dashboard resource.

  • dashboard_id (String)

    The DashboardId of the Dashboard resource.



9
10
11
12
13
14
# File 'interfaces/aws_iotsitewise/dashboard_reference.rb', line 9

def initialize(dashboard_arn:, dashboard_id:)
  @dashboard_arn = dashboard_arn
  Jsii::Type.check_type(@dashboard_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dashboardArn")
  @dashboard_id = dashboard_id
  Jsii::Type.check_type(@dashboard_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dashboardId")
end

Instance Attribute Details

#dashboard_arnString (readonly)

The ARN of the Dashboard resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_iotsitewise/dashboard_reference.rb', line 19

def dashboard_arn
  @dashboard_arn
end

#dashboard_idString (readonly)

The DashboardId of the Dashboard resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_iotsitewise/dashboard_reference.rb', line 23

def dashboard_id
  @dashboard_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_iotsitewise/dashboard_reference.rb', line 25

def self.jsii_properties
  {
    :dashboard_arn => "dashboardArn",
    :dashboard_id => "dashboardId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "dashboardArn" => @dashboard_arn,
    "dashboardId" => @dashboard_id,
  })
  result.compact
end