Amazon Connect Service

2026/07/07 - Amazon Connect Service - 2 new api methods

Changes  Adds support for CreateAuthCode and DeleteSession APIs.

DeleteSession (new) Link ¶

Deletes a session for the specified Connect Customer instance.

See also: AWS API Documentation

Request Syntax

client.delete_session(
    InstanceId='string',
    SessionId='string'
)
type InstanceId:

string

param InstanceId:

[REQUIRED]

The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

type SessionId:

string

param SessionId:

[REQUIRED]

The identifier of the session to delete.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

CreateAuthCode (new) Link ¶

Creates an authorization code for the specified Connect Customer instance. The authorization code can be used to establish a session with scoped permissions defined by the specified scope parameters.

See also: AWS API Documentation

Request Syntax

client.create_auth_code(
    InstanceId='string',
    Scope={
        'SecurityProfileIds': [
            'string',
        ],
        'EntityType': 'CUSTOMER_PROFILE',
        'EntityId': 'string',
        'DomainName': 'string'
    },
    MaxSessionDurationMinutes=123,
    SessionInactivityDurationMinutes=123
)
type InstanceId:

string

param InstanceId:

[REQUIRED]

The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

type Scope:

dict

param Scope:

[REQUIRED]

The scope for the authorization code. Defines the permissions and access boundaries for the session.

  • SecurityProfileIds (list) --

    The list of security profile identifiers to scope the session to. Maximum of 10 security profiles.

    • (string) --

  • EntityType (string) -- [REQUIRED]

    The type of entity to scope the session to.

  • EntityId (string) --

    The identifier of the entity to scope the session to.

  • DomainName (string) --

    The name of the Customer Profiles domain to scope the session to.

type MaxSessionDurationMinutes:

integer

param MaxSessionDurationMinutes:

The maximum duration of the session, in minutes. Minimum value of 1440 (24 hours). Maximum value of 43200 (30 days). If no value is provided, the session will expire after 400 days.

type SessionInactivityDurationMinutes:

integer

param SessionInactivityDurationMinutes:

[REQUIRED]

The duration of inactivity, in minutes, after which the session expires. Minimum value of 1440 (24 hours). Maximum value of 20160 (14 days).

rtype:

dict

returns:

Response Syntax

{
    'AuthCode': 'string',
    'SessionId': 'string',
    'EntityType': 'CUSTOMER_PROFILE',
    'EntityId': 'string'
}

Response Structure

  • (dict) --

    • AuthCode (string) --

      The authorization code to use for establishing a session.

    • SessionId (string) --

      The identifier of the session created with the authorization code.

    • EntityType (string) --

      The type of entity associated with the authorization code.

    • EntityId (string) --

      The identifier of the entity associated with the authorization code.