deregisterOrganizationDelegatedAdmin method

Future<void> deregisterOrganizationDelegatedAdmin({
  1. required String delegatedAdminAccountId,
})

Removes CloudTrail delegated administrator permissions from a member account in an organization.

May throw AccountNotFoundException. May throw AccountNotRegisteredException. May throw CloudTrailAccessNotEnabledException. May throw ConflictException. May throw InsufficientDependencyServiceAccessPermissionException. May throw InvalidParameterException. May throw NotOrganizationManagementAccountException. May throw OperationNotPermittedException. May throw OrganizationNotInAllFeaturesModeException. May throw OrganizationsNotInUseException. May throw UnsupportedOperationException.

Parameter delegatedAdminAccountId : A delegated administrator account ID. This is a member account in an organization that is currently designated as a delegated administrator.

Implementation

Future<void> deregisterOrganizationDelegatedAdmin({
  required String delegatedAdminAccountId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CloudTrail_20131101.DeregisterOrganizationDelegatedAdmin'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DelegatedAdminAccountId': delegatedAdminAccountId,
    },
  );
}