UNPKG

2.35 kBJavaScriptView Raw
1export default {
2 SdviContentMover:`{
3 "tasks": [
4 {
5 "operation": "copy" | "move" | "delete",
6
7 "source": {
8 "optional": true | false,
9
10 # must specify either inventory OR externalStorage
11 "inventory": {
12 "labels": ["<label>" | "*", ],
13 "tags": ["<tag>", ],
14 "storageSet": ["<storage location name>" | "*", ], # only valid for move & delete tasks
15 "expandCollections": true | false
16 },
17 "externalStorage": {
18 "uri": "<protocol>://<host>/<path>/<file>",
19 "credentials": {
20 "key": "<parameter store key>",
21 "roleArn": "<role to assume to access the parameter store>",
22 "roleId": "<external ID to be used in role assumption>",
23 "region": "<AWS region of the parameter store>"
24 }
25 }
26 },
27
28 "destination": {
29 "name": "<path within the storage location>/<filename>",
30 "overwrite": "never" | "notInAnyAsset" | "notInOtherAsset" | "always",
31 "storageMetadata": {"<key>": "<value>",...} | "<sourceStorageMetadata>",
32
33 # must specify either inventory OR externalStorage
34 "inventory": {
35 "storage": "<storage location name>",
36 "newLabel": "<fileLabel>",
37 "newTags": ["<tag>", "<tag>"],
38 },
39 "externalStorage": {
40 "uri": "<protocol>://<host>",
41 "credentials": {
42 "key": "<parameter store key>",
43 "roleArn": "<role to assume to access the parameter store>",
44 "roleId": "<external ID to be used in role assumption>",
45 "region": "<AWS region of the parameter store>"
46 }
47 }
48 }
49 },
50
51 {
52 <another task>
53 },
54
55 {
56 <another task>
57 },
58
59 ...
60
61 ]
62}`, SdviEvaluate: `'''
63name: {name}
64'''
65
66# code here`, SdviEvalPro: `'''
67name: {name}
68'''
69
70import rally
71
72def evalMain(context):
73 # code here`,
74};