2019-10-04 13:01:25 -07:00
import {
ICredentialType ,
2021-06-12 09:39:55 -07:00
INodeProperties ,
2019-10-04 13:01:25 -07:00
} from 'n8n-workflow' ;
export class Aws implements ICredentialType {
name = 'aws' ;
displayName = 'AWS' ;
2020-08-17 05:42:09 -07:00
documentationUrl = 'aws' ;
2021-09-11 01:15:36 -07:00
icon = 'file:AWS.svg' ;
2021-06-12 09:39:55 -07:00
properties : INodeProperties [ ] = [
2019-10-04 13:01:25 -07:00
{
displayName : 'Region' ,
name : 'region' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2019-10-04 13:01:25 -07:00
default : 'us-east-1' ,
} ,
{
2021-10-21 14:32:40 -07:00
displayName : 'Access Key ID' ,
2019-10-04 13:01:25 -07:00
name : 'accessKeyId' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2019-10-04 13:01:25 -07:00
default : '' ,
} ,
{
displayName : 'Secret Access Key' ,
name : 'secretAccessKey' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2019-10-04 13:01:25 -07:00
default : '' ,
typeOptions : {
password : true ,
} ,
} ,
2022-04-22 07:33:09 -07:00
{
displayName : 'Temporary Security Credentials' ,
name : 'temporaryCredentials' ,
description : 'Support for temporary credentials from AWS STS' ,
type : 'boolean' ,
default : false ,
} ,
{
displayName : 'Session Token' ,
name : 'sessionToken' ,
type : 'string' ,
displayOptions : {
show : {
temporaryCredentials : [
true ,
] ,
} ,
} ,
default : '' ,
typeOptions : {
password : true ,
} ,
} ,
2021-01-07 05:16:52 -08:00
{
displayName : 'Custom Endpoints' ,
name : 'customEndpoints' ,
2021-06-12 09:39:55 -07:00
type : 'boolean' ,
2021-01-07 05:16:52 -08:00
default : false ,
} ,
{
displayName : 'Rekognition Endpoint' ,
name : 'rekognitionEndpoint' ,
description : 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Rekognition using a VPC endpoint. Leave blank to use the default endpoint.' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2021-01-07 05:16:52 -08:00
displayOptions : {
show : {
customEndpoints : [
true ,
] ,
} ,
} ,
default : '' ,
placeholder : 'https://rekognition.{region}.amazonaws.com' ,
} ,
{
displayName : 'Lambda Endpoint' ,
name : 'lambdaEndpoint' ,
description : 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Lambda using a VPC endpoint. Leave blank to use the default endpoint.' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2021-01-07 05:16:52 -08:00
displayOptions : {
show : {
customEndpoints : [
true ,
] ,
} ,
} ,
default : '' ,
placeholder : 'https://lambda.{region}.amazonaws.com' ,
} ,
{
displayName : 'SNS Endpoint' ,
name : 'snsEndpoint' ,
description : 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SNS using a VPC endpoint. Leave blank to use the default endpoint.' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2021-01-07 05:16:52 -08:00
displayOptions : {
show : {
customEndpoints : [
true ,
] ,
} ,
} ,
default : '' ,
placeholder : 'https://sns.{region}.amazonaws.com' ,
} ,
{
displayName : 'SES Endpoint' ,
name : 'sesEndpoint' ,
description : 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SES using a VPC endpoint. Leave blank to use the default endpoint.' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2021-01-07 05:16:52 -08:00
displayOptions : {
show : {
customEndpoints : [
true ,
] ,
} ,
} ,
default : '' ,
placeholder : 'https://email.{region}.amazonaws.com' ,
} ,
2021-04-02 10:48:22 -07:00
{
displayName : 'SQS Endpoint' ,
name : 'sqsEndpoint' ,
description : 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SQS using a VPC endpoint. Leave blank to use the default endpoint.' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2021-04-02 10:48:22 -07:00
displayOptions : {
show : {
customEndpoints : [
true ,
] ,
} ,
} ,
default : '' ,
placeholder : 'https://sqs.{region}.amazonaws.com' ,
} ,
2021-01-07 05:16:52 -08:00
{
displayName : 'S3 Endpoint' ,
name : 's3Endpoint' ,
description : 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and S3 using a VPC endpoint. Leave blank to use the default endpoint.' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2021-01-07 05:16:52 -08:00
displayOptions : {
show : {
customEndpoints : [
true ,
] ,
} ,
} ,
default : '' ,
placeholder : 'https://s3.{region}.amazonaws.com' ,
} ,
2019-10-04 13:01:25 -07:00
] ;
}