describeBudgetActionHistories method
Describes a budget action history detail.
May throw InternalErrorException. May throw InvalidParameterException. May throw NotFoundException. May throw AccessDeniedException. May throw InvalidNextTokenException.
Parameter actionId
:
A system-generated universally unique identifier (UUID) for the action.
Implementation
Future<DescribeBudgetActionHistoriesResponse> describeBudgetActionHistories({
required String accountId,
required String actionId,
required String budgetName,
int? maxResults,
String? nextToken,
TimePeriod? timePeriod,
}) async {
ArgumentError.checkNotNull(accountId, 'accountId');
_s.validateStringLength(
'accountId',
accountId,
12,
12,
isRequired: true,
);
ArgumentError.checkNotNull(actionId, 'actionId');
_s.validateStringLength(
'actionId',
actionId,
36,
36,
isRequired: true,
);
ArgumentError.checkNotNull(budgetName, 'budgetName');
_s.validateStringLength(
'budgetName',
budgetName,
1,
100,
isRequired: true,
);
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
2147483647,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSBudgetServiceGateway.DescribeBudgetActionHistories'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AccountId': accountId,
'ActionId': actionId,
'BudgetName': budgetName,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (timePeriod != null) 'TimePeriod': timePeriod,
},
);
return DescribeBudgetActionHistoriesResponse.fromJson(jsonResponse.body);
}