File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,19 @@ Parameters:
3636 - ' true'
3737 - ' false'
3838 Default : ' false'
39+ HealthActionAvailable :
40+ Type : String
41+ Description : Whether the admin scope is available
42+ AllowedValues :
43+ - ' true'
44+ - ' false'
45+ Default : ' true'
3946
4047Conditions :
4148 HasReadAction : !Equals [!Ref ReadActionAvailable, 'true']
4249 HasWriteAction : !Equals [!Ref WriteActionAvailable, 'true']
4350 HasAdminAction : !Equals [!Ref AdminActionAvailable, 'true']
51+ HasHealthAction : !Equals [!Ref HealthActionAvailable, 'true']
4452
4553Resources :
4654 CognitoResourceServer :
@@ -65,3 +73,8 @@ Resources:
6573 - ScopeName : !Sub '${ScopeName}.admin'
6674 ScopeDescription : Admin access
6775 - Ref : AWS::NoValue
76+ - Fn::If :
77+ - HasHealthAction
78+ - ScopeName : !Sub 'health.read'
79+ ScopeDescription : Health access
80+ - Ref : AWS::NoValue
You can’t perform that action at this time.
0 commit comments