StartStreamSessionInput
¶
Source code in docs_src/capo_gameliftstreams/types/start_stream_session_input.py
additional_environment_variables
instance-attribute
¶
additional_environment_variables: NotRequired[EnvironmentVariables]
A set of options that you can use to control the stream session runtime environment, expressed as a set of key-value pairs. You can use this to configure the application or stream session details. You can also provide custom environment variables that Amazon GameLift Streams passes to your game client.
If you want to debug your application with environment variables, we recommend that you do so in a local environment outside of Amazon GameLift Streams. For more information, refer to the Compatibility Guidance in the troubleshooting section of the Developer Guide.
AdditionalEnvironmentVariables and AdditionalLaunchArgs have similar purposes. AdditionalEnvironmentVariables passes data using environment variables; while AdditionalLaunchArgs passes data using command-line arguments.
additional_launch_args
instance-attribute
¶
additional_launch_args: NotRequired[GameLaunchArgList]
A list of CLI arguments that are sent to the streaming server when a stream session launches. You can use this to configure the application or stream session details. You can also provide custom arguments that Amazon GameLift Streams passes to your game client.
AdditionalEnvironmentVariables and AdditionalLaunchArgs have similar purposes. AdditionalEnvironmentVariables passes data using environment variables; while AdditionalLaunchArgs passes data using command-line arguments.
application_identifier
instance-attribute
¶
application_identifier: Identifier
An Amazon Resource Name (ARN) or ID that uniquely identifies the application resource. Example ARN: arn:aws:gameliftstreams:us-west-2:111122223333:application/a-9ZY8X7Wv6. Example ID: a-9ZY8X7Wv6.
client_token
instance-attribute
¶
client_token: NotRequired[ClientToken]
A unique identifier that represents a client request. The request is idempotent, which ensures that an API request completes only once. When users send a request, Amazon GameLift Streams automatically populates this field.
connection_timeout_seconds
instance-attribute
¶
connection_timeout_seconds: NotRequired[ConnectionTimeoutSeconds]
Length of time (in seconds) that Amazon GameLift Streams should wait for a client to connect or reconnect to the stream session. Applies to both connection and reconnection scenarios. This time span starts when the stream session reaches ACTIVE state. If no client connects before the timeout, Amazon GameLift Streams terminates the stream session. Default value is 120.
description
instance-attribute
¶
description: NotRequired[Description]
A human-readable label for the stream session. You can update this value later.
display_configuration
instance-attribute
¶
display_configuration: NotRequired[DisplayConfiguration]
The configuration for the stream session's virtual monitor, including the resolution settings.
If not specified, Amazon GameLift Streams uses the default resolution of 1920 × 1080.
identifier
instance-attribute
¶
identifier: Identifier
The stream group to run this stream session with.
This value is an Amazon Resource Name (ARN) or ID that uniquely identifies the stream group resource. Example ARN: arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4. Example ID: sg-1AB2C3De4.
locations
instance-attribute
¶
locations: NotRequired[LocationList]
A list of locations, in order of priority, where you want Amazon GameLift Streams to start a stream from. For example, us-east-1. Amazon GameLift Streams selects the location with the next available capacity to start a single stream session in. If this value is empty, Amazon GameLift Streams attempts to start a stream session in the primary location.
For a complete list of locations that Amazon GameLift Streams supports, refer to Regions, quotas, and limitations in the Amazon GameLift Streams Developer Guide.
performance_stats_configuration
instance-attribute
¶
performance_stats_configuration: NotRequired[PerformanceStatsConfiguration]
Configuration settings for sharing the stream session's performance stats with the client
protocol
instance-attribute
¶
protocol: Protocol
The data transport protocol to use for the stream session.
role_arn
instance-attribute
¶
role_arn: NotRequired[IamRoleArn]
The ARN of an AWS Identity and Access Management (IAM) role that Amazon GameLift Streams assumes on your behalf during the stream session. The role grants Amazon GameLift Streams permission to obtain temporary credentials for your application. The role's trust policy must allow the gameliftstreams.amazonaws.com service principal to assume it. The role name must start with GameLiftStreams-.
session_length_seconds
instance-attribute
¶
session_length_seconds: NotRequired[SessionLengthSeconds]
The maximum duration of a session. Amazon GameLift Streams will automatically terminate a session after this amount of time has elapsed, regardless of any existing client connections. Default value is 43200 (12 hours).
signal_request
instance-attribute
¶
signal_request: SignalRequest
A WebRTC ICE offer string to use when initializing a WebRTC connection. Typically, the offer is a very long JSON string. Provide the string as a text value in quotes.
Amazon GameLift Streams also supports setting the field to "NO_CLIENT_CONNECTION". This will create a session without needing any browser request or Web SDK integration. The session starts up as usual and waits for a reconnection from a browser, which is accomplished using CreateStreamSessionConnection.