Class: AWSCDK::NetworkManager::CfnGlobalNetworkProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_manager/cfn_global_network_props.rb

Overview

Properties for defining a CfnGlobalNetwork.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(created_at: nil, description: nil, state: nil, tags: nil) ⇒ CfnGlobalNetworkProps

Returns a new instance of CfnGlobalNetworkProps.

Parameters:

  • created_at (String, nil) (defaults to: nil)

    The date and time that the global network was created.

  • description (String, nil) (defaults to: nil)

    A description of the global network.

  • state (String, nil) (defaults to: nil)

    The state of the global network.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags for the global network.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#created_atString? (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

#descriptionString? (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

#stateString? (readonly)

The state of the global network.



40
41
42
# File 'network_manager/cfn_global_network_props.rb', line 40

def state
  @state
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags for the global network.



45
46
47
# File 'network_manager/cfn_global_network_props.rb', line 45

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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