GameLiftStreams / Client / list_stream_urls
list_stream_urls¶
- GameLiftStreams.Client.list_stream_urls(**kwargs)¶
Retrieves a list of the stream URLs in the current Amazon Web Services Region for your Amazon Web Services account. You can filter the results by status or by stream group. Use the pagination parameters to retrieve results as a set of sequential pages. If you delete the stream group or application that backs a stream URL, this operation updates that stream URL’s status to
REVOKED.See also: AWS API Documentation
Request Syntax
response = client.list_stream_urls( Status='ACTIVE'|'EXPIRED'|'REVOKED'|'LIMIT_REACHED', StreamGroupIdentifier='string', NextToken='string', MaxResults=123 )
- Parameters:
Status (string) –
Filters the list to stream URLs with the specified status.
ACTIVE: The stream URL is valid and can start stream sessions.EXPIRED: The stream URL has passed its expiration time and can no longer start stream sessions.REVOKED: The stream URL was revoked and can no longer start stream sessions.LIMIT_REACHED: The stream URL has been used the maximum number of times and can no longer start stream sessions.
StreamGroupIdentifier (string) –
Filters the list to stream URLs that belong to the specified stream group.
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.NextToken (string) – The token that marks the start of the next set of results. Use this token when you retrieve results as sequential pages. To get the first page of results, omit a token value. To get the remaining pages, provide the token returned with the previous result set.
MaxResults (integer) – The maximum number of results to return per page. Valid values are 1-100. The default is 25.
- Return type:
dict
- Returns:
Response Syntax
{ 'Items': [ { 'Arn': 'string', 'StreamUrlId': 'string', 'StreamUrl': 'string', 'Status': 'ACTIVE'|'EXPIRED'|'REVOKED'|'LIMIT_REACHED', 'StatusReason': 'userRevoked'|'revokedAndTerminatingSessions'|'revokedAndSessionsTerminated'|'streamGroupDeleted'|'applicationDeleted', 'ExpiresAt': datetime(2015, 1, 1), 'CreatedAt': datetime(2015, 1, 1), 'UsageLimit': 123, 'RemainingUses': 123, 'StreamGroupArn': 'string', 'ApplicationArn': 'string', 'SessionLengthSeconds': 123, 'Description': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Items (list) –
A collection of stream URL summaries. Each summary includes the identity, status, and usage of the stream URL, but not its full configuration.
(dict) –
Describes a stream URL. This is a summary view that omits the full configuration, such as launch arguments and display settings. To retrieve the complete configuration, call GetStreamUrl.
Arn (string) –
The Amazon Resource Name (ARN) that uniquely identifies the stream URL across all Amazon Web Services Regions. Format is
arn:aws:gameliftstreams:[AWS Region]:[AWS account]:streamurl/[stream group resource ID]/[stream URL resource ID].StreamUrlId (string) –
The unique identifier for the stream URL resource, for example
su-1AB2C3De4.StreamUrl (string) –
The shareable stream URL. Distribute this URL to end users so that they can start and play a stream session in a hosted web player. Treat the stream URL as a secret. Anyone who has it can start a stream session until the stream URL expires, is revoked, or reaches its usage limit.
Status (string) –
The current status of the stream URL. Possible statuses include the following:
ACTIVE: The stream URL is valid and can start stream sessions.EXPIRED: The stream URL has passed its expiration time and can no longer start stream sessions.REVOKED: The stream URL was revoked and can no longer start stream sessions.LIMIT_REACHED: The stream URL has been used the maximum number of times and can no longer start stream sessions.
StatusReason (string) –
Additional information about why the stream URL is in its current status. Amazon GameLift Streams populates this value when the status is
REVOKED. Possible values include the following:userRevoked: You revoked the stream URL.revokedAndTerminatingSessions: You revoked the stream URL and Amazon GameLift Streams is ending its running stream sessions.revokedAndSessionsTerminated: You revoked the stream URL and its running stream sessions have ended.streamGroupDeleted: The stream group was deleted, which revoked the stream URL.applicationDeleted: The application was deleted, which revoked the stream URL.
ExpiresAt (datetime) –
The date and time when the stream URL expires and stops accepting new stream sessions. Timestamps are expressed using in ISO8601 format, such as:
2022-12-27T22:29:40+00:00(UTC).CreatedAt (datetime) –
A timestamp that indicates when this resource was created. Timestamps are expressed using in ISO8601 format, such as:
2022-12-27T22:29:40+00:00(UTC).UsageLimit (integer) –
The maximum number of times the stream URL can start a stream session.
RemainingUses (integer) –
The number of times the stream URL can still be used to start a stream session.
StreamGroupArn (string) –
The stream group that runs the stream sessions.
This value is an Amazon Resource Name (ARN) that uniquely identifies the stream group resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4.ApplicationArn (string) –
The application that runs in the stream sessions.
This value is an Amazon Resource Name (ARN) that uniquely identifies the application resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:application/a-9ZY8X7Wv6.SessionLengthSeconds (integer) –
The maximum length of time, in seconds, that a stream session started from this stream URL can run.
Description (string) –
The descriptive label for the stream URL.
NextToken (string) –
A token that marks the start of the next sequential page of results. If an operation doesn’t return a token, you’ve reached the end of the list.
Exceptions
GameLiftStreams.Client.exceptions.AccessDeniedExceptionGameLiftStreams.Client.exceptions.ThrottlingExceptionGameLiftStreams.Client.exceptions.InternalServerExceptionGameLiftStreams.Client.exceptions.ValidationException