This middleware modifies the input on S3 CreateBucket requests. If the LocationConstraint has not been set, this middleware will set a LocationConstraint to match the configured region. The CreateBucketConfiguration will be removed entirely on requests to the us-east-1 region.
@aws-sdk/middleware-location-constraint