You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::GameLift::Types::GameSessionConnectionInfo

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

Overview

Connection information for the new game session that is created with matchmaking. (with StartMatchmaking). Once a match is set, the FlexMatch engine places the match and creates a new game session for it. This information, including the game session endpoint and player sessions for each player in the original matchmaking request, is added to the MatchmakingTicket, which can be retrieved by calling DescribeMatchmaking.

Instance Attribute Summary collapse

Instance Attribute Details

#game_session_arnString

Amazon Resource Name (ARN) that is assigned to a game session and uniquely identifies it.

Returns:

  • (String)


3365
3366
3367
3368
3369
3370
3371
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 3365

class GameSessionConnectionInfo < Struct.new(
  :game_session_arn,
  :ip_address,
  :port,
  :matched_player_sessions)
  include Aws::Structure
end

#ip_addressString

IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.

Returns:

  • (String)


3365
3366
3367
3368
3369
3370
3371
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 3365

class GameSessionConnectionInfo < Struct.new(
  :game_session_arn,
  :ip_address,
  :port,
  :matched_player_sessions)
  include Aws::Structure
end

#matched_player_sessionsArray<Types::MatchedPlayerSession>

Collection of player session IDs, one for each player ID that was included in the original matchmaking request.

Returns:



3365
3366
3367
3368
3369
3370
3371
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 3365

class GameSessionConnectionInfo < Struct.new(
  :game_session_arn,
  :ip_address,
  :port,
  :matched_player_sessions)
  include Aws::Structure
end

#portInteger

Port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number.

Returns:

  • (Integer)


3365
3366
3367
3368
3369
3370
3371
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 3365

class GameSessionConnectionInfo < Struct.new(
  :game_session_arn,
  :ip_address,
  :port,
  :matched_player_sessions)
  include Aws::Structure
end