enableDelegatedAdminAccount method
Enables the Amazon Inspector delegated administrator for your Organizations organization.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter delegatedAdminAccountId :
The Amazon Web Services account ID of the Amazon Inspector delegated
administrator.
Parameter clientToken :
The idempotency token for the request.
Implementation
Future<EnableDelegatedAdminAccountResponse> enableDelegatedAdminAccount({
required String delegatedAdminAccountId,
String? clientToken,
}) async {
final $payload = <String, dynamic>{
'delegatedAdminAccountId': delegatedAdminAccountId,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/delegatedadminaccounts/enable',
exceptionFnMap: _exceptionFns,
);
return EnableDelegatedAdminAccountResponse.fromJson(response);
}