As I attempt to delete a CloudFront distribution using the AWS SDK for JavaScript, I encountered an issue when trying to update it. Each time I send the request, I receive an internal server error stating "Rate exceeded". I have experimented with various values in my configuration settings, but the rate error persists. I am unsure if this is due to a configuration problem or if there is another mistake that I made. On a different note, I have successfully created a function that generates a new distribution without any issues.
The current configuration object appears as follows:
const originId = `S3-${buckets.build.name}`;
const originDomain = `${buckets.build.name}.s3.amazonaws.com`;
const updateParams: CloudFront.UpdateDistributionRequest = {
[Contents of configuration updated here]
Could someone provide insight into what may have caused this error?