Class: AWSCDK::Interconnect::CfnConnection::AttachPointProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interconnect/cfn_connection.rb

Overview

The logical attachment point in your AWS network where the managed connection will be connected.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil, direct_connect_gateway: nil) ⇒ AttachPointProperty

Returns a new instance of AttachPointProperty.

Parameters:

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

    The ARN of the resource to attach to.

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

    The ID of the Direct Connect Gateway to attach to.



670
671
672
673
674
675
# File 'interconnect/cfn_connection.rb', line 670

def initialize(arn: nil, direct_connect_gateway: nil)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil?
  @direct_connect_gateway = direct_connect_gateway
  Jsii::Type.check_type(@direct_connect_gateway, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "directConnectGateway") unless @direct_connect_gateway.nil?
end

Instance Attribute Details

#arnString? (readonly)

The ARN of the resource to attach to.



681
682
683
# File 'interconnect/cfn_connection.rb', line 681

def arn
  @arn
end

#direct_connect_gatewayString? (readonly)

The ID of the Direct Connect Gateway to attach to.



686
687
688
# File 'interconnect/cfn_connection.rb', line 686

def direct_connect_gateway
  @direct_connect_gateway
end

Class Method Details

.jsii_propertiesObject



688
689
690
691
692
693
# File 'interconnect/cfn_connection.rb', line 688

def self.jsii_properties
  {
    :arn => "arn",
    :direct_connect_gateway => "directConnectGateway",
  }
end

Instance Method Details

#to_jsiiObject



695
696
697
698
699
700
701
702
# File 'interconnect/cfn_connection.rb', line 695

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
    "directConnectGateway" => @direct_connect_gateway,
  })
  result.compact
end