2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-08-04 13:34:22 -07:00
|
|
|
|
2020-09-01 23:30:01 -07:00
|
|
|
export class S3 implements ICredentialType {
|
|
|
|
name = 's3';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-09-01 23:30:01 -07:00
|
|
|
displayName = 'S3';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-09-17 03:56:07 -07:00
|
|
|
documentationUrl = 's3';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-08-04 13:34:22 -07:00
|
|
|
{
|
2022-04-13 23:32:27 -07:00
|
|
|
displayName: 'S3 Endpoint',
|
2020-08-04 13:34:22 -07:00
|
|
|
name: 'endpoint',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-10-22 06:46:03 -07:00
|
|
|
default: '',
|
2020-08-04 13:34:22 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Region',
|
|
|
|
name: 'region',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-08-04 13:34:22 -07:00
|
|
|
default: 'us-east-1',
|
|
|
|
},
|
|
|
|
{
|
2021-10-21 14:32:40 -07:00
|
|
|
displayName: 'Access Key ID',
|
2020-08-04 13:34:22 -07:00
|
|
|
name: 'accessKeyId',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-08-04 13:34:22 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Secret Access Key',
|
|
|
|
name: 'secretAccessKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-08-04 13:34:22 -07:00
|
|
|
default: '',
|
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2022-04-13 23:32:27 -07:00
|
|
|
displayName: 'Force Path Style',
|
2020-08-04 13:34:22 -07:00
|
|
|
name: 'forcePathStyle',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'boolean',
|
2020-10-22 06:46:03 -07:00
|
|
|
default: false,
|
2020-08-04 13:34:22 -07:00
|
|
|
},
|
2024-05-02 02:08:36 -07:00
|
|
|
{
|
|
|
|
displayName: 'Ignore SSL Issues',
|
|
|
|
name: 'ignoreSSLIssues',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
description: 'Whether to connect even if SSL certificate validation is not possible',
|
|
|
|
},
|
2020-08-04 13:34:22 -07:00
|
|
|
];
|
|
|
|
}
|