Class: AWSCDK::EC2::CfnFlowLog::TagFieldSpecificationProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_type:, tag_keys:) ⇒ TagFieldSpecificationProperty

Returns a new instance of TagFieldSpecificationProperty.

Parameters:

  • resource_type (String)
  • tag_keys (Array<String>)


750
751
752
753
754
755
# File 'ec2/cfn_flow_log.rb', line 750

def initialize(resource_type:, tag_keys:)
  @resource_type = resource_type
  Jsii::Type.check_type(@resource_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType")
  @tag_keys = tag_keys
  Jsii::Type.check_type(@tag_keys, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tagKeys")
end

Instance Attribute Details

#resource_typeString (readonly)



759
760
761
# File 'ec2/cfn_flow_log.rb', line 759

def resource_type
  @resource_type
end

#tag_keysArray<String> (readonly)



762
763
764
# File 'ec2/cfn_flow_log.rb', line 762

def tag_keys
  @tag_keys
end

Class Method Details

.jsii_propertiesObject



764
765
766
767
768
769
# File 'ec2/cfn_flow_log.rb', line 764

def self.jsii_properties
  {
    :resource_type => "resourceType",
    :tag_keys => "tagKeys",
  }
end

Instance Method Details

#to_jsiiObject



771
772
773
774
775
776
777
778
# File 'ec2/cfn_flow_log.rb', line 771

def to_jsii
  result = {}
  result.merge!({
    "resourceType" => @resource_type,
    "tagKeys" => @tag_keys,
  })
  result.compact
end