create.config.ts
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { useRuleChainI18n } from '../../../hook/useRuleChainI18n';
import { FormSchema } from '/@/components/Form';
export enum AwsSnsFieldsEnum {
TOPIC_ARN_PATTERN = 'topicArnPattern',
ACCESS_KEY_ID = 'accessKeyId',
SECRET_ACCESS_KEY = 'secretAccessKey',
REGION = 'region',
}
const { tLabel, tPlaceholder } = useRuleChainI18n('external', 'awsSns');
export const formSchemas: FormSchema[] = [
{
field: AwsSnsFieldsEnum.TOPIC_ARN_PATTERN,
label: tLabel(AwsSnsFieldsEnum.TOPIC_ARN_PATTERN),
component: 'Input',
required: true,
componentProps: {
placeholder: tPlaceholder(AwsSnsFieldsEnum.TOPIC_ARN_PATTERN),
},
},
{
field: AwsSnsFieldsEnum.ACCESS_KEY_ID,
label: tLabel(AwsSnsFieldsEnum.ACCESS_KEY_ID),
component: 'Input',
required: true,
componentProps: {
placeholder: tPlaceholder(AwsSnsFieldsEnum.ACCESS_KEY_ID),
},
},
{
field: AwsSnsFieldsEnum.SECRET_ACCESS_KEY,
label: tLabel(AwsSnsFieldsEnum.SECRET_ACCESS_KEY),
component: 'Input',
required: true,
componentProps: {
placeholder: tPlaceholder(AwsSnsFieldsEnum.SECRET_ACCESS_KEY),
},
},
{
field: AwsSnsFieldsEnum.REGION,
label: tLabel(AwsSnsFieldsEnum.REGION),
component: 'Input',
required: true,
componentProps: {
placeholder: tPlaceholder(AwsSnsFieldsEnum.REGION),
},
},
];