@aws-cdk/aws-glue-alpha 2.176.0-alpha.0 → 2.178.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +6187 -3907
- package/.jsii.tabl.json.gz +0 -0
- package/.warnings.jsii.js +525 -235
- package/README.md +422 -159
- package/awslint.json +5 -5
- package/lib/code.js +4 -5
- package/lib/connection.js +15 -3
- package/lib/constants.d.ts +261 -0
- package/lib/constants.js +281 -0
- package/lib/data-format.js +5 -5
- package/lib/data-quality-ruleset.js +6 -3
- package/lib/database.js +5 -2
- package/lib/external-table.js +20 -2
- package/lib/index.d.ts +13 -2
- package/lib/index.js +14 -3
- package/lib/jobs/job.d.ts +393 -0
- package/lib/jobs/job.js +298 -0
- package/lib/jobs/pyspark-etl-job.d.ts +81 -0
- package/lib/jobs/pyspark-etl-job.js +130 -0
- package/lib/jobs/pyspark-flex-etl-job.d.ts +83 -0
- package/lib/jobs/pyspark-flex-etl-job.js +137 -0
- package/lib/jobs/pyspark-streaming-job.d.ts +81 -0
- package/lib/jobs/pyspark-streaming-job.js +130 -0
- package/lib/jobs/python-shell-job.d.ts +55 -0
- package/lib/jobs/python-shell-job.js +99 -0
- package/lib/jobs/ray-job.d.ts +44 -0
- package/lib/jobs/ray-job.js +89 -0
- package/lib/jobs/scala-spark-etl-job.d.ts +78 -0
- package/lib/jobs/scala-spark-etl-job.js +134 -0
- package/lib/jobs/scala-spark-flex-etl-job.d.ts +109 -0
- package/lib/jobs/scala-spark-flex-etl-job.js +143 -0
- package/lib/jobs/scala-spark-streaming-job.d.ts +77 -0
- package/lib/jobs/scala-spark-streaming-job.js +131 -0
- package/lib/jobs/spark-ui-utils.d.ts +53 -0
- package/lib/jobs/spark-ui-utils.js +26 -0
- package/lib/s3-table.d.ts +4 -4
- package/lib/s3-table.js +20 -2
- package/lib/schema.d.ts +1 -1
- package/lib/schema.js +2 -2
- package/lib/security-configuration.js +5 -2
- package/lib/storage-parameter.js +1 -1
- package/lib/table-base.d.ts +1 -1
- package/lib/table-base.js +2 -2
- package/lib/table-deprecated.js +1 -1
- package/lib/triggers/trigger-options.d.ts +205 -0
- package/lib/triggers/trigger-options.js +39 -0
- package/lib/triggers/workflow.d.ts +203 -0
- package/lib/triggers/workflow.js +371 -0
- package/package.json +8 -8
- package/rosetta/default.ts-fixture +1 -1
- package/lib/job-executable.d.ts +0 -384
- package/lib/job-executable.js +0 -348
- package/lib/job.d.ts +0 -574
- package/lib/job.js +0 -531
package/lib/job.d.ts
DELETED
|
@@ -1,574 +0,0 @@
|
|
|
1
|
-
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
|
|
2
|
-
import * as events from 'aws-cdk-lib/aws-events';
|
|
3
|
-
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
4
|
-
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
5
|
-
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
6
|
-
import * as cdk from 'aws-cdk-lib/core';
|
|
7
|
-
import * as constructs from 'constructs';
|
|
8
|
-
import { JobExecutable } from '.';
|
|
9
|
-
import { IConnection } from './connection';
|
|
10
|
-
import { ISecurityConfiguration } from './security-configuration';
|
|
11
|
-
/**
|
|
12
|
-
* The type of predefined worker that is allocated when a job runs.
|
|
13
|
-
*
|
|
14
|
-
* If you need to use a WorkerType that doesn't exist as a static member, you
|
|
15
|
-
* can instantiate a `WorkerType` object, e.g: `WorkerType.of('other type')`.
|
|
16
|
-
*/
|
|
17
|
-
export declare class WorkerType {
|
|
18
|
-
/**
|
|
19
|
-
* Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
|
|
20
|
-
*/
|
|
21
|
-
static readonly STANDARD: WorkerType;
|
|
22
|
-
/**
|
|
23
|
-
* Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for memory-intensive jobs.
|
|
24
|
-
*/
|
|
25
|
-
static readonly G_1X: WorkerType;
|
|
26
|
-
/**
|
|
27
|
-
* Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. Suitable for memory-intensive jobs.
|
|
28
|
-
*/
|
|
29
|
-
static readonly G_2X: WorkerType;
|
|
30
|
-
/**
|
|
31
|
-
* Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
|
|
32
|
-
*/
|
|
33
|
-
static readonly G_4X: WorkerType;
|
|
34
|
-
/**
|
|
35
|
-
* Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
|
|
36
|
-
*/
|
|
37
|
-
static readonly G_8X: WorkerType;
|
|
38
|
-
/**
|
|
39
|
-
* Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs.
|
|
40
|
-
*/
|
|
41
|
-
static readonly G_025X: WorkerType;
|
|
42
|
-
/**
|
|
43
|
-
* Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk). Supported in Ray jobs.
|
|
44
|
-
*/
|
|
45
|
-
static readonly Z_2X: WorkerType;
|
|
46
|
-
/**
|
|
47
|
-
* Custom worker type
|
|
48
|
-
* @param workerType custom worker type
|
|
49
|
-
*/
|
|
50
|
-
static of(workerType: string): WorkerType;
|
|
51
|
-
/**
|
|
52
|
-
* The name of this WorkerType, as expected by Job resource.
|
|
53
|
-
*/
|
|
54
|
-
readonly name: string;
|
|
55
|
-
private constructor();
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Job states emitted by Glue to CloudWatch Events.
|
|
59
|
-
*
|
|
60
|
-
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
|
|
61
|
-
*/
|
|
62
|
-
export declare enum JobState {
|
|
63
|
-
/**
|
|
64
|
-
* State indicating job run succeeded
|
|
65
|
-
*/
|
|
66
|
-
SUCCEEDED = "SUCCEEDED",
|
|
67
|
-
/**
|
|
68
|
-
* State indicating job run failed
|
|
69
|
-
*/
|
|
70
|
-
FAILED = "FAILED",
|
|
71
|
-
/**
|
|
72
|
-
* State indicating job run timed out
|
|
73
|
-
*/
|
|
74
|
-
TIMEOUT = "TIMEOUT",
|
|
75
|
-
/**
|
|
76
|
-
* State indicating job is starting
|
|
77
|
-
*/
|
|
78
|
-
STARTING = "STARTING",
|
|
79
|
-
/**
|
|
80
|
-
* State indicating job is running
|
|
81
|
-
*/
|
|
82
|
-
RUNNING = "RUNNING",
|
|
83
|
-
/**
|
|
84
|
-
* State indicating job is stopping
|
|
85
|
-
*/
|
|
86
|
-
STOPPING = "STOPPING",
|
|
87
|
-
/**
|
|
88
|
-
* State indicating job stopped
|
|
89
|
-
*/
|
|
90
|
-
STOPPED = "STOPPED"
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* The Glue CloudWatch metric type.
|
|
94
|
-
*
|
|
95
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
|
|
96
|
-
*/
|
|
97
|
-
export declare enum MetricType {
|
|
98
|
-
/**
|
|
99
|
-
* A value at a point in time.
|
|
100
|
-
*/
|
|
101
|
-
GAUGE = "gauge",
|
|
102
|
-
/**
|
|
103
|
-
* An aggregate number.
|
|
104
|
-
*/
|
|
105
|
-
COUNT = "count"
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* The ExecutionClass whether the job is run with a standard or flexible execution class.
|
|
109
|
-
*
|
|
110
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-job.html#aws-glue-api-jobs-job-Job
|
|
111
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/add-job.html
|
|
112
|
-
*/
|
|
113
|
-
export declare enum ExecutionClass {
|
|
114
|
-
/**
|
|
115
|
-
* The flexible execution class is appropriate for time-insensitive jobs whose start
|
|
116
|
-
* and completion times may vary.
|
|
117
|
-
*/
|
|
118
|
-
FLEX = "FLEX",
|
|
119
|
-
/**
|
|
120
|
-
* The standard execution class is ideal for time-sensitive workloads that require fast job
|
|
121
|
-
* startup and dedicated resources.
|
|
122
|
-
*/
|
|
123
|
-
STANDARD = "STANDARD"
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Interface representing a created or an imported `Job`.
|
|
127
|
-
*/
|
|
128
|
-
export interface IJob extends cdk.IResource, iam.IGrantable {
|
|
129
|
-
/**
|
|
130
|
-
* The name of the job.
|
|
131
|
-
* @attribute
|
|
132
|
-
*/
|
|
133
|
-
readonly jobName: string;
|
|
134
|
-
/**
|
|
135
|
-
* The ARN of the job.
|
|
136
|
-
* @attribute
|
|
137
|
-
*/
|
|
138
|
-
readonly jobArn: string;
|
|
139
|
-
/**
|
|
140
|
-
* Defines a CloudWatch event rule triggered when something happens with this job.
|
|
141
|
-
*
|
|
142
|
-
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
|
|
143
|
-
*/
|
|
144
|
-
onEvent(id: string, options?: events.OnEventOptions): events.Rule;
|
|
145
|
-
/**
|
|
146
|
-
* Defines a CloudWatch event rule triggered when this job moves to the input jobState.
|
|
147
|
-
*
|
|
148
|
-
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
|
|
149
|
-
*/
|
|
150
|
-
onStateChange(id: string, jobState: JobState, options?: events.OnEventOptions): events.Rule;
|
|
151
|
-
/**
|
|
152
|
-
* Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.
|
|
153
|
-
*
|
|
154
|
-
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
|
|
155
|
-
*/
|
|
156
|
-
onSuccess(id: string, options?: events.OnEventOptions): events.Rule;
|
|
157
|
-
/**
|
|
158
|
-
* Defines a CloudWatch event rule triggered when this job moves to the FAILED state.
|
|
159
|
-
*
|
|
160
|
-
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
|
|
161
|
-
*/
|
|
162
|
-
onFailure(id: string, options?: events.OnEventOptions): events.Rule;
|
|
163
|
-
/**
|
|
164
|
-
* Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.
|
|
165
|
-
*
|
|
166
|
-
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
|
|
167
|
-
*/
|
|
168
|
-
onTimeout(id: string, options?: events.OnEventOptions): events.Rule;
|
|
169
|
-
/**
|
|
170
|
-
* Create a CloudWatch metric.
|
|
171
|
-
*
|
|
172
|
-
* @param metricName name of the metric typically prefixed with `glue.driver.`, `glue.<executorId>.` or `glue.ALL.`.
|
|
173
|
-
* @param type the metric type.
|
|
174
|
-
* @param props metric options.
|
|
175
|
-
*
|
|
176
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
|
|
177
|
-
*/
|
|
178
|
-
metric(metricName: string, type: MetricType, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
179
|
-
/**
|
|
180
|
-
* Create a CloudWatch Metric indicating job success.
|
|
181
|
-
*/
|
|
182
|
-
metricSuccess(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
183
|
-
/**
|
|
184
|
-
* Create a CloudWatch Metric indicating job failure.
|
|
185
|
-
*/
|
|
186
|
-
metricFailure(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
187
|
-
/**
|
|
188
|
-
* Create a CloudWatch Metric indicating job timeout.
|
|
189
|
-
*/
|
|
190
|
-
metricTimeout(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
191
|
-
}
|
|
192
|
-
declare abstract class JobBase extends cdk.Resource implements IJob {
|
|
193
|
-
abstract readonly jobArn: string;
|
|
194
|
-
abstract readonly jobName: string;
|
|
195
|
-
abstract readonly grantPrincipal: iam.IPrincipal;
|
|
196
|
-
/**
|
|
197
|
-
* Create a CloudWatch Event Rule for this Glue Job when it's in a given state
|
|
198
|
-
*
|
|
199
|
-
* @param id construct id
|
|
200
|
-
* @param options event options. Note that some values are overridden if provided, these are
|
|
201
|
-
* - eventPattern.source = ['aws.glue']
|
|
202
|
-
* - eventPattern.detailType = ['Glue Job State Change', 'Glue Job Run Status']
|
|
203
|
-
* - eventPattern.detail.jobName = [this.jobName]
|
|
204
|
-
*
|
|
205
|
-
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
|
|
206
|
-
*/
|
|
207
|
-
onEvent(id: string, options?: events.OnEventOptions): events.Rule;
|
|
208
|
-
/**
|
|
209
|
-
* Create a CloudWatch Event Rule for the transition into the input jobState.
|
|
210
|
-
*
|
|
211
|
-
* @param id construct id.
|
|
212
|
-
* @param jobState the job state.
|
|
213
|
-
* @param options optional event options.
|
|
214
|
-
*/
|
|
215
|
-
onStateChange(id: string, jobState: JobState, options?: events.OnEventOptions): events.Rule;
|
|
216
|
-
/**
|
|
217
|
-
* Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
|
|
218
|
-
*
|
|
219
|
-
* @param id construct id.
|
|
220
|
-
* @param options optional event options. default is {}.
|
|
221
|
-
*/
|
|
222
|
-
onSuccess(id: string, options?: events.OnEventOptions): events.Rule;
|
|
223
|
-
/**
|
|
224
|
-
* Return a CloudWatch Event Rule matching FAILED state.
|
|
225
|
-
*
|
|
226
|
-
* @param id construct id.
|
|
227
|
-
* @param options optional event options. default is {}.
|
|
228
|
-
*/
|
|
229
|
-
onFailure(id: string, options?: events.OnEventOptions): events.Rule;
|
|
230
|
-
/**
|
|
231
|
-
* Return a CloudWatch Event Rule matching TIMEOUT state.
|
|
232
|
-
*
|
|
233
|
-
* @param id construct id.
|
|
234
|
-
* @param options optional event options. default is {}.
|
|
235
|
-
*/
|
|
236
|
-
onTimeout(id: string, options?: events.OnEventOptions): events.Rule;
|
|
237
|
-
/**
|
|
238
|
-
* Create a CloudWatch metric.
|
|
239
|
-
*
|
|
240
|
-
* @param metricName name of the metric typically prefixed with `glue.driver.`, `glue.<executorId>.` or `glue.ALL.`.
|
|
241
|
-
* @param type the metric type.
|
|
242
|
-
* @param props metric options.
|
|
243
|
-
*
|
|
244
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
|
|
245
|
-
*/
|
|
246
|
-
metric(metricName: string, type: MetricType, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
247
|
-
/**
|
|
248
|
-
* Return a CloudWatch Metric indicating job success.
|
|
249
|
-
*
|
|
250
|
-
* This metric is based on the Rule returned by no-args onSuccess() call.
|
|
251
|
-
*/
|
|
252
|
-
metricSuccess(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
253
|
-
/**
|
|
254
|
-
* Return a CloudWatch Metric indicating job failure.
|
|
255
|
-
*
|
|
256
|
-
* This metric is based on the Rule returned by no-args onFailure() call.
|
|
257
|
-
*/
|
|
258
|
-
metricFailure(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
259
|
-
/**
|
|
260
|
-
* Return a CloudWatch Metric indicating job timeout.
|
|
261
|
-
*
|
|
262
|
-
* This metric is based on the Rule returned by no-args onTimeout() call.
|
|
263
|
-
*/
|
|
264
|
-
metricTimeout(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
265
|
-
/**
|
|
266
|
-
* Creates or retrieves a singleton event rule for the input job state for use with the metric JobState methods.
|
|
267
|
-
*
|
|
268
|
-
* @param id construct id.
|
|
269
|
-
* @param jobState the job state.
|
|
270
|
-
* @private
|
|
271
|
-
*/
|
|
272
|
-
private metricJobStateRule;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Properties for enabling Spark UI monitoring feature for Spark-based Glue jobs.
|
|
276
|
-
*
|
|
277
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitor-spark-ui-jobs.html
|
|
278
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
279
|
-
*/
|
|
280
|
-
export interface SparkUIProps {
|
|
281
|
-
/**
|
|
282
|
-
* Enable Spark UI.
|
|
283
|
-
*/
|
|
284
|
-
readonly enabled: boolean;
|
|
285
|
-
/**
|
|
286
|
-
* The bucket where the Glue job stores the logs.
|
|
287
|
-
*
|
|
288
|
-
* @default - a new bucket will be created.
|
|
289
|
-
*/
|
|
290
|
-
readonly bucket?: s3.IBucket;
|
|
291
|
-
/**
|
|
292
|
-
* The path inside the bucket (objects prefix) where the Glue job stores the logs.
|
|
293
|
-
* Use format `'foo/bar/'`
|
|
294
|
-
*
|
|
295
|
-
* @default - the logs will be written at the root of the bucket
|
|
296
|
-
*/
|
|
297
|
-
readonly prefix?: string;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* The Spark UI logging location.
|
|
301
|
-
*
|
|
302
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitor-spark-ui-jobs.html
|
|
303
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
304
|
-
*/
|
|
305
|
-
export interface SparkUILoggingLocation {
|
|
306
|
-
/**
|
|
307
|
-
* The bucket where the Glue job stores the logs.
|
|
308
|
-
*
|
|
309
|
-
* @default - a new bucket will be created.
|
|
310
|
-
*/
|
|
311
|
-
readonly bucket: s3.IBucket;
|
|
312
|
-
/**
|
|
313
|
-
* The path inside the bucket (objects prefix) where the Glue job stores the logs.
|
|
314
|
-
*
|
|
315
|
-
* @default - the logs will be written at the root of the bucket
|
|
316
|
-
*/
|
|
317
|
-
readonly prefix?: string;
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Properties for enabling Continuous Logging for Glue Jobs.
|
|
321
|
-
*
|
|
322
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitor-continuous-logging-enable.html
|
|
323
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
324
|
-
*/
|
|
325
|
-
export interface ContinuousLoggingProps {
|
|
326
|
-
/**
|
|
327
|
-
* Enable continuous logging.
|
|
328
|
-
*/
|
|
329
|
-
readonly enabled: boolean;
|
|
330
|
-
/**
|
|
331
|
-
* Specify a custom CloudWatch log group name.
|
|
332
|
-
*
|
|
333
|
-
* @default - a log group is created with name `/aws-glue/jobs/logs-v2/`.
|
|
334
|
-
*/
|
|
335
|
-
readonly logGroup?: logs.ILogGroup;
|
|
336
|
-
/**
|
|
337
|
-
* Specify a custom CloudWatch log stream prefix.
|
|
338
|
-
*
|
|
339
|
-
* @default - the job run ID.
|
|
340
|
-
*/
|
|
341
|
-
readonly logStreamPrefix?: string;
|
|
342
|
-
/**
|
|
343
|
-
* Filter out non-useful Apache Spark driver/executor and Apache Hadoop YARN heartbeat log messages.
|
|
344
|
-
*
|
|
345
|
-
* @default true
|
|
346
|
-
*/
|
|
347
|
-
readonly quiet?: boolean;
|
|
348
|
-
/**
|
|
349
|
-
* Apply the provided conversion pattern.
|
|
350
|
-
*
|
|
351
|
-
* This is a Log4j Conversion Pattern to customize driver and executor logs.
|
|
352
|
-
*
|
|
353
|
-
* @default `%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n`
|
|
354
|
-
*/
|
|
355
|
-
readonly conversionPattern?: string;
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Attributes for importing `Job`.
|
|
359
|
-
*/
|
|
360
|
-
export interface JobAttributes {
|
|
361
|
-
/**
|
|
362
|
-
* The name of the job.
|
|
363
|
-
*/
|
|
364
|
-
readonly jobName: string;
|
|
365
|
-
/**
|
|
366
|
-
* The IAM role assumed by Glue to run this job.
|
|
367
|
-
*
|
|
368
|
-
* @default - undefined
|
|
369
|
-
*/
|
|
370
|
-
readonly role?: iam.IRole;
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Construction properties for `Job`.
|
|
374
|
-
*/
|
|
375
|
-
export interface JobProps {
|
|
376
|
-
/**
|
|
377
|
-
* The job's executable properties.
|
|
378
|
-
*/
|
|
379
|
-
readonly executable: JobExecutable;
|
|
380
|
-
/**
|
|
381
|
-
* The name of the job.
|
|
382
|
-
*
|
|
383
|
-
* @default - a name is automatically generated
|
|
384
|
-
*/
|
|
385
|
-
readonly jobName?: string;
|
|
386
|
-
/**
|
|
387
|
-
* The description of the job.
|
|
388
|
-
*
|
|
389
|
-
* @default - no value
|
|
390
|
-
*/
|
|
391
|
-
readonly description?: string;
|
|
392
|
-
/**
|
|
393
|
-
* Specifies whether job run queuing is enabled for the job runs for this job.
|
|
394
|
-
* A value of true means job run queuing is enabled for the job runs.
|
|
395
|
-
* If false or not populated, the job runs will not be considered for queueing.
|
|
396
|
-
* If this field does not match the value set in the job run, then the value from the job run field will be used.
|
|
397
|
-
*
|
|
398
|
-
* @default - no job run queuing
|
|
399
|
-
*/
|
|
400
|
-
readonly jobRunQueuingEnabled?: boolean;
|
|
401
|
-
/**
|
|
402
|
-
* The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.
|
|
403
|
-
* Cannot be used for Glue version 2.0 and later - workerType and workerCount should be used instead.
|
|
404
|
-
*
|
|
405
|
-
* @default - 10 when job type is Apache Spark ETL or streaming, 0.0625 when job type is Python shell
|
|
406
|
-
*/
|
|
407
|
-
readonly maxCapacity?: number;
|
|
408
|
-
/**
|
|
409
|
-
* The maximum number of times to retry this job after a job run fails.
|
|
410
|
-
*
|
|
411
|
-
* @default 0
|
|
412
|
-
*/
|
|
413
|
-
readonly maxRetries?: number;
|
|
414
|
-
/**
|
|
415
|
-
* The maximum number of concurrent runs allowed for the job.
|
|
416
|
-
*
|
|
417
|
-
* An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.
|
|
418
|
-
*
|
|
419
|
-
* @default 1
|
|
420
|
-
*/
|
|
421
|
-
readonly maxConcurrentRuns?: number;
|
|
422
|
-
/**
|
|
423
|
-
* The number of minutes to wait after a job run starts, before sending a job run delay notification.
|
|
424
|
-
*
|
|
425
|
-
* @default - no delay notifications
|
|
426
|
-
*/
|
|
427
|
-
readonly notifyDelayAfter?: cdk.Duration;
|
|
428
|
-
/**
|
|
429
|
-
* The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
|
|
430
|
-
*
|
|
431
|
-
* @default cdk.Duration.hours(48)
|
|
432
|
-
*/
|
|
433
|
-
readonly timeout?: cdk.Duration;
|
|
434
|
-
/**
|
|
435
|
-
* The type of predefined worker that is allocated when a job runs.
|
|
436
|
-
*
|
|
437
|
-
* @default - differs based on specific Glue version
|
|
438
|
-
*/
|
|
439
|
-
readonly workerType?: WorkerType;
|
|
440
|
-
/**
|
|
441
|
-
* The number of workers of a defined `WorkerType` that are allocated when a job runs.
|
|
442
|
-
*
|
|
443
|
-
* @default - differs based on specific Glue version/worker type
|
|
444
|
-
*/
|
|
445
|
-
readonly workerCount?: number;
|
|
446
|
-
/**
|
|
447
|
-
* The `Connection`s used for this job.
|
|
448
|
-
*
|
|
449
|
-
* Connections are used to connect to other AWS Service or resources within a VPC.
|
|
450
|
-
*
|
|
451
|
-
* @default [] - no connections are added to the job
|
|
452
|
-
*/
|
|
453
|
-
readonly connections?: IConnection[];
|
|
454
|
-
/**
|
|
455
|
-
* The `SecurityConfiguration` to use for this job.
|
|
456
|
-
*
|
|
457
|
-
* @default - no security configuration.
|
|
458
|
-
*/
|
|
459
|
-
readonly securityConfiguration?: ISecurityConfiguration;
|
|
460
|
-
/**
|
|
461
|
-
* The default arguments for this job, specified as name-value pairs.
|
|
462
|
-
*
|
|
463
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
464
|
-
*
|
|
465
|
-
* @default - no arguments
|
|
466
|
-
*/
|
|
467
|
-
readonly defaultArguments?: {
|
|
468
|
-
[key: string]: string;
|
|
469
|
-
};
|
|
470
|
-
/**
|
|
471
|
-
* The tags to add to the resources on which the job runs
|
|
472
|
-
*
|
|
473
|
-
* @default {} - no tags
|
|
474
|
-
*/
|
|
475
|
-
readonly tags?: {
|
|
476
|
-
[key: string]: string;
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* The IAM role assumed by Glue to run this job.
|
|
480
|
-
*
|
|
481
|
-
* If providing a custom role, it needs to trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
|
|
482
|
-
*
|
|
483
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
|
|
484
|
-
*
|
|
485
|
-
* @default - a role is automatically generated
|
|
486
|
-
*/
|
|
487
|
-
readonly role?: iam.IRole;
|
|
488
|
-
/**
|
|
489
|
-
* Enables the collection of metrics for job profiling.
|
|
490
|
-
* Equivalent to a job parameter `--enable-metrics`.
|
|
491
|
-
*
|
|
492
|
-
* @default - no profiling metrics emitted.
|
|
493
|
-
*
|
|
494
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
495
|
-
*/
|
|
496
|
-
readonly enableProfilingMetrics?: boolean;
|
|
497
|
-
/**
|
|
498
|
-
* Enables the Spark UI debugging and monitoring with the specified props.
|
|
499
|
-
*
|
|
500
|
-
* @default - Spark UI debugging and monitoring is disabled.
|
|
501
|
-
*
|
|
502
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitor-spark-ui-jobs.html
|
|
503
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
504
|
-
*/
|
|
505
|
-
readonly sparkUI?: SparkUIProps;
|
|
506
|
-
/**
|
|
507
|
-
* Enables continuous logging with the specified props.
|
|
508
|
-
*
|
|
509
|
-
* @default - continuous logging is disabled.
|
|
510
|
-
*
|
|
511
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitor-continuous-logging-enable.html
|
|
512
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
513
|
-
*/
|
|
514
|
-
readonly continuousLogging?: ContinuousLoggingProps;
|
|
515
|
-
/**
|
|
516
|
-
* The ExecutionClass whether the job is run with a standard or flexible execution class.
|
|
517
|
-
*
|
|
518
|
-
* @default - STANDARD
|
|
519
|
-
*
|
|
520
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-job.html#aws-glue-api-jobs-job-Job
|
|
521
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/add-job.html
|
|
522
|
-
*/
|
|
523
|
-
readonly executionClass?: ExecutionClass;
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* A Glue Job.
|
|
527
|
-
*/
|
|
528
|
-
export declare class Job extends JobBase {
|
|
529
|
-
/**
|
|
530
|
-
* Creates a Glue Job
|
|
531
|
-
*
|
|
532
|
-
* @param scope The scope creating construct (usually `this`).
|
|
533
|
-
* @param id The construct's id.
|
|
534
|
-
* @param attrs Import attributes
|
|
535
|
-
*/
|
|
536
|
-
static fromJobAttributes(scope: constructs.Construct, id: string, attrs: JobAttributes): IJob;
|
|
537
|
-
/**
|
|
538
|
-
* The ARN of the job.
|
|
539
|
-
*/
|
|
540
|
-
readonly jobArn: string;
|
|
541
|
-
/**
|
|
542
|
-
* The name of the job.
|
|
543
|
-
*/
|
|
544
|
-
readonly jobName: string;
|
|
545
|
-
/**
|
|
546
|
-
* The IAM role Glue assumes to run this job.
|
|
547
|
-
*/
|
|
548
|
-
readonly role: iam.IRole;
|
|
549
|
-
/**
|
|
550
|
-
* The principal this Glue Job is running as.
|
|
551
|
-
*/
|
|
552
|
-
readonly grantPrincipal: iam.IPrincipal;
|
|
553
|
-
/**
|
|
554
|
-
* The Spark UI logs location if Spark UI monitoring and debugging is enabled.
|
|
555
|
-
*
|
|
556
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/monitor-spark-ui-jobs.html
|
|
557
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
558
|
-
*/
|
|
559
|
-
readonly sparkUILoggingLocation?: SparkUILoggingLocation;
|
|
560
|
-
constructor(scope: constructs.Construct, id: string, props: JobProps);
|
|
561
|
-
/**
|
|
562
|
-
* Check no usage of reserved arguments.
|
|
563
|
-
*
|
|
564
|
-
* @see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
|
|
565
|
-
*/
|
|
566
|
-
private checkNoReservedArgs;
|
|
567
|
-
private executableArguments;
|
|
568
|
-
private setupSparkUI;
|
|
569
|
-
private validatePrefix;
|
|
570
|
-
private cleanPrefixForGrant;
|
|
571
|
-
private setupContinuousLogging;
|
|
572
|
-
private codeS3ObjectUrl;
|
|
573
|
-
}
|
|
574
|
-
export {};
|