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