2020-08-04 13:34:22 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2020-08-04 13:34:22 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
2020-09-01 23:30:01 -07:00
|
|
|
export class S3 implements ICredentialType {
|
|
|
|
name = 's3';
|
|
|
|
displayName = 'S3';
|
2020-09-17 03:56:07 -07:00
|
|
|
documentationUrl = 's3';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-08-04 13:34:22 -07:00
|
|
|
{
|
|
|
|
displayName: 'S3 endpoint',
|
|
|
|
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',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Access Key Id',
|
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Force path style',
|
|
|
|
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
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|