Skip to content

Commit d1bc0bb

Browse files
author
Chase Coalwell
committed
fix: comment middleware
1 parent 342e6d6 commit d1bc0bb

File tree

1 file changed

+6
-0
lines changed
  • packages/middleware-location-constraint/src

1 file changed

+6
-0
lines changed

packages/middleware-location-constraint/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import {
99
} from "@aws-sdk/types";
1010
import { LocationConstraintResolvedConfig } from "./configuration";
1111

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+
1218
export function locationConstraintMiddleware(
1319
options: LocationConstraintResolvedConfig
1420
): InitializeMiddleware<any, any> {

0 commit comments

Comments
 (0)