generated from pulumi/pulumi-tf-provider-boilerplate
/
application.go
796 lines (717 loc) · 58.1 KB
/
application.go
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package dataflow
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This resource provides the Application resource in Oracle Cloud Infrastructure Data Flow service.
//
// Creates an application.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/DataFlow"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := DataFlow.NewApplication(ctx, "test_application", &DataFlow.ApplicationArgs{
// CompartmentId: pulumi.Any(compartmentId),
// DisplayName: pulumi.Any(applicationDisplayName),
// DriverShape: pulumi.Any(applicationDriverShape),
// ExecutorShape: pulumi.Any(applicationExecutorShape),
// Language: pulumi.Any(applicationLanguage),
// NumExecutors: pulumi.Any(applicationNumExecutors),
// SparkVersion: pulumi.Any(applicationSparkVersion),
// ApplicationLogConfig: &dataflow.ApplicationApplicationLogConfigArgs{
// LogGroupId: pulumi.Any(testLogGroup.Id),
// LogId: pulumi.Any(testLog.Id),
// },
// ArchiveUri: pulumi.Any(applicationArchiveUri),
// Arguments: pulumi.Any(applicationArguments),
// ClassName: pulumi.Any(applicationClassName),
// Configuration: pulumi.Any(applicationConfiguration),
// DefinedTags: pulumi.Map{
// "Operations.CostCenter": pulumi.Any("42"),
// },
// Description: pulumi.Any(applicationDescription),
// DriverShapeConfig: &dataflow.ApplicationDriverShapeConfigArgs{
// MemoryInGbs: pulumi.Any(applicationDriverShapeConfigMemoryInGbs),
// Ocpus: pulumi.Any(applicationDriverShapeConfigOcpus),
// },
// Execute: pulumi.Any(applicationExecute),
// ExecutorShapeConfig: &dataflow.ApplicationExecutorShapeConfigArgs{
// MemoryInGbs: pulumi.Any(applicationExecutorShapeConfigMemoryInGbs),
// Ocpus: pulumi.Any(applicationExecutorShapeConfigOcpus),
// },
// FileUri: pulumi.Any(applicationFileUri),
// FreeformTags: pulumi.Map{
// "Department": pulumi.Any("Finance"),
// },
// IdleTimeoutInMinutes: pulumi.Any(applicationIdleTimeoutInMinutes),
// LogsBucketUri: pulumi.Any(applicationLogsBucketUri),
// MaxDurationInMinutes: pulumi.Any(applicationMaxDurationInMinutes),
// MetastoreId: pulumi.Any(metastoreId),
// Parameters: dataflow.ApplicationParameterArray{
// &dataflow.ApplicationParameterArgs{
// Name: pulumi.Any(applicationParametersName),
// Value: pulumi.Any(applicationParametersValue),
// },
// },
// PoolId: pulumi.Any(testPool.Id),
// PrivateEndpointId: pulumi.Any(testPrivateEndpoint.Id),
// Type: pulumi.Any(applicationType),
// WarehouseBucketUri: pulumi.Any(applicationWarehouseBucketUri),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Applications can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:DataFlow/application:Application test_application "id"
// ```
type Application struct {
pulumi.CustomResourceState
// (Updatable) Logging details of Application logs for Data Flow Run.
ApplicationLogConfig ApplicationApplicationLogConfigOutput `pulumi:"applicationLogConfig"`
// (Updatable) A comma separated list of one or more archive files as Oracle Cloud Infrastructure URIs. For example, ``oci://path/to/a.zip,oci://path/to/b.zip``. An Oracle Cloud Infrastructure URI of an archive.zip file containing custom dependencies that may be used to support the execution of a Python, Java, or Scala application. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
ArchiveUri pulumi.StringPtrOutput `pulumi:"archiveUri"`
// (Updatable) The arguments passed to the running application as command line arguments. An argument is either a plain text or a placeholder. Placeholders are replaced using values from the parameters map. Each placeholder specified must be represented in the parameters map else the request (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as `Service Api Spec`, where `name` is the name of the parameter. Example: `[ "--input", "${input_file}", "--name", "John Doe" ]` If "inputFile" has a value of "mydata.xml", then the value above will be translated to `--input mydata.xml --name "John Doe"`
Arguments pulumi.StringArrayOutput `pulumi:"arguments"`
// (Updatable) The class for the application.
ClassName pulumi.StringPtrOutput `pulumi:"className"`
// (Updatable) The OCID of a compartment.
CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
// (Updatable) The Spark configuration passed to the running process. See https://spark.apache.org/docs/latest/configuration.html#available-properties. Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" } Note: Not all Spark properties are permitted to be set. Attempting to set a property that is not allowed to be overwritten will cause a 400 status to be returned.
Configuration pulumi.MapOutput `pulumi:"configuration"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
// (Updatable) A user-friendly description. Avoid entering confidential information.
Description pulumi.StringOutput `pulumi:"description"`
// (Updatable) A user-friendly name. It does not have to be unique. Avoid entering confidential information.
DisplayName pulumi.StringOutput `pulumi:"displayName"`
// (Updatable) The VM shape for the driver. Sets the driver cores and memory.
DriverShape pulumi.StringOutput `pulumi:"driverShape"`
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
DriverShapeConfig ApplicationDriverShapeConfigOutput `pulumi:"driverShapeConfig"`
// (Updatable) The input used for spark-submit command. For more details see https://spark.apache.org/docs/latest/submitting-applications.html#launching-applications-with-spark-submit. Supported options include ``--class``, ``--file``, ``--jars``, ``--conf``, ``--py-files``, and main application file with arguments. Example: ``--jars oci://path/to/a.jar,oci://path/to/b.jar --files oci://path/to/a.json,oci://path/to/b.csv --py-files oci://path/to/a.py,oci://path/to/b.py --conf spark.sql.crossJoin.enabled=true --class org.apache.spark.examples.SparkPi oci://path/to/main.jar 10`` Note: If execute is specified together with applicationId, className, configuration, fileUri, language, arguments, parameters during application create/update, or run create/submit, Data Flow service will use derived information from execute input only.
Execute pulumi.StringOutput `pulumi:"execute"`
// (Updatable) The VM shape for the executors. Sets the executor cores and memory.
ExecutorShape pulumi.StringOutput `pulumi:"executorShape"`
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
ExecutorShapeConfig ApplicationExecutorShapeConfigOutput `pulumi:"executorShapeConfig"`
// (Updatable) An Oracle Cloud Infrastructure URI of the file containing the application to execute. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
FileUri pulumi.StringOutput `pulumi:"fileUri"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
// (Updatable) The timeout value in minutes used to manage Runs. A Run would be stopped after inactivity for this amount of time period. Note: This parameter is currently only applicable for Runs of type `SESSION`. Default value is 2880 minutes (2 days)
IdleTimeoutInMinutes pulumi.StringOutput `pulumi:"idleTimeoutInMinutes"`
// (Updatable) The Spark language.
Language pulumi.StringOutput `pulumi:"language"`
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
LogsBucketUri pulumi.StringOutput `pulumi:"logsBucketUri"`
// (Updatable) The maximum duration in minutes for which an Application should run. Data Flow Run would be terminated once it reaches this duration from the time it transitions to `IN_PROGRESS` state.
MaxDurationInMinutes pulumi.StringOutput `pulumi:"maxDurationInMinutes"`
// (Updatable) The OCID of Oracle Cloud Infrastructure Hive Metastore.
MetastoreId pulumi.StringOutput `pulumi:"metastoreId"`
// (Updatable) The number of executor VMs requested.
NumExecutors pulumi.IntOutput `pulumi:"numExecutors"`
// The OCID of the user who created the resource.
OwnerPrincipalId pulumi.StringOutput `pulumi:"ownerPrincipalId"`
// The username of the user who created the resource. If the username of the owner does not exist, `null` will be returned and the caller should refer to the ownerPrincipalId value instead.
OwnerUserName pulumi.StringOutput `pulumi:"ownerUserName"`
// (Updatable) An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "inputFile", value: "mydata.xml" }, { name: "variableX", value: "${x}"} ]
Parameters ApplicationParameterArrayOutput `pulumi:"parameters"`
// (Updatable) The OCID of a pool. Unique Id to indentify a dataflow pool resource.
PoolId pulumi.StringOutput `pulumi:"poolId"`
// (Updatable) The OCID of a private endpoint.
PrivateEndpointId pulumi.StringOutput `pulumi:"privateEndpointId"`
// (Updatable) The Spark version utilized to run the application.
SparkVersion pulumi.StringOutput `pulumi:"sparkVersion"`
// The current state of this application.
State pulumi.StringOutput `pulumi:"state"`
// The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z`
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
// The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z`
TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
// The Spark application processing type.
Type pulumi.StringOutput `pulumi:"type"`
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WarehouseBucketUri pulumi.StringOutput `pulumi:"warehouseBucketUri"`
}
// NewApplication registers a new resource with the given unique name, arguments, and options.
func NewApplication(ctx *pulumi.Context,
name string, args *ApplicationArgs, opts ...pulumi.ResourceOption) (*Application, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.CompartmentId == nil {
return nil, errors.New("invalid value for required argument 'CompartmentId'")
}
if args.DisplayName == nil {
return nil, errors.New("invalid value for required argument 'DisplayName'")
}
if args.DriverShape == nil {
return nil, errors.New("invalid value for required argument 'DriverShape'")
}
if args.ExecutorShape == nil {
return nil, errors.New("invalid value for required argument 'ExecutorShape'")
}
if args.Language == nil {
return nil, errors.New("invalid value for required argument 'Language'")
}
if args.NumExecutors == nil {
return nil, errors.New("invalid value for required argument 'NumExecutors'")
}
if args.SparkVersion == nil {
return nil, errors.New("invalid value for required argument 'SparkVersion'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Application
err := ctx.RegisterResource("oci:DataFlow/application:Application", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetApplication gets an existing Application resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetApplication(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ApplicationState, opts ...pulumi.ResourceOption) (*Application, error) {
var resource Application
err := ctx.ReadResource("oci:DataFlow/application:Application", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Application resources.
type applicationState struct {
// (Updatable) Logging details of Application logs for Data Flow Run.
ApplicationLogConfig *ApplicationApplicationLogConfig `pulumi:"applicationLogConfig"`
// (Updatable) A comma separated list of one or more archive files as Oracle Cloud Infrastructure URIs. For example, ``oci://path/to/a.zip,oci://path/to/b.zip``. An Oracle Cloud Infrastructure URI of an archive.zip file containing custom dependencies that may be used to support the execution of a Python, Java, or Scala application. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
ArchiveUri *string `pulumi:"archiveUri"`
// (Updatable) The arguments passed to the running application as command line arguments. An argument is either a plain text or a placeholder. Placeholders are replaced using values from the parameters map. Each placeholder specified must be represented in the parameters map else the request (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as `Service Api Spec`, where `name` is the name of the parameter. Example: `[ "--input", "${input_file}", "--name", "John Doe" ]` If "inputFile" has a value of "mydata.xml", then the value above will be translated to `--input mydata.xml --name "John Doe"`
Arguments []string `pulumi:"arguments"`
// (Updatable) The class for the application.
ClassName *string `pulumi:"className"`
// (Updatable) The OCID of a compartment.
CompartmentId *string `pulumi:"compartmentId"`
// (Updatable) The Spark configuration passed to the running process. See https://spark.apache.org/docs/latest/configuration.html#available-properties. Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" } Note: Not all Spark properties are permitted to be set. Attempting to set a property that is not allowed to be overwritten will cause a 400 status to be returned.
Configuration map[string]interface{} `pulumi:"configuration"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// (Updatable) A user-friendly description. Avoid entering confidential information.
Description *string `pulumi:"description"`
// (Updatable) A user-friendly name. It does not have to be unique. Avoid entering confidential information.
DisplayName *string `pulumi:"displayName"`
// (Updatable) The VM shape for the driver. Sets the driver cores and memory.
DriverShape *string `pulumi:"driverShape"`
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
DriverShapeConfig *ApplicationDriverShapeConfig `pulumi:"driverShapeConfig"`
// (Updatable) The input used for spark-submit command. For more details see https://spark.apache.org/docs/latest/submitting-applications.html#launching-applications-with-spark-submit. Supported options include ``--class``, ``--file``, ``--jars``, ``--conf``, ``--py-files``, and main application file with arguments. Example: ``--jars oci://path/to/a.jar,oci://path/to/b.jar --files oci://path/to/a.json,oci://path/to/b.csv --py-files oci://path/to/a.py,oci://path/to/b.py --conf spark.sql.crossJoin.enabled=true --class org.apache.spark.examples.SparkPi oci://path/to/main.jar 10`` Note: If execute is specified together with applicationId, className, configuration, fileUri, language, arguments, parameters during application create/update, or run create/submit, Data Flow service will use derived information from execute input only.
Execute *string `pulumi:"execute"`
// (Updatable) The VM shape for the executors. Sets the executor cores and memory.
ExecutorShape *string `pulumi:"executorShape"`
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
ExecutorShapeConfig *ApplicationExecutorShapeConfig `pulumi:"executorShapeConfig"`
// (Updatable) An Oracle Cloud Infrastructure URI of the file containing the application to execute. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
FileUri *string `pulumi:"fileUri"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// (Updatable) The timeout value in minutes used to manage Runs. A Run would be stopped after inactivity for this amount of time period. Note: This parameter is currently only applicable for Runs of type `SESSION`. Default value is 2880 minutes (2 days)
IdleTimeoutInMinutes *string `pulumi:"idleTimeoutInMinutes"`
// (Updatable) The Spark language.
Language *string `pulumi:"language"`
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
LogsBucketUri *string `pulumi:"logsBucketUri"`
// (Updatable) The maximum duration in minutes for which an Application should run. Data Flow Run would be terminated once it reaches this duration from the time it transitions to `IN_PROGRESS` state.
MaxDurationInMinutes *string `pulumi:"maxDurationInMinutes"`
// (Updatable) The OCID of Oracle Cloud Infrastructure Hive Metastore.
MetastoreId *string `pulumi:"metastoreId"`
// (Updatable) The number of executor VMs requested.
NumExecutors *int `pulumi:"numExecutors"`
// The OCID of the user who created the resource.
OwnerPrincipalId *string `pulumi:"ownerPrincipalId"`
// The username of the user who created the resource. If the username of the owner does not exist, `null` will be returned and the caller should refer to the ownerPrincipalId value instead.
OwnerUserName *string `pulumi:"ownerUserName"`
// (Updatable) An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "inputFile", value: "mydata.xml" }, { name: "variableX", value: "${x}"} ]
Parameters []ApplicationParameter `pulumi:"parameters"`
// (Updatable) The OCID of a pool. Unique Id to indentify a dataflow pool resource.
PoolId *string `pulumi:"poolId"`
// (Updatable) The OCID of a private endpoint.
PrivateEndpointId *string `pulumi:"privateEndpointId"`
// (Updatable) The Spark version utilized to run the application.
SparkVersion *string `pulumi:"sparkVersion"`
// The current state of this application.
State *string `pulumi:"state"`
// The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z`
TimeCreated *string `pulumi:"timeCreated"`
// The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z`
TimeUpdated *string `pulumi:"timeUpdated"`
// The Spark application processing type.
Type *string `pulumi:"type"`
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WarehouseBucketUri *string `pulumi:"warehouseBucketUri"`
}
type ApplicationState struct {
// (Updatable) Logging details of Application logs for Data Flow Run.
ApplicationLogConfig ApplicationApplicationLogConfigPtrInput
// (Updatable) A comma separated list of one or more archive files as Oracle Cloud Infrastructure URIs. For example, ``oci://path/to/a.zip,oci://path/to/b.zip``. An Oracle Cloud Infrastructure URI of an archive.zip file containing custom dependencies that may be used to support the execution of a Python, Java, or Scala application. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
ArchiveUri pulumi.StringPtrInput
// (Updatable) The arguments passed to the running application as command line arguments. An argument is either a plain text or a placeholder. Placeholders are replaced using values from the parameters map. Each placeholder specified must be represented in the parameters map else the request (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as `Service Api Spec`, where `name` is the name of the parameter. Example: `[ "--input", "${input_file}", "--name", "John Doe" ]` If "inputFile" has a value of "mydata.xml", then the value above will be translated to `--input mydata.xml --name "John Doe"`
Arguments pulumi.StringArrayInput
// (Updatable) The class for the application.
ClassName pulumi.StringPtrInput
// (Updatable) The OCID of a compartment.
CompartmentId pulumi.StringPtrInput
// (Updatable) The Spark configuration passed to the running process. See https://spark.apache.org/docs/latest/configuration.html#available-properties. Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" } Note: Not all Spark properties are permitted to be set. Attempting to set a property that is not allowed to be overwritten will cause a 400 status to be returned.
Configuration pulumi.MapInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapInput
// (Updatable) A user-friendly description. Avoid entering confidential information.
Description pulumi.StringPtrInput
// (Updatable) A user-friendly name. It does not have to be unique. Avoid entering confidential information.
DisplayName pulumi.StringPtrInput
// (Updatable) The VM shape for the driver. Sets the driver cores and memory.
DriverShape pulumi.StringPtrInput
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
DriverShapeConfig ApplicationDriverShapeConfigPtrInput
// (Updatable) The input used for spark-submit command. For more details see https://spark.apache.org/docs/latest/submitting-applications.html#launching-applications-with-spark-submit. Supported options include ``--class``, ``--file``, ``--jars``, ``--conf``, ``--py-files``, and main application file with arguments. Example: ``--jars oci://path/to/a.jar,oci://path/to/b.jar --files oci://path/to/a.json,oci://path/to/b.csv --py-files oci://path/to/a.py,oci://path/to/b.py --conf spark.sql.crossJoin.enabled=true --class org.apache.spark.examples.SparkPi oci://path/to/main.jar 10`` Note: If execute is specified together with applicationId, className, configuration, fileUri, language, arguments, parameters during application create/update, or run create/submit, Data Flow service will use derived information from execute input only.
Execute pulumi.StringPtrInput
// (Updatable) The VM shape for the executors. Sets the executor cores and memory.
ExecutorShape pulumi.StringPtrInput
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
ExecutorShapeConfig ApplicationExecutorShapeConfigPtrInput
// (Updatable) An Oracle Cloud Infrastructure URI of the file containing the application to execute. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
FileUri pulumi.StringPtrInput
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapInput
// (Updatable) The timeout value in minutes used to manage Runs. A Run would be stopped after inactivity for this amount of time period. Note: This parameter is currently only applicable for Runs of type `SESSION`. Default value is 2880 minutes (2 days)
IdleTimeoutInMinutes pulumi.StringPtrInput
// (Updatable) The Spark language.
Language pulumi.StringPtrInput
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
LogsBucketUri pulumi.StringPtrInput
// (Updatable) The maximum duration in minutes for which an Application should run. Data Flow Run would be terminated once it reaches this duration from the time it transitions to `IN_PROGRESS` state.
MaxDurationInMinutes pulumi.StringPtrInput
// (Updatable) The OCID of Oracle Cloud Infrastructure Hive Metastore.
MetastoreId pulumi.StringPtrInput
// (Updatable) The number of executor VMs requested.
NumExecutors pulumi.IntPtrInput
// The OCID of the user who created the resource.
OwnerPrincipalId pulumi.StringPtrInput
// The username of the user who created the resource. If the username of the owner does not exist, `null` will be returned and the caller should refer to the ownerPrincipalId value instead.
OwnerUserName pulumi.StringPtrInput
// (Updatable) An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "inputFile", value: "mydata.xml" }, { name: "variableX", value: "${x}"} ]
Parameters ApplicationParameterArrayInput
// (Updatable) The OCID of a pool. Unique Id to indentify a dataflow pool resource.
PoolId pulumi.StringPtrInput
// (Updatable) The OCID of a private endpoint.
PrivateEndpointId pulumi.StringPtrInput
// (Updatable) The Spark version utilized to run the application.
SparkVersion pulumi.StringPtrInput
// The current state of this application.
State pulumi.StringPtrInput
// The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z`
TimeCreated pulumi.StringPtrInput
// The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z`
TimeUpdated pulumi.StringPtrInput
// The Spark application processing type.
Type pulumi.StringPtrInput
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WarehouseBucketUri pulumi.StringPtrInput
}
func (ApplicationState) ElementType() reflect.Type {
return reflect.TypeOf((*applicationState)(nil)).Elem()
}
type applicationArgs struct {
// (Updatable) Logging details of Application logs for Data Flow Run.
ApplicationLogConfig *ApplicationApplicationLogConfig `pulumi:"applicationLogConfig"`
// (Updatable) A comma separated list of one or more archive files as Oracle Cloud Infrastructure URIs. For example, ``oci://path/to/a.zip,oci://path/to/b.zip``. An Oracle Cloud Infrastructure URI of an archive.zip file containing custom dependencies that may be used to support the execution of a Python, Java, or Scala application. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
ArchiveUri *string `pulumi:"archiveUri"`
// (Updatable) The arguments passed to the running application as command line arguments. An argument is either a plain text or a placeholder. Placeholders are replaced using values from the parameters map. Each placeholder specified must be represented in the parameters map else the request (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as `Service Api Spec`, where `name` is the name of the parameter. Example: `[ "--input", "${input_file}", "--name", "John Doe" ]` If "inputFile" has a value of "mydata.xml", then the value above will be translated to `--input mydata.xml --name "John Doe"`
Arguments []string `pulumi:"arguments"`
// (Updatable) The class for the application.
ClassName *string `pulumi:"className"`
// (Updatable) The OCID of a compartment.
CompartmentId string `pulumi:"compartmentId"`
// (Updatable) The Spark configuration passed to the running process. See https://spark.apache.org/docs/latest/configuration.html#available-properties. Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" } Note: Not all Spark properties are permitted to be set. Attempting to set a property that is not allowed to be overwritten will cause a 400 status to be returned.
Configuration map[string]interface{} `pulumi:"configuration"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// (Updatable) A user-friendly description. Avoid entering confidential information.
Description *string `pulumi:"description"`
// (Updatable) A user-friendly name. It does not have to be unique. Avoid entering confidential information.
DisplayName string `pulumi:"displayName"`
// (Updatable) The VM shape for the driver. Sets the driver cores and memory.
DriverShape string `pulumi:"driverShape"`
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
DriverShapeConfig *ApplicationDriverShapeConfig `pulumi:"driverShapeConfig"`
// (Updatable) The input used for spark-submit command. For more details see https://spark.apache.org/docs/latest/submitting-applications.html#launching-applications-with-spark-submit. Supported options include ``--class``, ``--file``, ``--jars``, ``--conf``, ``--py-files``, and main application file with arguments. Example: ``--jars oci://path/to/a.jar,oci://path/to/b.jar --files oci://path/to/a.json,oci://path/to/b.csv --py-files oci://path/to/a.py,oci://path/to/b.py --conf spark.sql.crossJoin.enabled=true --class org.apache.spark.examples.SparkPi oci://path/to/main.jar 10`` Note: If execute is specified together with applicationId, className, configuration, fileUri, language, arguments, parameters during application create/update, or run create/submit, Data Flow service will use derived information from execute input only.
Execute *string `pulumi:"execute"`
// (Updatable) The VM shape for the executors. Sets the executor cores and memory.
ExecutorShape string `pulumi:"executorShape"`
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
ExecutorShapeConfig *ApplicationExecutorShapeConfig `pulumi:"executorShapeConfig"`
// (Updatable) An Oracle Cloud Infrastructure URI of the file containing the application to execute. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
FileUri *string `pulumi:"fileUri"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// (Updatable) The timeout value in minutes used to manage Runs. A Run would be stopped after inactivity for this amount of time period. Note: This parameter is currently only applicable for Runs of type `SESSION`. Default value is 2880 minutes (2 days)
IdleTimeoutInMinutes *string `pulumi:"idleTimeoutInMinutes"`
// (Updatable) The Spark language.
Language string `pulumi:"language"`
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
LogsBucketUri *string `pulumi:"logsBucketUri"`
// (Updatable) The maximum duration in minutes for which an Application should run. Data Flow Run would be terminated once it reaches this duration from the time it transitions to `IN_PROGRESS` state.
MaxDurationInMinutes *string `pulumi:"maxDurationInMinutes"`
// (Updatable) The OCID of Oracle Cloud Infrastructure Hive Metastore.
MetastoreId *string `pulumi:"metastoreId"`
// (Updatable) The number of executor VMs requested.
NumExecutors int `pulumi:"numExecutors"`
// (Updatable) An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "inputFile", value: "mydata.xml" }, { name: "variableX", value: "${x}"} ]
Parameters []ApplicationParameter `pulumi:"parameters"`
// (Updatable) The OCID of a pool. Unique Id to indentify a dataflow pool resource.
PoolId *string `pulumi:"poolId"`
// (Updatable) The OCID of a private endpoint.
PrivateEndpointId *string `pulumi:"privateEndpointId"`
// (Updatable) The Spark version utilized to run the application.
SparkVersion string `pulumi:"sparkVersion"`
// The Spark application processing type.
Type *string `pulumi:"type"`
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WarehouseBucketUri *string `pulumi:"warehouseBucketUri"`
}
// The set of arguments for constructing a Application resource.
type ApplicationArgs struct {
// (Updatable) Logging details of Application logs for Data Flow Run.
ApplicationLogConfig ApplicationApplicationLogConfigPtrInput
// (Updatable) A comma separated list of one or more archive files as Oracle Cloud Infrastructure URIs. For example, ``oci://path/to/a.zip,oci://path/to/b.zip``. An Oracle Cloud Infrastructure URI of an archive.zip file containing custom dependencies that may be used to support the execution of a Python, Java, or Scala application. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
ArchiveUri pulumi.StringPtrInput
// (Updatable) The arguments passed to the running application as command line arguments. An argument is either a plain text or a placeholder. Placeholders are replaced using values from the parameters map. Each placeholder specified must be represented in the parameters map else the request (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as `Service Api Spec`, where `name` is the name of the parameter. Example: `[ "--input", "${input_file}", "--name", "John Doe" ]` If "inputFile" has a value of "mydata.xml", then the value above will be translated to `--input mydata.xml --name "John Doe"`
Arguments pulumi.StringArrayInput
// (Updatable) The class for the application.
ClassName pulumi.StringPtrInput
// (Updatable) The OCID of a compartment.
CompartmentId pulumi.StringInput
// (Updatable) The Spark configuration passed to the running process. See https://spark.apache.org/docs/latest/configuration.html#available-properties. Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" } Note: Not all Spark properties are permitted to be set. Attempting to set a property that is not allowed to be overwritten will cause a 400 status to be returned.
Configuration pulumi.MapInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapInput
// (Updatable) A user-friendly description. Avoid entering confidential information.
Description pulumi.StringPtrInput
// (Updatable) A user-friendly name. It does not have to be unique. Avoid entering confidential information.
DisplayName pulumi.StringInput
// (Updatable) The VM shape for the driver. Sets the driver cores and memory.
DriverShape pulumi.StringInput
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
DriverShapeConfig ApplicationDriverShapeConfigPtrInput
// (Updatable) The input used for spark-submit command. For more details see https://spark.apache.org/docs/latest/submitting-applications.html#launching-applications-with-spark-submit. Supported options include ``--class``, ``--file``, ``--jars``, ``--conf``, ``--py-files``, and main application file with arguments. Example: ``--jars oci://path/to/a.jar,oci://path/to/b.jar --files oci://path/to/a.json,oci://path/to/b.csv --py-files oci://path/to/a.py,oci://path/to/b.py --conf spark.sql.crossJoin.enabled=true --class org.apache.spark.examples.SparkPi oci://path/to/main.jar 10`` Note: If execute is specified together with applicationId, className, configuration, fileUri, language, arguments, parameters during application create/update, or run create/submit, Data Flow service will use derived information from execute input only.
Execute pulumi.StringPtrInput
// (Updatable) The VM shape for the executors. Sets the executor cores and memory.
ExecutorShape pulumi.StringInput
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
ExecutorShapeConfig ApplicationExecutorShapeConfigPtrInput
// (Updatable) An Oracle Cloud Infrastructure URI of the file containing the application to execute. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
FileUri pulumi.StringPtrInput
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapInput
// (Updatable) The timeout value in minutes used to manage Runs. A Run would be stopped after inactivity for this amount of time period. Note: This parameter is currently only applicable for Runs of type `SESSION`. Default value is 2880 minutes (2 days)
IdleTimeoutInMinutes pulumi.StringPtrInput
// (Updatable) The Spark language.
Language pulumi.StringInput
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
LogsBucketUri pulumi.StringPtrInput
// (Updatable) The maximum duration in minutes for which an Application should run. Data Flow Run would be terminated once it reaches this duration from the time it transitions to `IN_PROGRESS` state.
MaxDurationInMinutes pulumi.StringPtrInput
// (Updatable) The OCID of Oracle Cloud Infrastructure Hive Metastore.
MetastoreId pulumi.StringPtrInput
// (Updatable) The number of executor VMs requested.
NumExecutors pulumi.IntInput
// (Updatable) An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "inputFile", value: "mydata.xml" }, { name: "variableX", value: "${x}"} ]
Parameters ApplicationParameterArrayInput
// (Updatable) The OCID of a pool. Unique Id to indentify a dataflow pool resource.
PoolId pulumi.StringPtrInput
// (Updatable) The OCID of a private endpoint.
PrivateEndpointId pulumi.StringPtrInput
// (Updatable) The Spark version utilized to run the application.
SparkVersion pulumi.StringInput
// The Spark application processing type.
Type pulumi.StringPtrInput
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WarehouseBucketUri pulumi.StringPtrInput
}
func (ApplicationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*applicationArgs)(nil)).Elem()
}
type ApplicationInput interface {
pulumi.Input
ToApplicationOutput() ApplicationOutput
ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
}
func (*Application) ElementType() reflect.Type {
return reflect.TypeOf((**Application)(nil)).Elem()
}
func (i *Application) ToApplicationOutput() ApplicationOutput {
return i.ToApplicationOutputWithContext(context.Background())
}
func (i *Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationOutput)
}
// ApplicationArrayInput is an input type that accepts ApplicationArray and ApplicationArrayOutput values.
// You can construct a concrete instance of `ApplicationArrayInput` via:
//
// ApplicationArray{ ApplicationArgs{...} }
type ApplicationArrayInput interface {
pulumi.Input
ToApplicationArrayOutput() ApplicationArrayOutput
ToApplicationArrayOutputWithContext(context.Context) ApplicationArrayOutput
}
type ApplicationArray []ApplicationInput
func (ApplicationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Application)(nil)).Elem()
}
func (i ApplicationArray) ToApplicationArrayOutput() ApplicationArrayOutput {
return i.ToApplicationArrayOutputWithContext(context.Background())
}
func (i ApplicationArray) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationArrayOutput)
}
// ApplicationMapInput is an input type that accepts ApplicationMap and ApplicationMapOutput values.
// You can construct a concrete instance of `ApplicationMapInput` via:
//
// ApplicationMap{ "key": ApplicationArgs{...} }
type ApplicationMapInput interface {
pulumi.Input
ToApplicationMapOutput() ApplicationMapOutput
ToApplicationMapOutputWithContext(context.Context) ApplicationMapOutput
}
type ApplicationMap map[string]ApplicationInput
func (ApplicationMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Application)(nil)).Elem()
}
func (i ApplicationMap) ToApplicationMapOutput() ApplicationMapOutput {
return i.ToApplicationMapOutputWithContext(context.Background())
}
func (i ApplicationMap) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationMapOutput)
}
type ApplicationOutput struct{ *pulumi.OutputState }
func (ApplicationOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Application)(nil)).Elem()
}
func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput {
return o
}
func (o ApplicationOutput) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput {
return o
}
// (Updatable) Logging details of Application logs for Data Flow Run.
func (o ApplicationOutput) ApplicationLogConfig() ApplicationApplicationLogConfigOutput {
return o.ApplyT(func(v *Application) ApplicationApplicationLogConfigOutput { return v.ApplicationLogConfig }).(ApplicationApplicationLogConfigOutput)
}
// (Updatable) A comma separated list of one or more archive files as Oracle Cloud Infrastructure URIs. For example, “oci://path/to/a.zip,oci://path/to/b.zip“. An Oracle Cloud Infrastructure URI of an archive.zip file containing custom dependencies that may be used to support the execution of a Python, Java, or Scala application. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
func (o ApplicationOutput) ArchiveUri() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Application) pulumi.StringPtrOutput { return v.ArchiveUri }).(pulumi.StringPtrOutput)
}
// (Updatable) The arguments passed to the running application as command line arguments. An argument is either a plain text or a placeholder. Placeholders are replaced using values from the parameters map. Each placeholder specified must be represented in the parameters map else the request (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as `Service Api Spec`, where `name` is the name of the parameter. Example: `[ "--input", "${input_file}", "--name", "John Doe" ]` If "inputFile" has a value of "mydata.xml", then the value above will be translated to `--input mydata.xml --name "John Doe"`
func (o ApplicationOutput) Arguments() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Application) pulumi.StringArrayOutput { return v.Arguments }).(pulumi.StringArrayOutput)
}
// (Updatable) The class for the application.
func (o ApplicationOutput) ClassName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Application) pulumi.StringPtrOutput { return v.ClassName }).(pulumi.StringPtrOutput)
}
// (Updatable) The OCID of a compartment.
func (o ApplicationOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.CompartmentId }).(pulumi.StringOutput)
}
// (Updatable) The Spark configuration passed to the running process. See https://spark.apache.org/docs/latest/configuration.html#available-properties. Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" } Note: Not all Spark properties are permitted to be set. Attempting to set a property that is not allowed to be overwritten will cause a 400 status to be returned.
func (o ApplicationOutput) Configuration() pulumi.MapOutput {
return o.ApplyT(func(v *Application) pulumi.MapOutput { return v.Configuration }).(pulumi.MapOutput)
}
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
func (o ApplicationOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v *Application) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput)
}
// (Updatable) A user-friendly description. Avoid entering confidential information.
func (o ApplicationOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// (Updatable) A user-friendly name. It does not have to be unique. Avoid entering confidential information.
func (o ApplicationOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput)
}
// (Updatable) The VM shape for the driver. Sets the driver cores and memory.
func (o ApplicationOutput) DriverShape() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.DriverShape }).(pulumi.StringOutput)
}
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
func (o ApplicationOutput) DriverShapeConfig() ApplicationDriverShapeConfigOutput {
return o.ApplyT(func(v *Application) ApplicationDriverShapeConfigOutput { return v.DriverShapeConfig }).(ApplicationDriverShapeConfigOutput)
}
// (Updatable) The input used for spark-submit command. For more details see https://spark.apache.org/docs/latest/submitting-applications.html#launching-applications-with-spark-submit. Supported options include “--class“, “--file“, “--jars“, “--conf“, “--py-files“, and main application file with arguments. Example: “--jars oci://path/to/a.jar,oci://path/to/b.jar --files oci://path/to/a.json,oci://path/to/b.csv --py-files oci://path/to/a.py,oci://path/to/b.py --conf spark.sql.crossJoin.enabled=true --class org.apache.spark.examples.SparkPi oci://path/to/main.jar 10“ Note: If execute is specified together with applicationId, className, configuration, fileUri, language, arguments, parameters during application create/update, or run create/submit, Data Flow service will use derived information from execute input only.
func (o ApplicationOutput) Execute() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.Execute }).(pulumi.StringOutput)
}
// (Updatable) The VM shape for the executors. Sets the executor cores and memory.
func (o ApplicationOutput) ExecutorShape() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.ExecutorShape }).(pulumi.StringOutput)
}
// (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used.
func (o ApplicationOutput) ExecutorShapeConfig() ApplicationExecutorShapeConfigOutput {
return o.ApplyT(func(v *Application) ApplicationExecutorShapeConfigOutput { return v.ExecutorShapeConfig }).(ApplicationExecutorShapeConfigOutput)
}
// (Updatable) An Oracle Cloud Infrastructure URI of the file containing the application to execute. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
func (o ApplicationOutput) FileUri() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.FileUri }).(pulumi.StringOutput)
}
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
func (o ApplicationOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v *Application) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput)
}
// (Updatable) The timeout value in minutes used to manage Runs. A Run would be stopped after inactivity for this amount of time period. Note: This parameter is currently only applicable for Runs of type `SESSION`. Default value is 2880 minutes (2 days)
func (o ApplicationOutput) IdleTimeoutInMinutes() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.IdleTimeoutInMinutes }).(pulumi.StringOutput)
}
// (Updatable) The Spark language.
func (o ApplicationOutput) Language() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.Language }).(pulumi.StringOutput)
}
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
func (o ApplicationOutput) LogsBucketUri() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.LogsBucketUri }).(pulumi.StringOutput)
}
// (Updatable) The maximum duration in minutes for which an Application should run. Data Flow Run would be terminated once it reaches this duration from the time it transitions to `IN_PROGRESS` state.
func (o ApplicationOutput) MaxDurationInMinutes() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.MaxDurationInMinutes }).(pulumi.StringOutput)
}
// (Updatable) The OCID of Oracle Cloud Infrastructure Hive Metastore.
func (o ApplicationOutput) MetastoreId() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.MetastoreId }).(pulumi.StringOutput)
}
// (Updatable) The number of executor VMs requested.
func (o ApplicationOutput) NumExecutors() pulumi.IntOutput {
return o.ApplyT(func(v *Application) pulumi.IntOutput { return v.NumExecutors }).(pulumi.IntOutput)
}
// The OCID of the user who created the resource.
func (o ApplicationOutput) OwnerPrincipalId() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.OwnerPrincipalId }).(pulumi.StringOutput)
}
// The username of the user who created the resource. If the username of the owner does not exist, `null` will be returned and the caller should refer to the ownerPrincipalId value instead.
func (o ApplicationOutput) OwnerUserName() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.OwnerUserName }).(pulumi.StringOutput)
}
// (Updatable) An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "inputFile", value: "mydata.xml" }, { name: "variableX", value: "${x}"} ]
func (o ApplicationOutput) Parameters() ApplicationParameterArrayOutput {
return o.ApplyT(func(v *Application) ApplicationParameterArrayOutput { return v.Parameters }).(ApplicationParameterArrayOutput)
}
// (Updatable) The OCID of a pool. Unique Id to indentify a dataflow pool resource.
func (o ApplicationOutput) PoolId() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.PoolId }).(pulumi.StringOutput)
}
// (Updatable) The OCID of a private endpoint.
func (o ApplicationOutput) PrivateEndpointId() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.PrivateEndpointId }).(pulumi.StringOutput)
}
// (Updatable) The Spark version utilized to run the application.
func (o ApplicationOutput) SparkVersion() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.SparkVersion }).(pulumi.StringOutput)
}
// The current state of this application.
func (o ApplicationOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z`
func (o ApplicationOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
// The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z`
func (o ApplicationOutput) TimeUpdated() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.TimeUpdated }).(pulumi.StringOutput)
}
// The Spark application processing type.
func (o ApplicationOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput)
}
// (Updatable) An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
func (o ApplicationOutput) WarehouseBucketUri() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.WarehouseBucketUri }).(pulumi.StringOutput)
}
type ApplicationArrayOutput struct{ *pulumi.OutputState }
func (ApplicationArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Application)(nil)).Elem()
}
func (o ApplicationArrayOutput) ToApplicationArrayOutput() ApplicationArrayOutput {
return o
}
func (o ApplicationArrayOutput) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput {
return o
}
func (o ApplicationArrayOutput) Index(i pulumi.IntInput) ApplicationOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Application {
return vs[0].([]*Application)[vs[1].(int)]
}).(ApplicationOutput)
}
type ApplicationMapOutput struct{ *pulumi.OutputState }
func (ApplicationMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Application)(nil)).Elem()
}
func (o ApplicationMapOutput) ToApplicationMapOutput() ApplicationMapOutput {
return o
}
func (o ApplicationMapOutput) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput {
return o
}
func (o ApplicationMapOutput) MapIndex(k pulumi.StringInput) ApplicationOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Application {
return vs[0].(map[string]*Application)[vs[1].(string)]
}).(ApplicationOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ApplicationInput)(nil)).Elem(), &Application{})
pulumi.RegisterInputType(reflect.TypeOf((*ApplicationArrayInput)(nil)).Elem(), ApplicationArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ApplicationMapInput)(nil)).Elem(), ApplicationMap{})
pulumi.RegisterOutputType(ApplicationOutput{})
pulumi.RegisterOutputType(ApplicationArrayOutput{})
pulumi.RegisterOutputType(ApplicationMapOutput{})
}