n8n/packages/nodes-base/credentials/S3.credentials.ts
2020-09-17 12:56:07 +02:00

47 lines
862 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class S3 implements ICredentialType {
name = 's3';
displayName = 'S3';
documentationUrl = '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
},
];
}