This repository has been archived by the owner on Jun 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 270
/
definition.json
69 lines (69 loc) · 1.91 KB
/
definition.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{ "objects":
[ { "id": "S3"
, "name": "Backup Location"
, "type": "S3DataNode"
, "directoryPath": "#{myBackupLocation}/#{day(@scheduledStartTime)}/"
, "schedule":
{ "ref": "DefaultSchedule" }
}
, { "id": "DefaultSchedule"
, "name": "Every 1 day"
, "type": "Schedule"
, "period": "1 days"
, "startAt": "FIRST_ACTIVATION_DATE_TIME"
}
, { "id": "Instance"
, "name": "Instance"
, "type": "Ec2Resource"
, "role": "DataPipelineDefaultRole"
, "resourceRole": "DataPipelineDefaultResourceRole"
, "terminateAfter": "#{myTerminateAfter}"
, "schedule":
{ "ref": "DefaultSchedule" }
}
, { "id": "Default"
, "name": "Default"
, "role": "DataPipelineDefaultRole"
, "resourceRole": "DataPipelineDefaultResourceRole"
, "failureAndRerunMode": "CASCADE"
, "pipelineLogUri": "#{myPipelineLogUri}"
, "scheduleType": "cron"
, "schedule":
{ "ref": "DefaultSchedule" }
}
, { "id": "OracleDatabase"
, "name": "Oracle Database"
, "type": "JdbcDatabase"
, "jdbcDriverJarUri": "#{myOracleDriverLocation}"
, "jdbcDriverClass": "oracle.jdbc.OracleDriver"
, "connectionString": "jdbc:oracle:thin:@#{myOracleHost}:#{myOraclePort}:#{myOracleDatabase}"
, "username": "#{myOracleUser}"
, "*password": "#{myOraclePassword}"
}
, { "id": "BackupTable"
, "name": "Back up Oracle table"
, "type": "CopyActivity"
, "input":
{ "ref": "Oracle" }
, "output":
{ "ref": "S3" }
, "runsOn":
{ "ref": "Instance" }
, "schedule":
{ "ref": "DefaultSchedule" }
}
, { "id": "Oracle"
, "name": "Oracle"
, "type": "SqlDataNode"
, "table": "#{myOracleTable}"
, "selectQuery": "SELECT * FROM mytable"
, "database":
{ "ref": "OracleDatabase" }
, "runsOn":
{ "ref": "Instance" }
, "schedule":
{ "ref": "DefaultSchedule" }
}
],
"parameters": []
}