Amazon Connect Service

2022/11/09 - Amazon Connect Service - 1 updated api methods

Changes  This release adds new fields SignInUrl, UserArn, and UserId to GetFederationToken response payload.

GetFederationToken (updated) Link ΒΆ
Changes (response)
{'SignInUrl': 'string', 'UserArn': 'string', 'UserId': 'string'}

Retrieves a token for federation.

See also: AWS API Documentation

Request Syntax

client.get_federation_token(
    InstanceId='string'
)
type InstanceId:

string

param InstanceId:

[REQUIRED]

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

rtype:

dict

returns:

Response Syntax

{
    'Credentials': {
        'AccessToken': 'string',
        'AccessTokenExpiration': datetime(2015, 1, 1),
        'RefreshToken': 'string',
        'RefreshTokenExpiration': datetime(2015, 1, 1)
    },
    'SignInUrl': 'string',
    'UserArn': 'string',
    'UserId': 'string'
}

Response Structure

  • (dict) --

    • Credentials (dict) --

      The credentials to use for federation.

      • AccessToken (string) --

        An access token generated for a federated user to access Amazon Connect.

      • AccessTokenExpiration (datetime) --

        A token generated with an expiration time for the session a user is logged in to Amazon Connect.

      • RefreshToken (string) --

        Renews a token generated for a user to access the Amazon Connect instance.

      • RefreshTokenExpiration (datetime) --

        Renews the expiration timer for a generated token.

    • SignInUrl (string) --

      The URL to sign into the user's instance.

    • UserArn (string) --

      The Amazon Resource Name (ARN) of the user.

    • UserId (string) --

      The identifier for the user.