generated from pulumi/pulumi-tf-provider-boilerplate
/
modelDeployment.go
538 lines (478 loc) · 32.6 KB
/
modelDeployment.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
// 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 Model Deployment resource in Oracle Cloud Infrastructure Datascience service.
//
// Creates a new model deployment.
//
// ## 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.NewModelDeployment(ctx, "test_model_deployment", &DataScience.ModelDeploymentArgs{
// CompartmentId: pulumi.Any(compartmentId),
// ModelDeploymentConfigurationDetails: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsArgs{
// DeploymentType: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsDeploymentType),
// ModelConfigurationDetails: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsArgs{
// InstanceConfiguration: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationArgs{
// InstanceShapeName: pulumi.Any(testShape.Name),
// ModelDeploymentInstanceShapeConfigDetails: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsArgs{
// CpuBaseline: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsCpuBaseline),
// MemoryInGbs: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsMemoryInGbs),
// Ocpus: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsOcpus),
// },
// SubnetId: pulumi.Any(testSubnet.Id),
// },
// ModelId: pulumi.Any(testModel.Id),
// BandwidthMbps: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsBandwidthMbps),
// MaximumBandwidthMbps: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsMaximumBandwidthMbps),
// ScalingPolicy: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyArgs{
// PolicyType: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyPolicyType),
// AutoScalingPolicies: datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPolicyArray{
// &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPolicyArgs{
// AutoScalingPolicyType: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesAutoScalingPolicyType),
// InitialInstanceCount: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesInitialInstanceCount),
// MaximumInstanceCount: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesMaximumInstanceCount),
// MinimumInstanceCount: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesMinimumInstanceCount),
// Rules: datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArray{
// &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPolicyRuleArgs{
// MetricExpressionRuleType: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricExpressionRuleType),
// ScaleInConfiguration: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleInConfigurationArgs{
// InstanceCountAdjustment: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationInstanceCountAdjustment),
// PendingDuration: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationPendingDuration),
// Query: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationQuery),
// ScalingConfigurationType: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationScalingConfigurationType),
// Threshold: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleInConfigurationThreshold),
// },
// ScaleOutConfiguration: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPolicyRuleScaleOutConfigurationArgs{
// InstanceCountAdjustment: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationInstanceCountAdjustment),
// PendingDuration: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationPendingDuration),
// Query: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationQuery),
// ScalingConfigurationType: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationScalingConfigurationType),
// Threshold: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesScaleOutConfigurationThreshold),
// },
// MetricType: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyAutoScalingPoliciesRulesMetricType),
// },
// },
// },
// },
// CoolDownInSeconds: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyCoolDownInSeconds),
// InstanceCount: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyInstanceCount),
// IsEnabled: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyIsEnabled),
// },
// },
// EnvironmentConfigurationDetails: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsArgs{
// EnvironmentConfigurationType: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsEnvironmentConfigurationType),
// Cmds: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsCmd),
// Entrypoints: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsEntrypoint),
// EnvironmentVariables: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsEnvironmentVariables),
// HealthCheckPort: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsHealthCheckPort),
// Image: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsImage),
// ImageDigest: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsImageDigest),
// ServerPort: pulumi.Any(modelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsServerPort),
// },
// },
// ProjectId: pulumi.Any(testProject.Id),
// CategoryLogDetails: &datascience.ModelDeploymentCategoryLogDetailsArgs{
// Access: &datascience.ModelDeploymentCategoryLogDetailsAccessArgs{
// LogGroupId: pulumi.Any(testLogGroup.Id),
// LogId: pulumi.Any(testLog.Id),
// },
// Predict: &datascience.ModelDeploymentCategoryLogDetailsPredictArgs{
// LogGroupId: pulumi.Any(testLogGroup.Id),
// LogId: pulumi.Any(testLog.Id),
// },
// },
// DefinedTags: pulumi.Map{
// "Operations.CostCenter": pulumi.Any("42"),
// },
// Description: pulumi.Any(modelDeploymentDescription),
// DisplayName: pulumi.Any(modelDeploymentDisplayName),
// FreeformTags: pulumi.Map{
// "Department": pulumi.Any("Finance"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// ModelDeployments can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:DataScience/modelDeployment:ModelDeployment test_model_deployment "id"
// ```
type ModelDeployment struct {
pulumi.CustomResourceState
// (Updatable) The log details for each category.
CategoryLogDetails ModelDeploymentCategoryLogDetailsOutput `pulumi:"categoryLogDetails"`
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the model deployment.
CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the model deployment.
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"`
// (Updatable) A short description of the model deployment.
Description pulumi.StringOutput `pulumi:"description"`
// (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example: `My ModelDeployment`
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"`
// Details about the state of the model deployment.
LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"`
// (Updatable) The model deployment configuration details.
ModelDeploymentConfigurationDetails ModelDeploymentModelDeploymentConfigurationDetailsOutput `pulumi:"modelDeploymentConfigurationDetails"`
// Model deployment system data.
ModelDeploymentSystemDatas ModelDeploymentModelDeploymentSystemDataArrayOutput `pulumi:"modelDeploymentSystemDatas"`
// The URL to interact with the model deployment.
ModelDeploymentUrl pulumi.StringOutput `pulumi:"modelDeploymentUrl"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model deployment.
ProjectId pulumi.StringOutput `pulumi:"projectId"`
// (Updatable) The target state for the Model Deployment. Could be set to `ACTIVE` or `INACTIVE`.
//
// ** 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
State pulumi.StringOutput `pulumi:"state"`
// The date and time the resource was created, in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
}
// NewModelDeployment registers a new resource with the given unique name, arguments, and options.
func NewModelDeployment(ctx *pulumi.Context,
name string, args *ModelDeploymentArgs, opts ...pulumi.ResourceOption) (*ModelDeployment, 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.ModelDeploymentConfigurationDetails == nil {
return nil, errors.New("invalid value for required argument 'ModelDeploymentConfigurationDetails'")
}
if args.ProjectId == nil {
return nil, errors.New("invalid value for required argument 'ProjectId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource ModelDeployment
err := ctx.RegisterResource("oci:DataScience/modelDeployment:ModelDeployment", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetModelDeployment gets an existing ModelDeployment 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 GetModelDeployment(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ModelDeploymentState, opts ...pulumi.ResourceOption) (*ModelDeployment, error) {
var resource ModelDeployment
err := ctx.ReadResource("oci:DataScience/modelDeployment:ModelDeployment", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ModelDeployment resources.
type modelDeploymentState struct {
// (Updatable) The log details for each category.
CategoryLogDetails *ModelDeploymentCategoryLogDetails `pulumi:"categoryLogDetails"`
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the model deployment.
CompartmentId *string `pulumi:"compartmentId"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the model deployment.
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"`
// (Updatable) A short description of the model deployment.
Description *string `pulumi:"description"`
// (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example: `My ModelDeployment`
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"`
// Details about the state of the model deployment.
LifecycleDetails *string `pulumi:"lifecycleDetails"`
// (Updatable) The model deployment configuration details.
ModelDeploymentConfigurationDetails *ModelDeploymentModelDeploymentConfigurationDetails `pulumi:"modelDeploymentConfigurationDetails"`
// Model deployment system data.
ModelDeploymentSystemDatas []ModelDeploymentModelDeploymentSystemData `pulumi:"modelDeploymentSystemDatas"`
// The URL to interact with the model deployment.
ModelDeploymentUrl *string `pulumi:"modelDeploymentUrl"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model deployment.
ProjectId *string `pulumi:"projectId"`
// (Updatable) The target state for the Model Deployment. Could be set to `ACTIVE` or `INACTIVE`.
//
// ** 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
State *string `pulumi:"state"`
// The date and time the resource was created, in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z
TimeCreated *string `pulumi:"timeCreated"`
}
type ModelDeploymentState struct {
// (Updatable) The log details for each category.
CategoryLogDetails ModelDeploymentCategoryLogDetailsPtrInput
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the model deployment.
CompartmentId pulumi.StringPtrInput
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the model deployment.
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
// (Updatable) A short description of the model deployment.
Description pulumi.StringPtrInput
// (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example: `My ModelDeployment`
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
// Details about the state of the model deployment.
LifecycleDetails pulumi.StringPtrInput
// (Updatable) The model deployment configuration details.
ModelDeploymentConfigurationDetails ModelDeploymentModelDeploymentConfigurationDetailsPtrInput
// Model deployment system data.
ModelDeploymentSystemDatas ModelDeploymentModelDeploymentSystemDataArrayInput
// The URL to interact with the model deployment.
ModelDeploymentUrl pulumi.StringPtrInput
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model deployment.
ProjectId pulumi.StringPtrInput
// (Updatable) The target state for the Model Deployment. Could be set to `ACTIVE` or `INACTIVE`.
//
// ** 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
State pulumi.StringPtrInput
// The date and time the resource was created, in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z
TimeCreated pulumi.StringPtrInput
}
func (ModelDeploymentState) ElementType() reflect.Type {
return reflect.TypeOf((*modelDeploymentState)(nil)).Elem()
}
type modelDeploymentArgs struct {
// (Updatable) The log details for each category.
CategoryLogDetails *ModelDeploymentCategoryLogDetails `pulumi:"categoryLogDetails"`
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the model deployment.
CompartmentId string `pulumi:"compartmentId"`
// (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"`
// (Updatable) A short description of the model deployment.
Description *string `pulumi:"description"`
// (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example: `My ModelDeployment`
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"`
// (Updatable) The model deployment configuration details.
ModelDeploymentConfigurationDetails ModelDeploymentModelDeploymentConfigurationDetails `pulumi:"modelDeploymentConfigurationDetails"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model deployment.
ProjectId string `pulumi:"projectId"`
// (Updatable) The target state for the Model Deployment. Could be set to `ACTIVE` or `INACTIVE`.
//
// ** 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
State *string `pulumi:"state"`
}
// The set of arguments for constructing a ModelDeployment resource.
type ModelDeploymentArgs struct {
// (Updatable) The log details for each category.
CategoryLogDetails ModelDeploymentCategoryLogDetailsPtrInput
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the model deployment.
CompartmentId pulumi.StringInput
// (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
// (Updatable) A short description of the model deployment.
Description pulumi.StringPtrInput
// (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example: `My ModelDeployment`
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
// (Updatable) The model deployment configuration details.
ModelDeploymentConfigurationDetails ModelDeploymentModelDeploymentConfigurationDetailsInput
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model deployment.
ProjectId pulumi.StringInput
// (Updatable) The target state for the Model Deployment. Could be set to `ACTIVE` or `INACTIVE`.
//
// ** 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
State pulumi.StringPtrInput
}
func (ModelDeploymentArgs) ElementType() reflect.Type {
return reflect.TypeOf((*modelDeploymentArgs)(nil)).Elem()
}
type ModelDeploymentInput interface {
pulumi.Input
ToModelDeploymentOutput() ModelDeploymentOutput
ToModelDeploymentOutputWithContext(ctx context.Context) ModelDeploymentOutput
}
func (*ModelDeployment) ElementType() reflect.Type {
return reflect.TypeOf((**ModelDeployment)(nil)).Elem()
}
func (i *ModelDeployment) ToModelDeploymentOutput() ModelDeploymentOutput {
return i.ToModelDeploymentOutputWithContext(context.Background())
}
func (i *ModelDeployment) ToModelDeploymentOutputWithContext(ctx context.Context) ModelDeploymentOutput {
return pulumi.ToOutputWithContext(ctx, i).(ModelDeploymentOutput)
}
// ModelDeploymentArrayInput is an input type that accepts ModelDeploymentArray and ModelDeploymentArrayOutput values.
// You can construct a concrete instance of `ModelDeploymentArrayInput` via:
//
// ModelDeploymentArray{ ModelDeploymentArgs{...} }
type ModelDeploymentArrayInput interface {
pulumi.Input
ToModelDeploymentArrayOutput() ModelDeploymentArrayOutput
ToModelDeploymentArrayOutputWithContext(context.Context) ModelDeploymentArrayOutput
}
type ModelDeploymentArray []ModelDeploymentInput
func (ModelDeploymentArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ModelDeployment)(nil)).Elem()
}
func (i ModelDeploymentArray) ToModelDeploymentArrayOutput() ModelDeploymentArrayOutput {
return i.ToModelDeploymentArrayOutputWithContext(context.Background())
}
func (i ModelDeploymentArray) ToModelDeploymentArrayOutputWithContext(ctx context.Context) ModelDeploymentArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ModelDeploymentArrayOutput)
}
// ModelDeploymentMapInput is an input type that accepts ModelDeploymentMap and ModelDeploymentMapOutput values.
// You can construct a concrete instance of `ModelDeploymentMapInput` via:
//
// ModelDeploymentMap{ "key": ModelDeploymentArgs{...} }
type ModelDeploymentMapInput interface {
pulumi.Input
ToModelDeploymentMapOutput() ModelDeploymentMapOutput
ToModelDeploymentMapOutputWithContext(context.Context) ModelDeploymentMapOutput
}
type ModelDeploymentMap map[string]ModelDeploymentInput
func (ModelDeploymentMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ModelDeployment)(nil)).Elem()
}
func (i ModelDeploymentMap) ToModelDeploymentMapOutput() ModelDeploymentMapOutput {
return i.ToModelDeploymentMapOutputWithContext(context.Background())
}
func (i ModelDeploymentMap) ToModelDeploymentMapOutputWithContext(ctx context.Context) ModelDeploymentMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ModelDeploymentMapOutput)
}
type ModelDeploymentOutput struct{ *pulumi.OutputState }
func (ModelDeploymentOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ModelDeployment)(nil)).Elem()
}
func (o ModelDeploymentOutput) ToModelDeploymentOutput() ModelDeploymentOutput {
return o
}
func (o ModelDeploymentOutput) ToModelDeploymentOutputWithContext(ctx context.Context) ModelDeploymentOutput {
return o
}
// (Updatable) The log details for each category.
func (o ModelDeploymentOutput) CategoryLogDetails() ModelDeploymentCategoryLogDetailsOutput {
return o.ApplyT(func(v *ModelDeployment) ModelDeploymentCategoryLogDetailsOutput { return v.CategoryLogDetails }).(ModelDeploymentCategoryLogDetailsOutput)
}
// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the model deployment.
func (o ModelDeploymentOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.StringOutput { return v.CompartmentId }).(pulumi.StringOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the model deployment.
func (o ModelDeploymentOutput) CreatedBy() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) 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 ModelDeploymentOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput)
}
// (Updatable) A short description of the model deployment.
func (o ModelDeploymentOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example: `My ModelDeployment`
func (o ModelDeploymentOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) 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 ModelDeploymentOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput)
}
// Details about the state of the model deployment.
func (o ModelDeploymentOutput) LifecycleDetails() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.StringOutput { return v.LifecycleDetails }).(pulumi.StringOutput)
}
// (Updatable) The model deployment configuration details.
func (o ModelDeploymentOutput) ModelDeploymentConfigurationDetails() ModelDeploymentModelDeploymentConfigurationDetailsOutput {
return o.ApplyT(func(v *ModelDeployment) ModelDeploymentModelDeploymentConfigurationDetailsOutput {
return v.ModelDeploymentConfigurationDetails
}).(ModelDeploymentModelDeploymentConfigurationDetailsOutput)
}
// Model deployment system data.
func (o ModelDeploymentOutput) ModelDeploymentSystemDatas() ModelDeploymentModelDeploymentSystemDataArrayOutput {
return o.ApplyT(func(v *ModelDeployment) ModelDeploymentModelDeploymentSystemDataArrayOutput {
return v.ModelDeploymentSystemDatas
}).(ModelDeploymentModelDeploymentSystemDataArrayOutput)
}
// The URL to interact with the model deployment.
func (o ModelDeploymentOutput) ModelDeploymentUrl() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.StringOutput { return v.ModelDeploymentUrl }).(pulumi.StringOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate with the model deployment.
func (o ModelDeploymentOutput) ProjectId() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.StringOutput { return v.ProjectId }).(pulumi.StringOutput)
}
// (Updatable) The target state for the Model Deployment. Could be set to `ACTIVE` or `INACTIVE`.
//
// ** 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 ModelDeploymentOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// The date and time the resource was created, in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z
func (o ModelDeploymentOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *ModelDeployment) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
type ModelDeploymentArrayOutput struct{ *pulumi.OutputState }
func (ModelDeploymentArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ModelDeployment)(nil)).Elem()
}
func (o ModelDeploymentArrayOutput) ToModelDeploymentArrayOutput() ModelDeploymentArrayOutput {
return o
}
func (o ModelDeploymentArrayOutput) ToModelDeploymentArrayOutputWithContext(ctx context.Context) ModelDeploymentArrayOutput {
return o
}
func (o ModelDeploymentArrayOutput) Index(i pulumi.IntInput) ModelDeploymentOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ModelDeployment {
return vs[0].([]*ModelDeployment)[vs[1].(int)]
}).(ModelDeploymentOutput)
}
type ModelDeploymentMapOutput struct{ *pulumi.OutputState }
func (ModelDeploymentMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ModelDeployment)(nil)).Elem()
}
func (o ModelDeploymentMapOutput) ToModelDeploymentMapOutput() ModelDeploymentMapOutput {
return o
}
func (o ModelDeploymentMapOutput) ToModelDeploymentMapOutputWithContext(ctx context.Context) ModelDeploymentMapOutput {
return o
}
func (o ModelDeploymentMapOutput) MapIndex(k pulumi.StringInput) ModelDeploymentOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ModelDeployment {
return vs[0].(map[string]*ModelDeployment)[vs[1].(string)]
}).(ModelDeploymentOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ModelDeploymentInput)(nil)).Elem(), &ModelDeployment{})
pulumi.RegisterInputType(reflect.TypeOf((*ModelDeploymentArrayInput)(nil)).Elem(), ModelDeploymentArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ModelDeploymentMapInput)(nil)).Elem(), ModelDeploymentMap{})
pulumi.RegisterOutputType(ModelDeploymentOutput{})
pulumi.RegisterOutputType(ModelDeploymentArrayOutput{})
pulumi.RegisterOutputType(ModelDeploymentMapOutput{})
}