Organizations / Client / list_delegated_services_for_account
list_delegated_services_for_account¶
- Organizations.Client.list_delegated_services_for_account(**kwargs)¶
List the Amazon Web Services services for which the specified account is a delegated administrator.
You can only call this operation from the management account or a member account that is a delegated administrator.
See also: AWS API Documentation
Request Syntax
response = client.list_delegated_services_for_account( AccountId='string', NextToken='string', MaxResults=123 )
- Parameters:
AccountId (string) –
[REQUIRED]
The account ID number of a delegated administrator account in the organization.
NextToken (string) – The parameter for receiving additional results if you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call’sNextTokenresponse to indicate where the output should continue from.MaxResults (integer) – The maximum number of items to return in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that you can retrieve the remaining results.
- Return type:
dict
- Returns:
Response Syntax
{ 'DelegatedServices': [ { 'ServicePrincipal': 'string', 'DelegationEnabledDate': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
DelegatedServices (list) –
The services for which the account is a delegated administrator.
(dict) –
Contains information about the Amazon Web Services service for which the account is a delegated administrator.
ServicePrincipal (string) –
The name of an Amazon Web Services service that can request an operation for the specified service. This is typically in the form of a URL, such as:
servicename.amazonaws.com.DelegationEnabledDate (datetime) –
The date that the account became a delegated administrator for this service.
NextToken (string) –
If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextTokenresponse element comes back asnull.
Exceptions
Organizations.Client.exceptions.AccessDeniedExceptionOrganizations.Client.exceptions.AccountNotFoundExceptionOrganizations.Client.exceptions.AccountNotRegisteredExceptionOrganizations.Client.exceptions.AWSOrganizationsNotInUseExceptionOrganizations.Client.exceptions.ConstraintViolationExceptionOrganizations.Client.exceptions.InvalidInputExceptionOrganizations.Client.exceptions.TooManyRequestsExceptionOrganizations.Client.exceptions.ServiceExceptionOrganizations.Client.exceptions.UnsupportedAPIEndpointException