describeEntityAggregates method

Future<DescribeEntityAggregatesResponse> describeEntityAggregates({
  1. List<String>? eventArns,
})

Returns the number of entities that are affected by each of the specified events. If no events are specified, the counts of all affected entities are returned.

Parameter eventArns : A list of event ARNs (unique identifiers). For example: "arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"

Implementation

Future<DescribeEntityAggregatesResponse> describeEntityAggregates({
  List<String>? eventArns,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSHealth_20160804.DescribeEntityAggregates'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (eventArns != null) 'eventArns': eventArns,
    },
  );

  return DescribeEntityAggregatesResponse.fromJson(jsonResponse.body);
}