Skip to content

Commit 8a90b60

Browse files
authored
Update the UpdatePolicy schema (#4257)
1 parent 1be9e66 commit 8a90b60

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

src/cfnlint/data/schemas/other/resources/update_policy.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,75 @@
8282
}
8383
}
8484
}
85+
},
86+
{
87+
"if": {
88+
"properties": {
89+
"Type": {
90+
"const": "AWS::AppStream::Fleet"
91+
}
92+
},
93+
"required": [
94+
"Type"
95+
]
96+
},
97+
"then": {
98+
"additionalProperties": true,
99+
"properties": {
100+
"UpdatePolicy": {
101+
"$ref": "#/definitions/AppStreamFleetUpdatePolicy"
102+
}
103+
}
104+
}
105+
},
106+
{
107+
"else": {
108+
"additionalProperties": true,
109+
"properties": {
110+
"UpdatePolicy": false
111+
}
112+
},
113+
"if": {
114+
"properties": {
115+
"Type": {
116+
"enum": [
117+
"AWS::AppStream::Fleet",
118+
"AWS::ElastiCache::ReplicationGroup",
119+
"AWS::Elasticsearch::Domain",
120+
"AWS::OpenSearchService::Domain",
121+
"AWS::Lambda::Alias",
122+
"AWS::AutoScaling::AutoScalingGroup"
123+
]
124+
}
125+
},
126+
"required": [
127+
"Type"
128+
]
129+
}
85130
}
86131
],
87132
"definitions": {
133+
"AppStreamFleetUpdatePolicy": {
134+
"additionalProperties": false,
135+
"properties": {
136+
"StartAfterUpdate": {
137+
"$ref": "#/definitions/AppStreamFleetUpdateType"
138+
},
139+
"StopBeforeUpdate": {
140+
"$ref": "#/definitions/AppStreamFleetUpdateType"
141+
}
142+
},
143+
"type": "object"
144+
},
145+
"AppStreamFleetUpdateType": {
146+
"additionalProperties": false,
147+
"properties": {
148+
"Type": {
149+
"type": "boolean"
150+
}
151+
},
152+
"type": "object"
153+
},
88154
"AutoScalingGroupUpdatePolicy": {
89155
"additionalProperties": false,
90156
"properties": {

0 commit comments

Comments
 (0)