Class: AWSCDK::NetworkManager::CfnGlobalNetworkProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkManager::CfnGlobalNetworkProps
- Defined in:
- network_manager/cfn_global_network_props.rb
Overview
Properties for defining a CfnGlobalNetwork.
Instance Attribute Summary collapse
-
#created_at ⇒ String?
readonly
The date and time that the global network was created.
-
#description ⇒ String?
readonly
A description of the global network.
-
#state ⇒ String?
readonly
The state of the global network.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags for the global network.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(created_at: nil, description: nil, state: nil, tags: nil) ⇒ CfnGlobalNetworkProps
constructor
A new instance of CfnGlobalNetworkProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(created_at: nil, description: nil, state: nil, tags: nil) ⇒ CfnGlobalNetworkProps
Returns a new instance of CfnGlobalNetworkProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'network_manager/cfn_global_network_props.rb', line 13 def initialize(created_at: nil, description: nil, state: nil, tags: nil) @created_at = created_at Jsii::Type.check_type(@created_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdAt") unless @created_at.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @state = state Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.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
#created_at ⇒ String? (readonly)
The date and time that the global network was created.
28 29 30 |
# File 'network_manager/cfn_global_network_props.rb', line 28 def created_at @created_at end |
#description ⇒ String? (readonly)
A description of the global network.
Constraints: Maximum length of 256 characters.
35 36 37 |
# File 'network_manager/cfn_global_network_props.rb', line 35 def description @description end |
#state ⇒ String? (readonly)
The state of the global network.
40 41 42 |
# File 'network_manager/cfn_global_network_props.rb', line 40 def state @state end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags for the global network.
45 46 47 |
# File 'network_manager/cfn_global_network_props.rb', line 45 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'network_manager/cfn_global_network_props.rb', line 47 def self.jsii_properties { :created_at => "createdAt", :description => "description", :state => "state", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'network_manager/cfn_global_network_props.rb', line 56 def to_jsii result = {} result.merge!({ "createdAt" => @created_at, "description" => @description, "state" => @state, "tags" => @tags, }) result.compact end |