Class: AWSCDK::CXAPI::EnvironmentPlaceholderValues Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CXAPI::EnvironmentPlaceholderValues
- Defined in:
- cxapi/environment_placeholder_values.rb
Overview
Deprecated.
The definition of this type has moved to @aws-cdk/cloud-assembly-api.
Return the appropriate values for the environment placeholders.
Instance Attribute Summary collapse
-
#account_id ⇒ String
readonly
Return the account.
-
#partition ⇒ String
readonly
Return the partition.
-
#region ⇒ String
readonly
Return the region.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:, partition:, region:) ⇒ EnvironmentPlaceholderValues
constructor
A new instance of EnvironmentPlaceholderValues.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_id:, partition:, region:) ⇒ EnvironmentPlaceholderValues
Returns a new instance of EnvironmentPlaceholderValues.
12 13 14 15 16 17 18 19 |
# File 'cxapi/environment_placeholder_values.rb', line 12 def initialize(account_id:, partition:, region:) @account_id = account_id Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId") @partition = partition Jsii::Type.check_type(@partition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "partition") @region = region Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") end |
Instance Attribute Details
#account_id ⇒ String (readonly)
Return the account.
24 25 26 |
# File 'cxapi/environment_placeholder_values.rb', line 24 def account_id @account_id end |
#partition ⇒ String (readonly)
Return the partition.
28 29 30 |
# File 'cxapi/environment_placeholder_values.rb', line 28 def partition @partition end |
#region ⇒ String (readonly)
Return the region.
32 33 34 |
# File 'cxapi/environment_placeholder_values.rb', line 32 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
34 35 36 37 38 39 40 |
# File 'cxapi/environment_placeholder_values.rb', line 34 def self.jsii_properties { :account_id => "accountId", :partition => "partition", :region => "region", } end |
Instance Method Details
#to_jsii ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'cxapi/environment_placeholder_values.rb', line 42 def to_jsii result = {} result.merge!({ "accountId" => @account_id, "partition" => @partition, "region" => @region, }) result.compact end |