From fcc21f003e8e1f2899254126b6d4b373d10dcd64 Mon Sep 17 00:00:00 2001 From: rehanvandermerwe Date: Wed, 15 Apr 2026 13:27:51 +0200 Subject: [PATCH] feat(domains): add TrackingCAA record support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Domains API now returns an extra DNS record `TrackingCAA` (type `CAA`, value `0 issue "amazon.com"`) when a `tracking_subdomain` is configured AND the customer's root domain has CAA records that would prevent AWS from issuing the tracking-domain certificate. Records are returned as plain hashes in this SDK so no source change is needed — extends the create-with-tracking-subdomain spec with the new record fixture. Co-Authored-By: Claude Opus 4.6 --- spec/domains_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/domains_spec.rb b/spec/domains_spec.rb index ba39828..b1d39b8 100644 --- a/spec/domains_spec.rb +++ b/spec/domains_spec.rb @@ -105,6 +105,14 @@ "type": "CNAME", "ttl": "Auto", "status": "not_started" + }, + { + "record": "TrackingCAA", + "name": "", + "value": "0 issue \"amazon.com\"", + "type": "CAA", + "ttl": "Auto", + "status": "not_started" } ], "region": "us-east-1", @@ -128,6 +136,10 @@ expect(tracking_record[:type]).to eql("CNAME") expect(tracking_record[:ttl]).to eql("Auto") expect(tracking_record[:status]).to eql("not_started") + tracking_caa_record = domain[:records].find { |r| r[:record] == "TrackingCAA" } + expect(tracking_caa_record).not_to be_nil + expect(tracking_caa_record[:type]).to eql("CAA") + expect(tracking_caa_record[:value]).to eql("0 issue \"amazon.com\"") end it "should raise when domain is already registered" do