Flowise

Форк
0
/
AWSCredential.credential.ts 
47 строк · 1.7 Кб
1
import { INodeParams, INodeCredential } from '../src/Interface'
2

3
class AWSApi implements INodeCredential {
4
    label: string
5
    name: string
6
    version: number
7
    description: string
8
    optional: boolean
9
    inputs: INodeParams[]
10

11
    constructor() {
12
        this.label = 'AWS security credentials'
13
        this.name = 'awsApi'
14
        this.version = 1.0
15
        this.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.'
17
        this.optional = true
18
        this.inputs = [
19
            {
20
                label: 'AWS Access Key',
21
                name: 'awsKey',
22
                type: 'string',
23
                placeholder: '<AWS_ACCESS_KEY_ID>',
24
                description: 'The access key for your AWS account.',
25
                optional: true
26
            },
27
            {
28
                label: 'AWS Secret Access Key',
29
                name: 'awsSecret',
30
                type: 'password',
31
                placeholder: '<AWS_SECRET_ACCESS_KEY>',
32
                description: 'The secret key for your AWS account.',
33
                optional: true
34
            },
35
            {
36
                label: 'AWS Session Key',
37
                name: 'awsSession',
38
                type: 'password',
39
                placeholder: '<AWS_SESSION_TOKEN>',
40
                description: 'The session key for your AWS account. This is only needed when you are using temporary credentials.',
41
                optional: true
42
            }
43
        ]
44
    }
45
}
46

47
module.exports = { credClass: AWSApi }
48

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.