Class: AWSCDK::EC2::AclIcmp
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::AclIcmp
- Defined in:
- ec2/acl_icmp.rb
Overview
Properties to create Icmp.
Instance Attribute Summary collapse
-
#code ⇒ Numeric?
readonly
The Internet Control Message Protocol (ICMP) code.
-
#type ⇒ Numeric?
readonly
The Internet Control Message Protocol (ICMP) type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code: nil, type: nil) ⇒ AclIcmp
constructor
A new instance of AclIcmp.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code: nil, type: nil) ⇒ AclIcmp
Returns a new instance of AclIcmp.
9 10 11 12 13 14 |
# File 'ec2/acl_icmp.rb', line 9 def initialize(code: nil, type: nil) @code = code Jsii::Type.check_type(@code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "code") unless @code.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#code ⇒ Numeric? (readonly)
The Internet Control Message Protocol (ICMP) code.
You can use -1 to specify all ICMP codes for the given ICMP type. Requirement is conditional: Required if you specify 1 (ICMP) for the protocol parameter.
23 24 25 |
# File 'ec2/acl_icmp.rb', line 23 def code @code end |
#type ⇒ Numeric? (readonly)
The Internet Control Message Protocol (ICMP) type.
You can use -1 to specify all ICMP types. Conditional requirement: Required if you specify 1 (ICMP) for the CreateNetworkAclEntry protocol parameter.
30 31 32 |
# File 'ec2/acl_icmp.rb', line 30 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 |
# File 'ec2/acl_icmp.rb', line 32 def self.jsii_properties { :code => "code", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'ec2/acl_icmp.rb', line 39 def to_jsii result = {} result.merge!({ "code" => @code, "type" => @type, }) result.compact end |