Flowise
47 строк · 1.7 Кб
1import { INodeParams, INodeCredential } from '../src/Interface'
2
3class AWSApi implements INodeCredential {
4label: string
5name: string
6version: number
7description: string
8optional: boolean
9inputs: INodeParams[]
10
11constructor() {
12this.label = 'AWS security credentials'
13this.name = 'awsApi'
14this.version = 1.0
15this.description =
16'Your <a target="_blank" href="https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html">AWS security credentials</a>. When unspecified, credentials will be sourced from the runtime environment according to the default AWS SDK behavior.'
17this.optional = true
18this.inputs = [
19{
20label: 'AWS Access Key',
21name: 'awsKey',
22type: 'string',
23placeholder: '<AWS_ACCESS_KEY_ID>',
24description: 'The access key for your AWS account.',
25optional: true
26},
27{
28label: 'AWS Secret Access Key',
29name: 'awsSecret',
30type: 'password',
31placeholder: '<AWS_SECRET_ACCESS_KEY>',
32description: 'The secret key for your AWS account.',
33optional: true
34},
35{
36label: 'AWS Session Key',
37name: 'awsSession',
38type: 'password',
39placeholder: '<AWS_SESSION_TOKEN>',
40description: 'The session key for your AWS account. This is only needed when you are using temporary credentials.',
41optional: true
42}
43]
44}
45}
46
47module.exports = { credClass: AWSApi }
48