@@ -57,7 +57,6 @@ resources:
5757 from :
5858 operation : ListResourceRecordSets
5959 path : ResourceRecordSets.AliasTarget
60- # This field cannot be ignored, but values for this will be overriden and should not be used
6160 CidrRoutingConfig :
6261 from :
6362 operation : ListResourceRecordSets
@@ -156,13 +155,21 @@ resources:
156155 update_operation :
157156 custom_method_name : customUpdateRecordSet
158157 HostedZone :
158+ custom_cel_rules :
159+ - rule : " !has(self.hostedZoneConfig) || !self.hostedZoneConfig.privateZone || has(self.vpc)"
160+ message : " spec.vpc is required for private hosted zones"
159161 exceptions :
160162 terminal_codes :
161163 - DelegationSetNotReusable
162164 - InvalidDomainName
163165 - InvalidInput
164166 - InvalidVPCId
165167 fields :
168+ AdditionalVPCs :
169+ custom_field :
170+ list_of : VPC
171+ compare :
172+ is_ignored : True
166173 DelegationSet :
167174 from :
168175 operation : CreateHostedZone
@@ -176,7 +183,11 @@ resources:
176183 is_ignored : True
177184 hooks :
178185 delta_pre_compare :
179- code : compareTags(delta, a, b)
186+ code : |
187+ compareTags(delta, a, b)
188+ compareAdditionalVPCs(delta, a, b)
189+ sdk_delete_pre_build_request :
190+ template_path : hooks/hosted_zone/sdk_delete_pre_build_request.go.tpl
180191 sdk_read_one_post_set_output :
181192 template_path : hooks/hosted_zone/sdk_read_one_post_set_output.go.tpl
182193 sdk_create_post_set_output :
0 commit comments