Class: AWSCDK::EC2::CfnNetworkInsightsAnalysisProps

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

Overview

Properties for defining a CfnNetworkInsightsAnalysis.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network_insights_path_id:, additional_accounts: nil, filter_in_arns: nil, filter_out_arns: nil, tags: nil) ⇒ CfnNetworkInsightsAnalysisProps

Returns a new instance of CfnNetworkInsightsAnalysisProps.

Parameters:

  • network_insights_path_id (String)

    The ID of the path.

  • additional_accounts (Array<String>, nil) (defaults to: nil)

    The member accounts that contain resources that the path can traverse.

  • filter_in_arns (Array<String>, nil) (defaults to: nil)

    The Amazon Resource Names (ARN) of the resources that the path must traverse.

  • filter_out_arns (Array<String>, nil) (defaults to: nil)

    The Amazon Resource Names (ARN) of the resources that the path must ignore.

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

    The tags to apply.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'ec2/cfn_network_insights_analysis_props.rb', line 14

def initialize(network_insights_path_id:, additional_accounts: nil, filter_in_arns: nil, filter_out_arns: nil, tags: nil)
  @network_insights_path_id = network_insights_path_id
  Jsii::Type.check_type(@network_insights_path_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkInsightsPathId")
  @additional_accounts = additional_accounts
  Jsii::Type.check_type(@additional_accounts, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "additionalAccounts") unless @additional_accounts.nil?
  @filter_in_arns = filter_in_arns
  Jsii::Type.check_type(@filter_in_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "filterInArns") unless @filter_in_arns.nil?
  @filter_out_arns = filter_out_arns
  Jsii::Type.check_type(@filter_out_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "filterOutArns") unless @filter_out_arns.nil?
  @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

#additional_accountsArray<String>? (readonly)

The member accounts that contain resources that the path can traverse.



36
37
38
# File 'ec2/cfn_network_insights_analysis_props.rb', line 36

def additional_accounts
  @additional_accounts
end

#filter_in_arnsArray<String>? (readonly)

The Amazon Resource Names (ARN) of the resources that the path must traverse.



41
42
43
# File 'ec2/cfn_network_insights_analysis_props.rb', line 41

def filter_in_arns
  @filter_in_arns
end

#filter_out_arnsArray<String>? (readonly)

The Amazon Resource Names (ARN) of the resources that the path must ignore.



46
47
48
# File 'ec2/cfn_network_insights_analysis_props.rb', line 46

def filter_out_arns
  @filter_out_arns
end

#network_insights_path_idString (readonly)

The ID of the path.



31
32
33
# File 'ec2/cfn_network_insights_analysis_props.rb', line 31

def network_insights_path_id
  @network_insights_path_id
end

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

The tags to apply.



51
52
53
# File 'ec2/cfn_network_insights_analysis_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'ec2/cfn_network_insights_analysis_props.rb', line 53

def self.jsii_properties
  {
    :network_insights_path_id => "networkInsightsPathId",
    :additional_accounts => "additionalAccounts",
    :filter_in_arns => "filterInArns",
    :filter_out_arns => "filterOutArns",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'ec2/cfn_network_insights_analysis_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "networkInsightsPathId" => @network_insights_path_id,
    "additionalAccounts" => @additional_accounts,
    "filterInArns" => @filter_in_arns,
    "filterOutArns" => @filter_out_arns,
    "tags" => @tags,
  })
  result.compact
end