asEc2InstanceAggregation
Casts this AggregationResponse as a Ec2InstanceAggregation and retrieves its aws.sdk.kotlin.services.inspector2.model.Ec2InstanceAggregationResponse value. Throws an exception if the AggregationResponse is not a Ec2InstanceAggregation.