DeadlineCloud / Client / assume_fleet_role_for_worker
assume_fleet_role_for_worker#
- DeadlineCloud.Client.assume_fleet_role_for_worker(**kwargs)#
Get credentials from the fleet role for a worker.
See also: AWS API Documentation
Request Syntax
response = client.assume_fleet_role_for_worker( farmId='string', fleetId='string', workerId='string' )
- Parameters:
farmId (string) –
[REQUIRED]
The farm ID for the fleet’s farm.
fleetId (string) –
[REQUIRED]
The fleet ID that contains the worker.
workerId (string) –
[REQUIRED]
The ID of the worker assuming the fleet role.
- 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 worker.
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.ConflictException
DeadlineCloud.Client.exceptions.ValidationException