pulumi-digitalocean 4.32.0a1726292068__py3-none-any.whl → 4.32.0a1726481189__py3-none-any.whl
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.
Potentially problematic release.
This version of pulumi-digitalocean might be problematic. Click here for more details.
- pulumi_digitalocean/_inputs.py +543 -57
- pulumi_digitalocean/app.py +90 -4
- pulumi_digitalocean/database_cluster.py +28 -0
- pulumi_digitalocean/get_app.py +14 -1
- pulumi_digitalocean/outputs.py +1011 -72
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- {pulumi_digitalocean-4.32.0a1726292068.dist-info → pulumi_digitalocean-4.32.0a1726481189.dist-info}/METADATA +1 -1
- {pulumi_digitalocean-4.32.0a1726292068.dist-info → pulumi_digitalocean-4.32.0a1726481189.dist-info}/RECORD +10 -10
- {pulumi_digitalocean-4.32.0a1726292068.dist-info → pulumi_digitalocean-4.32.0a1726481189.dist-info}/WHEEL +1 -1
- {pulumi_digitalocean-4.32.0a1726292068.dist-info → pulumi_digitalocean-4.32.0a1726481189.dist-info}/top_level.txt +0 -0
pulumi_digitalocean/app.py
CHANGED
|
@@ -85,6 +85,7 @@ class _AppState:
|
|
|
85
85
|
created_at: Optional[pulumi.Input[str]] = None,
|
|
86
86
|
dedicated_ips: Optional[pulumi.Input[Sequence[pulumi.Input['AppDedicatedIpArgs']]]] = None,
|
|
87
87
|
default_ingress: Optional[pulumi.Input[str]] = None,
|
|
88
|
+
live_domain: Optional[pulumi.Input[str]] = None,
|
|
88
89
|
live_url: Optional[pulumi.Input[str]] = None,
|
|
89
90
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
90
91
|
spec: Optional[pulumi.Input['AppSpecArgs']] = None,
|
|
@@ -96,6 +97,7 @@ class _AppState:
|
|
|
96
97
|
:param pulumi.Input[str] created_at: The date and time of when the app was created.
|
|
97
98
|
:param pulumi.Input[Sequence[pulumi.Input['AppDedicatedIpArgs']]] dedicated_ips: The dedicated egress IP addresses associated with the app.
|
|
98
99
|
:param pulumi.Input[str] default_ingress: The default URL to access the app.
|
|
100
|
+
:param pulumi.Input[str] live_domain: The live domain of the app.
|
|
99
101
|
:param pulumi.Input[str] live_url: The live URL of the app.
|
|
100
102
|
:param pulumi.Input[str] project_id: The ID of the project that the app is assigned to.
|
|
101
103
|
|
|
@@ -115,6 +117,8 @@ class _AppState:
|
|
|
115
117
|
pulumi.set(__self__, "dedicated_ips", dedicated_ips)
|
|
116
118
|
if default_ingress is not None:
|
|
117
119
|
pulumi.set(__self__, "default_ingress", default_ingress)
|
|
120
|
+
if live_domain is not None:
|
|
121
|
+
pulumi.set(__self__, "live_domain", live_domain)
|
|
118
122
|
if live_url is not None:
|
|
119
123
|
pulumi.set(__self__, "live_url", live_url)
|
|
120
124
|
if project_id is not None:
|
|
@@ -184,6 +188,18 @@ class _AppState:
|
|
|
184
188
|
def default_ingress(self, value: Optional[pulumi.Input[str]]):
|
|
185
189
|
pulumi.set(self, "default_ingress", value)
|
|
186
190
|
|
|
191
|
+
@property
|
|
192
|
+
@pulumi.getter(name="liveDomain")
|
|
193
|
+
def live_domain(self) -> Optional[pulumi.Input[str]]:
|
|
194
|
+
"""
|
|
195
|
+
The live domain of the app.
|
|
196
|
+
"""
|
|
197
|
+
return pulumi.get(self, "live_domain")
|
|
198
|
+
|
|
199
|
+
@live_domain.setter
|
|
200
|
+
def live_domain(self, value: Optional[pulumi.Input[str]]):
|
|
201
|
+
pulumi.set(self, "live_domain", value)
|
|
202
|
+
|
|
187
203
|
@property
|
|
188
204
|
@pulumi.getter(name="liveUrl")
|
|
189
205
|
def live_url(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -264,9 +280,8 @@ class App(pulumi.CustomResource):
|
|
|
264
280
|
"region": "ams",
|
|
265
281
|
"services": [{
|
|
266
282
|
"name": "go-service",
|
|
267
|
-
"environment_slug": "go",
|
|
268
283
|
"instance_count": 1,
|
|
269
|
-
"instance_size_slug": "
|
|
284
|
+
"instance_size_slug": "apps-s-1vcpu-1gb",
|
|
270
285
|
"git": {
|
|
271
286
|
"repo_clone_url": "https://github.com/digitalocean/sample-golang.git",
|
|
272
287
|
"branch": "main",
|
|
@@ -296,6 +311,36 @@ class App(pulumi.CustomResource):
|
|
|
296
311
|
})
|
|
297
312
|
```
|
|
298
313
|
|
|
314
|
+
### Log Destination Example with Opensearch
|
|
315
|
+
```python
|
|
316
|
+
import pulumi
|
|
317
|
+
import pulumi_digitalocean as digitalocean
|
|
318
|
+
|
|
319
|
+
golang_sample = digitalocean.App("golang-sample", spec={
|
|
320
|
+
"name": "golang-sample",
|
|
321
|
+
"region": "ams",
|
|
322
|
+
"services": [{
|
|
323
|
+
"name": "go-service",
|
|
324
|
+
"instance_count": 1,
|
|
325
|
+
"instance_size_slug": "apps-s-1vcpu-1gb",
|
|
326
|
+
"git": {
|
|
327
|
+
"repo_clone_url": "https://github.com/digitalocean/sample-golang.git",
|
|
328
|
+
"branch": "main",
|
|
329
|
+
},
|
|
330
|
+
"log_destinations": [{
|
|
331
|
+
"name": "MyLogs",
|
|
332
|
+
"open_search": {
|
|
333
|
+
"endpoint": "https://something:1234",
|
|
334
|
+
"basic_auth": {
|
|
335
|
+
"user": "user",
|
|
336
|
+
"password": "hi",
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
}],
|
|
340
|
+
}],
|
|
341
|
+
})
|
|
342
|
+
```
|
|
343
|
+
|
|
299
344
|
## Import
|
|
300
345
|
|
|
301
346
|
An app can be imported using its `id`, e.g.
|
|
@@ -338,9 +383,8 @@ class App(pulumi.CustomResource):
|
|
|
338
383
|
"region": "ams",
|
|
339
384
|
"services": [{
|
|
340
385
|
"name": "go-service",
|
|
341
|
-
"environment_slug": "go",
|
|
342
386
|
"instance_count": 1,
|
|
343
|
-
"instance_size_slug": "
|
|
387
|
+
"instance_size_slug": "apps-s-1vcpu-1gb",
|
|
344
388
|
"git": {
|
|
345
389
|
"repo_clone_url": "https://github.com/digitalocean/sample-golang.git",
|
|
346
390
|
"branch": "main",
|
|
@@ -370,6 +414,36 @@ class App(pulumi.CustomResource):
|
|
|
370
414
|
})
|
|
371
415
|
```
|
|
372
416
|
|
|
417
|
+
### Log Destination Example with Opensearch
|
|
418
|
+
```python
|
|
419
|
+
import pulumi
|
|
420
|
+
import pulumi_digitalocean as digitalocean
|
|
421
|
+
|
|
422
|
+
golang_sample = digitalocean.App("golang-sample", spec={
|
|
423
|
+
"name": "golang-sample",
|
|
424
|
+
"region": "ams",
|
|
425
|
+
"services": [{
|
|
426
|
+
"name": "go-service",
|
|
427
|
+
"instance_count": 1,
|
|
428
|
+
"instance_size_slug": "apps-s-1vcpu-1gb",
|
|
429
|
+
"git": {
|
|
430
|
+
"repo_clone_url": "https://github.com/digitalocean/sample-golang.git",
|
|
431
|
+
"branch": "main",
|
|
432
|
+
},
|
|
433
|
+
"log_destinations": [{
|
|
434
|
+
"name": "MyLogs",
|
|
435
|
+
"open_search": {
|
|
436
|
+
"endpoint": "https://something:1234",
|
|
437
|
+
"basic_auth": {
|
|
438
|
+
"user": "user",
|
|
439
|
+
"password": "hi",
|
|
440
|
+
},
|
|
441
|
+
},
|
|
442
|
+
}],
|
|
443
|
+
}],
|
|
444
|
+
})
|
|
445
|
+
```
|
|
446
|
+
|
|
373
447
|
## Import
|
|
374
448
|
|
|
375
449
|
An app can be imported using its `id`, e.g.
|
|
@@ -412,6 +486,7 @@ class App(pulumi.CustomResource):
|
|
|
412
486
|
__props__.__dict__["app_urn"] = None
|
|
413
487
|
__props__.__dict__["created_at"] = None
|
|
414
488
|
__props__.__dict__["default_ingress"] = None
|
|
489
|
+
__props__.__dict__["live_domain"] = None
|
|
415
490
|
__props__.__dict__["live_url"] = None
|
|
416
491
|
__props__.__dict__["updated_at"] = None
|
|
417
492
|
super(App, __self__).__init__(
|
|
@@ -429,6 +504,7 @@ class App(pulumi.CustomResource):
|
|
|
429
504
|
created_at: Optional[pulumi.Input[str]] = None,
|
|
430
505
|
dedicated_ips: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AppDedicatedIpArgs', 'AppDedicatedIpArgsDict']]]]] = None,
|
|
431
506
|
default_ingress: Optional[pulumi.Input[str]] = None,
|
|
507
|
+
live_domain: Optional[pulumi.Input[str]] = None,
|
|
432
508
|
live_url: Optional[pulumi.Input[str]] = None,
|
|
433
509
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
434
510
|
spec: Optional[pulumi.Input[Union['AppSpecArgs', 'AppSpecArgsDict']]] = None,
|
|
@@ -445,6 +521,7 @@ class App(pulumi.CustomResource):
|
|
|
445
521
|
:param pulumi.Input[str] created_at: The date and time of when the app was created.
|
|
446
522
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AppDedicatedIpArgs', 'AppDedicatedIpArgsDict']]]] dedicated_ips: The dedicated egress IP addresses associated with the app.
|
|
447
523
|
:param pulumi.Input[str] default_ingress: The default URL to access the app.
|
|
524
|
+
:param pulumi.Input[str] live_domain: The live domain of the app.
|
|
448
525
|
:param pulumi.Input[str] live_url: The live URL of the app.
|
|
449
526
|
:param pulumi.Input[str] project_id: The ID of the project that the app is assigned to.
|
|
450
527
|
|
|
@@ -463,6 +540,7 @@ class App(pulumi.CustomResource):
|
|
|
463
540
|
__props__.__dict__["created_at"] = created_at
|
|
464
541
|
__props__.__dict__["dedicated_ips"] = dedicated_ips
|
|
465
542
|
__props__.__dict__["default_ingress"] = default_ingress
|
|
543
|
+
__props__.__dict__["live_domain"] = live_domain
|
|
466
544
|
__props__.__dict__["live_url"] = live_url
|
|
467
545
|
__props__.__dict__["project_id"] = project_id
|
|
468
546
|
__props__.__dict__["spec"] = spec
|
|
@@ -509,6 +587,14 @@ class App(pulumi.CustomResource):
|
|
|
509
587
|
"""
|
|
510
588
|
return pulumi.get(self, "default_ingress")
|
|
511
589
|
|
|
590
|
+
@property
|
|
591
|
+
@pulumi.getter(name="liveDomain")
|
|
592
|
+
def live_domain(self) -> pulumi.Output[str]:
|
|
593
|
+
"""
|
|
594
|
+
The live domain of the app.
|
|
595
|
+
"""
|
|
596
|
+
return pulumi.get(self, "live_domain")
|
|
597
|
+
|
|
512
598
|
@property
|
|
513
599
|
@pulumi.getter(name="liveUrl")
|
|
514
600
|
def live_url(self) -> pulumi.Output[str]:
|
|
@@ -805,6 +805,20 @@ class DatabaseCluster(pulumi.CustomResource):
|
|
|
805
805
|
node_count=1)
|
|
806
806
|
```
|
|
807
807
|
|
|
808
|
+
### Create a new OpenSearch database cluster
|
|
809
|
+
```python
|
|
810
|
+
import pulumi
|
|
811
|
+
import pulumi_digitalocean as digitalocean
|
|
812
|
+
|
|
813
|
+
opensearch_example = digitalocean.DatabaseCluster("opensearch-example",
|
|
814
|
+
name="example-opensearch-cluster",
|
|
815
|
+
engine="opensearch",
|
|
816
|
+
version="2",
|
|
817
|
+
size=digitalocean.DatabaseSlug.D_B_1_VPCU2_GB,
|
|
818
|
+
region=digitalocean.Region.NYC3,
|
|
819
|
+
node_count=1)
|
|
820
|
+
```
|
|
821
|
+
|
|
808
822
|
## Create a new database cluster based on a backup of an existing cluster.
|
|
809
823
|
|
|
810
824
|
```python
|
|
@@ -939,6 +953,20 @@ class DatabaseCluster(pulumi.CustomResource):
|
|
|
939
953
|
node_count=1)
|
|
940
954
|
```
|
|
941
955
|
|
|
956
|
+
### Create a new OpenSearch database cluster
|
|
957
|
+
```python
|
|
958
|
+
import pulumi
|
|
959
|
+
import pulumi_digitalocean as digitalocean
|
|
960
|
+
|
|
961
|
+
opensearch_example = digitalocean.DatabaseCluster("opensearch-example",
|
|
962
|
+
name="example-opensearch-cluster",
|
|
963
|
+
engine="opensearch",
|
|
964
|
+
version="2",
|
|
965
|
+
size=digitalocean.DatabaseSlug.D_B_1_VPCU2_GB,
|
|
966
|
+
region=digitalocean.Region.NYC3,
|
|
967
|
+
node_count=1)
|
|
968
|
+
```
|
|
969
|
+
|
|
942
970
|
## Create a new database cluster based on a backup of an existing cluster.
|
|
943
971
|
|
|
944
972
|
```python
|
pulumi_digitalocean/get_app.py
CHANGED
|
@@ -23,7 +23,7 @@ class GetAppResult:
|
|
|
23
23
|
"""
|
|
24
24
|
A collection of values returned by getApp.
|
|
25
25
|
"""
|
|
26
|
-
def __init__(__self__, active_deployment_id=None, app_id=None, created_at=None, dedicated_ips=None, default_ingress=None, id=None, live_url=None, project_id=None, specs=None, updated_at=None, urn=None):
|
|
26
|
+
def __init__(__self__, active_deployment_id=None, app_id=None, created_at=None, dedicated_ips=None, default_ingress=None, id=None, live_domain=None, live_url=None, project_id=None, specs=None, updated_at=None, urn=None):
|
|
27
27
|
if active_deployment_id and not isinstance(active_deployment_id, str):
|
|
28
28
|
raise TypeError("Expected argument 'active_deployment_id' to be a str")
|
|
29
29
|
pulumi.set(__self__, "active_deployment_id", active_deployment_id)
|
|
@@ -42,6 +42,9 @@ class GetAppResult:
|
|
|
42
42
|
if id and not isinstance(id, str):
|
|
43
43
|
raise TypeError("Expected argument 'id' to be a str")
|
|
44
44
|
pulumi.set(__self__, "id", id)
|
|
45
|
+
if live_domain and not isinstance(live_domain, str):
|
|
46
|
+
raise TypeError("Expected argument 'live_domain' to be a str")
|
|
47
|
+
pulumi.set(__self__, "live_domain", live_domain)
|
|
45
48
|
if live_url and not isinstance(live_url, str):
|
|
46
49
|
raise TypeError("Expected argument 'live_url' to be a str")
|
|
47
50
|
pulumi.set(__self__, "live_url", live_url)
|
|
@@ -103,6 +106,14 @@ class GetAppResult:
|
|
|
103
106
|
"""
|
|
104
107
|
return pulumi.get(self, "id")
|
|
105
108
|
|
|
109
|
+
@property
|
|
110
|
+
@pulumi.getter(name="liveDomain")
|
|
111
|
+
def live_domain(self) -> str:
|
|
112
|
+
"""
|
|
113
|
+
The live domain of the app.
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "live_domain")
|
|
116
|
+
|
|
106
117
|
@property
|
|
107
118
|
@pulumi.getter(name="liveUrl")
|
|
108
119
|
def live_url(self) -> str:
|
|
@@ -156,6 +167,7 @@ class AwaitableGetAppResult(GetAppResult):
|
|
|
156
167
|
dedicated_ips=self.dedicated_ips,
|
|
157
168
|
default_ingress=self.default_ingress,
|
|
158
169
|
id=self.id,
|
|
170
|
+
live_domain=self.live_domain,
|
|
159
171
|
live_url=self.live_url,
|
|
160
172
|
project_id=self.project_id,
|
|
161
173
|
specs=self.specs,
|
|
@@ -198,6 +210,7 @@ def get_app(app_id: Optional[str] = None,
|
|
|
198
210
|
dedicated_ips=pulumi.get(__ret__, 'dedicated_ips'),
|
|
199
211
|
default_ingress=pulumi.get(__ret__, 'default_ingress'),
|
|
200
212
|
id=pulumi.get(__ret__, 'id'),
|
|
213
|
+
live_domain=pulumi.get(__ret__, 'live_domain'),
|
|
201
214
|
live_url=pulumi.get(__ret__, 'live_url'),
|
|
202
215
|
project_id=pulumi.get(__ret__, 'project_id'),
|
|
203
216
|
specs=pulumi.get(__ret__, 'specs'),
|