Class: AWSCDK::EC2::CfnNetworkInsightsAccessScopeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkInsightsAccessScopeProps
- Defined in:
- ec2/cfn_network_insights_access_scope_props.rb
Overview
Properties for defining a CfnNetworkInsightsAccessScope.
Instance Attribute Summary collapse
-
#exclude_paths ⇒ AWSCDK::IResolvable, ...
readonly
The paths to exclude.
-
#match_paths ⇒ AWSCDK::IResolvable, ...
readonly
The paths to match.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exclude_paths: nil, match_paths: nil, tags: nil) ⇒ CfnNetworkInsightsAccessScopeProps
constructor
A new instance of CfnNetworkInsightsAccessScopeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exclude_paths: nil, match_paths: nil, tags: nil) ⇒ CfnNetworkInsightsAccessScopeProps
Returns a new instance of CfnNetworkInsightsAccessScopeProps.
12 13 14 15 16 17 18 19 |
# File 'ec2/cfn_network_insights_access_scope_props.rb', line 12 def initialize(exclude_paths: nil, match_paths: nil, tags: nil) @exclude_paths = exclude_paths Jsii::Type.check_type(@exclude_paths, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbk5ldHdvcmtJbnNpZ2h0c0FjY2Vzc1Njb3BlLkFjY2Vzc1Njb3BlUGF0aFJlcXVlc3RQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "excludePaths") unless @exclude_paths.nil? @match_paths = match_paths Jsii::Type.check_type(@match_paths, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbk5ldHdvcmtJbnNpZ2h0c0FjY2Vzc1Njb3BlLkFjY2Vzc1Njb3BlUGF0aFJlcXVlc3RQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "matchPaths") unless @match_paths.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
#exclude_paths ⇒ AWSCDK::IResolvable, ... (readonly)
The paths to exclude.
25 26 27 |
# File 'ec2/cfn_network_insights_access_scope_props.rb', line 25 def exclude_paths @exclude_paths end |
#match_paths ⇒ AWSCDK::IResolvable, ... (readonly)
The paths to match.
30 31 32 |
# File 'ec2/cfn_network_insights_access_scope_props.rb', line 30 def match_paths @match_paths end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags.
35 36 37 |
# File 'ec2/cfn_network_insights_access_scope_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'ec2/cfn_network_insights_access_scope_props.rb', line 37 def self.jsii_properties { :exclude_paths => "excludePaths", :match_paths => "matchPaths", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'ec2/cfn_network_insights_access_scope_props.rb', line 45 def to_jsii result = {} result.merge!({ "excludePaths" => @exclude_paths, "matchPaths" => @match_paths, "tags" => @tags, }) result.compact end |