disassociateAwsAccountFromPartnerAccount method
Future<void>
disassociateAwsAccountFromPartnerAccount({
- required String partnerAccountId,
- required PartnerType partnerType,
Disassociates your AWS account from a partner account. If
PartnerAccountId and PartnerType are
null, disassociates your AWS account from all partner
accounts.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter partnerAccountId :
The partner account ID to disassociate from the AWS account.
Parameter partnerType :
The partner type.
Implementation
Future<void> disassociateAwsAccountFromPartnerAccount({
required String partnerAccountId,
required PartnerType partnerType,
}) async {
final $query = <String, List<String>>{
'partnerType': [partnerType.value],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/partner-accounts/${Uri.encodeComponent(partnerAccountId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}