-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...rc/main/kotlin/aws/sdk/kotlin/codegen/customization/s3/express/SigV4S3ExpressAuthTrait.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import software.amazon.smithy.model.node.Node | ||
import software.amazon.smithy.model.shapes.ShapeId | ||
import software.amazon.smithy.model.traits.AbstractTrait | ||
|
||
/** | ||
* Synthetic auth trait applied to S3's model to enable SigV4 S3 Express auth scheme. | ||
*/ | ||
internal class SigV4S3ExpressAuthTrait : AbstractTrait(ID, Node.objectNode()) { | ||
companion object { | ||
val ID = ShapeId.from("aws.auth#sigv4s3express") | ||
} | ||
override fun createNode(): Node = Node.objectNode() | ||
override fun isSynthetic(): Boolean = true | ||
} |