Class: AWSCDK::EC2::CfnNetworkInsightsAccessScope::ResourceStatementRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkInsightsAccessScope::ResourceStatementRequestProperty
- Defined in:
- ec2/cfn_network_insights_access_scope.rb
Overview
Describes a resource statement.
Instance Attribute Summary collapse
-
#resource_types ⇒ Array<String>?
readonly
The resource types.
-
#resources ⇒ Array<String>?
readonly
The resources.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resources: nil, resource_types: nil) ⇒ ResourceStatementRequestProperty
constructor
A new instance of ResourceStatementRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resources: nil, resource_types: nil) ⇒ ResourceStatementRequestProperty
Returns a new instance of ResourceStatementRequestProperty.
787 788 789 790 791 792 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 787 def initialize(resources: nil, resource_types: nil) @resources = resources Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "resources") unless @resources.nil? @resource_types = resource_types Jsii::Type.check_type(@resource_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "resourceTypes") unless @resource_types.nil? end |
Instance Attribute Details
#resource_types ⇒ Array<String>? (readonly)
The resource types.
803 804 805 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 803 def resource_types @resource_types end |
#resources ⇒ Array<String>? (readonly)
The resources.
798 799 800 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 798 def resources @resources end |
Class Method Details
.jsii_properties ⇒ Object
805 806 807 808 809 810 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 805 def self.jsii_properties { :resources => "resources", :resource_types => "resourceTypes", } end |
Instance Method Details
#to_jsii ⇒ Object
812 813 814 815 816 817 818 819 |
# File 'ec2/cfn_network_insights_access_scope.rb', line 812 def to_jsii result = {} result.merge!({ "resources" => @resources, "resourceTypes" => @resource_types, }) result.compact end |