Skip to content

ChangeResourceRecordSets

Source: src/AWS/Route53/ChangeResourceRecordSets.ts

Runtime binding for the ChangeResourceRecordSets operation (IAM action route53:ChangeResourceRecordSets on the hosted zone ARN).

Creates, upserts, and deletes DNS record sets in the bound HostedZone at runtime — the core dynamic-DNS primitive (ACME dns-01 challenges, service discovery, failover flips). Pair with GetChange to wait until the change is INSYNC. Provide the implementation with Effect.provide(AWS.Route53.ChangeResourceRecordSetsHttp).

const changeRecordSets = yield* AWS.Route53.ChangeResourceRecordSets(zone);
const { ChangeInfo } = yield* changeRecordSets({
ChangeBatch: {
Changes: [{
Action: "UPSERT",
ResourceRecordSet: {
Name: "_acme-challenge.example.com.",
Type: "TXT",
TTL: 60,
ResourceRecords: [{ Value: '"token"' }],
},
}],
},
});