Skip to content

Commit a72976b

Browse files
committed
Some more variable renaming
1 parent cb6b703 commit a72976b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

products/server/product.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@ Parameters:
1515
ScopeEntity:
1616
Type: String
1717
Description: The name of the scope
18-
ReadActionAvailable:
18+
ReadScopeAvailable:
1919
Type: String
2020
Description: Whether the read scope is available
2121
AllowedValues:
2222
- 'true'
2323
- 'false'
2424
Default: 'true'
25-
WriteActionAvailable:
25+
WriteScopeAvailable:
2626
Type: String
2727
Description: Whether the write scope is available
2828
AllowedValues:
2929
- 'true'
3030
- 'false'
3131
Default: 'true'
32-
AdminActionAvailable:
32+
AdminScopeAvailable:
3333
Type: String
3434
Description: Whether the admin scope is available
3535
AllowedValues:
3636
- 'true'
3737
- 'false'
3838
Default: 'false'
39-
HealthActionAvailable:
39+
HealthScopeAvailable:
4040
Type: String
4141
Description: Whether the admin scope is available
4242
AllowedValues:
@@ -45,10 +45,10 @@ Parameters:
4545
Default: 'true'
4646

4747
Conditions:
48-
HasReadAction: !Equals [!Ref ReadActionAvailable, 'true']
49-
HasWriteAction: !Equals [!Ref WriteActionAvailable, 'true']
50-
HasAdminAction: !Equals [!Ref AdminActionAvailable, 'true']
51-
HasHealthAction: !Equals [!Ref HealthActionAvailable, 'true']
48+
HasReadScope: !Equals [!Ref ReadScopeAvailable, 'true']
49+
HasWriteScope: !Equals [!Ref WriteScopeAvailable, 'true']
50+
HasAdminScope: !Equals [!Ref AdminScopeAvailable, 'true']
51+
HasHealthScope: !Equals [!Ref HealthScopeAvailable, 'true']
5252

5353
Resources:
5454
CognitoResourceServer:
@@ -59,22 +59,22 @@ Resources:
5959
UserPoolId: !Ref CognitoUserPoolId
6060
Scopes:
6161
- Fn::If:
62-
- HasReadAction
62+
- HasReadScope
6363
- ScopeName: !Sub '${ScopeEntity}.read'
6464
ScopeDescription: Read access
6565
- Ref: AWS::NoValue
6666
- Fn::If:
67-
- HasWriteAction
67+
- HasWriteScope
6868
- ScopeName: !Sub '${ScopeEntity}.write'
6969
ScopeDescription: Write access
7070
- Ref: AWS::NoValue
7171
- Fn::If:
72-
- HasAdminAction
72+
- HasAdminScope
7373
- ScopeName: !Sub '${ScopeEntity}.admin'
7474
ScopeDescription: Admin access
7575
- Ref: AWS::NoValue
7676
- Fn::If:
77-
- HasHealthAction
77+
- HasHealthScope
7878
- ScopeName: 'health.read'
7979
ScopeDescription: Health access
8080
- Ref: AWS::NoValue

0 commit comments

Comments
 (0)