diff --git a/build_tools/customizations.rb b/build_tools/customizations.rb index 41eb5394e6a..53a23cf0f5b 100644 --- a/build_tools/customizations.rb +++ b/build_tools/customizations.rb @@ -67,7 +67,9 @@ def dynamodb_example_deep_transform(subsegment, keys) api('CloudFront') do |api| api['shapes'].each do |_, shape| - shape['members']['MaxItems']['shape'] = 'integer' if shape['members'] && shape['members']['MaxItems'] + if shape['members'] && shape['members']['MaxItems'] + shape['members']['MaxItems']['shape'] = 'integer' + end end api['operations'].keys.each do |name|