batchGetAggregateResourceConfig method

Future<BatchGetAggregateResourceConfigResponse> batchGetAggregateResourceConfig({
  1. required String configurationAggregatorName,
  2. required List<AggregateResourceIdentifier> resourceIdentifiers,
})

Returns the current configuration items for resources that are present in your AWS 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 ValidationException. May throw NoSuchConfigurationAggregatorException.

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 {
  ArgumentError.checkNotNull(
      configurationAggregatorName, 'configurationAggregatorName');
  _s.validateStringLength(
    'configurationAggregatorName',
    configurationAggregatorName,
    1,
    256,
    isRequired: true,
  );
  ArgumentError.checkNotNull(resourceIdentifiers, 'resourceIdentifiers');
  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);
}