@@ -922,8 +922,8 @@ func (p *AWSProvider) newChange(action route53types.ChangeAction, ep *endpoint.E
922922 change .ResourceRecordSet .Type = route53types .RRType (ep .RecordType )
923923 if targetHostedZone := isAWSAlias (ep ); targetHostedZone != "" {
924924 evalTargetHealth := p .evaluateTargetHealth
925- if prop , ok := ep .GetProviderSpecificProperty (providerSpecificEvaluateTargetHealth ); ok {
926- evalTargetHealth = prop == "true"
925+ if prop , exists := ep .GetBoolProviderSpecificProperty (providerSpecificEvaluateTargetHealth ); exists {
926+ evalTargetHealth = prop
927927 }
928928 change .ResourceRecordSet .AliasTarget = & route53types.AliasTarget {
929929 DNSName : aws .String (ep .Targets [0 ]),
@@ -1346,8 +1346,8 @@ func useAlias(ep *endpoint.Endpoint, preferCNAME bool) bool {
13461346// isAWSAlias determines if a given endpoint is supposed to create an AWS Alias record
13471347// and (if so) returns the target hosted zone ID
13481348func isAWSAlias (ep * endpoint.Endpoint ) string {
1349- isAlias , exists := ep .GetProviderSpecificProperty (providerSpecificAlias )
1350- if exists && isAlias == "true" && slices .Contains ([]string {endpoint .RecordTypeA , endpoint .RecordTypeAAAA }, ep .RecordType ) && len (ep .Targets ) > 0 {
1349+ isAlias , _ := ep .GetBoolProviderSpecificProperty (providerSpecificAlias )
1350+ if isAlias && slices .Contains ([]string {endpoint .RecordTypeA , endpoint .RecordTypeAAAA }, ep .RecordType ) && len (ep .Targets ) > 0 {
13511351 // alias records can only point to canonical hosted zones (e.g. to ELBs) or other records in the same zone
13521352
13531353 if hostedZoneID , ok := ep .GetProviderSpecificProperty (providerSpecificTargetHostedZone ); ok {
0 commit comments