DeadlineCloud / Client / assume_fleet_role_for_read

assume_fleet_role_for_read#

DeadlineCloud.Client.assume_fleet_role_for_read(**kwargs)#

Get Amazon Web Services credentials from the fleet role. The IAM permissions of the credentials are scoped down to have read-only access.

See also: AWS API Documentation

Request Syntax

response = client.assume_fleet_role_for_read(
    farmId='string',
    fleetId='string'
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID for the fleet’s farm.

  • fleetId (string) –

    [REQUIRED]

    The fleet ID.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • credentials (dict) –

      The credentials for the fleet role.

      • accessKeyId (string) –

        The IAM access key ID.

      • secretAccessKey (string) –

        The IAM secret access key.

      • sessionToken (string) –

        The IAM session token

      • expiration (datetime) –

        The expiration date and time of the IAM credentials.

Exceptions

  • DeadlineCloud.Client.exceptions.AccessDeniedException

  • DeadlineCloud.Client.exceptions.InternalServerErrorException

  • DeadlineCloud.Client.exceptions.ResourceNotFoundException

  • DeadlineCloud.Client.exceptions.ThrottlingException

  • DeadlineCloud.Client.exceptions.ValidationException