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