Class: AWSCDK::Interfaces::AWSAppconfig::EnvironmentReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSAppconfig::EnvironmentReference
- Defined in:
- interfaces/aws_appconfig/environment_reference.rb
Overview
A reference to a Environment resource.
Instance Attribute Summary collapse
-
#application_id ⇒ String
readonly
The ApplicationId of the Environment resource.
-
#environment_id ⇒ String
readonly
The EnvironmentId of the Environment resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_id:, environment_id:) ⇒ EnvironmentReference
constructor
A new instance of EnvironmentReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_id:, environment_id:) ⇒ EnvironmentReference
Returns a new instance of EnvironmentReference.
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_id ⇒ String (readonly)
The ApplicationId of the Environment resource.
19 20 21 |
# File 'interfaces/aws_appconfig/environment_reference.rb', line 19 def application_id @application_id end |
#environment_id ⇒ String (readonly)
The EnvironmentId of the Environment resource.
23 24 25 |
# File 'interfaces/aws_appconfig/environment_reference.rb', line 23 def environment_id @environment_id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |