registerOrganizationDelegatedAdmin method

Future<void> registerOrganizationDelegatedAdmin({
  1. required String memberAccountId,
})

Registers an organization’s member account as the CloudTrail delegated administrator.

May throw AccountNotFoundException. May throw AccountRegisteredException. May throw CannotDelegateManagementAccountException. May throw CloudTrailAccessNotEnabledException. May throw ConflictException. May throw DelegatedAdminAccountLimitExceededException. May throw InsufficientDependencyServiceAccessPermissionException. May throw InsufficientIAMAccessPermissionException. May throw InvalidParameterException. May throw NotOrganizationManagementAccountException. May throw OperationNotPermittedException. May throw OrganizationNotInAllFeaturesModeException. May throw OrganizationsNotInUseException. May throw UnsupportedOperationException.

Parameter memberAccountId : An organization member account ID that you want to designate as a delegated administrator.

Implementation

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