pulumi-datarobot 0.6.1__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.6.1 → pulumi_datarobot-0.7.2}/PKG-INFO +1 -1
  2. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/__init__.py +9 -0
  3. pulumi_datarobot-0.7.2/pulumi_datarobot/custom_application_from_environment.py +423 -0
  4. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/execution_environment.py +72 -20
  5. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/PKG-INFO +1 -1
  6. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/SOURCES.txt +1 -0
  7. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/setup.py +1 -1
  8. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/README.md +0 -0
  9. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/_inputs.py +0 -0
  10. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/_utilities.py +0 -0
  11. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/api_token_credential.py +0 -0
  12. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/application_source.py +0 -0
  13. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/aws_credential.py +0 -0
  14. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/basic_credential.py +0 -0
  15. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/batch_prediction_job_definition.py +0 -0
  16. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/config/__init__.py +0 -0
  17. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/config/vars.py +0 -0
  18. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_application.py +0 -0
  19. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_job.py +0 -0
  20. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_metric_from_job.py +0 -0
  21. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_metric_job.py +0 -0
  22. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/custom_model.py +0 -0
  23. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/dataset_from_datasource.py +0 -0
  24. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/dataset_from_file.py +0 -0
  25. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/dataset_from_url.py +0 -0
  26. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/datasource.py +0 -0
  27. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/datastore.py +0 -0
  28. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/deployment.py +0 -0
  29. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/deployment_retraining_policy.py +0 -0
  30. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/get_execution_environment.py +0 -0
  31. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/get_global_model.py +0 -0
  32. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/google_cloud_credential.py +0 -0
  33. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/llm_blueprint.py +0 -0
  34. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/outputs.py +0 -0
  35. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/playground.py +0 -0
  36. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/prediction_environment.py +0 -0
  37. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/provider.py +0 -0
  38. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/pulumi-plugin.json +0 -0
  39. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/py.typed +0 -0
  40. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/qa_application.py +0 -0
  41. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/registered_model.py +0 -0
  42. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/registered_model_from_leaderboard.py +0 -0
  43. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/remote_repository.py +0 -0
  44. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/use_case.py +0 -0
  45. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot/vector_database.py +0 -0
  46. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/dependency_links.txt +0 -0
  47. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/not-zip-safe +0 -0
  48. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/requires.txt +0 -0
  49. {pulumi_datarobot-0.6.1 → pulumi_datarobot-0.7.2}/pulumi_datarobot.egg-info/top_level.txt +0 -0
  50. {pulumi_datarobot-0.6.1 → 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.6.1
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",
@@ -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]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-datarobot
3
- Version: 0.6.1
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.6.1"
11
+ VERSION = "0.7.2"
12
12
  def readme():
13
13
  try:
14
14
  with open('README.md', encoding='utf-8') as f: