pulumi-digitalocean 4.46.0a1748901174__py3-none-any.whl → 4.47.0__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,253 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from . import _utilities
17
+ from . import outputs
18
+
19
+ __all__ = [
20
+ 'GetVpcNatGatewayResult',
21
+ 'AwaitableGetVpcNatGatewayResult',
22
+ 'get_vpc_nat_gateway',
23
+ 'get_vpc_nat_gateway_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetVpcNatGatewayResult:
28
+ """
29
+ A collection of values returned by getVpcNatGateway.
30
+ """
31
+ def __init__(__self__, created_at=None, egresses=None, icmp_timeout_seconds=None, id=None, name=None, region=None, size=None, state=None, tcp_timeout_seconds=None, type=None, udp_timeout_seconds=None, updated_at=None, vpcs=None):
32
+ if created_at and not isinstance(created_at, str):
33
+ raise TypeError("Expected argument 'created_at' to be a str")
34
+ pulumi.set(__self__, "created_at", created_at)
35
+ if egresses and not isinstance(egresses, list):
36
+ raise TypeError("Expected argument 'egresses' to be a list")
37
+ pulumi.set(__self__, "egresses", egresses)
38
+ if icmp_timeout_seconds and not isinstance(icmp_timeout_seconds, int):
39
+ raise TypeError("Expected argument 'icmp_timeout_seconds' to be a int")
40
+ pulumi.set(__self__, "icmp_timeout_seconds", icmp_timeout_seconds)
41
+ if id and not isinstance(id, str):
42
+ raise TypeError("Expected argument 'id' to be a str")
43
+ pulumi.set(__self__, "id", id)
44
+ if name and not isinstance(name, str):
45
+ raise TypeError("Expected argument 'name' to be a str")
46
+ pulumi.set(__self__, "name", name)
47
+ if region and not isinstance(region, str):
48
+ raise TypeError("Expected argument 'region' to be a str")
49
+ pulumi.set(__self__, "region", region)
50
+ if size and not isinstance(size, int):
51
+ raise TypeError("Expected argument 'size' to be a int")
52
+ pulumi.set(__self__, "size", size)
53
+ if state and not isinstance(state, str):
54
+ raise TypeError("Expected argument 'state' to be a str")
55
+ pulumi.set(__self__, "state", state)
56
+ if tcp_timeout_seconds and not isinstance(tcp_timeout_seconds, int):
57
+ raise TypeError("Expected argument 'tcp_timeout_seconds' to be a int")
58
+ pulumi.set(__self__, "tcp_timeout_seconds", tcp_timeout_seconds)
59
+ if type and not isinstance(type, str):
60
+ raise TypeError("Expected argument 'type' to be a str")
61
+ pulumi.set(__self__, "type", type)
62
+ if udp_timeout_seconds and not isinstance(udp_timeout_seconds, int):
63
+ raise TypeError("Expected argument 'udp_timeout_seconds' to be a int")
64
+ pulumi.set(__self__, "udp_timeout_seconds", udp_timeout_seconds)
65
+ if updated_at and not isinstance(updated_at, str):
66
+ raise TypeError("Expected argument 'updated_at' to be a str")
67
+ pulumi.set(__self__, "updated_at", updated_at)
68
+ if vpcs and not isinstance(vpcs, list):
69
+ raise TypeError("Expected argument 'vpcs' to be a list")
70
+ pulumi.set(__self__, "vpcs", vpcs)
71
+
72
+ @property
73
+ @pulumi.getter(name="createdAt")
74
+ def created_at(self) -> builtins.str:
75
+ return pulumi.get(self, "created_at")
76
+
77
+ @property
78
+ @pulumi.getter
79
+ def egresses(self) -> Sequence['outputs.GetVpcNatGatewayEgressResult']:
80
+ return pulumi.get(self, "egresses")
81
+
82
+ @property
83
+ @pulumi.getter(name="icmpTimeoutSeconds")
84
+ def icmp_timeout_seconds(self) -> builtins.int:
85
+ return pulumi.get(self, "icmp_timeout_seconds")
86
+
87
+ @property
88
+ @pulumi.getter
89
+ def id(self) -> Optional[builtins.str]:
90
+ return pulumi.get(self, "id")
91
+
92
+ @property
93
+ @pulumi.getter
94
+ def name(self) -> Optional[builtins.str]:
95
+ return pulumi.get(self, "name")
96
+
97
+ @property
98
+ @pulumi.getter
99
+ def region(self) -> builtins.str:
100
+ return pulumi.get(self, "region")
101
+
102
+ @property
103
+ @pulumi.getter
104
+ def size(self) -> builtins.int:
105
+ return pulumi.get(self, "size")
106
+
107
+ @property
108
+ @pulumi.getter
109
+ def state(self) -> builtins.str:
110
+ return pulumi.get(self, "state")
111
+
112
+ @property
113
+ @pulumi.getter(name="tcpTimeoutSeconds")
114
+ def tcp_timeout_seconds(self) -> builtins.int:
115
+ return pulumi.get(self, "tcp_timeout_seconds")
116
+
117
+ @property
118
+ @pulumi.getter
119
+ def type(self) -> builtins.str:
120
+ return pulumi.get(self, "type")
121
+
122
+ @property
123
+ @pulumi.getter(name="udpTimeoutSeconds")
124
+ def udp_timeout_seconds(self) -> builtins.int:
125
+ return pulumi.get(self, "udp_timeout_seconds")
126
+
127
+ @property
128
+ @pulumi.getter(name="updatedAt")
129
+ def updated_at(self) -> builtins.str:
130
+ return pulumi.get(self, "updated_at")
131
+
132
+ @property
133
+ @pulumi.getter
134
+ def vpcs(self) -> Sequence['outputs.GetVpcNatGatewayVpcResult']:
135
+ return pulumi.get(self, "vpcs")
136
+
137
+
138
+ class AwaitableGetVpcNatGatewayResult(GetVpcNatGatewayResult):
139
+ # pylint: disable=using-constant-test
140
+ def __await__(self):
141
+ if False:
142
+ yield self
143
+ return GetVpcNatGatewayResult(
144
+ created_at=self.created_at,
145
+ egresses=self.egresses,
146
+ icmp_timeout_seconds=self.icmp_timeout_seconds,
147
+ id=self.id,
148
+ name=self.name,
149
+ region=self.region,
150
+ size=self.size,
151
+ state=self.state,
152
+ tcp_timeout_seconds=self.tcp_timeout_seconds,
153
+ type=self.type,
154
+ udp_timeout_seconds=self.udp_timeout_seconds,
155
+ updated_at=self.updated_at,
156
+ vpcs=self.vpcs)
157
+
158
+
159
+ def get_vpc_nat_gateway(id: Optional[builtins.str] = None,
160
+ name: Optional[builtins.str] = None,
161
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVpcNatGatewayResult:
162
+ """
163
+ ## Example Usage
164
+
165
+ Get the VPC NAT Gateway by name:
166
+
167
+ ```python
168
+ import pulumi
169
+ import pulumi_digitalocean as digitalocean
170
+
171
+ my_imported_vpc_nat_gateway = digitalocean.get_vpc_nat_gateway(name=my_existing_vpc_nat_gateway["name"])
172
+ ```
173
+
174
+ Get the VPC NAT Gateway by ID:
175
+
176
+ ```python
177
+ import pulumi
178
+ import pulumi_digitalocean as digitalocean
179
+
180
+ my_imported_vpc_nat_gateway = digitalocean.get_vpc_nat_gateway(id=my_existing_vpc_nat_gateway["id"])
181
+ ```
182
+
183
+
184
+ :param builtins.str id: The ID of VPC NAT Gateway.
185
+ :param builtins.str name: The name of VPC NAT Gateway.
186
+ """
187
+ __args__ = dict()
188
+ __args__['id'] = id
189
+ __args__['name'] = name
190
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
191
+ __ret__ = pulumi.runtime.invoke('digitalocean:index/getVpcNatGateway:getVpcNatGateway', __args__, opts=opts, typ=GetVpcNatGatewayResult).value
192
+
193
+ return AwaitableGetVpcNatGatewayResult(
194
+ created_at=pulumi.get(__ret__, 'created_at'),
195
+ egresses=pulumi.get(__ret__, 'egresses'),
196
+ icmp_timeout_seconds=pulumi.get(__ret__, 'icmp_timeout_seconds'),
197
+ id=pulumi.get(__ret__, 'id'),
198
+ name=pulumi.get(__ret__, 'name'),
199
+ region=pulumi.get(__ret__, 'region'),
200
+ size=pulumi.get(__ret__, 'size'),
201
+ state=pulumi.get(__ret__, 'state'),
202
+ tcp_timeout_seconds=pulumi.get(__ret__, 'tcp_timeout_seconds'),
203
+ type=pulumi.get(__ret__, 'type'),
204
+ udp_timeout_seconds=pulumi.get(__ret__, 'udp_timeout_seconds'),
205
+ updated_at=pulumi.get(__ret__, 'updated_at'),
206
+ vpcs=pulumi.get(__ret__, 'vpcs'))
207
+ def get_vpc_nat_gateway_output(id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
208
+ name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
209
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVpcNatGatewayResult]:
210
+ """
211
+ ## Example Usage
212
+
213
+ Get the VPC NAT Gateway by name:
214
+
215
+ ```python
216
+ import pulumi
217
+ import pulumi_digitalocean as digitalocean
218
+
219
+ my_imported_vpc_nat_gateway = digitalocean.get_vpc_nat_gateway(name=my_existing_vpc_nat_gateway["name"])
220
+ ```
221
+
222
+ Get the VPC NAT Gateway by ID:
223
+
224
+ ```python
225
+ import pulumi
226
+ import pulumi_digitalocean as digitalocean
227
+
228
+ my_imported_vpc_nat_gateway = digitalocean.get_vpc_nat_gateway(id=my_existing_vpc_nat_gateway["id"])
229
+ ```
230
+
231
+
232
+ :param builtins.str id: The ID of VPC NAT Gateway.
233
+ :param builtins.str name: The name of VPC NAT Gateway.
234
+ """
235
+ __args__ = dict()
236
+ __args__['id'] = id
237
+ __args__['name'] = name
238
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
239
+ __ret__ = pulumi.runtime.invoke_output('digitalocean:index/getVpcNatGateway:getVpcNatGateway', __args__, opts=opts, typ=GetVpcNatGatewayResult)
240
+ return __ret__.apply(lambda __response__: GetVpcNatGatewayResult(
241
+ created_at=pulumi.get(__response__, 'created_at'),
242
+ egresses=pulumi.get(__response__, 'egresses'),
243
+ icmp_timeout_seconds=pulumi.get(__response__, 'icmp_timeout_seconds'),
244
+ id=pulumi.get(__response__, 'id'),
245
+ name=pulumi.get(__response__, 'name'),
246
+ region=pulumi.get(__response__, 'region'),
247
+ size=pulumi.get(__response__, 'size'),
248
+ state=pulumi.get(__response__, 'state'),
249
+ tcp_timeout_seconds=pulumi.get(__response__, 'tcp_timeout_seconds'),
250
+ type=pulumi.get(__response__, 'type'),
251
+ udp_timeout_seconds=pulumi.get(__response__, 'udp_timeout_seconds'),
252
+ updated_at=pulumi.get(__response__, 'updated_at'),
253
+ vpcs=pulumi.get(__response__, 'vpcs')))
@@ -49,6 +49,7 @@ class KubernetesClusterArgs:
49
49
  :param pulumi.Input[builtins.bool] auto_upgrade: A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
50
50
  :param pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]] cluster_autoscaler_configurations: Block containing options for cluster auto-scaling.
51
51
  :param pulumi.Input[builtins.str] cluster_subnet: The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
52
+ :param pulumi.Input['KubernetesClusterControlPlaneFirewallArgs'] control_plane_firewall: A block representing the cluster's control plane firewall
52
53
  :param pulumi.Input[builtins.bool] destroy_all_associated_resources: **Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
53
54
  :param pulumi.Input[builtins.bool] ha: Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
54
55
  :param pulumi.Input[builtins.int] kubeconfig_expire_seconds: The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
@@ -170,6 +171,9 @@ class KubernetesClusterArgs:
170
171
  @property
171
172
  @pulumi.getter(name="controlPlaneFirewall")
172
173
  def control_plane_firewall(self) -> Optional[pulumi.Input['KubernetesClusterControlPlaneFirewallArgs']]:
174
+ """
175
+ A block representing the cluster's control plane firewall
176
+ """
173
177
  return pulumi.get(self, "control_plane_firewall")
174
178
 
175
179
  @control_plane_firewall.setter
@@ -343,6 +347,7 @@ class _KubernetesClusterState:
343
347
  :param pulumi.Input[Sequence[pulumi.Input['KubernetesClusterClusterAutoscalerConfigurationArgs']]] cluster_autoscaler_configurations: Block containing options for cluster auto-scaling.
344
348
  :param pulumi.Input[builtins.str] cluster_subnet: The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
345
349
  :param pulumi.Input[builtins.str] cluster_urn: The uniform resource name (URN) for the Kubernetes cluster.
350
+ :param pulumi.Input['KubernetesClusterControlPlaneFirewallArgs'] control_plane_firewall: A block representing the cluster's control plane firewall
346
351
  :param pulumi.Input[builtins.str] created_at: The date and time when the node was created.
347
352
  :param pulumi.Input[builtins.bool] destroy_all_associated_resources: **Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
348
353
  :param pulumi.Input[builtins.str] endpoint: The base URL of the API server on the Kubernetes master node.
@@ -466,6 +471,9 @@ class _KubernetesClusterState:
466
471
  @property
467
472
  @pulumi.getter(name="controlPlaneFirewall")
468
473
  def control_plane_firewall(self) -> Optional[pulumi.Input['KubernetesClusterControlPlaneFirewallArgs']]:
474
+ """
475
+ A block representing the cluster's control plane firewall
476
+ """
469
477
  return pulumi.get(self, "control_plane_firewall")
470
478
 
471
479
  @control_plane_firewall.setter
@@ -770,6 +778,7 @@ class KubernetesCluster(pulumi.CustomResource):
770
778
  :param pulumi.Input[builtins.bool] auto_upgrade: A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
771
779
  :param pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterClusterAutoscalerConfigurationArgs', 'KubernetesClusterClusterAutoscalerConfigurationArgsDict']]]] cluster_autoscaler_configurations: Block containing options for cluster auto-scaling.
772
780
  :param pulumi.Input[builtins.str] cluster_subnet: The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
781
+ :param pulumi.Input[Union['KubernetesClusterControlPlaneFirewallArgs', 'KubernetesClusterControlPlaneFirewallArgsDict']] control_plane_firewall: A block representing the cluster's control plane firewall
773
782
  :param pulumi.Input[builtins.bool] destroy_all_associated_resources: **Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
774
783
  :param pulumi.Input[builtins.bool] ha: Enable/disable the high availability control plane for a cluster. Once enabled for a cluster, high availability cannot be disabled. Default: false
775
784
  :param pulumi.Input[builtins.int] kubeconfig_expire_seconds: The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
@@ -939,6 +948,7 @@ class KubernetesCluster(pulumi.CustomResource):
939
948
  :param pulumi.Input[Sequence[pulumi.Input[Union['KubernetesClusterClusterAutoscalerConfigurationArgs', 'KubernetesClusterClusterAutoscalerConfigurationArgsDict']]]] cluster_autoscaler_configurations: Block containing options for cluster auto-scaling.
940
949
  :param pulumi.Input[builtins.str] cluster_subnet: The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see [here](https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/#create-with-vpc-native).
941
950
  :param pulumi.Input[builtins.str] cluster_urn: The uniform resource name (URN) for the Kubernetes cluster.
951
+ :param pulumi.Input[Union['KubernetesClusterControlPlaneFirewallArgs', 'KubernetesClusterControlPlaneFirewallArgsDict']] control_plane_firewall: A block representing the cluster's control plane firewall
942
952
  :param pulumi.Input[builtins.str] created_at: The date and time when the node was created.
943
953
  :param pulumi.Input[builtins.bool] destroy_all_associated_resources: **Use with caution.** When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed.
944
954
  :param pulumi.Input[builtins.str] endpoint: The base URL of the API server on the Kubernetes master node.
@@ -1026,6 +1036,9 @@ class KubernetesCluster(pulumi.CustomResource):
1026
1036
  @property
1027
1037
  @pulumi.getter(name="controlPlaneFirewall")
1028
1038
  def control_plane_firewall(self) -> pulumi.Output['outputs.KubernetesClusterControlPlaneFirewall']:
1039
+ """
1040
+ A block representing the cluster's control plane firewall
1041
+ """
1029
1042
  return pulumi.get(self, "control_plane_firewall")
1030
1043
 
1031
1044
  @property