deletePendingAggregationRequest method
Deletes pending authorization requests for a specified aggregator account in a specified region.
May throw InvalidParameterValueException.
Parameter requesterAccountId
:
The 12-digit account ID of the account requesting to aggregate data.
Parameter requesterAwsRegion
:
The region requesting to aggregate data.
Implementation
Future<void> deletePendingAggregationRequest({
required String requesterAccountId,
required String requesterAwsRegion,
}) async {
ArgumentError.checkNotNull(requesterAccountId, 'requesterAccountId');
ArgumentError.checkNotNull(requesterAwsRegion, 'requesterAwsRegion');
_s.validateStringLength(
'requesterAwsRegion',
requesterAwsRegion,
1,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.DeletePendingAggregationRequest'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RequesterAccountId': requesterAccountId,
'RequesterAwsRegion': requesterAwsRegion,
},
);
}