Class: AWSCDK::FMS::CfnPolicy::IcmpTypeCodeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fms/cfn_policy.rb

Overview

ICMP protocol: The ICMP type and code.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, type:) ⇒ IcmpTypeCodeProperty

Returns a new instance of IcmpTypeCodeProperty.

Parameters:

  • code (Numeric)

    ICMP code.

  • type (Numeric)

    ICMP type.



784
785
786
787
788
789
# File 'fms/cfn_policy.rb', line 784

def initialize(code:, type:)
  @code = code
  Jsii::Type.check_type(@code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "code")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "type")
end

Instance Attribute Details

#codeNumeric (readonly)

ICMP code.



795
796
797
# File 'fms/cfn_policy.rb', line 795

def code
  @code
end

#typeNumeric (readonly)

ICMP type.



800
801
802
# File 'fms/cfn_policy.rb', line 800

def type
  @type
end

Class Method Details

.jsii_propertiesObject



802
803
804
805
806
807
# File 'fms/cfn_policy.rb', line 802

def self.jsii_properties
  {
    :code => "code",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



809
810
811
812
813
814
815
816
# File 'fms/cfn_policy.rb', line 809

def to_jsii
  result = {}
  result.merge!({
    "code" => @code,
    "type" => @type,
  })
  result.compact
end