pulumi-digitalocean 4.37.0a1734091182__py3-none-any.whl → 4.37.0a1734099763__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.

@@ -0,0 +1,118 @@
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__ = [
18
+ 'GetReservedIpv6Result',
19
+ 'AwaitableGetReservedIpv6Result',
20
+ 'get_reserved_ipv6',
21
+ 'get_reserved_ipv6_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetReservedIpv6Result:
26
+ """
27
+ A collection of values returned by getReservedIpv6.
28
+ """
29
+ def __init__(__self__, droplet_id=None, id=None, ip=None, region_slug=None, urn=None):
30
+ if droplet_id and not isinstance(droplet_id, int):
31
+ raise TypeError("Expected argument 'droplet_id' to be a int")
32
+ pulumi.set(__self__, "droplet_id", droplet_id)
33
+ if id and not isinstance(id, str):
34
+ raise TypeError("Expected argument 'id' to be a str")
35
+ pulumi.set(__self__, "id", id)
36
+ if ip and not isinstance(ip, str):
37
+ raise TypeError("Expected argument 'ip' to be a str")
38
+ pulumi.set(__self__, "ip", ip)
39
+ if region_slug and not isinstance(region_slug, str):
40
+ raise TypeError("Expected argument 'region_slug' to be a str")
41
+ pulumi.set(__self__, "region_slug", region_slug)
42
+ if urn and not isinstance(urn, str):
43
+ raise TypeError("Expected argument 'urn' to be a str")
44
+ pulumi.set(__self__, "urn", urn)
45
+
46
+ @property
47
+ @pulumi.getter(name="dropletId")
48
+ def droplet_id(self) -> int:
49
+ return pulumi.get(self, "droplet_id")
50
+
51
+ @property
52
+ @pulumi.getter
53
+ def id(self) -> str:
54
+ """
55
+ The provider-assigned unique ID for this managed resource.
56
+ """
57
+ return pulumi.get(self, "id")
58
+
59
+ @property
60
+ @pulumi.getter
61
+ def ip(self) -> str:
62
+ return pulumi.get(self, "ip")
63
+
64
+ @property
65
+ @pulumi.getter(name="regionSlug")
66
+ def region_slug(self) -> str:
67
+ return pulumi.get(self, "region_slug")
68
+
69
+ @property
70
+ @pulumi.getter
71
+ def urn(self) -> str:
72
+ return pulumi.get(self, "urn")
73
+
74
+
75
+ class AwaitableGetReservedIpv6Result(GetReservedIpv6Result):
76
+ # pylint: disable=using-constant-test
77
+ def __await__(self):
78
+ if False:
79
+ yield self
80
+ return GetReservedIpv6Result(
81
+ droplet_id=self.droplet_id,
82
+ id=self.id,
83
+ ip=self.ip,
84
+ region_slug=self.region_slug,
85
+ urn=self.urn)
86
+
87
+
88
+ def get_reserved_ipv6(ip: Optional[str] = None,
89
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetReservedIpv6Result:
90
+ """
91
+ Use this data source to access information about an existing resource.
92
+ """
93
+ __args__ = dict()
94
+ __args__['ip'] = ip
95
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
96
+ __ret__ = pulumi.runtime.invoke('digitalocean:index/getReservedIpv6:getReservedIpv6', __args__, opts=opts, typ=GetReservedIpv6Result).value
97
+
98
+ return AwaitableGetReservedIpv6Result(
99
+ droplet_id=pulumi.get(__ret__, 'droplet_id'),
100
+ id=pulumi.get(__ret__, 'id'),
101
+ ip=pulumi.get(__ret__, 'ip'),
102
+ region_slug=pulumi.get(__ret__, 'region_slug'),
103
+ urn=pulumi.get(__ret__, 'urn'))
104
+ def get_reserved_ipv6_output(ip: Optional[pulumi.Input[str]] = None,
105
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetReservedIpv6Result]:
106
+ """
107
+ Use this data source to access information about an existing resource.
108
+ """
109
+ __args__ = dict()
110
+ __args__['ip'] = ip
111
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
112
+ __ret__ = pulumi.runtime.invoke_output('digitalocean:index/getReservedIpv6:getReservedIpv6', __args__, opts=opts, typ=GetReservedIpv6Result)
113
+ return __ret__.apply(lambda __response__: GetReservedIpv6Result(
114
+ droplet_id=pulumi.get(__response__, 'droplet_id'),
115
+ id=pulumi.get(__response__, 'id'),
116
+ ip=pulumi.get(__response__, 'ip'),
117
+ region_slug=pulumi.get(__response__, 'region_slug'),
118
+ urn=pulumi.get(__response__, 'urn')))
@@ -66,18 +66,17 @@ class LoadBalancerArgs:
66
66
  :param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
67
67
  :param pulumi.Input[str] name: The Load Balancer name
68
68
  :param pulumi.Input[str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
69
- **NOTE**: non-`EXTERNAL` type may be part of closed beta feature and not available for public use.
70
69
  :param pulumi.Input[str] project_id: The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
71
70
  :param pulumi.Input[bool] redirect_http_to_https: A boolean value indicating whether
72
71
  HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
73
72
  Default value is `false`.
74
73
  :param pulumi.Input[Union[str, 'Region']] region: The region to start in
75
74
  :param pulumi.Input[str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
76
- :param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 100). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
75
+ :param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
77
76
  :param pulumi.Input['LoadBalancerStickySessionsArgs'] sticky_sessions: A `sticky_sessions` block to be assigned to the
78
77
  Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
79
78
  :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.
80
- :param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
79
+ :param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
81
80
  **NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
82
81
  :param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
83
82
  """
@@ -298,7 +297,6 @@ class LoadBalancerArgs:
298
297
  def network(self) -> Optional[pulumi.Input[str]]:
299
298
  """
300
299
  The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
301
- **NOTE**: non-`EXTERNAL` type may be part of closed beta feature and not available for public use.
302
300
  """
303
301
  return pulumi.get(self, "network")
304
302
 
@@ -360,7 +358,7 @@ class LoadBalancerArgs:
360
358
  @pulumi.getter(name="sizeUnit")
361
359
  def size_unit(self) -> Optional[pulumi.Input[int]]:
362
360
  """
363
- The size of the Load Balancer. It must be in the range (1, 100). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
361
+ The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
364
362
  """
365
363
  return pulumi.get(self, "size_unit")
366
364
 
@@ -397,7 +395,7 @@ class LoadBalancerArgs:
397
395
  @pulumi.getter
398
396
  def type(self) -> Optional[pulumi.Input[str]]:
399
397
  """
400
- The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
398
+ The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
401
399
  **NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
402
400
  """
403
401
  return pulumi.get(self, "type")
@@ -472,18 +470,17 @@ class _LoadBalancerState:
472
470
  :param pulumi.Input[str] load_balancer_urn: The uniform resource name for the Load Balancer
473
471
  :param pulumi.Input[str] name: The Load Balancer name
474
472
  :param pulumi.Input[str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
475
- **NOTE**: non-`EXTERNAL` type may be part of closed beta feature and not available for public use.
476
473
  :param pulumi.Input[str] project_id: The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
477
474
  :param pulumi.Input[bool] redirect_http_to_https: A boolean value indicating whether
478
475
  HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
479
476
  Default value is `false`.
480
477
  :param pulumi.Input[Union[str, 'Region']] region: The region to start in
481
478
  :param pulumi.Input[str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
482
- :param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 100). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
479
+ :param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
483
480
  :param pulumi.Input['LoadBalancerStickySessionsArgs'] sticky_sessions: A `sticky_sessions` block to be assigned to the
484
481
  Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
485
482
  :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.
486
- :param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
483
+ :param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
487
484
  **NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
488
485
  :param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
489
486
  """
@@ -745,7 +742,6 @@ class _LoadBalancerState:
745
742
  def network(self) -> Optional[pulumi.Input[str]]:
746
743
  """
747
744
  The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
748
- **NOTE**: non-`EXTERNAL` type may be part of closed beta feature and not available for public use.
749
745
  """
750
746
  return pulumi.get(self, "network")
751
747
 
@@ -807,7 +803,7 @@ class _LoadBalancerState:
807
803
  @pulumi.getter(name="sizeUnit")
808
804
  def size_unit(self) -> Optional[pulumi.Input[int]]:
809
805
  """
810
- The size of the Load Balancer. It must be in the range (1, 100). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
806
+ The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
811
807
  """
812
808
  return pulumi.get(self, "size_unit")
813
809
 
@@ -853,7 +849,7 @@ class _LoadBalancerState:
853
849
  @pulumi.getter
854
850
  def type(self) -> Optional[pulumi.Input[str]]:
855
851
  """
856
- The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
852
+ The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
857
853
  **NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
858
854
  """
859
855
  return pulumi.get(self, "type")
@@ -970,18 +966,17 @@ class LoadBalancer(pulumi.CustomResource):
970
966
  :param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
971
967
  :param pulumi.Input[str] name: The Load Balancer name
972
968
  :param pulumi.Input[str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
973
- **NOTE**: non-`EXTERNAL` type may be part of closed beta feature and not available for public use.
974
969
  :param pulumi.Input[str] project_id: The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
975
970
  :param pulumi.Input[bool] redirect_http_to_https: A boolean value indicating whether
976
971
  HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
977
972
  Default value is `false`.
978
973
  :param pulumi.Input[Union[str, 'Region']] region: The region to start in
979
974
  :param pulumi.Input[str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
980
- :param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 100). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
975
+ :param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
981
976
  :param pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']] sticky_sessions: A `sticky_sessions` block to be assigned to the
982
977
  Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
983
978
  :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.
984
- :param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
979
+ :param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
985
980
  **NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
986
981
  :param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
987
982
  """
@@ -1175,18 +1170,17 @@ class LoadBalancer(pulumi.CustomResource):
1175
1170
  :param pulumi.Input[str] load_balancer_urn: The uniform resource name for the Load Balancer
1176
1171
  :param pulumi.Input[str] name: The Load Balancer name
1177
1172
  :param pulumi.Input[str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
1178
- **NOTE**: non-`EXTERNAL` type may be part of closed beta feature and not available for public use.
1179
1173
  :param pulumi.Input[str] project_id: The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
1180
1174
  :param pulumi.Input[bool] redirect_http_to_https: A boolean value indicating whether
1181
1175
  HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
1182
1176
  Default value is `false`.
1183
1177
  :param pulumi.Input[Union[str, 'Region']] region: The region to start in
1184
1178
  :param pulumi.Input[str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
1185
- :param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 100). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
1179
+ :param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
1186
1180
  :param pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']] sticky_sessions: A `sticky_sessions` block to be assigned to the
1187
1181
  Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
1188
1182
  :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.
1189
- :param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
1183
+ :param pulumi.Input[str] type: The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
1190
1184
  **NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
1191
1185
  :param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
1192
1186
  """
@@ -1359,7 +1353,6 @@ class LoadBalancer(pulumi.CustomResource):
1359
1353
  def network(self) -> pulumi.Output[Optional[str]]:
1360
1354
  """
1361
1355
  The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
1362
- **NOTE**: non-`EXTERNAL` type may be part of closed beta feature and not available for public use.
1363
1356
  """
1364
1357
  return pulumi.get(self, "network")
1365
1358
 
@@ -1401,7 +1394,7 @@ class LoadBalancer(pulumi.CustomResource):
1401
1394
  @pulumi.getter(name="sizeUnit")
1402
1395
  def size_unit(self) -> pulumi.Output[int]:
1403
1396
  """
1404
- The size of the Load Balancer. It must be in the range (1, 100). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
1397
+ The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
1405
1398
  """
1406
1399
  return pulumi.get(self, "size_unit")
1407
1400
 
@@ -1431,7 +1424,7 @@ class LoadBalancer(pulumi.CustomResource):
1431
1424
  @pulumi.getter
1432
1425
  def type(self) -> pulumi.Output[Optional[str]]:
1433
1426
  """
1434
- The type of the Load Balancer. It must be either of `REGIONAL` or `GLOBAL`. Defaults to `REGIONAL`.
1427
+ The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
1435
1428
  **NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
1436
1429
  """
1437
1430
  return pulumi.get(self, "type")