@@ -9,12 +9,10 @@ use smithy.waiters#waitable
9
9
10
10
/// Provides weather forecasts.
11
11
@fakeProtocol
12
- // feat(experimentalIdentityAndAuth): uncomment operations as individual
13
- // auth scheme support is implemented
14
12
@httpApiKeyAuth (name : " X-Api-Key" , in : " header" )
15
13
@httpBearerAuth
16
- // @sigv4(name: "weather")
17
- // @auth([sigv4])
14
+ @sigv4 (name : " weather" )
15
+ @auth ([sigv4 ])
18
16
@paginated (inputToken : " nextToken" , outputToken : " nextToken" , pageSize : " pageSize" )
19
17
service Weather {
20
18
version : " 2006-03-01"
@@ -23,15 +21,15 @@ service Weather {
23
21
GetCurrentTime
24
22
// util-stream.integ.spec.ts
25
23
Invoke
26
- // feat(experimentalIdentityAndAuth): uncomment operations as individual
27
- // auth scheme support is implemented
28
24
// experimentalIdentityAndAuth
29
25
OnlyHttpApiKeyAuth
30
26
OnlyHttpApiKeyAuthOptional
31
27
OnlyHttpBearerAuth
32
28
OnlyHttpBearerAuthOptional
33
29
OnlyHttpApiKeyAndBearerAuth
34
30
OnlyHttpApiKeyAndBearerAuthReversed
31
+ OnlySigv4Auth
32
+ OnlySigv4AuthOptional
35
33
SameAsService
36
34
]
37
35
}
@@ -44,6 +42,10 @@ operation OnlyHttpApiKeyAuth {}
44
42
@auth ([httpBearerAuth ])
45
43
operation OnlyHttpBearerAuth {}
46
44
45
+ @http (method : " GET" , uri : " /OnlySigv4Auth" )
46
+ @auth ([sigv4 ])
47
+ operation OnlySigv4Auth {}
48
+
47
49
@http (method : " GET" , uri : " /OnlyHttpApiKeyAndBearerAuth" )
48
50
@auth ([httpApiKeyAuth , httpBearerAuth ])
49
51
operation OnlyHttpApiKeyAndBearerAuth {}
@@ -62,6 +64,11 @@ operation OnlyHttpApiKeyAuthOptional {}
62
64
@optionalAuth
63
65
operation OnlyHttpBearerAuthOptional {}
64
66
67
+ @http (method : " GET" , uri : " /OnlySigv4AuthOptional" )
68
+ @auth ([sigv4 ])
69
+ @optionalAuth
70
+ operation OnlySigv4AuthOptional {}
71
+
65
72
@http (method : " GET" , uri : " /SameAsService" )
66
73
operation SameAsService {}
67
74
0 commit comments