Class: AWSCDK::NetworkManager::CfnTransitGatewayPeeringProps

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

Overview

Properties for defining a CfnTransitGatewayPeering.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(core_network_id:, transit_gateway_arn:, tags: nil) ⇒ CfnTransitGatewayPeeringProps

Returns a new instance of CfnTransitGatewayPeeringProps.

Parameters:

  • core_network_id (String)

    The ID of the core network.

  • transit_gateway_arn (String)

    The ARN of the transit gateway.

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

    The list of key-value tags associated with the peering.



12
13
14
15
16
17
18
19
# File 'network_manager/cfn_transit_gateway_peering_props.rb', line 12

def initialize(core_network_id:, transit_gateway_arn:, tags: nil)
  @core_network_id = core_network_id
  Jsii::Type.check_type(@core_network_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "coreNetworkId")
  @transit_gateway_arn = transit_gateway_arn
  Jsii::Type.check_type(@transit_gateway_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transitGatewayArn")
  @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

#core_network_idString (readonly)

The ID of the core network.



25
26
27
# File 'network_manager/cfn_transit_gateway_peering_props.rb', line 25

def core_network_id
  @core_network_id
end

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

The list of key-value tags associated with the peering.



35
36
37
# File 'network_manager/cfn_transit_gateway_peering_props.rb', line 35

def tags
  @tags
end

#transit_gateway_arnString (readonly)

The ARN of the transit gateway.



30
31
32
# File 'network_manager/cfn_transit_gateway_peering_props.rb', line 30

def transit_gateway_arn
  @transit_gateway_arn
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'network_manager/cfn_transit_gateway_peering_props.rb', line 37

def self.jsii_properties
  {
    :core_network_id => "coreNetworkId",
    :transit_gateway_arn => "transitGatewayArn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'network_manager/cfn_transit_gateway_peering_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "coreNetworkId" => @core_network_id,
    "transitGatewayArn" => @transit_gateway_arn,
    "tags" => @tags,
  })
  result.compact
end