NAME

Paws::GameLift::CreatePlayerSessions - Arguments for method CreatePlayerSessions on Paws::GameLift

DESCRIPTION

This class represents the parameters used for calling the method CreatePlayerSessions on the Amazon GameLift service. Use the attributes of this class as arguments to method CreatePlayerSessions.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePlayerSessions.

SYNOPSIS

my $gamelift = Paws->service('GameLift');
my $CreatePlayerSessionsOutput = $gamelift->CreatePlayerSessions(
  GameSessionId => 'MyArnStringModel',
  PlayerIds     => [
    'MyNonZeroAndMaxString', ...    # min: 1, max: 1024
  ],
  PlayerDataMap => {
    'MyNonZeroAndMaxString' =>
      'MyPlayerData',    # key: min: 1, max: 1024, value: min: 1, max: 2048
  },    # OPTIONAL
);

# Results:
my $PlayerSessions = $CreatePlayerSessionsOutput->PlayerSessions;

# Returns a L<Paws::GameLift::CreatePlayerSessionsOutput> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/gamelift/CreatePlayerSessions

ATTRIBUTES

REQUIRED GameSessionId => Str

A unique identifier for the game session to add players to.

PlayerDataMap => Paws::GameLift::PlayerDataMap

Map of string pairs, each specifying a player ID and a set of developer-defined information related to the player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Any player data strings for player IDs that are not included in the PlayerIds parameter are ignored.

REQUIRED PlayerIds => ArrayRef[Str|Undef]

List of unique identifiers for the players to be added.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreatePlayerSessions in Paws::GameLift

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues