Class: AWSCDK::EC2::CfnNetworkInsightsAnalysis::AlternatePathHintProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_network_insights_analysis.rb

Overview

Describes an potential intermediate component of a feasible path.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_arn: nil, component_id: nil) ⇒ AlternatePathHintProperty

Returns a new instance of AlternatePathHintProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the component.

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

    The ID of the component.



743
744
745
746
747
748
# File 'ec2/cfn_network_insights_analysis.rb', line 743

def initialize(component_arn: nil, component_id: nil)
  @component_arn = component_arn
  Jsii::Type.check_type(@component_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentArn") unless @component_arn.nil?
  @component_id = component_id
  Jsii::Type.check_type(@component_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentId") unless @component_id.nil?
end

Instance Attribute Details

#component_arnString? (readonly)

The Amazon Resource Name (ARN) of the component.



754
755
756
# File 'ec2/cfn_network_insights_analysis.rb', line 754

def component_arn
  @component_arn
end

#component_idString? (readonly)

The ID of the component.



759
760
761
# File 'ec2/cfn_network_insights_analysis.rb', line 759

def component_id
  @component_id
end

Class Method Details

.jsii_propertiesObject



761
762
763
764
765
766
# File 'ec2/cfn_network_insights_analysis.rb', line 761

def self.jsii_properties
  {
    :component_arn => "componentArn",
    :component_id => "componentId",
  }
end

Instance Method Details

#to_jsiiObject



768
769
770
771
772
773
774
775
# File 'ec2/cfn_network_insights_analysis.rb', line 768

def to_jsii
  result = {}
  result.merge!({
    "componentArn" => @component_arn,
    "componentId" => @component_id,
  })
  result.compact
end