We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 342e6d6 commit d1bc0bbCopy full SHA for d1bc0bb
packages/middleware-location-constraint/src/index.ts
@@ -9,6 +9,12 @@ import {
9
} from "@aws-sdk/types";
10
import { LocationConstraintResolvedConfig } from "./configuration";
11
12
+/**
13
+ * This middleware modifies the input on S3 CreateBucket requests. If the LocationConstraint has not been set, this
14
+ * middleware will set a LocationConstraint to match the configured region. The CreateBucketConfiguration will be
15
+ * removed entirely on requests to the us-east-1 region.
16
+ */
17
+
18
export function locationConstraintMiddleware(
19
options: LocationConstraintResolvedConfig
20
): InitializeMiddleware<any, any> {
0 commit comments