Class: AWSCDK::RefactorSpaces::CfnEnvironmentProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RefactorSpaces::CfnEnvironmentProps
- Defined in:
- refactor_spaces/cfn_environment_props.rb
Overview
Properties for defining a CfnEnvironment.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the environment.
-
#name ⇒ String?
readonly
The name of the environment.
-
#network_fabric_type ⇒ String?
readonly
The network fabric type of the environment.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags assigned to the environment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, name: nil, network_fabric_type: nil, tags: nil) ⇒ CfnEnvironmentProps
constructor
A new instance of CfnEnvironmentProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, name: nil, network_fabric_type: nil, tags: nil) ⇒ CfnEnvironmentProps
Returns a new instance of CfnEnvironmentProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'refactor_spaces/cfn_environment_props.rb', line 13 def initialize(description: nil, name: nil, network_fabric_type: nil, tags: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @network_fabric_type = network_fabric_type Jsii::Type.check_type(@network_fabric_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkFabricType") unless @network_fabric_type.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
A description of the environment.
28 29 30 |
# File 'refactor_spaces/cfn_environment_props.rb', line 28 def description @description end |
#name ⇒ String? (readonly)
The name of the environment.
33 34 35 |
# File 'refactor_spaces/cfn_environment_props.rb', line 33 def name @name end |
#network_fabric_type ⇒ String? (readonly)
The network fabric type of the environment.
38 39 40 |
# File 'refactor_spaces/cfn_environment_props.rb', line 38 def network_fabric_type @network_fabric_type end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags assigned to the environment.
43 44 45 |
# File 'refactor_spaces/cfn_environment_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'refactor_spaces/cfn_environment_props.rb', line 45 def self.jsii_properties { :description => "description", :name => "name", :network_fabric_type => "networkFabricType", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'refactor_spaces/cfn_environment_props.rb', line 54 def to_jsii result = {} result.merge!({ "description" => @description, "name" => @name, "networkFabricType" => @network_fabric_type, "tags" => @tags, }) result.compact end |