generated from pulumi/pulumi-tf-provider-boilerplate
/
pipeline.go
534 lines (470 loc) · 27.6 KB
/
pipeline.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
// 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 datascience
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 Pipeline resource in Oracle Cloud Infrastructure Data Science service.
//
// Creates a new Pipeline.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/DataScience"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := DataScience.NewPipeline(ctx, "test_pipeline", &DataScience.PipelineArgs{
// CompartmentId: pulumi.Any(compartmentId),
// ProjectId: pulumi.Any(testProject.Id),
// StepDetails: datascience.PipelineStepDetailArray{
// &datascience.PipelineStepDetailArgs{
// StepName: pulumi.Any(pipelineStepDetailsStepName),
// StepType: pulumi.Any(pipelineStepDetailsStepType),
// DependsOns: pulumi.Any(pipelineStepDetailsDependsOn),
// Description: pulumi.Any(pipelineStepDetailsDescription),
// IsArtifactUploaded: pulumi.Any(pipelineStepDetailsIsArtifactUploaded),
// JobId: pulumi.Any(testJob.Id),
// StepConfigurationDetails: &datascience.PipelineStepDetailStepConfigurationDetailsArgs{
// CommandLineArguments: pulumi.Any(pipelineStepDetailsStepConfigurationDetailsCommandLineArguments),
// EnvironmentVariables: pulumi.Any(pipelineStepDetailsStepConfigurationDetailsEnvironmentVariables),
// MaximumRuntimeInMinutes: pulumi.Any(pipelineStepDetailsStepConfigurationDetailsMaximumRuntimeInMinutes),
// },
// StepInfrastructureConfigurationDetails: &datascience.PipelineStepDetailStepInfrastructureConfigurationDetailsArgs{
// BlockStorageSizeInGbs: pulumi.Any(pipelineStepDetailsStepInfrastructureConfigurationDetailsBlockStorageSizeInGbs),
// ShapeConfigDetails: &datascience.PipelineStepDetailStepInfrastructureConfigurationDetailsShapeConfigDetailsArgs{
// MemoryInGbs: pulumi.Any(pipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsMemoryInGbs),
// Ocpus: pulumi.Any(pipelineStepDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsOcpus),
// },
// ShapeName: pulumi.Any(testShape.Name),
// },
// },
// },
// ConfigurationDetails: &datascience.PipelineConfigurationDetailsArgs{
// Type: pulumi.Any(pipelineConfigurationDetailsType),
// CommandLineArguments: pulumi.Any(pipelineConfigurationDetailsCommandLineArguments),
// EnvironmentVariables: pulumi.Any(pipelineConfigurationDetailsEnvironmentVariables),
// MaximumRuntimeInMinutes: pulumi.Any(pipelineConfigurationDetailsMaximumRuntimeInMinutes),
// },
// DefinedTags: pulumi.Map{
// "Operations.CostCenter": pulumi.Any("42"),
// },
// Description: pulumi.Any(pipelineDescription),
// DisplayName: pulumi.Any(pipelineDisplayName),
// FreeformTags: pulumi.Map{
// "Department": pulumi.Any("Finance"),
// },
// InfrastructureConfigurationDetails: &datascience.PipelineInfrastructureConfigurationDetailsArgs{
// BlockStorageSizeInGbs: pulumi.Any(pipelineInfrastructureConfigurationDetailsBlockStorageSizeInGbs),
// ShapeName: pulumi.Any(testShape.Name),
// ShapeConfigDetails: &datascience.PipelineInfrastructureConfigurationDetailsShapeConfigDetailsArgs{
// MemoryInGbs: pulumi.Any(pipelineInfrastructureConfigurationDetailsShapeConfigDetailsMemoryInGbs),
// Ocpus: pulumi.Any(pipelineInfrastructureConfigurationDetailsShapeConfigDetailsOcpus),
// },
// },
// LogConfigurationDetails: &datascience.PipelineLogConfigurationDetailsArgs{
// EnableAutoLogCreation: pulumi.Any(pipelineLogConfigurationDetailsEnableAutoLogCreation),
// EnableLogging: pulumi.Any(pipelineLogConfigurationDetailsEnableLogging),
// LogGroupId: pulumi.Any(testLogGroup.Id),
// LogId: pulumi.Any(testLog.Id),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Pipelines can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:DataScience/pipeline:Pipeline test_pipeline "id"
// ```
type Pipeline struct {
pulumi.CustomResourceState
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the pipeline.
CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
// (Updatable) The configuration details of a pipeline.
ConfigurationDetails PipelineConfigurationDetailsOutput `pulumi:"configurationDetails"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the pipeline.
CreatedBy pulumi.StringOutput `pulumi:"createdBy"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
DeleteRelatedPipelineRuns pulumi.BoolPtrOutput `pulumi:"deleteRelatedPipelineRuns"`
// (Updatable) A short description of the step.
Description pulumi.StringOutput `pulumi:"description"`
// (Updatable) A user-friendly display name for the resource.
DisplayName pulumi.StringOutput `pulumi:"displayName"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
// The infrastructure configuration details of a pipeline or a step.
InfrastructureConfigurationDetails PipelineInfrastructureConfigurationDetailsOutput `pulumi:"infrastructureConfigurationDetails"`
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state.
LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"`
// (Updatable) The pipeline log configuration details.
LogConfigurationDetails PipelineLogConfigurationDetailsOutput `pulumi:"logConfigurationDetails"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the pipeline with.
ProjectId pulumi.StringOutput `pulumi:"projectId"`
// The current state of the pipeline.
State pulumi.StringOutput `pulumi:"state"`
StepArtifact PipelineStepArtifactOutput `pulumi:"stepArtifact"`
// (Updatable) Array of step details for each step.
StepDetails PipelineStepDetailArrayOutput `pulumi:"stepDetails"`
// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
SystemTags pulumi.MapOutput `pulumi:"systemTags"`
// The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2020-08-06T21:10:29.41Z
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
// The date and time the resource was updated in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2020-08-06T21:10:29.41Z
TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
}
// NewPipeline registers a new resource with the given unique name, arguments, and options.
func NewPipeline(ctx *pulumi.Context,
name string, args *PipelineArgs, opts ...pulumi.ResourceOption) (*Pipeline, 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.ProjectId == nil {
return nil, errors.New("invalid value for required argument 'ProjectId'")
}
if args.StepDetails == nil {
return nil, errors.New("invalid value for required argument 'StepDetails'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Pipeline
err := ctx.RegisterResource("oci:DataScience/pipeline:Pipeline", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPipeline gets an existing Pipeline 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 GetPipeline(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PipelineState, opts ...pulumi.ResourceOption) (*Pipeline, error) {
var resource Pipeline
err := ctx.ReadResource("oci:DataScience/pipeline:Pipeline", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Pipeline resources.
type pipelineState struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the pipeline.
CompartmentId *string `pulumi:"compartmentId"`
// (Updatable) The configuration details of a pipeline.
ConfigurationDetails *PipelineConfigurationDetails `pulumi:"configurationDetails"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the pipeline.
CreatedBy *string `pulumi:"createdBy"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
DeleteRelatedPipelineRuns *bool `pulumi:"deleteRelatedPipelineRuns"`
// (Updatable) A short description of the step.
Description *string `pulumi:"description"`
// (Updatable) A user-friendly display name for the resource.
DisplayName *string `pulumi:"displayName"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// The infrastructure configuration details of a pipeline or a step.
InfrastructureConfigurationDetails *PipelineInfrastructureConfigurationDetails `pulumi:"infrastructureConfigurationDetails"`
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state.
LifecycleDetails *string `pulumi:"lifecycleDetails"`
// (Updatable) The pipeline log configuration details.
LogConfigurationDetails *PipelineLogConfigurationDetails `pulumi:"logConfigurationDetails"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the pipeline with.
ProjectId *string `pulumi:"projectId"`
// The current state of the pipeline.
State *string `pulumi:"state"`
StepArtifact *PipelineStepArtifact `pulumi:"stepArtifact"`
// (Updatable) Array of step details for each step.
StepDetails []PipelineStepDetail `pulumi:"stepDetails"`
// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
SystemTags map[string]interface{} `pulumi:"systemTags"`
// The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2020-08-06T21:10:29.41Z
TimeCreated *string `pulumi:"timeCreated"`
// The date and time the resource was updated in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2020-08-06T21:10:29.41Z
TimeUpdated *string `pulumi:"timeUpdated"`
}
type PipelineState struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the pipeline.
CompartmentId pulumi.StringPtrInput
// (Updatable) The configuration details of a pipeline.
ConfigurationDetails PipelineConfigurationDetailsPtrInput
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the pipeline.
CreatedBy pulumi.StringPtrInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapInput
DeleteRelatedPipelineRuns pulumi.BoolPtrInput
// (Updatable) A short description of the step.
Description pulumi.StringPtrInput
// (Updatable) A user-friendly display name for the resource.
DisplayName pulumi.StringPtrInput
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapInput
// The infrastructure configuration details of a pipeline or a step.
InfrastructureConfigurationDetails PipelineInfrastructureConfigurationDetailsPtrInput
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state.
LifecycleDetails pulumi.StringPtrInput
// (Updatable) The pipeline log configuration details.
LogConfigurationDetails PipelineLogConfigurationDetailsPtrInput
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the pipeline with.
ProjectId pulumi.StringPtrInput
// The current state of the pipeline.
State pulumi.StringPtrInput
StepArtifact PipelineStepArtifactPtrInput
// (Updatable) Array of step details for each step.
StepDetails PipelineStepDetailArrayInput
// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
SystemTags pulumi.MapInput
// The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2020-08-06T21:10:29.41Z
TimeCreated pulumi.StringPtrInput
// The date and time the resource was updated in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2020-08-06T21:10:29.41Z
TimeUpdated pulumi.StringPtrInput
}
func (PipelineState) ElementType() reflect.Type {
return reflect.TypeOf((*pipelineState)(nil)).Elem()
}
type pipelineArgs struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the pipeline.
CompartmentId string `pulumi:"compartmentId"`
// (Updatable) The configuration details of a pipeline.
ConfigurationDetails *PipelineConfigurationDetails `pulumi:"configurationDetails"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
DeleteRelatedPipelineRuns *bool `pulumi:"deleteRelatedPipelineRuns"`
// (Updatable) A short description of the step.
Description *string `pulumi:"description"`
// (Updatable) A user-friendly display name for the resource.
DisplayName *string `pulumi:"displayName"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// The infrastructure configuration details of a pipeline or a step.
InfrastructureConfigurationDetails *PipelineInfrastructureConfigurationDetails `pulumi:"infrastructureConfigurationDetails"`
// (Updatable) The pipeline log configuration details.
LogConfigurationDetails *PipelineLogConfigurationDetails `pulumi:"logConfigurationDetails"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the pipeline with.
ProjectId string `pulumi:"projectId"`
StepArtifact *PipelineStepArtifact `pulumi:"stepArtifact"`
// (Updatable) Array of step details for each step.
StepDetails []PipelineStepDetail `pulumi:"stepDetails"`
}
// The set of arguments for constructing a Pipeline resource.
type PipelineArgs struct {
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the pipeline.
CompartmentId pulumi.StringInput
// (Updatable) The configuration details of a pipeline.
ConfigurationDetails PipelineConfigurationDetailsPtrInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapInput
DeleteRelatedPipelineRuns pulumi.BoolPtrInput
// (Updatable) A short description of the step.
Description pulumi.StringPtrInput
// (Updatable) A user-friendly display name for the resource.
DisplayName pulumi.StringPtrInput
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapInput
// The infrastructure configuration details of a pipeline or a step.
InfrastructureConfigurationDetails PipelineInfrastructureConfigurationDetailsPtrInput
// (Updatable) The pipeline log configuration details.
LogConfigurationDetails PipelineLogConfigurationDetailsPtrInput
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the pipeline with.
ProjectId pulumi.StringInput
StepArtifact PipelineStepArtifactPtrInput
// (Updatable) Array of step details for each step.
StepDetails PipelineStepDetailArrayInput
}
func (PipelineArgs) ElementType() reflect.Type {
return reflect.TypeOf((*pipelineArgs)(nil)).Elem()
}
type PipelineInput interface {
pulumi.Input
ToPipelineOutput() PipelineOutput
ToPipelineOutputWithContext(ctx context.Context) PipelineOutput
}
func (*Pipeline) ElementType() reflect.Type {
return reflect.TypeOf((**Pipeline)(nil)).Elem()
}
func (i *Pipeline) ToPipelineOutput() PipelineOutput {
return i.ToPipelineOutputWithContext(context.Background())
}
func (i *Pipeline) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineOutput)
}
// PipelineArrayInput is an input type that accepts PipelineArray and PipelineArrayOutput values.
// You can construct a concrete instance of `PipelineArrayInput` via:
//
// PipelineArray{ PipelineArgs{...} }
type PipelineArrayInput interface {
pulumi.Input
ToPipelineArrayOutput() PipelineArrayOutput
ToPipelineArrayOutputWithContext(context.Context) PipelineArrayOutput
}
type PipelineArray []PipelineInput
func (PipelineArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Pipeline)(nil)).Elem()
}
func (i PipelineArray) ToPipelineArrayOutput() PipelineArrayOutput {
return i.ToPipelineArrayOutputWithContext(context.Background())
}
func (i PipelineArray) ToPipelineArrayOutputWithContext(ctx context.Context) PipelineArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineArrayOutput)
}
// PipelineMapInput is an input type that accepts PipelineMap and PipelineMapOutput values.
// You can construct a concrete instance of `PipelineMapInput` via:
//
// PipelineMap{ "key": PipelineArgs{...} }
type PipelineMapInput interface {
pulumi.Input
ToPipelineMapOutput() PipelineMapOutput
ToPipelineMapOutputWithContext(context.Context) PipelineMapOutput
}
type PipelineMap map[string]PipelineInput
func (PipelineMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Pipeline)(nil)).Elem()
}
func (i PipelineMap) ToPipelineMapOutput() PipelineMapOutput {
return i.ToPipelineMapOutputWithContext(context.Background())
}
func (i PipelineMap) ToPipelineMapOutputWithContext(ctx context.Context) PipelineMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(PipelineMapOutput)
}
type PipelineOutput struct{ *pulumi.OutputState }
func (PipelineOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Pipeline)(nil)).Elem()
}
func (o PipelineOutput) ToPipelineOutput() PipelineOutput {
return o
}
func (o PipelineOutput) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput {
return o
}
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the pipeline.
func (o PipelineOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.CompartmentId }).(pulumi.StringOutput)
}
// (Updatable) The configuration details of a pipeline.
func (o PipelineOutput) ConfigurationDetails() PipelineConfigurationDetailsOutput {
return o.ApplyT(func(v *Pipeline) PipelineConfigurationDetailsOutput { return v.ConfigurationDetails }).(PipelineConfigurationDetailsOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the pipeline.
func (o PipelineOutput) CreatedBy() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.CreatedBy }).(pulumi.StringOutput)
}
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
func (o PipelineOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v *Pipeline) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput)
}
func (o PipelineOutput) DeleteRelatedPipelineRuns() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Pipeline) pulumi.BoolPtrOutput { return v.DeleteRelatedPipelineRuns }).(pulumi.BoolPtrOutput)
}
// (Updatable) A short description of the step.
func (o PipelineOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// (Updatable) A user-friendly display name for the resource.
func (o PipelineOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput)
}
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
func (o PipelineOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v *Pipeline) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput)
}
// The infrastructure configuration details of a pipeline or a step.
func (o PipelineOutput) InfrastructureConfigurationDetails() PipelineInfrastructureConfigurationDetailsOutput {
return o.ApplyT(func(v *Pipeline) PipelineInfrastructureConfigurationDetailsOutput {
return v.InfrastructureConfigurationDetails
}).(PipelineInfrastructureConfigurationDetailsOutput)
}
// A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state.
func (o PipelineOutput) LifecycleDetails() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.LifecycleDetails }).(pulumi.StringOutput)
}
// (Updatable) The pipeline log configuration details.
func (o PipelineOutput) LogConfigurationDetails() PipelineLogConfigurationDetailsOutput {
return o.ApplyT(func(v *Pipeline) PipelineLogConfigurationDetailsOutput { return v.LogConfigurationDetails }).(PipelineLogConfigurationDetailsOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the pipeline with.
func (o PipelineOutput) ProjectId() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.ProjectId }).(pulumi.StringOutput)
}
// The current state of the pipeline.
func (o PipelineOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
func (o PipelineOutput) StepArtifact() PipelineStepArtifactOutput {
return o.ApplyT(func(v *Pipeline) PipelineStepArtifactOutput { return v.StepArtifact }).(PipelineStepArtifactOutput)
}
// (Updatable) Array of step details for each step.
func (o PipelineOutput) StepDetails() PipelineStepDetailArrayOutput {
return o.ApplyT(func(v *Pipeline) PipelineStepDetailArrayOutput { return v.StepDetails }).(PipelineStepDetailArrayOutput)
}
// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
func (o PipelineOutput) SystemTags() pulumi.MapOutput {
return o.ApplyT(func(v *Pipeline) pulumi.MapOutput { return v.SystemTags }).(pulumi.MapOutput)
}
// The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2020-08-06T21:10:29.41Z
func (o PipelineOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
// The date and time the resource was updated in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2020-08-06T21:10:29.41Z
func (o PipelineOutput) TimeUpdated() pulumi.StringOutput {
return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.TimeUpdated }).(pulumi.StringOutput)
}
type PipelineArrayOutput struct{ *pulumi.OutputState }
func (PipelineArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Pipeline)(nil)).Elem()
}
func (o PipelineArrayOutput) ToPipelineArrayOutput() PipelineArrayOutput {
return o
}
func (o PipelineArrayOutput) ToPipelineArrayOutputWithContext(ctx context.Context) PipelineArrayOutput {
return o
}
func (o PipelineArrayOutput) Index(i pulumi.IntInput) PipelineOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Pipeline {
return vs[0].([]*Pipeline)[vs[1].(int)]
}).(PipelineOutput)
}
type PipelineMapOutput struct{ *pulumi.OutputState }
func (PipelineMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Pipeline)(nil)).Elem()
}
func (o PipelineMapOutput) ToPipelineMapOutput() PipelineMapOutput {
return o
}
func (o PipelineMapOutput) ToPipelineMapOutputWithContext(ctx context.Context) PipelineMapOutput {
return o
}
func (o PipelineMapOutput) MapIndex(k pulumi.StringInput) PipelineOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Pipeline {
return vs[0].(map[string]*Pipeline)[vs[1].(string)]
}).(PipelineOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PipelineInput)(nil)).Elem(), &Pipeline{})
pulumi.RegisterInputType(reflect.TypeOf((*PipelineArrayInput)(nil)).Elem(), PipelineArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PipelineMapInput)(nil)).Elem(), PipelineMap{})
pulumi.RegisterOutputType(PipelineOutput{})
pulumi.RegisterOutputType(PipelineArrayOutput{})
pulumi.RegisterOutputType(PipelineMapOutput{})
}