Class: Aws::GameLift::Types::IpPermission

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb

Overview

Note:

When making an API call, you may pass IpPermission data as a hash:

{
  from_port: 1, # required
  to_port: 1, # required
  ip_range: "NonBlankString", # required
  protocol: "TCP", # required, accepts TCP, UDP
}

A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift hosting resource. New game sessions that are started on the fleet are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. For fleets created with a custom game server, the ranges reflect the server's game session assignments. For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP for use by the Realtime servers.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#from_portInteger

A starting value for a range of allowed port numbers.

Returns:

  • (Integer)


5638
5639
5640
5641
5642
5643
5644
5645
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 5638

class IpPermission < Struct.new(
  :from_port,
  :to_port,
  :ip_range,
  :protocol)
  SENSITIVE = []
  include Aws::Structure
end

#ip_rangeString

A range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]" or optionally the shortened version "0.0.0.0/[subnet mask]".

Returns:

  • (String)


5638
5639
5640
5641
5642
5643
5644
5645
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 5638

class IpPermission < Struct.new(
  :from_port,
  :to_port,
  :ip_range,
  :protocol)
  SENSITIVE = []
  include Aws::Structure
end

#protocolString

The network communication protocol used by the fleet.

Returns:

  • (String)


5638
5639
5640
5641
5642
5643
5644
5645
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 5638

class IpPermission < Struct.new(
  :from_port,
  :to_port,
  :ip_range,
  :protocol)
  SENSITIVE = []
  include Aws::Structure
end

#to_portInteger

An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.

Returns:

  • (Integer)


5638
5639
5640
5641
5642
5643
5644
5645
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 5638

class IpPermission < Struct.new(
  :from_port,
  :to_port,
  :ip_range,
  :protocol)
  SENSITIVE = []
  include Aws::Structure
end