Improve default S3 subtitle
This commit is contained in:
parent
c860a75978
commit
260e0b6f99
|
@ -27,11 +27,13 @@
|
||||||
if (datasource.source === IntegrationTypes.COUCHDB) {
|
if (datasource.source === IntegrationTypes.COUCHDB) {
|
||||||
return datasource.config.database
|
return datasource.config.database
|
||||||
}
|
}
|
||||||
if (
|
if (datasource.source === IntegrationTypes.DYNAMODB) {
|
||||||
datasource.source === IntegrationTypes.DYNAMODB ||
|
return `${datasource.config.endpoint}:${datasource.config.region}`
|
||||||
datasource.source === IntegrationTypes.S3
|
}
|
||||||
) {
|
if (datasource.source === IntegrationTypes.S3) {
|
||||||
return `${datasource.config.endpoint || "*"}:${datasource.config.region}`
|
return datasource.config.endpoint
|
||||||
|
? `${datasource.config.endpoint}:${datasource.config.region}`
|
||||||
|
: `s3.${datasource.config.region}.amazonaws.com`
|
||||||
}
|
}
|
||||||
if (datasource.source === IntegrationTypes.ELASTICSEARCH) {
|
if (datasource.source === IntegrationTypes.ELASTICSEARCH) {
|
||||||
return datasource.config.url
|
return datasource.config.url
|
||||||
|
|
Loading…
Reference in New Issue