mirror of
https://github.com/certd/certd.git
synced 2026-07-26 13:57:46 +08:00
perf: 所有的dnsprovider 支持导入域名列表
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { AbstractDnsProvider, CreateRecordOptions, IsDnsProvider, RemoveRecordOptions } from '@certd/plugin-cert';
|
||||
import { AbstractDnsProvider, CreateRecordOptions, DomainRecord, IsDnsProvider, RemoveRecordOptions } from '@certd/plugin-cert';
|
||||
import { AwsClient } from './libs/aws-client.js';
|
||||
import { AwsAccess } from './access.js';
|
||||
import { PageRes, PageSearch } from '@certd/pipeline';
|
||||
|
||||
|
||||
@IsDnsProvider({
|
||||
@@ -57,6 +58,10 @@ export class AwsRoute53Provider extends AbstractDnsProvider {
|
||||
this.logger.warn(`删除域名解析失败:${e.message} : ${hostedZoneId} ${fullRecord} ${value} ${type} `, );
|
||||
}
|
||||
}
|
||||
|
||||
async getDomainListPage(req: PageSearch): Promise<PageRes<DomainRecord>> {
|
||||
return await this.client.route53ListHostedZonesPage(req);
|
||||
}
|
||||
}
|
||||
|
||||
new AwsRoute53Provider();
|
||||
|
||||
Reference in New Issue
Block a user