Class: Aws::GameLift::Types::GameSessionPlacement

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

Overview

Represents a potential game session placement, including the full details of the original placement request and the current status.

<note markdown=“1”> If the game session placement status is ‘PENDING`, the properties for game session ID/ARN, region, IP address/DNS, and port aren’t final. A game session is not active and ready to accept players until placement status reaches ‘FULFILLED`. When the placement is in `PENDING` status, Amazon GameLift may attempt to place a game session multiple times before succeeding. With each attempt it creates a GameSession object and updates this placement object with the new game session properties..

</note>

Constant Summary collapse

SENSITIVE =
[:ip_address, :port]

Instance Attribute Summary collapse

Instance Attribute Details

#dns_nameString

The DNS identifier assigned to the instance that is running the game session. Values have the following format:

  • TLS-enabled fleets: ‘<unique identifier>.<region identifier>.amazongamelift.com`.

  • Non-TLS-enabled fleets: ‘ec2-<unique identifier>.compute.amazonaws.com`. (See [Amazon EC2 Instance IP Addressing].)

When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.

[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#concepts-public-addresses

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#end_timeTime

Time stamp indicating when this request was completed, canceled, or timed out.

Returns:

  • (Time)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#game_propertiesArray<Types::GameProperty>

A set of key-value pairs that can store custom data in a game session. For example: ‘“difficulty”, “Value”: “novice”`.

Returns:



6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#game_session_arnString

Identifier for the game session created by this placement request. This identifier is unique across all Regions. This value isn’t final until placement status is ‘FULFILLED`.

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#game_session_dataString

A set of custom game session properties, formatted as a single string value. This data is passed to a game server process with a request to start a new game session. For more information, see [Start a game session].

[1]: docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#game_session_idString

A unique identifier for the game session. This value isn’t final until placement status is ‘FULFILLED`.

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#game_session_nameString

A descriptive label that is associated with a game session. Session names do not need to be unique.

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#game_session_queue_nameString

A descriptive label that is associated with game session queue. Queue names must be unique within each Region.

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#game_session_regionString

Name of the Region where the game session created by this placement request is running. This value isn’t final until placement status is ‘FULFILLED`.

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#ip_addressString

The IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value isn’t final until placement status is ‘FULFILLED`.

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#matchmaker_dataString

Information on the matchmaking process for this game. Data is in JSON syntax, formatted as a string. It identifies the matchmaking configuration used to create the match, and contains data on all players assigned to the match, including player attributes and team assignments. For more details on matchmaker data, see [Match Data].

[1]: docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-server.html#match-server-data

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#maximum_player_session_countInteger

The maximum number of players that can be connected simultaneously to the game session.

Returns:

  • (Integer)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#placed_player_sessionsArray<Types::PlacedPlayerSession>

A collection of information on player sessions created in response to the game session placement request. These player sessions are created only after a new game session is successfully placed (placement status is ‘FULFILLED`). This information includes the player ID, provided in the placement request, and a corresponding player session ID.

Returns:



6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#placement_idString

A unique identifier for a game session placement.

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#player_latenciesArray<Types::PlayerLatency>

A set of values, expressed in milliseconds, that indicates the amount of latency that a player experiences when connected to @aws; Regions.

Returns:



6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#portInteger

The port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value isn’t final until placement status is ‘FULFILLED`.

Returns:

  • (Integer)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#start_timeTime

Time stamp indicating when this request was placed in the queue. Format is a number expressed in Unix time as milliseconds (for example ‘“1469498468.057”`).

Returns:

  • (Time)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end

#statusString

Current status of the game session placement request.

  • PENDING – The placement request is in the queue waiting to be processed. Game session properties are not yet final.

  • FULFILLED – A new game session has been successfully placed. Game session properties are now final.

  • CANCELLED – The placement request was canceled.

  • TIMED_OUT – A new game session was not successfully created before the time limit expired. You can resubmit as a new placement request as needed.

  • FAILED – Amazon GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.

Returns:

  • (String)


6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# File 'lib/aws-sdk-gamelift/types.rb', line 6874

class GameSessionPlacement < Struct.new(
  :placement_id,
  :game_session_queue_name,
  :status,
  :game_properties,
  :maximum_player_session_count,
  :game_session_name,
  :game_session_id,
  :game_session_arn,
  :game_session_region,
  :player_latencies,
  :start_time,
  :end_time,
  :ip_address,
  :dns_name,
  :port,
  :placed_player_sessions,
  :game_session_data,
  :matchmaker_data)
  SENSITIVE = [:ip_address, :port]
  include Aws::Structure
end