mirror of
https://github.com/certd/certd.git
synced 2026-08-11 09:45:50 +08:00
Compare commits
2
Commits
373415261e
...
44ad61f004
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44ad61f004 | ||
|
|
74865d53f8 |
@@ -83,11 +83,6 @@ export class AwsClient {
|
||||
// const { Route53Client, ChangeResourceRecordSetsCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
|
||||
// import type { Route53ClientConfig } from "@aws-sdk/client-route-53";
|
||||
const client = await this.route53ClientGet();
|
||||
|
||||
const appendBody:any = {}
|
||||
if(req.action === 'CREATE'){
|
||||
appendBody.TTL = 60;
|
||||
}
|
||||
const input = { // ChangeResourceRecordSetsRequest
|
||||
HostedZoneId: req.hostedZoneId, // required
|
||||
ChangeBatch: { // ChangeBatch
|
||||
@@ -102,7 +97,7 @@ export class AwsClient {
|
||||
Value: `"${req.value}"`, // required
|
||||
},
|
||||
],
|
||||
...appendBody
|
||||
TTL: 60,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user