File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
smithy-typescript-codegen-test/model Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,16 @@ use smithy.test#httpRequestTests
7
7
use smithy.test#httpResponseTests
8
8
use smithy.waiters#waitable
9
9
10
+ @authDefinition
11
+ @trait
12
+ structure customAuth {}
13
+
10
14
/// Provides weather forecasts.
11
15
@fakeProtocol
12
16
@httpApiKeyAuth (name : " X-Api-Key" , in : " header" )
13
17
@httpBearerAuth
14
18
@sigv4 (name : " weather" )
19
+ @customAuth
15
20
@auth ([sigv4 ])
16
21
@paginated (inputToken : " nextToken" , outputToken : " nextToken" , pageSize : " pageSize" )
17
22
service Weather {
@@ -30,6 +35,8 @@ service Weather {
30
35
OnlyHttpApiKeyAndBearerAuthReversed
31
36
OnlySigv4Auth
32
37
OnlySigv4AuthOptional
38
+ OnlyCustomAuth
39
+ OnlyCustomAuthOptional
33
40
SameAsService
34
41
]
35
42
}
@@ -69,6 +76,15 @@ operation OnlyHttpBearerAuthOptional {}
69
76
@optionalAuth
70
77
operation OnlySigv4AuthOptional {}
71
78
79
+ @http (method : " GET" , uri : " /OnlyCustomAuth" )
80
+ @auth ([customAuth ])
81
+ operation OnlyCustomAuth {}
82
+
83
+ @http (method : " GET" , uri : " /OnlyCustomAuthOptional" )
84
+ @auth ([customAuth ])
85
+ @optionalAuth
86
+ operation OnlyCustomAuthOptional {}
87
+
72
88
@http (method : " GET" , uri : " /SameAsService" )
73
89
operation SameAsService {}
74
90
You can’t perform that action at this time.
0 commit comments