Amazon AppStream

2019/02/11 - Amazon AppStream - 1 updated api methods

Changes  This update enables customers to find the start time, max expiration time, and connection status associated with AppStream streaming session.

DescribeSessions (updated) Link ΒΆ
Changes (response)
{'Sessions': {'ConnectionState': 'CONNECTED | NOT_CONNECTED',
              'MaxExpirationTime': 'timestamp',
              'StartTime': 'timestamp'}}

Retrieves a list that describes the active streaming sessions for a specified stack and fleet. If a value for UserId is provided for the stack and fleet, only streaming sessions for that user are described. If an authentication type is not provided, the default is to authenticate users using a streaming URL.

See also: AWS API Documentation

Request Syntax

client.describe_sessions(
    StackName='string',
    FleetName='string',
    UserId='string',
    NextToken='string',
    Limit=123,
    AuthenticationType='API'|'SAML'|'USERPOOL'
)
type StackName

string

param StackName

[REQUIRED]

The name of the stack. This value is case-sensitive.

type FleetName

string

param FleetName

[REQUIRED]

The name of the fleet. This value is case-sensitive.

type UserId

string

param UserId

The user identifier.

type NextToken

string

param NextToken

The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

type Limit

integer

param Limit

The size of each page of results. The default value is 20 and the maximum value is 50.

type AuthenticationType

string

param AuthenticationType

The authentication method. Specify API for a user authenticated using a streaming URL, SAML for a SAML 2.0-federated user, or USERPOOL for a user in the AppStream 2.0 user pool. The default is to authenticate users using a streaming URL.

rtype

dict

returns

Response Syntax

{
    'Sessions': [
        {
            'Id': 'string',
            'UserId': 'string',
            'StackName': 'string',
            'FleetName': 'string',
            'State': 'ACTIVE'|'PENDING'|'EXPIRED',
            'ConnectionState': 'CONNECTED'|'NOT_CONNECTED',
            'StartTime': datetime(2015, 1, 1),
            'MaxExpirationTime': datetime(2015, 1, 1),
            'AuthenticationType': 'API'|'SAML'|'USERPOOL',
            'NetworkAccessConfiguration': {
                'EniPrivateIpAddress': 'string',
                'EniId': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Sessions (list) --

      Information about the streaming sessions.

      • (dict) --

        Describes a streaming session.

        • Id (string) --

          The identifier of the streaming session.

        • UserId (string) --

          The identifier of the user for whom the session was created.

        • StackName (string) --

          The name of the stack for the streaming session.

        • FleetName (string) --

          The name of the fleet for the streaming session.

        • State (string) --

          The current state of the streaming session.

        • ConnectionState (string) --

          Specifies whether a user is connected to the streaming session.

        • StartTime (datetime) --

          The time when a streaming instance is dedicated for the user.

        • MaxExpirationTime (datetime) --

          The time when the streaming session is set to expire. This time is based on the MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming session can run. A streaming session might end earlier than the time specified in SessionMaxExpirationTime , when the DisconnectTimeOutInSeconds elapses or the user chooses to end his or her session. If the DisconnectTimeOutInSeconds elapses, or the user chooses to end his or her session, the streaming instance is terminated and the streaming session ends.

        • AuthenticationType (string) --

          The authentication method. The user is authenticated using a streaming URL ( API ), SAML 2.0 federation ( SAML ), or the AppStream 2.0 user pool ( USERPOOL ). The default is to authenticate users using a streaming URL.

        • NetworkAccessConfiguration (dict) --

          The network details for the streaming session.

          • EniPrivateIpAddress (string) --

            The private IP address of the elastic network interface that is attached to instances in your VPC.

          • EniId (string) --

            The resource identifier of the elastic network interface that is attached to instances in your VPC. All network interfaces have the eni-xxxxxxxx resource identifier.

    • NextToken (string) --

      The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.