pulumi-datarobot 0.5.4__tar.gz → 0.7.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/PKG-INFO +1 -1
  2. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/__init__.py +9 -0
  3. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/_inputs.py +74 -0
  4. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/application_source.py +30 -62
  5. pulumi_datarobot-0.7.2/pulumi_datarobot/custom_application_from_environment.py +423 -0
  6. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/execution_environment.py +72 -20
  7. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/outputs.py +63 -0
  8. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/PKG-INFO +1 -1
  9. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/SOURCES.txt +1 -0
  10. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/setup.py +1 -1
  11. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/README.md +0 -0
  12. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/_utilities.py +0 -0
  13. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/api_token_credential.py +0 -0
  14. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/aws_credential.py +0 -0
  15. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/basic_credential.py +0 -0
  16. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/batch_prediction_job_definition.py +0 -0
  17. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/config/__init__.py +0 -0
  18. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/config/vars.py +0 -0
  19. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_application.py +0 -0
  20. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_job.py +0 -0
  21. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_metric_from_job.py +0 -0
  22. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_metric_job.py +0 -0
  23. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_model.py +0 -0
  24. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/dataset_from_datasource.py +0 -0
  25. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/dataset_from_file.py +0 -0
  26. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/dataset_from_url.py +0 -0
  27. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/datasource.py +0 -0
  28. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/datastore.py +0 -0
  29. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/deployment.py +0 -0
  30. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/deployment_retraining_policy.py +0 -0
  31. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/get_execution_environment.py +0 -0
  32. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/get_global_model.py +0 -0
  33. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/google_cloud_credential.py +0 -0
  34. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/llm_blueprint.py +0 -0
  35. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/playground.py +0 -0
  36. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/prediction_environment.py +0 -0
  37. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/provider.py +0 -0
  38. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/pulumi-plugin.json +0 -0
  39. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/py.typed +0 -0
  40. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/qa_application.py +0 -0
  41. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/registered_model.py +0 -0
  42. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/registered_model_from_leaderboard.py +0 -0
  43. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/remote_repository.py +0 -0
  44. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/use_case.py +0 -0
  45. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot/vector_database.py +0 -0
  46. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/dependency_links.txt +0 -0
  47. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/not-zip-safe +0 -0
  48. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/requires.txt +0 -0
  49. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/top_level.txt +0 -0
  50. {pulumi_datarobot-0.5.4 → pulumi_datarobot-0.7.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_datarobot
3
- Version: 0.5.4
3
+ Version: 0.7.2
4
4
  Summary: A Pulumi package for creating and managing DataRobot resources.
5
5
  Home-page: https://www.datarobot.com
6
6
  License: Apache-2.0
@@ -11,6 +11,7 @@ from .aws_credential import *
11
11
  from .basic_credential import *
12
12
  from .batch_prediction_job_definition import *
13
13
  from .custom_application import *
14
+ from .custom_application_from_environment import *
14
15
  from .custom_job import *
15
16
  from .custom_metric_from_job import *
16
17
  from .custom_metric_job import *
@@ -97,6 +98,14 @@ _utilities.register(
97
98
  "datarobot:index/customApplication:CustomApplication": "CustomApplication"
98
99
  }
99
100
  },
101
+ {
102
+ "pkg": "datarobot",
103
+ "mod": "index/customApplicationFromEnvironment",
104
+ "fqn": "pulumi_datarobot",
105
+ "classes": {
106
+ "datarobot:index/customApplicationFromEnvironment:CustomApplicationFromEnvironment": "CustomApplicationFromEnvironment"
107
+ }
108
+ },
100
109
  {
101
110
  "pkg": "datarobot",
102
111
  "mod": "index/customJob",
@@ -15,6 +15,8 @@ else:
15
15
  from . import _utilities
16
16
 
17
17
  __all__ = [
18
+ 'ApplicationSourceResourcesArgs',
19
+ 'ApplicationSourceResourcesArgsDict',
18
20
  'ApplicationSourceRuntimeParameterValueArgs',
19
21
  'ApplicationSourceRuntimeParameterValueArgsDict',
20
22
  'BatchPredictionJobDefinitionCsvSettingsArgs',
@@ -125,6 +127,78 @@ __all__ = [
125
127
 
126
128
  MYPY = False
127
129
 
130
+ if not MYPY:
131
+ class ApplicationSourceResourcesArgsDict(TypedDict):
132
+ replicas: NotRequired[pulumi.Input[int]]
133
+ """
134
+ The replicas for the Application Source.
135
+ """
136
+ resource_label: NotRequired[pulumi.Input[str]]
137
+ """
138
+ The resource label for the Application Source.
139
+ """
140
+ session_affinity: NotRequired[pulumi.Input[bool]]
141
+ """
142
+ The session affinity for the Application Source.
143
+ """
144
+ elif False:
145
+ ApplicationSourceResourcesArgsDict: TypeAlias = Mapping[str, Any]
146
+
147
+ @pulumi.input_type
148
+ class ApplicationSourceResourcesArgs:
149
+ def __init__(__self__, *,
150
+ replicas: Optional[pulumi.Input[int]] = None,
151
+ resource_label: Optional[pulumi.Input[str]] = None,
152
+ session_affinity: Optional[pulumi.Input[bool]] = None):
153
+ """
154
+ :param pulumi.Input[int] replicas: The replicas for the Application Source.
155
+ :param pulumi.Input[str] resource_label: The resource label for the Application Source.
156
+ :param pulumi.Input[bool] session_affinity: The session affinity for the Application Source.
157
+ """
158
+ if replicas is not None:
159
+ pulumi.set(__self__, "replicas", replicas)
160
+ if resource_label is not None:
161
+ pulumi.set(__self__, "resource_label", resource_label)
162
+ if session_affinity is not None:
163
+ pulumi.set(__self__, "session_affinity", session_affinity)
164
+
165
+ @property
166
+ @pulumi.getter
167
+ def replicas(self) -> Optional[pulumi.Input[int]]:
168
+ """
169
+ The replicas for the Application Source.
170
+ """
171
+ return pulumi.get(self, "replicas")
172
+
173
+ @replicas.setter
174
+ def replicas(self, value: Optional[pulumi.Input[int]]):
175
+ pulumi.set(self, "replicas", value)
176
+
177
+ @property
178
+ @pulumi.getter(name="resourceLabel")
179
+ def resource_label(self) -> Optional[pulumi.Input[str]]:
180
+ """
181
+ The resource label for the Application Source.
182
+ """
183
+ return pulumi.get(self, "resource_label")
184
+
185
+ @resource_label.setter
186
+ def resource_label(self, value: Optional[pulumi.Input[str]]):
187
+ pulumi.set(self, "resource_label", value)
188
+
189
+ @property
190
+ @pulumi.getter(name="sessionAffinity")
191
+ def session_affinity(self) -> Optional[pulumi.Input[bool]]:
192
+ """
193
+ The session affinity for the Application Source.
194
+ """
195
+ return pulumi.get(self, "session_affinity")
196
+
197
+ @session_affinity.setter
198
+ def session_affinity(self, value: Optional[pulumi.Input[bool]]):
199
+ pulumi.set(self, "session_affinity", value)
200
+
201
+
128
202
  if not MYPY:
129
203
  class ApplicationSourceRuntimeParameterValueArgsDict(TypedDict):
130
204
  key: pulumi.Input[str]
@@ -26,7 +26,7 @@ class ApplicationSourceArgs:
26
26
  files: Optional[Any] = None,
27
27
  folder_path: Optional[pulumi.Input[str]] = None,
28
28
  name: Optional[pulumi.Input[str]] = None,
29
- replicas: Optional[pulumi.Input[int]] = None,
29
+ resources: Optional[pulumi.Input['ApplicationSourceResourcesArgs']] = None,
30
30
  runtime_parameter_values: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSourceRuntimeParameterValueArgs']]]] = None):
31
31
  """
32
32
  The set of arguments for constructing a ApplicationSource resource.
@@ -35,7 +35,7 @@ class ApplicationSourceArgs:
35
35
  :param Any files: The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
36
36
  :param pulumi.Input[str] folder_path: The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
37
37
  :param pulumi.Input[str] name: The name of the Application Source.
38
- :param pulumi.Input[int] replicas: The replicas for the Application Source.
38
+ :param pulumi.Input['ApplicationSourceResourcesArgs'] resources: The resources for the Application Source.
39
39
  :param pulumi.Input[Sequence[pulumi.Input['ApplicationSourceRuntimeParameterValueArgs']]] runtime_parameter_values: The runtime parameter values for the Application Source.
40
40
  """
41
41
  if base_environment_id is not None:
@@ -48,8 +48,8 @@ class ApplicationSourceArgs:
48
48
  pulumi.set(__self__, "folder_path", folder_path)
49
49
  if name is not None:
50
50
  pulumi.set(__self__, "name", name)
51
- if replicas is not None:
52
- pulumi.set(__self__, "replicas", replicas)
51
+ if resources is not None:
52
+ pulumi.set(__self__, "resources", resources)
53
53
  if runtime_parameter_values is not None:
54
54
  pulumi.set(__self__, "runtime_parameter_values", runtime_parameter_values)
55
55
 
@@ -115,15 +115,15 @@ class ApplicationSourceArgs:
115
115
 
116
116
  @property
117
117
  @pulumi.getter
118
- def replicas(self) -> Optional[pulumi.Input[int]]:
118
+ def resources(self) -> Optional[pulumi.Input['ApplicationSourceResourcesArgs']]:
119
119
  """
120
- The replicas for the Application Source.
120
+ The resources for the Application Source.
121
121
  """
122
- return pulumi.get(self, "replicas")
122
+ return pulumi.get(self, "resources")
123
123
 
124
- @replicas.setter
125
- def replicas(self, value: Optional[pulumi.Input[int]]):
126
- pulumi.set(self, "replicas", value)
124
+ @resources.setter
125
+ def resources(self, value: Optional[pulumi.Input['ApplicationSourceResourcesArgs']]):
126
+ pulumi.set(self, "resources", value)
127
127
 
128
128
  @property
129
129
  @pulumi.getter(name="runtimeParameterValues")
@@ -148,7 +148,7 @@ class _ApplicationSourceState:
148
148
  folder_path: Optional[pulumi.Input[str]] = None,
149
149
  folder_path_hash: Optional[pulumi.Input[str]] = None,
150
150
  name: Optional[pulumi.Input[str]] = None,
151
- replicas: Optional[pulumi.Input[int]] = None,
151
+ resources: Optional[pulumi.Input['ApplicationSourceResourcesArgs']] = None,
152
152
  runtime_parameter_values: Optional[pulumi.Input[Sequence[pulumi.Input['ApplicationSourceRuntimeParameterValueArgs']]]] = None,
153
153
  version_id: Optional[pulumi.Input[str]] = None):
154
154
  """
@@ -160,7 +160,7 @@ class _ApplicationSourceState:
160
160
  :param pulumi.Input[str] folder_path: The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
161
161
  :param pulumi.Input[str] folder_path_hash: The hash of the folder path contents.
162
162
  :param pulumi.Input[str] name: The name of the Application Source.
163
- :param pulumi.Input[int] replicas: The replicas for the Application Source.
163
+ :param pulumi.Input['ApplicationSourceResourcesArgs'] resources: The resources for the Application Source.
164
164
  :param pulumi.Input[Sequence[pulumi.Input['ApplicationSourceRuntimeParameterValueArgs']]] runtime_parameter_values: The runtime parameter values for the Application Source.
165
165
  :param pulumi.Input[str] version_id: The version ID of the Application Source.
166
166
  """
@@ -178,8 +178,8 @@ class _ApplicationSourceState:
178
178
  pulumi.set(__self__, "folder_path_hash", folder_path_hash)
179
179
  if name is not None:
180
180
  pulumi.set(__self__, "name", name)
181
- if replicas is not None:
182
- pulumi.set(__self__, "replicas", replicas)
181
+ if resources is not None:
182
+ pulumi.set(__self__, "resources", resources)
183
183
  if runtime_parameter_values is not None:
184
184
  pulumi.set(__self__, "runtime_parameter_values", runtime_parameter_values)
185
185
  if version_id is not None:
@@ -271,15 +271,15 @@ class _ApplicationSourceState:
271
271
 
272
272
  @property
273
273
  @pulumi.getter
274
- def replicas(self) -> Optional[pulumi.Input[int]]:
274
+ def resources(self) -> Optional[pulumi.Input['ApplicationSourceResourcesArgs']]:
275
275
  """
276
- The replicas for the Application Source.
276
+ The resources for the Application Source.
277
277
  """
278
- return pulumi.get(self, "replicas")
278
+ return pulumi.get(self, "resources")
279
279
 
280
- @replicas.setter
281
- def replicas(self, value: Optional[pulumi.Input[int]]):
282
- pulumi.set(self, "replicas", value)
280
+ @resources.setter
281
+ def resources(self, value: Optional[pulumi.Input['ApplicationSourceResourcesArgs']]):
282
+ pulumi.set(self, "resources", value)
283
283
 
284
284
  @property
285
285
  @pulumi.getter(name="runtimeParameterValues")
@@ -316,28 +316,12 @@ class ApplicationSource(pulumi.CustomResource):
316
316
  files: Optional[Any] = None,
317
317
  folder_path: Optional[pulumi.Input[str]] = None,
318
318
  name: Optional[pulumi.Input[str]] = None,
319
- replicas: Optional[pulumi.Input[int]] = None,
319
+ resources: Optional[pulumi.Input[Union['ApplicationSourceResourcesArgs', 'ApplicationSourceResourcesArgsDict']]] = None,
320
320
  runtime_parameter_values: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSourceRuntimeParameterValueArgs', 'ApplicationSourceRuntimeParameterValueArgsDict']]]]] = None,
321
321
  __props__=None):
322
322
  """
323
323
  Application Source
324
324
 
325
- ## Example Usage
326
-
327
- ```python
328
- import pulumi
329
- import pulumi_datarobot as datarobot
330
-
331
- example = datarobot.ApplicationSource("example",
332
- base_environment_id="6542cd582a9d3d51bf4ac71e",
333
- files=[
334
- ["start-app.sh"],
335
- ["streamlit-app.py"],
336
- ])
337
- pulumi.export("datarobotApplicationSourceId", example.id)
338
- pulumi.export("datarobotApplicationSourceVersionId", example.version_id)
339
- ```
340
-
341
325
  :param str resource_name: The name of the resource.
342
326
  :param pulumi.ResourceOptions opts: Options for the resource.
343
327
  :param pulumi.Input[str] base_environment_id: The ID of the base environment for the Application Source.
@@ -345,7 +329,7 @@ class ApplicationSource(pulumi.CustomResource):
345
329
  :param Any files: The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
346
330
  :param pulumi.Input[str] folder_path: The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
347
331
  :param pulumi.Input[str] name: The name of the Application Source.
348
- :param pulumi.Input[int] replicas: The replicas for the Application Source.
332
+ :param pulumi.Input[Union['ApplicationSourceResourcesArgs', 'ApplicationSourceResourcesArgsDict']] resources: The resources for the Application Source.
349
333
  :param pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSourceRuntimeParameterValueArgs', 'ApplicationSourceRuntimeParameterValueArgsDict']]]] runtime_parameter_values: The runtime parameter values for the Application Source.
350
334
  """
351
335
  ...
@@ -357,22 +341,6 @@ class ApplicationSource(pulumi.CustomResource):
357
341
  """
358
342
  Application Source
359
343
 
360
- ## Example Usage
361
-
362
- ```python
363
- import pulumi
364
- import pulumi_datarobot as datarobot
365
-
366
- example = datarobot.ApplicationSource("example",
367
- base_environment_id="6542cd582a9d3d51bf4ac71e",
368
- files=[
369
- ["start-app.sh"],
370
- ["streamlit-app.py"],
371
- ])
372
- pulumi.export("datarobotApplicationSourceId", example.id)
373
- pulumi.export("datarobotApplicationSourceVersionId", example.version_id)
374
- ```
375
-
376
344
  :param str resource_name: The name of the resource.
377
345
  :param ApplicationSourceArgs args: The arguments to use to populate this resource's properties.
378
346
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -393,7 +361,7 @@ class ApplicationSource(pulumi.CustomResource):
393
361
  files: Optional[Any] = None,
394
362
  folder_path: Optional[pulumi.Input[str]] = None,
395
363
  name: Optional[pulumi.Input[str]] = None,
396
- replicas: Optional[pulumi.Input[int]] = None,
364
+ resources: Optional[pulumi.Input[Union['ApplicationSourceResourcesArgs', 'ApplicationSourceResourcesArgsDict']]] = None,
397
365
  runtime_parameter_values: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSourceRuntimeParameterValueArgs', 'ApplicationSourceRuntimeParameterValueArgsDict']]]]] = None,
398
366
  __props__=None):
399
367
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -409,7 +377,7 @@ class ApplicationSource(pulumi.CustomResource):
409
377
  __props__.__dict__["files"] = files
410
378
  __props__.__dict__["folder_path"] = folder_path
411
379
  __props__.__dict__["name"] = name
412
- __props__.__dict__["replicas"] = replicas
380
+ __props__.__dict__["resources"] = resources
413
381
  __props__.__dict__["runtime_parameter_values"] = runtime_parameter_values
414
382
  __props__.__dict__["files_hashes"] = None
415
383
  __props__.__dict__["folder_path_hash"] = None
@@ -431,7 +399,7 @@ class ApplicationSource(pulumi.CustomResource):
431
399
  folder_path: Optional[pulumi.Input[str]] = None,
432
400
  folder_path_hash: Optional[pulumi.Input[str]] = None,
433
401
  name: Optional[pulumi.Input[str]] = None,
434
- replicas: Optional[pulumi.Input[int]] = None,
402
+ resources: Optional[pulumi.Input[Union['ApplicationSourceResourcesArgs', 'ApplicationSourceResourcesArgsDict']]] = None,
435
403
  runtime_parameter_values: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSourceRuntimeParameterValueArgs', 'ApplicationSourceRuntimeParameterValueArgsDict']]]]] = None,
436
404
  version_id: Optional[pulumi.Input[str]] = None) -> 'ApplicationSource':
437
405
  """
@@ -448,7 +416,7 @@ class ApplicationSource(pulumi.CustomResource):
448
416
  :param pulumi.Input[str] folder_path: The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
449
417
  :param pulumi.Input[str] folder_path_hash: The hash of the folder path contents.
450
418
  :param pulumi.Input[str] name: The name of the Application Source.
451
- :param pulumi.Input[int] replicas: The replicas for the Application Source.
419
+ :param pulumi.Input[Union['ApplicationSourceResourcesArgs', 'ApplicationSourceResourcesArgsDict']] resources: The resources for the Application Source.
452
420
  :param pulumi.Input[Sequence[pulumi.Input[Union['ApplicationSourceRuntimeParameterValueArgs', 'ApplicationSourceRuntimeParameterValueArgsDict']]]] runtime_parameter_values: The runtime parameter values for the Application Source.
453
421
  :param pulumi.Input[str] version_id: The version ID of the Application Source.
454
422
  """
@@ -463,7 +431,7 @@ class ApplicationSource(pulumi.CustomResource):
463
431
  __props__.__dict__["folder_path"] = folder_path
464
432
  __props__.__dict__["folder_path_hash"] = folder_path_hash
465
433
  __props__.__dict__["name"] = name
466
- __props__.__dict__["replicas"] = replicas
434
+ __props__.__dict__["resources"] = resources
467
435
  __props__.__dict__["runtime_parameter_values"] = runtime_parameter_values
468
436
  __props__.__dict__["version_id"] = version_id
469
437
  return ApplicationSource(resource_name, opts=opts, __props__=__props__)
@@ -526,11 +494,11 @@ class ApplicationSource(pulumi.CustomResource):
526
494
 
527
495
  @property
528
496
  @pulumi.getter
529
- def replicas(self) -> pulumi.Output[int]:
497
+ def resources(self) -> pulumi.Output['outputs.ApplicationSourceResources']:
530
498
  """
531
- The replicas for the Application Source.
499
+ The resources for the Application Source.
532
500
  """
533
- return pulumi.get(self, "replicas")
501
+ return pulumi.get(self, "resources")
534
502
 
535
503
  @property
536
504
  @pulumi.getter(name="runtimeParameterValues")
@@ -0,0 +1,423 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = ['CustomApplicationFromEnvironmentArgs', 'CustomApplicationFromEnvironment']
18
+
19
+ @pulumi.input_type
20
+ class CustomApplicationFromEnvironmentArgs:
21
+ def __init__(__self__, *,
22
+ environment_id: pulumi.Input[str],
23
+ external_access_enabled: Optional[pulumi.Input[bool]] = None,
24
+ external_access_recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
25
+ name: Optional[pulumi.Input[str]] = None,
26
+ use_case_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
27
+ """
28
+ The set of arguments for constructing a CustomApplicationFromEnvironment resource.
29
+ :param pulumi.Input[str] environment_id: The ID of the Execution Environment used to create the Custom Application.
30
+ :param pulumi.Input[bool] external_access_enabled: Whether external access is enabled for the Custom Application.
31
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_recipients: The list of external email addresses that have access to the Custom Application.
32
+ :param pulumi.Input[str] name: The name of the Custom Application.
33
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] use_case_ids: The list of Use Case IDs to add the Custom Application to.
34
+ """
35
+ pulumi.set(__self__, "environment_id", environment_id)
36
+ if external_access_enabled is not None:
37
+ pulumi.set(__self__, "external_access_enabled", external_access_enabled)
38
+ if external_access_recipients is not None:
39
+ pulumi.set(__self__, "external_access_recipients", external_access_recipients)
40
+ if name is not None:
41
+ pulumi.set(__self__, "name", name)
42
+ if use_case_ids is not None:
43
+ pulumi.set(__self__, "use_case_ids", use_case_ids)
44
+
45
+ @property
46
+ @pulumi.getter(name="environmentId")
47
+ def environment_id(self) -> pulumi.Input[str]:
48
+ """
49
+ The ID of the Execution Environment used to create the Custom Application.
50
+ """
51
+ return pulumi.get(self, "environment_id")
52
+
53
+ @environment_id.setter
54
+ def environment_id(self, value: pulumi.Input[str]):
55
+ pulumi.set(self, "environment_id", value)
56
+
57
+ @property
58
+ @pulumi.getter(name="externalAccessEnabled")
59
+ def external_access_enabled(self) -> Optional[pulumi.Input[bool]]:
60
+ """
61
+ Whether external access is enabled for the Custom Application.
62
+ """
63
+ return pulumi.get(self, "external_access_enabled")
64
+
65
+ @external_access_enabled.setter
66
+ def external_access_enabled(self, value: Optional[pulumi.Input[bool]]):
67
+ pulumi.set(self, "external_access_enabled", value)
68
+
69
+ @property
70
+ @pulumi.getter(name="externalAccessRecipients")
71
+ def external_access_recipients(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
72
+ """
73
+ The list of external email addresses that have access to the Custom Application.
74
+ """
75
+ return pulumi.get(self, "external_access_recipients")
76
+
77
+ @external_access_recipients.setter
78
+ def external_access_recipients(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
79
+ pulumi.set(self, "external_access_recipients", value)
80
+
81
+ @property
82
+ @pulumi.getter
83
+ def name(self) -> Optional[pulumi.Input[str]]:
84
+ """
85
+ The name of the Custom Application.
86
+ """
87
+ return pulumi.get(self, "name")
88
+
89
+ @name.setter
90
+ def name(self, value: Optional[pulumi.Input[str]]):
91
+ pulumi.set(self, "name", value)
92
+
93
+ @property
94
+ @pulumi.getter(name="useCaseIds")
95
+ def use_case_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
96
+ """
97
+ The list of Use Case IDs to add the Custom Application to.
98
+ """
99
+ return pulumi.get(self, "use_case_ids")
100
+
101
+ @use_case_ids.setter
102
+ def use_case_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
103
+ pulumi.set(self, "use_case_ids", value)
104
+
105
+
106
+ @pulumi.input_type
107
+ class _CustomApplicationFromEnvironmentState:
108
+ def __init__(__self__, *,
109
+ application_url: Optional[pulumi.Input[str]] = None,
110
+ environment_id: Optional[pulumi.Input[str]] = None,
111
+ environment_version_id: Optional[pulumi.Input[str]] = None,
112
+ external_access_enabled: Optional[pulumi.Input[bool]] = None,
113
+ external_access_recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
114
+ name: Optional[pulumi.Input[str]] = None,
115
+ use_case_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
116
+ """
117
+ Input properties used for looking up and filtering CustomApplicationFromEnvironment resources.
118
+ :param pulumi.Input[str] application_url: The URL of the Custom Application.
119
+ :param pulumi.Input[str] environment_id: The ID of the Execution Environment used to create the Custom Application.
120
+ :param pulumi.Input[str] environment_version_id: The version ID of the Execution Environment used to create the Custom Application.
121
+ :param pulumi.Input[bool] external_access_enabled: Whether external access is enabled for the Custom Application.
122
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_recipients: The list of external email addresses that have access to the Custom Application.
123
+ :param pulumi.Input[str] name: The name of the Custom Application.
124
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] use_case_ids: The list of Use Case IDs to add the Custom Application to.
125
+ """
126
+ if application_url is not None:
127
+ pulumi.set(__self__, "application_url", application_url)
128
+ if environment_id is not None:
129
+ pulumi.set(__self__, "environment_id", environment_id)
130
+ if environment_version_id is not None:
131
+ pulumi.set(__self__, "environment_version_id", environment_version_id)
132
+ if external_access_enabled is not None:
133
+ pulumi.set(__self__, "external_access_enabled", external_access_enabled)
134
+ if external_access_recipients is not None:
135
+ pulumi.set(__self__, "external_access_recipients", external_access_recipients)
136
+ if name is not None:
137
+ pulumi.set(__self__, "name", name)
138
+ if use_case_ids is not None:
139
+ pulumi.set(__self__, "use_case_ids", use_case_ids)
140
+
141
+ @property
142
+ @pulumi.getter(name="applicationUrl")
143
+ def application_url(self) -> Optional[pulumi.Input[str]]:
144
+ """
145
+ The URL of the Custom Application.
146
+ """
147
+ return pulumi.get(self, "application_url")
148
+
149
+ @application_url.setter
150
+ def application_url(self, value: Optional[pulumi.Input[str]]):
151
+ pulumi.set(self, "application_url", value)
152
+
153
+ @property
154
+ @pulumi.getter(name="environmentId")
155
+ def environment_id(self) -> Optional[pulumi.Input[str]]:
156
+ """
157
+ The ID of the Execution Environment used to create the Custom Application.
158
+ """
159
+ return pulumi.get(self, "environment_id")
160
+
161
+ @environment_id.setter
162
+ def environment_id(self, value: Optional[pulumi.Input[str]]):
163
+ pulumi.set(self, "environment_id", value)
164
+
165
+ @property
166
+ @pulumi.getter(name="environmentVersionId")
167
+ def environment_version_id(self) -> Optional[pulumi.Input[str]]:
168
+ """
169
+ The version ID of the Execution Environment used to create the Custom Application.
170
+ """
171
+ return pulumi.get(self, "environment_version_id")
172
+
173
+ @environment_version_id.setter
174
+ def environment_version_id(self, value: Optional[pulumi.Input[str]]):
175
+ pulumi.set(self, "environment_version_id", value)
176
+
177
+ @property
178
+ @pulumi.getter(name="externalAccessEnabled")
179
+ def external_access_enabled(self) -> Optional[pulumi.Input[bool]]:
180
+ """
181
+ Whether external access is enabled for the Custom Application.
182
+ """
183
+ return pulumi.get(self, "external_access_enabled")
184
+
185
+ @external_access_enabled.setter
186
+ def external_access_enabled(self, value: Optional[pulumi.Input[bool]]):
187
+ pulumi.set(self, "external_access_enabled", value)
188
+
189
+ @property
190
+ @pulumi.getter(name="externalAccessRecipients")
191
+ def external_access_recipients(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
192
+ """
193
+ The list of external email addresses that have access to the Custom Application.
194
+ """
195
+ return pulumi.get(self, "external_access_recipients")
196
+
197
+ @external_access_recipients.setter
198
+ def external_access_recipients(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
199
+ pulumi.set(self, "external_access_recipients", value)
200
+
201
+ @property
202
+ @pulumi.getter
203
+ def name(self) -> Optional[pulumi.Input[str]]:
204
+ """
205
+ The name of the Custom Application.
206
+ """
207
+ return pulumi.get(self, "name")
208
+
209
+ @name.setter
210
+ def name(self, value: Optional[pulumi.Input[str]]):
211
+ pulumi.set(self, "name", value)
212
+
213
+ @property
214
+ @pulumi.getter(name="useCaseIds")
215
+ def use_case_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
216
+ """
217
+ The list of Use Case IDs to add the Custom Application to.
218
+ """
219
+ return pulumi.get(self, "use_case_ids")
220
+
221
+ @use_case_ids.setter
222
+ def use_case_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
223
+ pulumi.set(self, "use_case_ids", value)
224
+
225
+
226
+ class CustomApplicationFromEnvironment(pulumi.CustomResource):
227
+ @overload
228
+ def __init__(__self__,
229
+ resource_name: str,
230
+ opts: Optional[pulumi.ResourceOptions] = None,
231
+ environment_id: Optional[pulumi.Input[str]] = None,
232
+ external_access_enabled: Optional[pulumi.Input[bool]] = None,
233
+ external_access_recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
234
+ name: Optional[pulumi.Input[str]] = None,
235
+ use_case_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
236
+ __props__=None):
237
+ """
238
+ Custom Application created from an Execution Environment.
239
+
240
+ ## Example Usage
241
+
242
+ ```python
243
+ import pulumi
244
+ import pulumi_datarobot as datarobot
245
+
246
+ example = datarobot.CustomApplicationFromEnvironment("example",
247
+ environment_id="6542cd582a9d3d51bf4ac71e",
248
+ external_access_enabled=True,
249
+ external_access_recipients=["recipient@example.com"])
250
+ pulumi.export("datarobotCustomApplicationId", example.id)
251
+ pulumi.export("datarobotCustomApplicationUrl", example.application_url)
252
+ ```
253
+
254
+ :param str resource_name: The name of the resource.
255
+ :param pulumi.ResourceOptions opts: Options for the resource.
256
+ :param pulumi.Input[str] environment_id: The ID of the Execution Environment used to create the Custom Application.
257
+ :param pulumi.Input[bool] external_access_enabled: Whether external access is enabled for the Custom Application.
258
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_recipients: The list of external email addresses that have access to the Custom Application.
259
+ :param pulumi.Input[str] name: The name of the Custom Application.
260
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] use_case_ids: The list of Use Case IDs to add the Custom Application to.
261
+ """
262
+ ...
263
+ @overload
264
+ def __init__(__self__,
265
+ resource_name: str,
266
+ args: CustomApplicationFromEnvironmentArgs,
267
+ opts: Optional[pulumi.ResourceOptions] = None):
268
+ """
269
+ Custom Application created from an Execution Environment.
270
+
271
+ ## Example Usage
272
+
273
+ ```python
274
+ import pulumi
275
+ import pulumi_datarobot as datarobot
276
+
277
+ example = datarobot.CustomApplicationFromEnvironment("example",
278
+ environment_id="6542cd582a9d3d51bf4ac71e",
279
+ external_access_enabled=True,
280
+ external_access_recipients=["recipient@example.com"])
281
+ pulumi.export("datarobotCustomApplicationId", example.id)
282
+ pulumi.export("datarobotCustomApplicationUrl", example.application_url)
283
+ ```
284
+
285
+ :param str resource_name: The name of the resource.
286
+ :param CustomApplicationFromEnvironmentArgs args: The arguments to use to populate this resource's properties.
287
+ :param pulumi.ResourceOptions opts: Options for the resource.
288
+ """
289
+ ...
290
+ def __init__(__self__, resource_name: str, *args, **kwargs):
291
+ resource_args, opts = _utilities.get_resource_args_opts(CustomApplicationFromEnvironmentArgs, pulumi.ResourceOptions, *args, **kwargs)
292
+ if resource_args is not None:
293
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
294
+ else:
295
+ __self__._internal_init(resource_name, *args, **kwargs)
296
+
297
+ def _internal_init(__self__,
298
+ resource_name: str,
299
+ opts: Optional[pulumi.ResourceOptions] = None,
300
+ environment_id: Optional[pulumi.Input[str]] = None,
301
+ external_access_enabled: Optional[pulumi.Input[bool]] = None,
302
+ external_access_recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
303
+ name: Optional[pulumi.Input[str]] = None,
304
+ use_case_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
305
+ __props__=None):
306
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
307
+ if not isinstance(opts, pulumi.ResourceOptions):
308
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
309
+ if opts.id is None:
310
+ if __props__ is not None:
311
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
312
+ __props__ = CustomApplicationFromEnvironmentArgs.__new__(CustomApplicationFromEnvironmentArgs)
313
+
314
+ if environment_id is None and not opts.urn:
315
+ raise TypeError("Missing required property 'environment_id'")
316
+ __props__.__dict__["environment_id"] = environment_id
317
+ __props__.__dict__["external_access_enabled"] = external_access_enabled
318
+ __props__.__dict__["external_access_recipients"] = external_access_recipients
319
+ __props__.__dict__["name"] = name
320
+ __props__.__dict__["use_case_ids"] = use_case_ids
321
+ __props__.__dict__["application_url"] = None
322
+ __props__.__dict__["environment_version_id"] = None
323
+ super(CustomApplicationFromEnvironment, __self__).__init__(
324
+ 'datarobot:index/customApplicationFromEnvironment:CustomApplicationFromEnvironment',
325
+ resource_name,
326
+ __props__,
327
+ opts)
328
+
329
+ @staticmethod
330
+ def get(resource_name: str,
331
+ id: pulumi.Input[str],
332
+ opts: Optional[pulumi.ResourceOptions] = None,
333
+ application_url: Optional[pulumi.Input[str]] = None,
334
+ environment_id: Optional[pulumi.Input[str]] = None,
335
+ environment_version_id: Optional[pulumi.Input[str]] = None,
336
+ external_access_enabled: Optional[pulumi.Input[bool]] = None,
337
+ external_access_recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
338
+ name: Optional[pulumi.Input[str]] = None,
339
+ use_case_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'CustomApplicationFromEnvironment':
340
+ """
341
+ Get an existing CustomApplicationFromEnvironment resource's state with the given name, id, and optional extra
342
+ properties used to qualify the lookup.
343
+
344
+ :param str resource_name: The unique name of the resulting resource.
345
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
346
+ :param pulumi.ResourceOptions opts: Options for the resource.
347
+ :param pulumi.Input[str] application_url: The URL of the Custom Application.
348
+ :param pulumi.Input[str] environment_id: The ID of the Execution Environment used to create the Custom Application.
349
+ :param pulumi.Input[str] environment_version_id: The version ID of the Execution Environment used to create the Custom Application.
350
+ :param pulumi.Input[bool] external_access_enabled: Whether external access is enabled for the Custom Application.
351
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_recipients: The list of external email addresses that have access to the Custom Application.
352
+ :param pulumi.Input[str] name: The name of the Custom Application.
353
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] use_case_ids: The list of Use Case IDs to add the Custom Application to.
354
+ """
355
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
356
+
357
+ __props__ = _CustomApplicationFromEnvironmentState.__new__(_CustomApplicationFromEnvironmentState)
358
+
359
+ __props__.__dict__["application_url"] = application_url
360
+ __props__.__dict__["environment_id"] = environment_id
361
+ __props__.__dict__["environment_version_id"] = environment_version_id
362
+ __props__.__dict__["external_access_enabled"] = external_access_enabled
363
+ __props__.__dict__["external_access_recipients"] = external_access_recipients
364
+ __props__.__dict__["name"] = name
365
+ __props__.__dict__["use_case_ids"] = use_case_ids
366
+ return CustomApplicationFromEnvironment(resource_name, opts=opts, __props__=__props__)
367
+
368
+ @property
369
+ @pulumi.getter(name="applicationUrl")
370
+ def application_url(self) -> pulumi.Output[str]:
371
+ """
372
+ The URL of the Custom Application.
373
+ """
374
+ return pulumi.get(self, "application_url")
375
+
376
+ @property
377
+ @pulumi.getter(name="environmentId")
378
+ def environment_id(self) -> pulumi.Output[str]:
379
+ """
380
+ The ID of the Execution Environment used to create the Custom Application.
381
+ """
382
+ return pulumi.get(self, "environment_id")
383
+
384
+ @property
385
+ @pulumi.getter(name="environmentVersionId")
386
+ def environment_version_id(self) -> pulumi.Output[str]:
387
+ """
388
+ The version ID of the Execution Environment used to create the Custom Application.
389
+ """
390
+ return pulumi.get(self, "environment_version_id")
391
+
392
+ @property
393
+ @pulumi.getter(name="externalAccessEnabled")
394
+ def external_access_enabled(self) -> pulumi.Output[bool]:
395
+ """
396
+ Whether external access is enabled for the Custom Application.
397
+ """
398
+ return pulumi.get(self, "external_access_enabled")
399
+
400
+ @property
401
+ @pulumi.getter(name="externalAccessRecipients")
402
+ def external_access_recipients(self) -> pulumi.Output[Optional[Sequence[str]]]:
403
+ """
404
+ The list of external email addresses that have access to the Custom Application.
405
+ """
406
+ return pulumi.get(self, "external_access_recipients")
407
+
408
+ @property
409
+ @pulumi.getter
410
+ def name(self) -> pulumi.Output[str]:
411
+ """
412
+ The name of the Custom Application.
413
+ """
414
+ return pulumi.get(self, "name")
415
+
416
+ @property
417
+ @pulumi.getter(name="useCaseIds")
418
+ def use_case_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
419
+ """
420
+ The list of Use Case IDs to add the Custom Application to.
421
+ """
422
+ return pulumi.get(self, "use_case_ids")
423
+
@@ -19,43 +19,36 @@ __all__ = ['ExecutionEnvironmentArgs', 'ExecutionEnvironment']
19
19
  @pulumi.input_type
20
20
  class ExecutionEnvironmentArgs:
21
21
  def __init__(__self__, *,
22
- docker_context_path: pulumi.Input[str],
23
22
  programming_language: pulumi.Input[str],
24
23
  use_cases: pulumi.Input[Sequence[pulumi.Input[str]]],
25
24
  description: Optional[pulumi.Input[str]] = None,
25
+ docker_context_path: Optional[pulumi.Input[str]] = None,
26
+ docker_image: Optional[pulumi.Input[str]] = None,
26
27
  name: Optional[pulumi.Input[str]] = None,
27
28
  version_description: Optional[pulumi.Input[str]] = None):
28
29
  """
29
30
  The set of arguments for constructing a ExecutionEnvironment resource.
30
- :param pulumi.Input[str] docker_context_path: The path to a docker context archive or folder
31
31
  :param pulumi.Input[str] programming_language: The programming language of the Execution Environment.
32
32
  :param pulumi.Input[Sequence[pulumi.Input[str]]] use_cases: The list of Use Cases that the Execution Environment supports.
33
33
  :param pulumi.Input[str] description: The description of the Execution Environment.
34
+ :param pulumi.Input[str] docker_context_path: The path to a docker context archive or folder
35
+ :param pulumi.Input[str] docker_image: A prebuilt environment image saved as a tarball using the Docker save command.
34
36
  :param pulumi.Input[str] name: The name of the Execution Environment.
35
37
  :param pulumi.Input[str] version_description: The description of the Execution Environment version.
36
38
  """
37
- pulumi.set(__self__, "docker_context_path", docker_context_path)
38
39
  pulumi.set(__self__, "programming_language", programming_language)
39
40
  pulumi.set(__self__, "use_cases", use_cases)
40
41
  if description is not None:
41
42
  pulumi.set(__self__, "description", description)
43
+ if docker_context_path is not None:
44
+ pulumi.set(__self__, "docker_context_path", docker_context_path)
45
+ if docker_image is not None:
46
+ pulumi.set(__self__, "docker_image", docker_image)
42
47
  if name is not None:
43
48
  pulumi.set(__self__, "name", name)
44
49
  if version_description is not None:
45
50
  pulumi.set(__self__, "version_description", version_description)
46
51
 
47
- @property
48
- @pulumi.getter(name="dockerContextPath")
49
- def docker_context_path(self) -> pulumi.Input[str]:
50
- """
51
- The path to a docker context archive or folder
52
- """
53
- return pulumi.get(self, "docker_context_path")
54
-
55
- @docker_context_path.setter
56
- def docker_context_path(self, value: pulumi.Input[str]):
57
- pulumi.set(self, "docker_context_path", value)
58
-
59
52
  @property
60
53
  @pulumi.getter(name="programmingLanguage")
61
54
  def programming_language(self) -> pulumi.Input[str]:
@@ -92,6 +85,30 @@ class ExecutionEnvironmentArgs:
92
85
  def description(self, value: Optional[pulumi.Input[str]]):
93
86
  pulumi.set(self, "description", value)
94
87
 
88
+ @property
89
+ @pulumi.getter(name="dockerContextPath")
90
+ def docker_context_path(self) -> Optional[pulumi.Input[str]]:
91
+ """
92
+ The path to a docker context archive or folder
93
+ """
94
+ return pulumi.get(self, "docker_context_path")
95
+
96
+ @docker_context_path.setter
97
+ def docker_context_path(self, value: Optional[pulumi.Input[str]]):
98
+ pulumi.set(self, "docker_context_path", value)
99
+
100
+ @property
101
+ @pulumi.getter(name="dockerImage")
102
+ def docker_image(self) -> Optional[pulumi.Input[str]]:
103
+ """
104
+ A prebuilt environment image saved as a tarball using the Docker save command.
105
+ """
106
+ return pulumi.get(self, "docker_image")
107
+
108
+ @docker_image.setter
109
+ def docker_image(self, value: Optional[pulumi.Input[str]]):
110
+ pulumi.set(self, "docker_image", value)
111
+
95
112
  @property
96
113
  @pulumi.getter
97
114
  def name(self) -> Optional[pulumi.Input[str]]:
@@ -123,6 +140,7 @@ class _ExecutionEnvironmentState:
123
140
  build_status: Optional[pulumi.Input[str]] = None,
124
141
  description: Optional[pulumi.Input[str]] = None,
125
142
  docker_context_path: Optional[pulumi.Input[str]] = None,
143
+ docker_image: Optional[pulumi.Input[str]] = None,
126
144
  name: Optional[pulumi.Input[str]] = None,
127
145
  programming_language: Optional[pulumi.Input[str]] = None,
128
146
  use_cases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -133,6 +151,7 @@ class _ExecutionEnvironmentState:
133
151
  :param pulumi.Input[str] build_status: The status of the Execution Environment version build.
134
152
  :param pulumi.Input[str] description: The description of the Execution Environment.
135
153
  :param pulumi.Input[str] docker_context_path: The path to a docker context archive or folder
154
+ :param pulumi.Input[str] docker_image: A prebuilt environment image saved as a tarball using the Docker save command.
136
155
  :param pulumi.Input[str] name: The name of the Execution Environment.
137
156
  :param pulumi.Input[str] programming_language: The programming language of the Execution Environment.
138
157
  :param pulumi.Input[Sequence[pulumi.Input[str]]] use_cases: The list of Use Cases that the Execution Environment supports.
@@ -145,6 +164,8 @@ class _ExecutionEnvironmentState:
145
164
  pulumi.set(__self__, "description", description)
146
165
  if docker_context_path is not None:
147
166
  pulumi.set(__self__, "docker_context_path", docker_context_path)
167
+ if docker_image is not None:
168
+ pulumi.set(__self__, "docker_image", docker_image)
148
169
  if name is not None:
149
170
  pulumi.set(__self__, "name", name)
150
171
  if programming_language is not None:
@@ -192,6 +213,18 @@ class _ExecutionEnvironmentState:
192
213
  def docker_context_path(self, value: Optional[pulumi.Input[str]]):
193
214
  pulumi.set(self, "docker_context_path", value)
194
215
 
216
+ @property
217
+ @pulumi.getter(name="dockerImage")
218
+ def docker_image(self) -> Optional[pulumi.Input[str]]:
219
+ """
220
+ A prebuilt environment image saved as a tarball using the Docker save command.
221
+ """
222
+ return pulumi.get(self, "docker_image")
223
+
224
+ @docker_image.setter
225
+ def docker_image(self, value: Optional[pulumi.Input[str]]):
226
+ pulumi.set(self, "docker_image", value)
227
+
195
228
  @property
196
229
  @pulumi.getter
197
230
  def name(self) -> Optional[pulumi.Input[str]]:
@@ -260,6 +293,7 @@ class ExecutionEnvironment(pulumi.CustomResource):
260
293
  opts: Optional[pulumi.ResourceOptions] = None,
261
294
  description: Optional[pulumi.Input[str]] = None,
262
295
  docker_context_path: Optional[pulumi.Input[str]] = None,
296
+ docker_image: Optional[pulumi.Input[str]] = None,
263
297
  name: Optional[pulumi.Input[str]] = None,
264
298
  programming_language: Optional[pulumi.Input[str]] = None,
265
299
  use_cases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -275,16 +309,20 @@ class ExecutionEnvironment(pulumi.CustomResource):
275
309
  import pulumi_datarobot as datarobot
276
310
 
277
311
  example = datarobot.ExecutionEnvironment("example",
312
+ programming_language="python",
278
313
  description="Example Execution Environment Description",
279
314
  docker_context_path="docker_context.zip",
280
- programming_language="python",
315
+ docker_image="docker_image.tar",
281
316
  use_cases=["customModel"])
317
+ pulumi.export("datarobotExecutionEnvironmentId", example.id)
318
+ pulumi.export("datarobotExecutionEnvironmentVersionId", example.version_id)
282
319
  ```
283
320
 
284
321
  :param str resource_name: The name of the resource.
285
322
  :param pulumi.ResourceOptions opts: Options for the resource.
286
323
  :param pulumi.Input[str] description: The description of the Execution Environment.
287
324
  :param pulumi.Input[str] docker_context_path: The path to a docker context archive or folder
325
+ :param pulumi.Input[str] docker_image: A prebuilt environment image saved as a tarball using the Docker save command.
288
326
  :param pulumi.Input[str] name: The name of the Execution Environment.
289
327
  :param pulumi.Input[str] programming_language: The programming language of the Execution Environment.
290
328
  :param pulumi.Input[Sequence[pulumi.Input[str]]] use_cases: The list of Use Cases that the Execution Environment supports.
@@ -306,10 +344,13 @@ class ExecutionEnvironment(pulumi.CustomResource):
306
344
  import pulumi_datarobot as datarobot
307
345
 
308
346
  example = datarobot.ExecutionEnvironment("example",
347
+ programming_language="python",
309
348
  description="Example Execution Environment Description",
310
349
  docker_context_path="docker_context.zip",
311
- programming_language="python",
350
+ docker_image="docker_image.tar",
312
351
  use_cases=["customModel"])
352
+ pulumi.export("datarobotExecutionEnvironmentId", example.id)
353
+ pulumi.export("datarobotExecutionEnvironmentVersionId", example.version_id)
313
354
  ```
314
355
 
315
356
  :param str resource_name: The name of the resource.
@@ -329,6 +370,7 @@ class ExecutionEnvironment(pulumi.CustomResource):
329
370
  opts: Optional[pulumi.ResourceOptions] = None,
330
371
  description: Optional[pulumi.Input[str]] = None,
331
372
  docker_context_path: Optional[pulumi.Input[str]] = None,
373
+ docker_image: Optional[pulumi.Input[str]] = None,
332
374
  name: Optional[pulumi.Input[str]] = None,
333
375
  programming_language: Optional[pulumi.Input[str]] = None,
334
376
  use_cases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -343,9 +385,8 @@ class ExecutionEnvironment(pulumi.CustomResource):
343
385
  __props__ = ExecutionEnvironmentArgs.__new__(ExecutionEnvironmentArgs)
344
386
 
345
387
  __props__.__dict__["description"] = description
346
- if docker_context_path is None and not opts.urn:
347
- raise TypeError("Missing required property 'docker_context_path'")
348
388
  __props__.__dict__["docker_context_path"] = docker_context_path
389
+ __props__.__dict__["docker_image"] = docker_image
349
390
  __props__.__dict__["name"] = name
350
391
  if programming_language is None and not opts.urn:
351
392
  raise TypeError("Missing required property 'programming_language'")
@@ -369,6 +410,7 @@ class ExecutionEnvironment(pulumi.CustomResource):
369
410
  build_status: Optional[pulumi.Input[str]] = None,
370
411
  description: Optional[pulumi.Input[str]] = None,
371
412
  docker_context_path: Optional[pulumi.Input[str]] = None,
413
+ docker_image: Optional[pulumi.Input[str]] = None,
372
414
  name: Optional[pulumi.Input[str]] = None,
373
415
  programming_language: Optional[pulumi.Input[str]] = None,
374
416
  use_cases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -384,6 +426,7 @@ class ExecutionEnvironment(pulumi.CustomResource):
384
426
  :param pulumi.Input[str] build_status: The status of the Execution Environment version build.
385
427
  :param pulumi.Input[str] description: The description of the Execution Environment.
386
428
  :param pulumi.Input[str] docker_context_path: The path to a docker context archive or folder
429
+ :param pulumi.Input[str] docker_image: A prebuilt environment image saved as a tarball using the Docker save command.
387
430
  :param pulumi.Input[str] name: The name of the Execution Environment.
388
431
  :param pulumi.Input[str] programming_language: The programming language of the Execution Environment.
389
432
  :param pulumi.Input[Sequence[pulumi.Input[str]]] use_cases: The list of Use Cases that the Execution Environment supports.
@@ -397,6 +440,7 @@ class ExecutionEnvironment(pulumi.CustomResource):
397
440
  __props__.__dict__["build_status"] = build_status
398
441
  __props__.__dict__["description"] = description
399
442
  __props__.__dict__["docker_context_path"] = docker_context_path
443
+ __props__.__dict__["docker_image"] = docker_image
400
444
  __props__.__dict__["name"] = name
401
445
  __props__.__dict__["programming_language"] = programming_language
402
446
  __props__.__dict__["use_cases"] = use_cases
@@ -422,12 +466,20 @@ class ExecutionEnvironment(pulumi.CustomResource):
422
466
 
423
467
  @property
424
468
  @pulumi.getter(name="dockerContextPath")
425
- def docker_context_path(self) -> pulumi.Output[str]:
469
+ def docker_context_path(self) -> pulumi.Output[Optional[str]]:
426
470
  """
427
471
  The path to a docker context archive or folder
428
472
  """
429
473
  return pulumi.get(self, "docker_context_path")
430
474
 
475
+ @property
476
+ @pulumi.getter(name="dockerImage")
477
+ def docker_image(self) -> pulumi.Output[Optional[str]]:
478
+ """
479
+ A prebuilt environment image saved as a tarball using the Docker save command.
480
+ """
481
+ return pulumi.get(self, "docker_image")
482
+
431
483
  @property
432
484
  @pulumi.getter
433
485
  def name(self) -> pulumi.Output[str]:
@@ -16,6 +16,7 @@ from . import _utilities
16
16
  from . import outputs
17
17
 
18
18
  __all__ = [
19
+ 'ApplicationSourceResources',
19
20
  'ApplicationSourceRuntimeParameterValue',
20
21
  'BatchPredictionJobDefinitionCsvSettings',
21
22
  'BatchPredictionJobDefinitionIntakeSettings',
@@ -71,6 +72,68 @@ __all__ = [
71
72
  'VectorDatabaseChunkingParameters',
72
73
  ]
73
74
 
75
+ @pulumi.output_type
76
+ class ApplicationSourceResources(dict):
77
+ @staticmethod
78
+ def __key_warning(key: str):
79
+ suggest = None
80
+ if key == "resourceLabel":
81
+ suggest = "resource_label"
82
+ elif key == "sessionAffinity":
83
+ suggest = "session_affinity"
84
+
85
+ if suggest:
86
+ pulumi.log.warn(f"Key '{key}' not found in ApplicationSourceResources. Access the value via the '{suggest}' property getter instead.")
87
+
88
+ def __getitem__(self, key: str) -> Any:
89
+ ApplicationSourceResources.__key_warning(key)
90
+ return super().__getitem__(key)
91
+
92
+ def get(self, key: str, default = None) -> Any:
93
+ ApplicationSourceResources.__key_warning(key)
94
+ return super().get(key, default)
95
+
96
+ def __init__(__self__, *,
97
+ replicas: Optional[int] = None,
98
+ resource_label: Optional[str] = None,
99
+ session_affinity: Optional[bool] = None):
100
+ """
101
+ :param int replicas: The replicas for the Application Source.
102
+ :param str resource_label: The resource label for the Application Source.
103
+ :param bool session_affinity: The session affinity for the Application Source.
104
+ """
105
+ if replicas is not None:
106
+ pulumi.set(__self__, "replicas", replicas)
107
+ if resource_label is not None:
108
+ pulumi.set(__self__, "resource_label", resource_label)
109
+ if session_affinity is not None:
110
+ pulumi.set(__self__, "session_affinity", session_affinity)
111
+
112
+ @property
113
+ @pulumi.getter
114
+ def replicas(self) -> Optional[int]:
115
+ """
116
+ The replicas for the Application Source.
117
+ """
118
+ return pulumi.get(self, "replicas")
119
+
120
+ @property
121
+ @pulumi.getter(name="resourceLabel")
122
+ def resource_label(self) -> Optional[str]:
123
+ """
124
+ The resource label for the Application Source.
125
+ """
126
+ return pulumi.get(self, "resource_label")
127
+
128
+ @property
129
+ @pulumi.getter(name="sessionAffinity")
130
+ def session_affinity(self) -> Optional[bool]:
131
+ """
132
+ The session affinity for the Application Source.
133
+ """
134
+ return pulumi.get(self, "session_affinity")
135
+
136
+
74
137
  @pulumi.output_type
75
138
  class ApplicationSourceRuntimeParameterValue(dict):
76
139
  def __init__(__self__, *,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-datarobot
3
- Version: 0.5.4
3
+ Version: 0.7.2
4
4
  Summary: A Pulumi package for creating and managing DataRobot resources.
5
5
  Home-page: https://www.datarobot.com
6
6
  License: Apache-2.0
@@ -9,6 +9,7 @@ pulumi_datarobot/aws_credential.py
9
9
  pulumi_datarobot/basic_credential.py
10
10
  pulumi_datarobot/batch_prediction_job_definition.py
11
11
  pulumi_datarobot/custom_application.py
12
+ pulumi_datarobot/custom_application_from_environment.py
12
13
  pulumi_datarobot/custom_job.py
13
14
  pulumi_datarobot/custom_metric_from_job.py
14
15
  pulumi_datarobot/custom_metric_job.py
@@ -8,7 +8,7 @@ from setuptools.command.install import install
8
8
  from subprocess import check_call
9
9
 
10
10
 
11
- VERSION = "0.5.4"
11
+ VERSION = "0.7.2"
12
12
  def readme():
13
13
  try:
14
14
  with open('README.md', encoding='utf-8') as f: