Class: AWSCDK::EC2::CfnNetworkInsightsAnalysisProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkInsightsAnalysisProps
- Defined in:
- ec2/cfn_network_insights_analysis_props.rb
Overview
Properties for defining a CfnNetworkInsightsAnalysis.
Instance Attribute Summary collapse
-
#additional_accounts ⇒ Array<String>?
readonly
The member accounts that contain resources that the path can traverse.
-
#filter_in_arns ⇒ Array<String>?
readonly
The Amazon Resource Names (ARN) of the resources that the path must traverse.
-
#filter_out_arns ⇒ Array<String>?
readonly
The Amazon Resource Names (ARN) of the resources that the path must ignore.
-
#network_insights_path_id ⇒ String
readonly
The ID of the path.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags to apply.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(network_insights_path_id:, additional_accounts: nil, filter_in_arns: nil, filter_out_arns: nil, tags: nil) ⇒ CfnNetworkInsightsAnalysisProps
constructor
A new instance of CfnNetworkInsightsAnalysisProps.
- #to_jsii ⇒ Object
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.
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 = .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
#additional_accounts ⇒ Array<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_arns ⇒ Array<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_arns ⇒ Array<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_id ⇒ String (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 |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags to apply.
51 52 53 |
# File 'ec2/cfn_network_insights_analysis_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |