Class: AWSCDK::FMS::CfnPolicy::IcmpTypeCodeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FMS::CfnPolicy::IcmpTypeCodeProperty
- Defined in:
- fms/cfn_policy.rb
Overview
ICMP protocol: The ICMP type and code.
Instance Attribute Summary collapse
-
#code ⇒ Numeric
readonly
ICMP code.
-
#type ⇒ Numeric
readonly
ICMP type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code:, type:) ⇒ IcmpTypeCodeProperty
constructor
A new instance of IcmpTypeCodeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code:, type:) ⇒ IcmpTypeCodeProperty
Returns a new instance of IcmpTypeCodeProperty.
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
#code ⇒ Numeric (readonly)
ICMP code.
795 796 797 |
# File 'fms/cfn_policy.rb', line 795 def code @code end |
#type ⇒ Numeric (readonly)
ICMP type.
800 801 802 |
# File 'fms/cfn_policy.rb', line 800 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |