asCodeRepositoryAggregation
Casts this AggregationResponse as a CodeRepositoryAggregation and retrieves its aws.sdk.kotlin.services.inspector2.model.CodeRepositoryAggregationResponse value. Throws an exception if the AggregationResponse is not a CodeRepositoryAggregation.