Class: AWSCDK::NetworkManager::CfnTransitGatewayPeeringProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkManager::CfnTransitGatewayPeeringProps
- Defined in:
- network_manager/cfn_transit_gateway_peering_props.rb
Overview
Properties for defining a CfnTransitGatewayPeering.
Instance Attribute Summary collapse
-
#core_network_id ⇒ String
readonly
The ID of the core network.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The list of key-value tags associated with the peering.
-
#transit_gateway_arn ⇒ String
readonly
The ARN of the transit gateway.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(core_network_id:, transit_gateway_arn:, tags: nil) ⇒ CfnTransitGatewayPeeringProps
constructor
A new instance of CfnTransitGatewayPeeringProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(core_network_id:, transit_gateway_arn:, tags: nil) ⇒ CfnTransitGatewayPeeringProps
Returns a new instance of CfnTransitGatewayPeeringProps.
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 = .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
#core_network_id ⇒ String (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 |
#tags ⇒ Array<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 end |
#transit_gateway_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |