Class: AWSCDK::EC2::AclIcmp

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

Overview

Properties to create Icmp.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code: nil, type: nil) ⇒ AclIcmp

Returns a new instance of AclIcmp.

Parameters:

  • code (Numeric, nil) (defaults to: nil)

    The Internet Control Message Protocol (ICMP) code.

  • type (Numeric, nil) (defaults to: nil)

    The Internet Control Message Protocol (ICMP) type.



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

#codeNumeric? (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.

Returns:

  • (Numeric, nil)


23
24
25
# File 'ec2/acl_icmp.rb', line 23

def code
  @code
end

#typeNumeric? (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.

Returns:

  • (Numeric, nil)


30
31
32
# File 'ec2/acl_icmp.rb', line 30

def type
  @type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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