in codegen/smithy-aws-kotlin-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/customization/BoxServices.kt [58:68]
override fun preprocessModel(model: Model, settings: KotlinSettings): Model {
val serviceClosure = Walker(model).walkShapes(model.expectShape(settings.service))
return ModelTransformer.create().mapShapes(model) {
if (it in serviceClosure && !it.id.namespace.startsWith("smithy.api")) {
boxPrimitives(model, it)
} else {
it
}
}
}