Class: AWSCDK::CXAPI::Environment Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CXAPI::Environment
- Defined in:
- cxapi/environment.rb
Overview
Deprecated.
The official definition of this type has moved to @aws-cdk/cloud-assembly-api.
Models an AWS execution environment, for use within the CDK toolkit.
Instance Attribute Summary collapse
-
#account ⇒ String
readonly
The AWS account this environment deploys into.
-
#name ⇒ String
readonly
The arbitrary name of this environment (user-set, or at least user-meaningful).
-
#region ⇒ String
readonly
The AWS region name where this environment deploys into.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account:, name:, region:) ⇒ Environment
constructor
A new instance of Environment.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account:, name:, region:) ⇒ Environment
Returns a new instance of Environment.
12 13 14 15 16 17 18 19 |
# File 'cxapi/environment.rb', line 12 def initialize(account:, name:, region:) @account = account Jsii::Type.check_type(@account, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "account") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @region = region Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") end |
Instance Attribute Details
#account ⇒ String (readonly)
The AWS account this environment deploys into.
24 25 26 |
# File 'cxapi/environment.rb', line 24 def account @account end |
#name ⇒ String (readonly)
The arbitrary name of this environment (user-set, or at least user-meaningful).
28 29 30 |
# File 'cxapi/environment.rb', line 28 def name @name end |
#region ⇒ String (readonly)
The AWS region name where this environment deploys into.
32 33 34 |
# File 'cxapi/environment.rb', line 32 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
34 35 36 37 38 39 40 |
# File 'cxapi/environment.rb', line 34 def self.jsii_properties { :account => "account", :name => "name", :region => "region", } end |
Instance Method Details
#to_jsii ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'cxapi/environment.rb', line 42 def to_jsii result = {} result.merge!({ "account" => @account, "name" => @name, "region" => @region, }) result.compact end |