Class: AWSCDK::AppConfig::EnvironmentAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppConfig::EnvironmentAttributes
- Defined in:
- app_config/environment_attributes.rb
Overview
Attributes of an existing AWS AppConfig environment to import it.
Instance Attribute Summary collapse
-
#application ⇒ AWSCDK::AppConfig::IApplication
readonly
The application associated with the environment.
-
#description ⇒ String?
readonly
The description of the environment.
-
#environment_id ⇒ String
readonly
The ID of the environment.
-
#monitors ⇒ Array<AWSCDK::AppConfig::Monitor>?
readonly
The monitors for the environment.
-
#name ⇒ String?
readonly
The name of the environment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application:, environment_id:, description: nil, monitors: nil, name: nil) ⇒ EnvironmentAttributes
constructor
A new instance of EnvironmentAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application:, environment_id:, description: nil, monitors: nil, name: nil) ⇒ EnvironmentAttributes
Returns a new instance of EnvironmentAttributes.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app_config/environment_attributes.rb', line 12 def initialize(application:, environment_id:, description: nil, monitors: nil, name: nil) @application = application Jsii::Type.check_type(@application, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklBcHBsaWNhdGlvbiJ9")), "application") @environment_id = environment_id Jsii::Type.check_type(@environment_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentId") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @monitors = monitors Jsii::Type.check_type(@monitors, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBjb25maWcuTW9uaXRvciJ9LCJraW5kIjoiYXJyYXkifX0=")), "monitors") unless @monitors.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#application ⇒ AWSCDK::AppConfig::IApplication (readonly)
The application associated with the environment.
28 29 30 |
# File 'app_config/environment_attributes.rb', line 28 def application @application end |
#description ⇒ String? (readonly)
Note:
Default: - None.
The description of the environment.
37 38 39 |
# File 'app_config/environment_attributes.rb', line 37 def description @description end |
#environment_id ⇒ String (readonly)
The ID of the environment.
32 33 34 |
# File 'app_config/environment_attributes.rb', line 32 def environment_id @environment_id end |
#monitors ⇒ Array<AWSCDK::AppConfig::Monitor>? (readonly)
Note:
Default: - None.
The monitors for the environment.
42 43 44 |
# File 'app_config/environment_attributes.rb', line 42 def monitors @monitors end |
#name ⇒ String? (readonly)
Note:
Default: - None.
The name of the environment.
47 48 49 |
# File 'app_config/environment_attributes.rb', line 47 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'app_config/environment_attributes.rb', line 49 def self.jsii_properties { :application => "application", :environment_id => "environmentId", :description => "description", :monitors => "monitors", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'app_config/environment_attributes.rb', line 59 def to_jsii result = {} result.merge!({ "application" => @application, "environmentId" => @environment_id, "description" => @description, "monitors" => @monitors, "name" => @name, }) result.compact end |