Class: AWSCDK::Interfaces::AWSAmplifyuibuilder::ThemeReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_amplifyuibuilder/theme_reference.rb

Overview

A reference to a Theme resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_id:, environment_name:, theme_id:) ⇒ ThemeReference

Returns a new instance of ThemeReference.

Parameters:

  • app_id (String)

    The AppId of the Theme resource.

  • environment_name (String)

    The EnvironmentName of the Theme resource.

  • theme_id (String)

    The Id of the Theme resource.



10
11
12
13
14
15
16
17
# File 'interfaces/aws_amplifyuibuilder/theme_reference.rb', line 10

def initialize(app_id:, environment_name:, theme_id:)
  @app_id = app_id
  Jsii::Type.check_type(@app_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appId")
  @environment_name = environment_name
  Jsii::Type.check_type(@environment_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentName")
  @theme_id = theme_id
  Jsii::Type.check_type(@theme_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "themeId")
end

Instance Attribute Details

#app_idString (readonly)

The AppId of the Theme resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_amplifyuibuilder/theme_reference.rb', line 22

def app_id
  @app_id
end

#environment_nameString (readonly)

The EnvironmentName of the Theme resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_amplifyuibuilder/theme_reference.rb', line 26

def environment_name
  @environment_name
end

#theme_idString (readonly)

The Id of the Theme resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_amplifyuibuilder/theme_reference.rb', line 30

def theme_id
  @theme_id
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/aws_amplifyuibuilder/theme_reference.rb', line 32

def self.jsii_properties
  {
    :app_id => "appId",
    :environment_name => "environmentName",
    :theme_id => "themeId",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/aws_amplifyuibuilder/theme_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "appId" => @app_id,
    "environmentName" => @environment_name,
    "themeId" => @theme_id,
  })
  result.compact
end