Class: AWSCDK::EC2::CfnNetworkInsightsAccessScope::AccessScopePathRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkInsightsAccessScope::AccessScopePathRequestProperty
- Defined in:
- ec2/cfn_network_insights_access_scope.rb
Overview
Describes a path.
Instance Attribute Summary collapse
-
#destination ⇒ AWSCDK::IResolvable, ...
readonly
The destination.
-
#source ⇒ AWSCDK::IResolvable, ...
readonly
The source.
-
#through_resources ⇒ AWSCDK::IResolvable, ...
readonly
The through resources.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination: nil, source: nil, through_resources: nil) ⇒ AccessScopePathRequestProperty
constructor
A new instance of AccessScopePathRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination: nil, source: nil, through_resources: nil) ⇒ AccessScopePathRequestProperty
Returns a new instance of AccessScopePathRequestProperty.
599 600 601 602 603 604 605 606 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 599 def initialize(destination: nil, source: nil, through_resources: nil) @destination = destination.is_a?(Hash) ? ::AWSCDK::EC2::CfnNetworkInsightsAccessScope::PathStatementRequestProperty.new(**destination.transform_keys(&:to_sym)) : destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuTmV0d29ya0luc2lnaHRzQWNjZXNzU2NvcGUuUGF0aFN0YXRlbWVudFJlcXVlc3RQcm9wZXJ0eSJ9XX19")), "destination") unless @destination.nil? @source = source.is_a?(Hash) ? ::AWSCDK::EC2::CfnNetworkInsightsAccessScope::PathStatementRequestProperty.new(**source.transform_keys(&:to_sym)) : source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuTmV0d29ya0luc2lnaHRzQWNjZXNzU2NvcGUuUGF0aFN0YXRlbWVudFJlcXVlc3RQcm9wZXJ0eSJ9XX19")), "source") unless @source.nil? @through_resources = through_resources Jsii::Type.check_type(@through_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbk5ldHdvcmtJbnNpZ2h0c0FjY2Vzc1Njb3BlLlRocm91Z2hSZXNvdXJjZXNTdGF0ZW1lbnRSZXF1ZXN0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "throughResources") unless @through_resources.nil? end |
Instance Attribute Details
#destination ⇒ AWSCDK::IResolvable, ... (readonly)
The destination.
612 613 614 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 612 def destination @destination end |
#source ⇒ AWSCDK::IResolvable, ... (readonly)
The source.
617 618 619 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 617 def source @source end |
#through_resources ⇒ AWSCDK::IResolvable, ... (readonly)
The through resources.
622 623 624 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 622 def through_resources @through_resources end |
Class Method Details
.jsii_properties ⇒ Object
624 625 626 627 628 629 630 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 624 def self.jsii_properties { :destination => "destination", :source => "source", :through_resources => "throughResources", } end |
Instance Method Details
#to_jsii ⇒ Object
632 633 634 635 636 637 638 639 640 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 632 def to_jsii result = {} result.merge!({ "destination" => @destination, "source" => @source, "throughResources" => @through_resources, }) result.compact end |