The CloudFront create_invalidation API lets you specify a Quantity which seems redundant. Is there a use case for setting a Quantity different from the length of Items?
response = client.create_invalidation(
DistributionId = 'string',
InvalidationBatch = {
'Paths': {
'Quantity': 2,
'Items': [
'/index.html',
'/image.png',
]
},
'CallerReference': 'string'
}
)