Class: AWSCDK::Interfaces::AWSAppconfig::EnvironmentReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_appconfig/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(application_id:, environment_id:) ⇒ EnvironmentReference

Returns a new instance of EnvironmentReference.

Parameters:

  • application_id (String)

    The ApplicationId of the Environment resource.

  • environment_id (String)

    The EnvironmentId of the Environment resource.



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

def initialize(application_id:, environment_id:)
  @application_id = application_id
  Jsii::Type.check_type(@application_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationId")
  @environment_id = environment_id
  Jsii::Type.check_type(@environment_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentId")
end

Instance Attribute Details

#application_idString (readonly)

The ApplicationId of the Environment resource.

Returns:

  • (String)


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

def application_id
  @application_id
end

#environment_idString (readonly)

The EnvironmentId of the Environment resource.

Returns:

  • (String)


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

def environment_id
  @environment_id
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :application_id => "applicationId",
    :environment_id => "environmentId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "applicationId" => @application_id,
    "environmentId" => @environment_id,
  })
  result.compact
end