pulumi-digitalocean 4.35.0__py3-none-any.whl → 4.35.0a1729897879__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/_enums.py +52 -131
- pulumi_digitalocean/_inputs.py +0 -74
- pulumi_digitalocean/database_cluster.py +14 -14
- pulumi_digitalocean/database_redis_config.py +0 -14
- pulumi_digitalocean/droplet.py +2 -63
- pulumi_digitalocean/get_database_cluster.py +1 -1
- pulumi_digitalocean/get_droplet.py +3 -24
- pulumi_digitalocean/get_droplets.py +1 -24
- pulumi_digitalocean/load_balancer.py +35 -14
- pulumi_digitalocean/outputs.py +0 -44
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- {pulumi_digitalocean-4.35.0.dist-info → pulumi_digitalocean-4.35.0a1729897879.dist-info}/METADATA +1 -1
- {pulumi_digitalocean-4.35.0.dist-info → pulumi_digitalocean-4.35.0a1729897879.dist-info}/RECORD +15 -15
- {pulumi_digitalocean-4.35.0.dist-info → pulumi_digitalocean-4.35.0a1729897879.dist-info}/WHEEL +1 -1
- {pulumi_digitalocean-4.35.0.dist-info → pulumi_digitalocean-4.35.0a1729897879.dist-info}/top_level.txt +0 -0
pulumi_digitalocean/droplet.py
CHANGED
|
@@ -13,9 +13,7 @@ if sys.version_info >= (3, 11):
|
|
|
13
13
|
else:
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from . import _utilities
|
|
16
|
-
from . import outputs
|
|
17
16
|
from ._enums import *
|
|
18
|
-
from ._inputs import *
|
|
19
17
|
|
|
20
18
|
__all__ = ['DropletArgs', 'Droplet']
|
|
21
19
|
|
|
@@ -24,7 +22,6 @@ class DropletArgs:
|
|
|
24
22
|
def __init__(__self__, *,
|
|
25
23
|
image: pulumi.Input[str],
|
|
26
24
|
size: pulumi.Input[Union[str, 'DropletSlug']],
|
|
27
|
-
backup_policy: Optional[pulumi.Input['DropletBackupPolicyArgs']] = None,
|
|
28
25
|
backups: Optional[pulumi.Input[bool]] = None,
|
|
29
26
|
droplet_agent: Optional[pulumi.Input[bool]] = None,
|
|
30
27
|
graceful_shutdown: Optional[pulumi.Input[bool]] = None,
|
|
@@ -44,7 +41,6 @@ class DropletArgs:
|
|
|
44
41
|
The set of arguments for constructing a Droplet resource.
|
|
45
42
|
:param pulumi.Input[str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID.
|
|
46
43
|
:param pulumi.Input[Union[str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You can find a list of available slugs on [DigitalOcean API documentation](https://docs.digitalocean.com/reference/api/api-reference/#tag/Sizes).
|
|
47
|
-
:param pulumi.Input['DropletBackupPolicyArgs'] backup_policy: An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
48
44
|
:param pulumi.Input[bool] backups: Boolean controlling if backups are made. Defaults to
|
|
49
45
|
false.
|
|
50
46
|
:param pulumi.Input[bool] droplet_agent: A boolean indicating whether to install the
|
|
@@ -86,8 +82,6 @@ class DropletArgs:
|
|
|
86
82
|
"""
|
|
87
83
|
pulumi.set(__self__, "image", image)
|
|
88
84
|
pulumi.set(__self__, "size", size)
|
|
89
|
-
if backup_policy is not None:
|
|
90
|
-
pulumi.set(__self__, "backup_policy", backup_policy)
|
|
91
85
|
if backups is not None:
|
|
92
86
|
pulumi.set(__self__, "backups", backups)
|
|
93
87
|
if droplet_agent is not None:
|
|
@@ -146,18 +140,6 @@ class DropletArgs:
|
|
|
146
140
|
def size(self, value: pulumi.Input[Union[str, 'DropletSlug']]):
|
|
147
141
|
pulumi.set(self, "size", value)
|
|
148
142
|
|
|
149
|
-
@property
|
|
150
|
-
@pulumi.getter(name="backupPolicy")
|
|
151
|
-
def backup_policy(self) -> Optional[pulumi.Input['DropletBackupPolicyArgs']]:
|
|
152
|
-
"""
|
|
153
|
-
An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
154
|
-
"""
|
|
155
|
-
return pulumi.get(self, "backup_policy")
|
|
156
|
-
|
|
157
|
-
@backup_policy.setter
|
|
158
|
-
def backup_policy(self, value: Optional[pulumi.Input['DropletBackupPolicyArgs']]):
|
|
159
|
-
pulumi.set(self, "backup_policy", value)
|
|
160
|
-
|
|
161
143
|
@property
|
|
162
144
|
@pulumi.getter
|
|
163
145
|
def backups(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -366,7 +348,6 @@ class DropletArgs:
|
|
|
366
348
|
@pulumi.input_type
|
|
367
349
|
class _DropletState:
|
|
368
350
|
def __init__(__self__, *,
|
|
369
|
-
backup_policy: Optional[pulumi.Input['DropletBackupPolicyArgs']] = None,
|
|
370
351
|
backups: Optional[pulumi.Input[bool]] = None,
|
|
371
352
|
created_at: Optional[pulumi.Input[str]] = None,
|
|
372
353
|
disk: Optional[pulumi.Input[int]] = None,
|
|
@@ -397,7 +378,6 @@ class _DropletState:
|
|
|
397
378
|
vpc_uuid: Optional[pulumi.Input[str]] = None):
|
|
398
379
|
"""
|
|
399
380
|
Input properties used for looking up and filtering Droplet resources.
|
|
400
|
-
:param pulumi.Input['DropletBackupPolicyArgs'] backup_policy: An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
401
381
|
:param pulumi.Input[bool] backups: Boolean controlling if backups are made. Defaults to
|
|
402
382
|
false.
|
|
403
383
|
:param pulumi.Input[int] disk: The size of the instance's disk in GB
|
|
@@ -448,8 +428,6 @@ class _DropletState:
|
|
|
448
428
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
449
429
|
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
450
430
|
"""
|
|
451
|
-
if backup_policy is not None:
|
|
452
|
-
pulumi.set(__self__, "backup_policy", backup_policy)
|
|
453
431
|
if backups is not None:
|
|
454
432
|
pulumi.set(__self__, "backups", backups)
|
|
455
433
|
if created_at is not None:
|
|
@@ -510,18 +488,6 @@ class _DropletState:
|
|
|
510
488
|
if vpc_uuid is not None:
|
|
511
489
|
pulumi.set(__self__, "vpc_uuid", vpc_uuid)
|
|
512
490
|
|
|
513
|
-
@property
|
|
514
|
-
@pulumi.getter(name="backupPolicy")
|
|
515
|
-
def backup_policy(self) -> Optional[pulumi.Input['DropletBackupPolicyArgs']]:
|
|
516
|
-
"""
|
|
517
|
-
An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
518
|
-
"""
|
|
519
|
-
return pulumi.get(self, "backup_policy")
|
|
520
|
-
|
|
521
|
-
@backup_policy.setter
|
|
522
|
-
def backup_policy(self, value: Optional[pulumi.Input['DropletBackupPolicyArgs']]):
|
|
523
|
-
pulumi.set(self, "backup_policy", value)
|
|
524
|
-
|
|
525
491
|
@property
|
|
526
492
|
@pulumi.getter
|
|
527
493
|
def backups(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -882,7 +848,6 @@ class Droplet(pulumi.CustomResource):
|
|
|
882
848
|
def __init__(__self__,
|
|
883
849
|
resource_name: str,
|
|
884
850
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
885
|
-
backup_policy: Optional[pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']]] = None,
|
|
886
851
|
backups: Optional[pulumi.Input[bool]] = None,
|
|
887
852
|
droplet_agent: Optional[pulumi.Input[bool]] = None,
|
|
888
853
|
graceful_shutdown: Optional[pulumi.Input[bool]] = None,
|
|
@@ -916,13 +881,7 @@ class Droplet(pulumi.CustomResource):
|
|
|
916
881
|
image="ubuntu-20-04-x64",
|
|
917
882
|
name="web-1",
|
|
918
883
|
region=digitalocean.Region.NYC2,
|
|
919
|
-
size=digitalocean.DropletSlug.DROPLET_S1_VCPU1_GB
|
|
920
|
-
backups=True,
|
|
921
|
-
backup_policy={
|
|
922
|
-
"plan": "weekly",
|
|
923
|
-
"weekday": "TUE",
|
|
924
|
-
"hour": 8,
|
|
925
|
-
})
|
|
884
|
+
size=digitalocean.DropletSlug.DROPLET_S1_VCPU1_GB)
|
|
926
885
|
```
|
|
927
886
|
|
|
928
887
|
## Import
|
|
@@ -935,7 +894,6 @@ class Droplet(pulumi.CustomResource):
|
|
|
935
894
|
|
|
936
895
|
:param str resource_name: The name of the resource.
|
|
937
896
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
938
|
-
:param pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']] backup_policy: An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
939
897
|
:param pulumi.Input[bool] backups: Boolean controlling if backups are made. Defaults to
|
|
940
898
|
false.
|
|
941
899
|
:param pulumi.Input[bool] droplet_agent: A boolean indicating whether to install the
|
|
@@ -998,13 +956,7 @@ class Droplet(pulumi.CustomResource):
|
|
|
998
956
|
image="ubuntu-20-04-x64",
|
|
999
957
|
name="web-1",
|
|
1000
958
|
region=digitalocean.Region.NYC2,
|
|
1001
|
-
size=digitalocean.DropletSlug.DROPLET_S1_VCPU1_GB
|
|
1002
|
-
backups=True,
|
|
1003
|
-
backup_policy={
|
|
1004
|
-
"plan": "weekly",
|
|
1005
|
-
"weekday": "TUE",
|
|
1006
|
-
"hour": 8,
|
|
1007
|
-
})
|
|
959
|
+
size=digitalocean.DropletSlug.DROPLET_S1_VCPU1_GB)
|
|
1008
960
|
```
|
|
1009
961
|
|
|
1010
962
|
## Import
|
|
@@ -1030,7 +982,6 @@ class Droplet(pulumi.CustomResource):
|
|
|
1030
982
|
def _internal_init(__self__,
|
|
1031
983
|
resource_name: str,
|
|
1032
984
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1033
|
-
backup_policy: Optional[pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']]] = None,
|
|
1034
985
|
backups: Optional[pulumi.Input[bool]] = None,
|
|
1035
986
|
droplet_agent: Optional[pulumi.Input[bool]] = None,
|
|
1036
987
|
graceful_shutdown: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1057,7 +1008,6 @@ class Droplet(pulumi.CustomResource):
|
|
|
1057
1008
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
1058
1009
|
__props__ = DropletArgs.__new__(DropletArgs)
|
|
1059
1010
|
|
|
1060
|
-
__props__.__dict__["backup_policy"] = backup_policy
|
|
1061
1011
|
__props__.__dict__["backups"] = backups
|
|
1062
1012
|
__props__.__dict__["droplet_agent"] = droplet_agent
|
|
1063
1013
|
__props__.__dict__["graceful_shutdown"] = graceful_shutdown
|
|
@@ -1100,7 +1050,6 @@ class Droplet(pulumi.CustomResource):
|
|
|
1100
1050
|
def get(resource_name: str,
|
|
1101
1051
|
id: pulumi.Input[str],
|
|
1102
1052
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1103
|
-
backup_policy: Optional[pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']]] = None,
|
|
1104
1053
|
backups: Optional[pulumi.Input[bool]] = None,
|
|
1105
1054
|
created_at: Optional[pulumi.Input[str]] = None,
|
|
1106
1055
|
disk: Optional[pulumi.Input[int]] = None,
|
|
@@ -1136,7 +1085,6 @@ class Droplet(pulumi.CustomResource):
|
|
|
1136
1085
|
:param str resource_name: The unique name of the resulting resource.
|
|
1137
1086
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1138
1087
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1139
|
-
:param pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']] backup_policy: An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
1140
1088
|
:param pulumi.Input[bool] backups: Boolean controlling if backups are made. Defaults to
|
|
1141
1089
|
false.
|
|
1142
1090
|
:param pulumi.Input[int] disk: The size of the instance's disk in GB
|
|
@@ -1191,7 +1139,6 @@ class Droplet(pulumi.CustomResource):
|
|
|
1191
1139
|
|
|
1192
1140
|
__props__ = _DropletState.__new__(_DropletState)
|
|
1193
1141
|
|
|
1194
|
-
__props__.__dict__["backup_policy"] = backup_policy
|
|
1195
1142
|
__props__.__dict__["backups"] = backups
|
|
1196
1143
|
__props__.__dict__["created_at"] = created_at
|
|
1197
1144
|
__props__.__dict__["disk"] = disk
|
|
@@ -1222,14 +1169,6 @@ class Droplet(pulumi.CustomResource):
|
|
|
1222
1169
|
__props__.__dict__["vpc_uuid"] = vpc_uuid
|
|
1223
1170
|
return Droplet(resource_name, opts=opts, __props__=__props__)
|
|
1224
1171
|
|
|
1225
|
-
@property
|
|
1226
|
-
@pulumi.getter(name="backupPolicy")
|
|
1227
|
-
def backup_policy(self) -> pulumi.Output[Optional['outputs.DropletBackupPolicy']]:
|
|
1228
|
-
"""
|
|
1229
|
-
An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
1230
|
-
"""
|
|
1231
|
-
return pulumi.get(self, "backup_policy")
|
|
1232
|
-
|
|
1233
1172
|
@property
|
|
1234
1173
|
@pulumi.getter
|
|
1235
1174
|
def backups(self) -> pulumi.Output[Optional[bool]]:
|
|
@@ -122,7 +122,7 @@ class GetDatabaseClusterResult:
|
|
|
122
122
|
@pulumi.getter
|
|
123
123
|
def engine(self) -> str:
|
|
124
124
|
"""
|
|
125
|
-
Database engine used by the cluster (ex. `pg` for
|
|
125
|
+
Database engine used by the cluster (ex. `pg` for PostreSQL).
|
|
126
126
|
"""
|
|
127
127
|
return pulumi.get(self, "engine")
|
|
128
128
|
|
|
@@ -26,7 +26,7 @@ class GetDropletResult:
|
|
|
26
26
|
"""
|
|
27
27
|
A collection of values returned by getDroplet.
|
|
28
28
|
"""
|
|
29
|
-
def __init__(__self__, backups=None, created_at=None, disk=None,
|
|
29
|
+
def __init__(__self__, backups=None, created_at=None, disk=None, id=None, image=None, ipv4_address=None, ipv4_address_private=None, ipv6=None, ipv6_address=None, ipv6_address_private=None, locked=None, memory=None, monitoring=None, name=None, price_hourly=None, price_monthly=None, private_networking=None, region=None, size=None, status=None, tag=None, tags=None, urn=None, vcpus=None, volume_ids=None, vpc_uuid=None):
|
|
30
30
|
if backups and not isinstance(backups, bool):
|
|
31
31
|
raise TypeError("Expected argument 'backups' to be a bool")
|
|
32
32
|
pulumi.set(__self__, "backups", backups)
|
|
@@ -36,9 +36,6 @@ class GetDropletResult:
|
|
|
36
36
|
if disk and not isinstance(disk, int):
|
|
37
37
|
raise TypeError("Expected argument 'disk' to be a int")
|
|
38
38
|
pulumi.set(__self__, "disk", disk)
|
|
39
|
-
if gpu and not isinstance(gpu, bool):
|
|
40
|
-
raise TypeError("Expected argument 'gpu' to be a bool")
|
|
41
|
-
pulumi.set(__self__, "gpu", gpu)
|
|
42
39
|
if id and not isinstance(id, int):
|
|
43
40
|
raise TypeError("Expected argument 'id' to be a int")
|
|
44
41
|
pulumi.set(__self__, "id", id)
|
|
@@ -130,11 +127,6 @@ class GetDropletResult:
|
|
|
130
127
|
"""
|
|
131
128
|
return pulumi.get(self, "disk")
|
|
132
129
|
|
|
133
|
-
@property
|
|
134
|
-
@pulumi.getter
|
|
135
|
-
def gpu(self) -> Optional[bool]:
|
|
136
|
-
return pulumi.get(self, "gpu")
|
|
137
|
-
|
|
138
130
|
@property
|
|
139
131
|
@pulumi.getter
|
|
140
132
|
def id(self) -> int:
|
|
@@ -323,7 +315,6 @@ class AwaitableGetDropletResult(GetDropletResult):
|
|
|
323
315
|
backups=self.backups,
|
|
324
316
|
created_at=self.created_at,
|
|
325
317
|
disk=self.disk,
|
|
326
|
-
gpu=self.gpu,
|
|
327
318
|
id=self.id,
|
|
328
319
|
image=self.image,
|
|
329
320
|
ipv4_address=self.ipv4_address,
|
|
@@ -349,8 +340,7 @@ class AwaitableGetDropletResult(GetDropletResult):
|
|
|
349
340
|
vpc_uuid=self.vpc_uuid)
|
|
350
341
|
|
|
351
342
|
|
|
352
|
-
def get_droplet(
|
|
353
|
-
id: Optional[int] = None,
|
|
343
|
+
def get_droplet(id: Optional[int] = None,
|
|
354
344
|
name: Optional[str] = None,
|
|
355
345
|
tag: Optional[str] = None,
|
|
356
346
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDropletResult:
|
|
@@ -394,15 +384,11 @@ def get_droplet(gpu: Optional[bool] = None,
|
|
|
394
384
|
```
|
|
395
385
|
|
|
396
386
|
|
|
397
|
-
:param bool gpu: A boolean value specifying whether or not to search GPU Droplets
|
|
398
387
|
:param int id: The ID of the Droplet
|
|
399
388
|
:param str name: The name of the Droplet.
|
|
400
389
|
:param str tag: A tag applied to the Droplet.
|
|
401
|
-
|
|
402
|
-
To include GPU Droplets when searching by name, use:
|
|
403
390
|
"""
|
|
404
391
|
__args__ = dict()
|
|
405
|
-
__args__['gpu'] = gpu
|
|
406
392
|
__args__['id'] = id
|
|
407
393
|
__args__['name'] = name
|
|
408
394
|
__args__['tag'] = tag
|
|
@@ -413,7 +399,6 @@ def get_droplet(gpu: Optional[bool] = None,
|
|
|
413
399
|
backups=pulumi.get(__ret__, 'backups'),
|
|
414
400
|
created_at=pulumi.get(__ret__, 'created_at'),
|
|
415
401
|
disk=pulumi.get(__ret__, 'disk'),
|
|
416
|
-
gpu=pulumi.get(__ret__, 'gpu'),
|
|
417
402
|
id=pulumi.get(__ret__, 'id'),
|
|
418
403
|
image=pulumi.get(__ret__, 'image'),
|
|
419
404
|
ipv4_address=pulumi.get(__ret__, 'ipv4_address'),
|
|
@@ -437,8 +422,7 @@ def get_droplet(gpu: Optional[bool] = None,
|
|
|
437
422
|
vcpus=pulumi.get(__ret__, 'vcpus'),
|
|
438
423
|
volume_ids=pulumi.get(__ret__, 'volume_ids'),
|
|
439
424
|
vpc_uuid=pulumi.get(__ret__, 'vpc_uuid'))
|
|
440
|
-
def get_droplet_output(
|
|
441
|
-
id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
425
|
+
def get_droplet_output(id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
442
426
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
443
427
|
tag: Optional[pulumi.Input[Optional[str]]] = None,
|
|
444
428
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDropletResult]:
|
|
@@ -482,15 +466,11 @@ def get_droplet_output(gpu: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
|
482
466
|
```
|
|
483
467
|
|
|
484
468
|
|
|
485
|
-
:param bool gpu: A boolean value specifying whether or not to search GPU Droplets
|
|
486
469
|
:param int id: The ID of the Droplet
|
|
487
470
|
:param str name: The name of the Droplet.
|
|
488
471
|
:param str tag: A tag applied to the Droplet.
|
|
489
|
-
|
|
490
|
-
To include GPU Droplets when searching by name, use:
|
|
491
472
|
"""
|
|
492
473
|
__args__ = dict()
|
|
493
|
-
__args__['gpu'] = gpu
|
|
494
474
|
__args__['id'] = id
|
|
495
475
|
__args__['name'] = name
|
|
496
476
|
__args__['tag'] = tag
|
|
@@ -500,7 +480,6 @@ def get_droplet_output(gpu: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
|
500
480
|
backups=pulumi.get(__response__, 'backups'),
|
|
501
481
|
created_at=pulumi.get(__response__, 'created_at'),
|
|
502
482
|
disk=pulumi.get(__response__, 'disk'),
|
|
503
|
-
gpu=pulumi.get(__response__, 'gpu'),
|
|
504
483
|
id=pulumi.get(__response__, 'id'),
|
|
505
484
|
image=pulumi.get(__response__, 'image'),
|
|
506
485
|
ipv4_address=pulumi.get(__response__, 'ipv4_address'),
|
|
@@ -28,16 +28,13 @@ class GetDropletsResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getDroplets.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, droplets=None, filters=None,
|
|
31
|
+
def __init__(__self__, droplets=None, filters=None, id=None, sorts=None):
|
|
32
32
|
if droplets and not isinstance(droplets, list):
|
|
33
33
|
raise TypeError("Expected argument 'droplets' to be a list")
|
|
34
34
|
pulumi.set(__self__, "droplets", droplets)
|
|
35
35
|
if filters and not isinstance(filters, list):
|
|
36
36
|
raise TypeError("Expected argument 'filters' to be a list")
|
|
37
37
|
pulumi.set(__self__, "filters", filters)
|
|
38
|
-
if gpus and not isinstance(gpus, bool):
|
|
39
|
-
raise TypeError("Expected argument 'gpus' to be a bool")
|
|
40
|
-
pulumi.set(__self__, "gpus", gpus)
|
|
41
38
|
if id and not isinstance(id, str):
|
|
42
39
|
raise TypeError("Expected argument 'id' to be a str")
|
|
43
40
|
pulumi.set(__self__, "id", id)
|
|
@@ -58,11 +55,6 @@ class GetDropletsResult:
|
|
|
58
55
|
def filters(self) -> Optional[Sequence['outputs.GetDropletsFilterResult']]:
|
|
59
56
|
return pulumi.get(self, "filters")
|
|
60
57
|
|
|
61
|
-
@property
|
|
62
|
-
@pulumi.getter
|
|
63
|
-
def gpus(self) -> Optional[bool]:
|
|
64
|
-
return pulumi.get(self, "gpus")
|
|
65
|
-
|
|
66
58
|
@property
|
|
67
59
|
@pulumi.getter
|
|
68
60
|
def id(self) -> str:
|
|
@@ -85,13 +77,11 @@ class AwaitableGetDropletsResult(GetDropletsResult):
|
|
|
85
77
|
return GetDropletsResult(
|
|
86
78
|
droplets=self.droplets,
|
|
87
79
|
filters=self.filters,
|
|
88
|
-
gpus=self.gpus,
|
|
89
80
|
id=self.id,
|
|
90
81
|
sorts=self.sorts)
|
|
91
82
|
|
|
92
83
|
|
|
93
84
|
def get_droplets(filters: Optional[Sequence[Union['GetDropletsFilterArgs', 'GetDropletsFilterArgsDict']]] = None,
|
|
94
|
-
gpus: Optional[bool] = None,
|
|
95
85
|
sorts: Optional[Sequence[Union['GetDropletsSortArgs', 'GetDropletsSortArgsDict']]] = None,
|
|
96
86
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDropletsResult:
|
|
97
87
|
"""
|
|
@@ -101,9 +91,6 @@ def get_droplets(filters: Optional[Sequence[Union['GetDropletsFilterArgs', 'GetD
|
|
|
101
91
|
This data source is useful if the Droplets in question are not managed by the provider or you need to
|
|
102
92
|
utilize any of the Droplets' data.
|
|
103
93
|
|
|
104
|
-
By default, only non-GPU Droplets are returned. To list only GPU Droplets, set
|
|
105
|
-
the `gpus` attribute to `true`.
|
|
106
|
-
|
|
107
94
|
Note: You can use the `Droplet` data source to obtain metadata
|
|
108
95
|
about a single Droplet if you already know the `id`, unique `name`, or unique `tag` to retrieve.
|
|
109
96
|
|
|
@@ -148,13 +135,11 @@ def get_droplets(filters: Optional[Sequence[Union['GetDropletsFilterArgs', 'GetD
|
|
|
148
135
|
|
|
149
136
|
:param Sequence[Union['GetDropletsFilterArgs', 'GetDropletsFilterArgsDict']] filters: Filter the results.
|
|
150
137
|
The `filter` block is documented below.
|
|
151
|
-
:param bool gpus: A boolean value specifying whether or not to list GPU Droplets
|
|
152
138
|
:param Sequence[Union['GetDropletsSortArgs', 'GetDropletsSortArgsDict']] sorts: Sort the results.
|
|
153
139
|
The `sort` block is documented below.
|
|
154
140
|
"""
|
|
155
141
|
__args__ = dict()
|
|
156
142
|
__args__['filters'] = filters
|
|
157
|
-
__args__['gpus'] = gpus
|
|
158
143
|
__args__['sorts'] = sorts
|
|
159
144
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
160
145
|
__ret__ = pulumi.runtime.invoke('digitalocean:index/getDroplets:getDroplets', __args__, opts=opts, typ=GetDropletsResult).value
|
|
@@ -162,11 +147,9 @@ def get_droplets(filters: Optional[Sequence[Union['GetDropletsFilterArgs', 'GetD
|
|
|
162
147
|
return AwaitableGetDropletsResult(
|
|
163
148
|
droplets=pulumi.get(__ret__, 'droplets'),
|
|
164
149
|
filters=pulumi.get(__ret__, 'filters'),
|
|
165
|
-
gpus=pulumi.get(__ret__, 'gpus'),
|
|
166
150
|
id=pulumi.get(__ret__, 'id'),
|
|
167
151
|
sorts=pulumi.get(__ret__, 'sorts'))
|
|
168
152
|
def get_droplets_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['GetDropletsFilterArgs', 'GetDropletsFilterArgsDict']]]]] = None,
|
|
169
|
-
gpus: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
170
153
|
sorts: Optional[pulumi.Input[Optional[Sequence[Union['GetDropletsSortArgs', 'GetDropletsSortArgsDict']]]]] = None,
|
|
171
154
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDropletsResult]:
|
|
172
155
|
"""
|
|
@@ -176,9 +159,6 @@ def get_droplets_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['
|
|
|
176
159
|
This data source is useful if the Droplets in question are not managed by the provider or you need to
|
|
177
160
|
utilize any of the Droplets' data.
|
|
178
161
|
|
|
179
|
-
By default, only non-GPU Droplets are returned. To list only GPU Droplets, set
|
|
180
|
-
the `gpus` attribute to `true`.
|
|
181
|
-
|
|
182
162
|
Note: You can use the `Droplet` data source to obtain metadata
|
|
183
163
|
about a single Droplet if you already know the `id`, unique `name`, or unique `tag` to retrieve.
|
|
184
164
|
|
|
@@ -223,19 +203,16 @@ def get_droplets_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['
|
|
|
223
203
|
|
|
224
204
|
:param Sequence[Union['GetDropletsFilterArgs', 'GetDropletsFilterArgsDict']] filters: Filter the results.
|
|
225
205
|
The `filter` block is documented below.
|
|
226
|
-
:param bool gpus: A boolean value specifying whether or not to list GPU Droplets
|
|
227
206
|
:param Sequence[Union['GetDropletsSortArgs', 'GetDropletsSortArgsDict']] sorts: Sort the results.
|
|
228
207
|
The `sort` block is documented below.
|
|
229
208
|
"""
|
|
230
209
|
__args__ = dict()
|
|
231
210
|
__args__['filters'] = filters
|
|
232
|
-
__args__['gpus'] = gpus
|
|
233
211
|
__args__['sorts'] = sorts
|
|
234
212
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
235
213
|
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getDroplets:getDroplets', __args__, opts=opts, typ=GetDropletsResult)
|
|
236
214
|
return __ret__.apply(lambda __response__: GetDropletsResult(
|
|
237
215
|
droplets=pulumi.get(__response__, 'droplets'),
|
|
238
216
|
filters=pulumi.get(__response__, 'filters'),
|
|
239
|
-
gpus=pulumi.get(__response__, 'gpus'),
|
|
240
217
|
id=pulumi.get(__response__, 'id'),
|
|
241
218
|
sorts=pulumi.get(__response__, 'sorts')))
|
|
@@ -50,7 +50,8 @@ class LoadBalancerArgs:
|
|
|
50
50
|
:param pulumi.Input[Union[str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
51
51
|
or `least_connections`. The default value is `round_robin`.
|
|
52
52
|
:param pulumi.Input[bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
53
|
-
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
53
|
+
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
54
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
54
55
|
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
55
56
|
:param pulumi.Input[str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
56
57
|
:param pulumi.Input[bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
@@ -61,6 +62,7 @@ class LoadBalancerArgs:
|
|
|
61
62
|
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerForwardingRuleArgs']]] forwarding_rules: A list of `forwarding_rule` to be assigned to the
|
|
62
63
|
Load Balancer. The `forwarding_rule` block is documented below.
|
|
63
64
|
:param pulumi.Input['LoadBalancerGlbSettingsArgs'] glb_settings: A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
65
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
64
66
|
:param pulumi.Input['LoadBalancerHealthcheckArgs'] healthcheck: A `healthcheck` block to be assigned to the
|
|
65
67
|
Load Balancer. The `healthcheck` block is documented below. Only 1 healthcheck is allowed.
|
|
66
68
|
:param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
@@ -77,8 +79,9 @@ class LoadBalancerArgs:
|
|
|
77
79
|
:param pulumi.Input['LoadBalancerStickySessionsArgs'] sticky_sessions: A `sticky_sessions` block to be assigned to the
|
|
78
80
|
Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
|
|
79
81
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
82
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
80
83
|
:param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
|
|
81
|
-
**NOTE**: non-`REGIONAL
|
|
84
|
+
**NOTE**: non-`REGIONAL` type may be part of closed beta feature and not available for public use.
|
|
82
85
|
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
83
86
|
"""
|
|
84
87
|
if algorithm is not None:
|
|
@@ -161,7 +164,8 @@ class LoadBalancerArgs:
|
|
|
161
164
|
@pulumi.getter
|
|
162
165
|
def domains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]]]:
|
|
163
166
|
"""
|
|
164
|
-
A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
167
|
+
A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
168
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
165
169
|
"""
|
|
166
170
|
return pulumi.get(self, "domains")
|
|
167
171
|
|
|
@@ -249,6 +253,7 @@ class LoadBalancerArgs:
|
|
|
249
253
|
def glb_settings(self) -> Optional[pulumi.Input['LoadBalancerGlbSettingsArgs']]:
|
|
250
254
|
"""
|
|
251
255
|
A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
256
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
252
257
|
"""
|
|
253
258
|
return pulumi.get(self, "glb_settings")
|
|
254
259
|
|
|
@@ -386,6 +391,7 @@ class LoadBalancerArgs:
|
|
|
386
391
|
def target_load_balancer_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
387
392
|
"""
|
|
388
393
|
A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
394
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
389
395
|
"""
|
|
390
396
|
return pulumi.get(self, "target_load_balancer_ids")
|
|
391
397
|
|
|
@@ -398,7 +404,7 @@ class LoadBalancerArgs:
|
|
|
398
404
|
def type(self) -> Optional[pulumi.Input[str]]:
|
|
399
405
|
"""
|
|
400
406
|
The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
|
|
401
|
-
**NOTE**: non-`REGIONAL
|
|
407
|
+
**NOTE**: non-`REGIONAL` type may be part of closed beta feature and not available for public use.
|
|
402
408
|
"""
|
|
403
409
|
return pulumi.get(self, "type")
|
|
404
410
|
|
|
@@ -453,7 +459,8 @@ class _LoadBalancerState:
|
|
|
453
459
|
:param pulumi.Input[Union[str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
454
460
|
or `least_connections`. The default value is `round_robin`.
|
|
455
461
|
:param pulumi.Input[bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
456
|
-
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
462
|
+
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
463
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
457
464
|
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
458
465
|
:param pulumi.Input[str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
459
466
|
:param pulumi.Input[bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
@@ -464,6 +471,7 @@ class _LoadBalancerState:
|
|
|
464
471
|
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerForwardingRuleArgs']]] forwarding_rules: A list of `forwarding_rule` to be assigned to the
|
|
465
472
|
Load Balancer. The `forwarding_rule` block is documented below.
|
|
466
473
|
:param pulumi.Input['LoadBalancerGlbSettingsArgs'] glb_settings: A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
474
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
467
475
|
:param pulumi.Input['LoadBalancerHealthcheckArgs'] healthcheck: A `healthcheck` block to be assigned to the
|
|
468
476
|
Load Balancer. The `healthcheck` block is documented below. Only 1 healthcheck is allowed.
|
|
469
477
|
:param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
@@ -482,8 +490,9 @@ class _LoadBalancerState:
|
|
|
482
490
|
:param pulumi.Input['LoadBalancerStickySessionsArgs'] sticky_sessions: A `sticky_sessions` block to be assigned to the
|
|
483
491
|
Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
|
|
484
492
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
493
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
485
494
|
:param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
|
|
486
|
-
**NOTE**: non-`REGIONAL
|
|
495
|
+
**NOTE**: non-`REGIONAL` type may be part of closed beta feature and not available for public use.
|
|
487
496
|
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
488
497
|
"""
|
|
489
498
|
if algorithm is not None:
|
|
@@ -572,7 +581,8 @@ class _LoadBalancerState:
|
|
|
572
581
|
@pulumi.getter
|
|
573
582
|
def domains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]]]:
|
|
574
583
|
"""
|
|
575
|
-
A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
584
|
+
A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
585
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
576
586
|
"""
|
|
577
587
|
return pulumi.get(self, "domains")
|
|
578
588
|
|
|
@@ -660,6 +670,7 @@ class _LoadBalancerState:
|
|
|
660
670
|
def glb_settings(self) -> Optional[pulumi.Input['LoadBalancerGlbSettingsArgs']]:
|
|
661
671
|
"""
|
|
662
672
|
A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
673
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
663
674
|
"""
|
|
664
675
|
return pulumi.get(self, "glb_settings")
|
|
665
676
|
|
|
@@ -830,6 +841,7 @@ class _LoadBalancerState:
|
|
|
830
841
|
def target_load_balancer_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
831
842
|
"""
|
|
832
843
|
A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
844
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
833
845
|
"""
|
|
834
846
|
return pulumi.get(self, "target_load_balancer_ids")
|
|
835
847
|
|
|
@@ -842,7 +854,7 @@ class _LoadBalancerState:
|
|
|
842
854
|
def type(self) -> Optional[pulumi.Input[str]]:
|
|
843
855
|
"""
|
|
844
856
|
The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
|
|
845
|
-
**NOTE**: non-`REGIONAL
|
|
857
|
+
**NOTE**: non-`REGIONAL` type may be part of closed beta feature and not available for public use.
|
|
846
858
|
"""
|
|
847
859
|
return pulumi.get(self, "type")
|
|
848
860
|
|
|
@@ -942,7 +954,8 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
942
954
|
:param pulumi.Input[Union[str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
943
955
|
or `least_connections`. The default value is `round_robin`.
|
|
944
956
|
:param pulumi.Input[bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
945
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
957
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
958
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
946
959
|
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
947
960
|
:param pulumi.Input[str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
948
961
|
:param pulumi.Input[bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
@@ -953,6 +966,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
953
966
|
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerForwardingRuleArgs', 'LoadBalancerForwardingRuleArgsDict']]]] forwarding_rules: A list of `forwarding_rule` to be assigned to the
|
|
954
967
|
Load Balancer. The `forwarding_rule` block is documented below.
|
|
955
968
|
:param pulumi.Input[Union['LoadBalancerGlbSettingsArgs', 'LoadBalancerGlbSettingsArgsDict']] glb_settings: A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
969
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
956
970
|
:param pulumi.Input[Union['LoadBalancerHealthcheckArgs', 'LoadBalancerHealthcheckArgsDict']] healthcheck: A `healthcheck` block to be assigned to the
|
|
957
971
|
Load Balancer. The `healthcheck` block is documented below. Only 1 healthcheck is allowed.
|
|
958
972
|
:param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
@@ -969,8 +983,9 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
969
983
|
:param pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']] sticky_sessions: A `sticky_sessions` block to be assigned to the
|
|
970
984
|
Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
|
|
971
985
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
986
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
972
987
|
:param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
|
|
973
|
-
**NOTE**: non-`REGIONAL
|
|
988
|
+
**NOTE**: non-`REGIONAL` type may be part of closed beta feature and not available for public use.
|
|
974
989
|
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
975
990
|
"""
|
|
976
991
|
...
|
|
@@ -1143,7 +1158,8 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1143
1158
|
:param pulumi.Input[Union[str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
1144
1159
|
or `least_connections`. The default value is `round_robin`.
|
|
1145
1160
|
:param pulumi.Input[bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
1146
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
1161
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
1162
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
1147
1163
|
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
1148
1164
|
:param pulumi.Input[str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
1149
1165
|
:param pulumi.Input[bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
@@ -1154,6 +1170,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1154
1170
|
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerForwardingRuleArgs', 'LoadBalancerForwardingRuleArgsDict']]]] forwarding_rules: A list of `forwarding_rule` to be assigned to the
|
|
1155
1171
|
Load Balancer. The `forwarding_rule` block is documented below.
|
|
1156
1172
|
:param pulumi.Input[Union['LoadBalancerGlbSettingsArgs', 'LoadBalancerGlbSettingsArgsDict']] glb_settings: A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
1173
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
1157
1174
|
:param pulumi.Input[Union['LoadBalancerHealthcheckArgs', 'LoadBalancerHealthcheckArgsDict']] healthcheck: A `healthcheck` block to be assigned to the
|
|
1158
1175
|
Load Balancer. The `healthcheck` block is documented below. Only 1 healthcheck is allowed.
|
|
1159
1176
|
:param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
@@ -1172,8 +1189,9 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1172
1189
|
:param pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']] sticky_sessions: A `sticky_sessions` block to be assigned to the
|
|
1173
1190
|
Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
|
|
1174
1191
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
1192
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
1175
1193
|
:param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
|
|
1176
|
-
**NOTE**: non-`REGIONAL
|
|
1194
|
+
**NOTE**: non-`REGIONAL` type may be part of closed beta feature and not available for public use.
|
|
1177
1195
|
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
1178
1196
|
"""
|
|
1179
1197
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -1230,7 +1248,8 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1230
1248
|
@pulumi.getter
|
|
1231
1249
|
def domains(self) -> pulumi.Output[Sequence['outputs.LoadBalancerDomain']]:
|
|
1232
1250
|
"""
|
|
1233
|
-
A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
1251
|
+
A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
1252
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
1234
1253
|
"""
|
|
1235
1254
|
return pulumi.get(self, "domains")
|
|
1236
1255
|
|
|
@@ -1290,6 +1309,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1290
1309
|
def glb_settings(self) -> pulumi.Output['outputs.LoadBalancerGlbSettings']:
|
|
1291
1310
|
"""
|
|
1292
1311
|
A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
1312
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
1293
1313
|
"""
|
|
1294
1314
|
return pulumi.get(self, "glb_settings")
|
|
1295
1315
|
|
|
@@ -1404,6 +1424,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1404
1424
|
def target_load_balancer_ids(self) -> pulumi.Output[Sequence[str]]:
|
|
1405
1425
|
"""
|
|
1406
1426
|
A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
1427
|
+
**NOTE**: this is a closed beta feature and not available for public use.
|
|
1407
1428
|
"""
|
|
1408
1429
|
return pulumi.get(self, "target_load_balancer_ids")
|
|
1409
1430
|
|
|
@@ -1412,7 +1433,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1412
1433
|
def type(self) -> pulumi.Output[Optional[str]]:
|
|
1413
1434
|
"""
|
|
1414
1435
|
The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
|
|
1415
|
-
**NOTE**: non-`REGIONAL
|
|
1436
|
+
**NOTE**: non-`REGIONAL` type may be part of closed beta feature and not available for public use.
|
|
1416
1437
|
"""
|
|
1417
1438
|
return pulumi.get(self, "type")
|
|
1418
1439
|
|