DeadlineCloud / Client / assume_queue_role_for_worker

assume_queue_role_for_worker#

DeadlineCloud.Client.assume_queue_role_for_worker(**kwargs)#

Allows a worker to assume a queue role.

See also: AWS API Documentation

Request Syntax

response = client.assume_queue_role_for_worker(
    farmId='string',
    fleetId='string',
    queueId='string',
    workerId='string'
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID of the worker assuming the queue role.

  • fleetId (string) –

    [REQUIRED]

    The fleet ID of the worker assuming the queue role.

  • queueId (string) –

    [REQUIRED]

    The queue ID of the worker assuming the queue role.

  • workerId (string) –

    [REQUIRED]

    The worker ID of the worker assuming the queue role.

Return type:

dict

Returns:

Response Syntax

{
    'credentials': {
        'accessKeyId': 'string',
        'expiration': datetime(2015, 1, 1),
        'secretAccessKey': 'string',
        'sessionToken': 'string'
    }
}

Response Structure

  • (dict) –

    • credentials (dict) –

      The Amazon Web Services credentials for the role that the worker is assuming.

      • accessKeyId (string) –

        The IAM access key ID.

      • expiration (datetime) –

        The expiration date and time of the IAM credentials.

      • secretAccessKey (string) –

        The IAM secret access key.

      • sessionToken (string) –

        The IAM session token

Exceptions