batchGetAggregateResourceConfig method
Returns the current configuration items for resources that are present in
your Config aggregator. The operation also returns a list of resources
that are not processed in the current request. If there are no unprocessed
resources, the operation returns an empty
unprocessedResourceIdentifiers list.
- The API does not return results for deleted resources.
- The API does not return tags and relationships.
May throw NoSuchConfigurationAggregatorException.
May throw ValidationException.
Parameter configurationAggregatorName :
The name of the configuration aggregator.
Parameter resourceIdentifiers :
A list of aggregate ResourceIdentifiers objects.
Implementation
Future<BatchGetAggregateResourceConfigResponse>
batchGetAggregateResourceConfig({
required String configurationAggregatorName,
required List<AggregateResourceIdentifier> resourceIdentifiers,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.BatchGetAggregateResourceConfig'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigurationAggregatorName': configurationAggregatorName,
'ResourceIdentifiers': resourceIdentifiers,
},
);
return BatchGetAggregateResourceConfigResponse.fromJson(jsonResponse.body);
}