in common/lib/utils/rds_utils.ts [275:298]
public identifyRdsType(host: string): RdsUrlType {
if (!host) {
return RdsUrlType.OTHER;
}
if (this.isIPv4(host) || this.isIPv6(host)) {
return RdsUrlType.IP_ADDRESS;
} else if (this.isWriterClusterDns(host)) {
return RdsUrlType.RDS_WRITER_CLUSTER;
} else if (this.isReaderClusterDns(host)) {
return RdsUrlType.RDS_READER_CLUSTER;
} else if (this.isRdsCustomClusterDns(host)) {
return RdsUrlType.RDS_CUSTOM_CLUSTER;
} else if (this.isLimitlessDbShardGroupDns(host)) {
return RdsUrlType.RDS_AURORA_LIMITLESS_DB_SHARD_GROUP;
} else if (this.isRdsProxyDns(host)) {
return RdsUrlType.RDS_PROXY;
} else if (this.isRdsDns(host)) {
return RdsUrlType.RDS_INSTANCE;
} else {
// ELB URLs will also be classified as other
return RdsUrlType.OTHER;
}
}