Class: AWSCDK::Interfaces::AWSMWAA::EnvironmentReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsmwaa/environment_reference.rb

Overview

A reference to a Environment resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment_arn:, environment_name:) ⇒ EnvironmentReference

Returns a new instance of EnvironmentReference.

Parameters:

  • environment_arn (String)

    The ARN of the Environment resource.

  • environment_name (String)

    The Name of the Environment resource.



9
10
11
12
13
14
# File 'interfaces/awsmwaa/environment_reference.rb', line 9

def initialize(environment_arn:, environment_name:)
  @environment_arn = environment_arn
  Jsii::Type.check_type(@environment_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentArn")
  @environment_name = environment_name
  Jsii::Type.check_type(@environment_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentName")
end

Instance Attribute Details

#environment_arnString (readonly)

The ARN of the Environment resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awsmwaa/environment_reference.rb', line 19

def environment_arn
  @environment_arn
end

#environment_nameString (readonly)

The Name of the Environment resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awsmwaa/environment_reference.rb', line 23

def environment_name
  @environment_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/awsmwaa/environment_reference.rb', line 25

def self.jsii_properties
  {
    :environment_arn => "environmentArn",
    :environment_name => "environmentName",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "environmentArn" => @environment_arn,
    "environmentName" => @environment_name,
  })
  result.compact
end