associateMemberAccount method

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

Associates a specified AWS account with Amazon Macie Classic as a member account.

May throw InvalidInputException. May throw LimitExceededException. May throw InternalException.

Parameter memberAccountId : The ID of the AWS account that you want to associate with Amazon Macie Classic as a member account.

Implementation

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