-
Notifications
You must be signed in to change notification settings - Fork 220
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
4 changed files
with
89 additions
and
0 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
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
3 changes: 3 additions & 0 deletions
3
...thy/rulesengine/aws/language/functions/errorfiles/valid/sigv4subscheme-auth-scheme.errors
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,3 @@ | ||
[WARNING] example#FizzBuzz: This shape applies a trait that is unstable: smithy.rules#clientContextParams | UnstableTrait | ||
[WARNING] example#FizzBuzz: This shape applies a trait that is unstable: smithy.rules#endpointRuleSet | UnstableTrait | ||
[DANGER] example#FizzBuzz: Requirements for `sigv4-` auth sub-scheme validation may change. | RuleSetAuthSchemes |
42 changes: 42 additions & 0 deletions
42
...thy/rulesengine/aws/language/functions/errorfiles/valid/sigv4subscheme-auth-scheme.smithy
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,42 @@ | ||
$version: "2.0" | ||
|
||
namespace example | ||
|
||
use smithy.rules#clientContextParams | ||
use smithy.rules#endpointRuleSet | ||
|
||
@endpointRuleSet({ | ||
"version": "1.3", | ||
"parameters": { | ||
"Region": { | ||
"required": true, | ||
"type": "String", | ||
"documentation": "docs" | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"conditions": [], | ||
"documentation": "base rule", | ||
"endpoint": { | ||
"url": "https://{Region}.amazonaws.com", | ||
"properties": { | ||
"authSchemes": [ | ||
{ | ||
"name": "sigv4-sub", | ||
"signingName": "serviceName", | ||
"signingRegion": "{Region}", | ||
"additionalField": "test" | ||
} | ||
] | ||
}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
] | ||
}) | ||
@clientContextParams( | ||
Region: {type: "string", documentation: "docs"} | ||
) | ||
service FizzBuzz {} |