diff --git a/packages/nodes-base/credentials/CustomS3Endpoint.credentials.ts b/packages/nodes-base/credentials/CustomS3Endpoint.credentials.ts new file mode 100644 index 000000000..266a38fdd --- /dev/null +++ b/packages/nodes-base/credentials/CustomS3Endpoint.credentials.ts @@ -0,0 +1,45 @@ +import { + ICredentialType, + NodePropertyTypes, +} from 'n8n-workflow'; + + +export class CustomS3Endpoint implements ICredentialType { + name = 'customS3Endpoint'; + displayName = 'Custom S3'; + properties = [ + { + displayName: 'S3 endpoint', + name: 'endpoint', + type: 'string' as NodePropertyTypes, + default: '' + }, + { + displayName: 'Region', + name: 'region', + type: 'string' as NodePropertyTypes, + default: 'us-east-1', + }, + { + displayName: 'Access Key Id', + name: 'accessKeyId', + type: 'string' as NodePropertyTypes, + default: '', + }, + { + displayName: 'Secret Access Key', + name: 'secretAccessKey', + type: 'string' as NodePropertyTypes, + default: '', + typeOptions: { + password: true, + }, + }, + { + displayName: 'Force path style', + name: 'forcePathStyle', + type: 'boolean' as NodePropertyTypes, + default: false + }, + ]; +} diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 6f22c9745..31248624b 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -49,6 +49,7 @@ "dist/credentials/CopperApi.credentials.js", "dist/credentials/CalendlyApi.credentials.js", "dist/credentials/CustomerIoApi.credentials.js", + "dist/credentials/CustomS3Endpoint.credentials.js", "dist/credentials/CrateDb.credentials.js", "dist/credentials/DisqusApi.credentials.js", "dist/credentials/DriftApi.credentials.js",