Class: AWSCDK::EC2::CfnNetworkInsightsAccessScope::ResourceStatementRequestProperty

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

Overview

Describes a resource statement.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resources: nil, resource_types: nil) ⇒ ResourceStatementRequestProperty

Returns a new instance of ResourceStatementRequestProperty.

Parameters:

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

    The resources.

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

    The resource types.



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_typesArray<String>? (readonly)

The resource types.



803
804
805
# File 'ec2/cfn_network_insights_access_scope.rb', line 803

def resource_types
  @resource_types
end

#resourcesArray<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_propertiesObject



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_jsiiObject



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