Class: AWSCDK::EC2::CfnNetworkInsightsAnalysis::AnalysisComponentProperty

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

Overview

Describes a path component.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil, id: nil) ⇒ AnalysisComponentProperty

Returns a new instance of AnalysisComponentProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the component.

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

    The ID of the component.



869
870
871
872
873
874
# File 'ec2/cfn_network_insights_analysis.rb', line 869

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

Instance Attribute Details

#arnString? (readonly)

The Amazon Resource Name (ARN) of the component.



880
881
882
# File 'ec2/cfn_network_insights_analysis.rb', line 880

def arn
  @arn
end

#idString? (readonly)

The ID of the component.



885
886
887
# File 'ec2/cfn_network_insights_analysis.rb', line 885

def id
  @id
end

Class Method Details

.jsii_propertiesObject



887
888
889
890
891
892
# File 'ec2/cfn_network_insights_analysis.rb', line 887

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

Instance Method Details

#to_jsiiObject



894
895
896
897
898
899
900
901
# File 'ec2/cfn_network_insights_analysis.rb', line 894

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