pulumi-digitalocean 4.40.0a1739511652__py3-none-any.whl → 4.56.0a1766428645__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.
- pulumi_digitalocean/__init__.py +224 -1
- pulumi_digitalocean/_enums.py +19 -9
- pulumi_digitalocean/_inputs.py +17037 -4771
- pulumi_digitalocean/_utilities.py +1 -1
- pulumi_digitalocean/app.py +238 -88
- pulumi_digitalocean/byoip_prefix.py +452 -0
- pulumi_digitalocean/cdn.py +106 -105
- pulumi_digitalocean/certificate.py +139 -138
- pulumi_digitalocean/config/__init__.py +2 -1
- pulumi_digitalocean/config/__init__.pyi +2 -2
- pulumi_digitalocean/config/vars.py +11 -11
- pulumi_digitalocean/container_registries.py +285 -0
- pulumi_digitalocean/container_registry.py +90 -89
- pulumi_digitalocean/container_registry_docker_credentials.py +84 -83
- pulumi_digitalocean/custom_image.py +180 -179
- pulumi_digitalocean/database_cluster.py +402 -373
- pulumi_digitalocean/database_connection_pool.py +159 -158
- pulumi_digitalocean/database_db.py +37 -36
- pulumi_digitalocean/database_firewall.py +23 -22
- pulumi_digitalocean/database_kafka_config.py +309 -308
- pulumi_digitalocean/database_kafka_schema_registry.py +360 -0
- pulumi_digitalocean/database_kafka_topic.py +83 -82
- pulumi_digitalocean/database_logsink_opensearch.py +680 -0
- pulumi_digitalocean/database_logsink_rsyslog.py +842 -0
- pulumi_digitalocean/database_mongodb_config.py +105 -104
- pulumi_digitalocean/database_mysql_config.py +479 -478
- pulumi_digitalocean/database_online_migration.py +460 -0
- pulumi_digitalocean/database_opensearch_config.py +666 -665
- pulumi_digitalocean/database_postgresql_config.py +859 -858
- pulumi_digitalocean/database_redis_config.py +211 -206
- pulumi_digitalocean/database_replica.py +199 -198
- pulumi_digitalocean/database_user.py +93 -92
- pulumi_digitalocean/database_valkey_config.py +776 -0
- pulumi_digitalocean/dns_record.py +184 -183
- pulumi_digitalocean/domain.py +55 -54
- pulumi_digitalocean/droplet.py +403 -402
- pulumi_digitalocean/droplet_autoscale.py +55 -54
- pulumi_digitalocean/droplet_snapshot.py +73 -72
- pulumi_digitalocean/firewall.py +80 -79
- pulumi_digitalocean/floating_ip.py +63 -62
- pulumi_digitalocean/floating_ip_assignment.py +37 -36
- pulumi_digitalocean/genai_agent.py +1903 -0
- pulumi_digitalocean/genai_agent_knowledge_base_attachment.py +198 -0
- pulumi_digitalocean/genai_agent_route.py +354 -0
- pulumi_digitalocean/genai_function.py +464 -0
- pulumi_digitalocean/genai_indexing_job_cancel.py +542 -0
- pulumi_digitalocean/genai_knowledge_base.py +627 -0
- pulumi_digitalocean/genai_knowledge_base_data_source.py +220 -0
- pulumi_digitalocean/genai_openai_api_key.py +386 -0
- pulumi_digitalocean/get_account.py +18 -18
- pulumi_digitalocean/get_app.py +28 -28
- pulumi_digitalocean/get_byoip_prefix.py +214 -0
- pulumi_digitalocean/get_byoip_prefix_resources.py +150 -0
- pulumi_digitalocean/get_certificate.py +22 -22
- pulumi_digitalocean/get_container_registries.py +151 -0
- pulumi_digitalocean/get_container_registry.py +22 -22
- pulumi_digitalocean/get_database_ca.py +12 -12
- pulumi_digitalocean/get_database_cluster.py +76 -62
- pulumi_digitalocean/get_database_connection_pool.py +36 -36
- pulumi_digitalocean/get_database_metrics_credentials.py +120 -0
- pulumi_digitalocean/get_database_replica.py +46 -46
- pulumi_digitalocean/get_database_user.py +27 -27
- pulumi_digitalocean/get_domain.py +16 -16
- pulumi_digitalocean/get_domains.py +7 -7
- pulumi_digitalocean/get_droplet.py +72 -72
- pulumi_digitalocean/get_droplet_autoscale.py +23 -23
- pulumi_digitalocean/get_droplet_snapshot.py +38 -38
- pulumi_digitalocean/get_droplets.py +13 -13
- pulumi_digitalocean/get_firewall.py +31 -31
- pulumi_digitalocean/get_floating_ip.py +16 -16
- pulumi_digitalocean/get_genai_agent.py +572 -0
- pulumi_digitalocean/get_genai_agent_versions.py +128 -0
- pulumi_digitalocean/get_genai_agents.py +128 -0
- pulumi_digitalocean/get_genai_agents_by_openai_api_key.py +97 -0
- pulumi_digitalocean/get_genai_indexing_job.py +239 -0
- pulumi_digitalocean/get_genai_indexing_job_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base.py +259 -0
- pulumi_digitalocean/get_genai_knowledge_base_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base_indexing_jobs.py +108 -0
- pulumi_digitalocean/get_genai_knowledge_bases.py +113 -0
- pulumi_digitalocean/get_genai_models.py +113 -0
- pulumi_digitalocean/get_genai_openai_api_key.py +152 -0
- pulumi_digitalocean/get_genai_openai_api_keys.py +113 -0
- pulumi_digitalocean/get_genai_regions.py +113 -0
- pulumi_digitalocean/get_image.py +50 -50
- pulumi_digitalocean/get_images.py +7 -7
- pulumi_digitalocean/get_kubernetes_cluster.py +144 -53
- pulumi_digitalocean/get_kubernetes_versions.py +14 -14
- pulumi_digitalocean/get_load_balancer.py +70 -59
- pulumi_digitalocean/get_nfs.py +205 -0
- pulumi_digitalocean/get_nfs_snapshot.py +188 -0
- pulumi_digitalocean/get_partner_attachment.py +206 -0
- pulumi_digitalocean/get_partner_attachment_service_key.py +118 -0
- pulumi_digitalocean/get_project.py +32 -32
- pulumi_digitalocean/get_projects.py +7 -7
- pulumi_digitalocean/get_record.py +32 -32
- pulumi_digitalocean/get_records.py +13 -13
- pulumi_digitalocean/get_region.py +18 -18
- pulumi_digitalocean/get_regions.py +7 -7
- pulumi_digitalocean/get_reserved_ip.py +16 -16
- pulumi_digitalocean/get_reserved_ipv6.py +51 -16
- pulumi_digitalocean/get_sizes.py +141 -7
- pulumi_digitalocean/get_spaces_bucket.py +22 -22
- pulumi_digitalocean/get_spaces_bucket_object.py +58 -58
- pulumi_digitalocean/get_spaces_bucket_objects.py +46 -46
- pulumi_digitalocean/get_spaces_buckets.py +7 -7
- pulumi_digitalocean/get_spaces_key.py +157 -0
- pulumi_digitalocean/get_ssh_key.py +14 -14
- pulumi_digitalocean/get_ssh_keys.py +7 -7
- pulumi_digitalocean/get_tag.py +22 -22
- pulumi_digitalocean/get_tags.py +7 -7
- pulumi_digitalocean/get_volume.py +34 -34
- pulumi_digitalocean/get_volume_snapshot.py +40 -40
- pulumi_digitalocean/get_vpc.py +30 -30
- pulumi_digitalocean/get_vpc_nat_gateway.py +263 -0
- pulumi_digitalocean/get_vpc_peering.py +24 -24
- pulumi_digitalocean/kubernetes_cluster.py +572 -303
- pulumi_digitalocean/kubernetes_node_pool.py +170 -169
- pulumi_digitalocean/load_balancer.py +406 -372
- pulumi_digitalocean/monitor_alert.py +153 -156
- pulumi_digitalocean/nfs.py +481 -0
- pulumi_digitalocean/nfs_attachment.py +289 -0
- pulumi_digitalocean/nfs_snapshot.py +379 -0
- pulumi_digitalocean/outputs.py +26759 -7592
- pulumi_digitalocean/partner_attachment.py +555 -0
- pulumi_digitalocean/project.py +141 -140
- pulumi_digitalocean/project_resources.py +37 -36
- pulumi_digitalocean/provider.py +105 -84
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- pulumi_digitalocean/reserved_ip.py +63 -62
- pulumi_digitalocean/reserved_ip_assignment.py +37 -36
- pulumi_digitalocean/reserved_ipv6.py +122 -62
- pulumi_digitalocean/reserved_ipv6_assignment.py +81 -30
- pulumi_digitalocean/spaces_bucket.py +107 -106
- pulumi_digitalocean/spaces_bucket_cors_configuration.py +40 -39
- pulumi_digitalocean/spaces_bucket_logging.py +346 -0
- pulumi_digitalocean/spaces_bucket_object.py +284 -283
- pulumi_digitalocean/spaces_bucket_policy.py +54 -53
- pulumi_digitalocean/spaces_key.py +388 -0
- pulumi_digitalocean/ssh_key.py +46 -45
- pulumi_digitalocean/tag.py +74 -73
- pulumi_digitalocean/uptime_alert.py +112 -111
- pulumi_digitalocean/uptime_check.py +90 -89
- pulumi_digitalocean/volume.py +183 -182
- pulumi_digitalocean/volume_attachment.py +37 -36
- pulumi_digitalocean/volume_snapshot.py +90 -89
- pulumi_digitalocean/vpc.py +100 -99
- pulumi_digitalocean/vpc_nat_gateway.py +722 -0
- pulumi_digitalocean/vpc_peering.py +55 -58
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/METADATA +4 -4
- pulumi_digitalocean-4.56.0a1766428645.dist-info/RECORD +154 -0
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/WHEEL +1 -1
- pulumi_digitalocean-4.40.0a1739511652.dist-info/RECORD +0 -108
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,263 @@
|
|
|
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 as _builtins
|
|
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
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetVpcNatGatewayResult',
|
|
20
|
+
'AwaitableGetVpcNatGatewayResult',
|
|
21
|
+
'get_vpc_nat_gateway',
|
|
22
|
+
'get_vpc_nat_gateway_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetVpcNatGatewayResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getVpcNatGateway.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, created_at=None, egresses=None, icmp_timeout_seconds=None, id=None, name=None, project_id=None, region=None, size=None, state=None, tcp_timeout_seconds=None, type=None, udp_timeout_seconds=None, updated_at=None, vpcs=None):
|
|
31
|
+
if created_at and not isinstance(created_at, str):
|
|
32
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
33
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
34
|
+
if egresses and not isinstance(egresses, list):
|
|
35
|
+
raise TypeError("Expected argument 'egresses' to be a list")
|
|
36
|
+
pulumi.set(__self__, "egresses", egresses)
|
|
37
|
+
if icmp_timeout_seconds and not isinstance(icmp_timeout_seconds, int):
|
|
38
|
+
raise TypeError("Expected argument 'icmp_timeout_seconds' to be a int")
|
|
39
|
+
pulumi.set(__self__, "icmp_timeout_seconds", icmp_timeout_seconds)
|
|
40
|
+
if id and not isinstance(id, str):
|
|
41
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "id", id)
|
|
43
|
+
if name and not isinstance(name, str):
|
|
44
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
45
|
+
pulumi.set(__self__, "name", name)
|
|
46
|
+
if project_id and not isinstance(project_id, str):
|
|
47
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
48
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
49
|
+
if region and not isinstance(region, str):
|
|
50
|
+
raise TypeError("Expected argument 'region' to be a str")
|
|
51
|
+
pulumi.set(__self__, "region", region)
|
|
52
|
+
if size and not isinstance(size, int):
|
|
53
|
+
raise TypeError("Expected argument 'size' to be a int")
|
|
54
|
+
pulumi.set(__self__, "size", size)
|
|
55
|
+
if state and not isinstance(state, str):
|
|
56
|
+
raise TypeError("Expected argument 'state' to be a str")
|
|
57
|
+
pulumi.set(__self__, "state", state)
|
|
58
|
+
if tcp_timeout_seconds and not isinstance(tcp_timeout_seconds, int):
|
|
59
|
+
raise TypeError("Expected argument 'tcp_timeout_seconds' to be a int")
|
|
60
|
+
pulumi.set(__self__, "tcp_timeout_seconds", tcp_timeout_seconds)
|
|
61
|
+
if type and not isinstance(type, str):
|
|
62
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
63
|
+
pulumi.set(__self__, "type", type)
|
|
64
|
+
if udp_timeout_seconds and not isinstance(udp_timeout_seconds, int):
|
|
65
|
+
raise TypeError("Expected argument 'udp_timeout_seconds' to be a int")
|
|
66
|
+
pulumi.set(__self__, "udp_timeout_seconds", udp_timeout_seconds)
|
|
67
|
+
if updated_at and not isinstance(updated_at, str):
|
|
68
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
69
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
70
|
+
if vpcs and not isinstance(vpcs, list):
|
|
71
|
+
raise TypeError("Expected argument 'vpcs' to be a list")
|
|
72
|
+
pulumi.set(__self__, "vpcs", vpcs)
|
|
73
|
+
|
|
74
|
+
@_builtins.property
|
|
75
|
+
@pulumi.getter(name="createdAt")
|
|
76
|
+
def created_at(self) -> _builtins.str:
|
|
77
|
+
return pulumi.get(self, "created_at")
|
|
78
|
+
|
|
79
|
+
@_builtins.property
|
|
80
|
+
@pulumi.getter
|
|
81
|
+
def egresses(self) -> Sequence['outputs.GetVpcNatGatewayEgressResult']:
|
|
82
|
+
return pulumi.get(self, "egresses")
|
|
83
|
+
|
|
84
|
+
@_builtins.property
|
|
85
|
+
@pulumi.getter(name="icmpTimeoutSeconds")
|
|
86
|
+
def icmp_timeout_seconds(self) -> _builtins.int:
|
|
87
|
+
return pulumi.get(self, "icmp_timeout_seconds")
|
|
88
|
+
|
|
89
|
+
@_builtins.property
|
|
90
|
+
@pulumi.getter
|
|
91
|
+
def id(self) -> Optional[_builtins.str]:
|
|
92
|
+
return pulumi.get(self, "id")
|
|
93
|
+
|
|
94
|
+
@_builtins.property
|
|
95
|
+
@pulumi.getter
|
|
96
|
+
def name(self) -> Optional[_builtins.str]:
|
|
97
|
+
return pulumi.get(self, "name")
|
|
98
|
+
|
|
99
|
+
@_builtins.property
|
|
100
|
+
@pulumi.getter(name="projectId")
|
|
101
|
+
def project_id(self) -> _builtins.str:
|
|
102
|
+
return pulumi.get(self, "project_id")
|
|
103
|
+
|
|
104
|
+
@_builtins.property
|
|
105
|
+
@pulumi.getter
|
|
106
|
+
def region(self) -> _builtins.str:
|
|
107
|
+
return pulumi.get(self, "region")
|
|
108
|
+
|
|
109
|
+
@_builtins.property
|
|
110
|
+
@pulumi.getter
|
|
111
|
+
def size(self) -> _builtins.int:
|
|
112
|
+
return pulumi.get(self, "size")
|
|
113
|
+
|
|
114
|
+
@_builtins.property
|
|
115
|
+
@pulumi.getter
|
|
116
|
+
def state(self) -> _builtins.str:
|
|
117
|
+
return pulumi.get(self, "state")
|
|
118
|
+
|
|
119
|
+
@_builtins.property
|
|
120
|
+
@pulumi.getter(name="tcpTimeoutSeconds")
|
|
121
|
+
def tcp_timeout_seconds(self) -> _builtins.int:
|
|
122
|
+
return pulumi.get(self, "tcp_timeout_seconds")
|
|
123
|
+
|
|
124
|
+
@_builtins.property
|
|
125
|
+
@pulumi.getter
|
|
126
|
+
def type(self) -> _builtins.str:
|
|
127
|
+
return pulumi.get(self, "type")
|
|
128
|
+
|
|
129
|
+
@_builtins.property
|
|
130
|
+
@pulumi.getter(name="udpTimeoutSeconds")
|
|
131
|
+
def udp_timeout_seconds(self) -> _builtins.int:
|
|
132
|
+
return pulumi.get(self, "udp_timeout_seconds")
|
|
133
|
+
|
|
134
|
+
@_builtins.property
|
|
135
|
+
@pulumi.getter(name="updatedAt")
|
|
136
|
+
def updated_at(self) -> _builtins.str:
|
|
137
|
+
return pulumi.get(self, "updated_at")
|
|
138
|
+
|
|
139
|
+
@_builtins.property
|
|
140
|
+
@pulumi.getter
|
|
141
|
+
def vpcs(self) -> Sequence['outputs.GetVpcNatGatewayVpcResult']:
|
|
142
|
+
return pulumi.get(self, "vpcs")
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class AwaitableGetVpcNatGatewayResult(GetVpcNatGatewayResult):
|
|
146
|
+
# pylint: disable=using-constant-test
|
|
147
|
+
def __await__(self):
|
|
148
|
+
if False:
|
|
149
|
+
yield self
|
|
150
|
+
return GetVpcNatGatewayResult(
|
|
151
|
+
created_at=self.created_at,
|
|
152
|
+
egresses=self.egresses,
|
|
153
|
+
icmp_timeout_seconds=self.icmp_timeout_seconds,
|
|
154
|
+
id=self.id,
|
|
155
|
+
name=self.name,
|
|
156
|
+
project_id=self.project_id,
|
|
157
|
+
region=self.region,
|
|
158
|
+
size=self.size,
|
|
159
|
+
state=self.state,
|
|
160
|
+
tcp_timeout_seconds=self.tcp_timeout_seconds,
|
|
161
|
+
type=self.type,
|
|
162
|
+
udp_timeout_seconds=self.udp_timeout_seconds,
|
|
163
|
+
updated_at=self.updated_at,
|
|
164
|
+
vpcs=self.vpcs)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def get_vpc_nat_gateway(id: Optional[_builtins.str] = None,
|
|
168
|
+
name: Optional[_builtins.str] = None,
|
|
169
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVpcNatGatewayResult:
|
|
170
|
+
"""
|
|
171
|
+
## Example Usage
|
|
172
|
+
|
|
173
|
+
Get the VPC NAT Gateway by name:
|
|
174
|
+
|
|
175
|
+
```python
|
|
176
|
+
import pulumi
|
|
177
|
+
import pulumi_digitalocean as digitalocean
|
|
178
|
+
|
|
179
|
+
my_imported_vpc_nat_gateway = digitalocean.get_vpc_nat_gateway(name=my_existing_vpc_nat_gateway["name"])
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Get the VPC NAT Gateway by ID:
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
import pulumi
|
|
186
|
+
import pulumi_digitalocean as digitalocean
|
|
187
|
+
|
|
188
|
+
my_imported_vpc_nat_gateway = digitalocean.get_vpc_nat_gateway(id=my_existing_vpc_nat_gateway["id"])
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:param _builtins.str id: The ID of VPC NAT Gateway.
|
|
193
|
+
:param _builtins.str name: The name of VPC NAT Gateway.
|
|
194
|
+
"""
|
|
195
|
+
__args__ = dict()
|
|
196
|
+
__args__['id'] = id
|
|
197
|
+
__args__['name'] = name
|
|
198
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
199
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getVpcNatGateway:getVpcNatGateway', __args__, opts=opts, typ=GetVpcNatGatewayResult).value
|
|
200
|
+
|
|
201
|
+
return AwaitableGetVpcNatGatewayResult(
|
|
202
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
203
|
+
egresses=pulumi.get(__ret__, 'egresses'),
|
|
204
|
+
icmp_timeout_seconds=pulumi.get(__ret__, 'icmp_timeout_seconds'),
|
|
205
|
+
id=pulumi.get(__ret__, 'id'),
|
|
206
|
+
name=pulumi.get(__ret__, 'name'),
|
|
207
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
208
|
+
region=pulumi.get(__ret__, 'region'),
|
|
209
|
+
size=pulumi.get(__ret__, 'size'),
|
|
210
|
+
state=pulumi.get(__ret__, 'state'),
|
|
211
|
+
tcp_timeout_seconds=pulumi.get(__ret__, 'tcp_timeout_seconds'),
|
|
212
|
+
type=pulumi.get(__ret__, 'type'),
|
|
213
|
+
udp_timeout_seconds=pulumi.get(__ret__, 'udp_timeout_seconds'),
|
|
214
|
+
updated_at=pulumi.get(__ret__, 'updated_at'),
|
|
215
|
+
vpcs=pulumi.get(__ret__, 'vpcs'))
|
|
216
|
+
def get_vpc_nat_gateway_output(id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
217
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
218
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVpcNatGatewayResult]:
|
|
219
|
+
"""
|
|
220
|
+
## Example Usage
|
|
221
|
+
|
|
222
|
+
Get the VPC NAT Gateway by name:
|
|
223
|
+
|
|
224
|
+
```python
|
|
225
|
+
import pulumi
|
|
226
|
+
import pulumi_digitalocean as digitalocean
|
|
227
|
+
|
|
228
|
+
my_imported_vpc_nat_gateway = digitalocean.get_vpc_nat_gateway(name=my_existing_vpc_nat_gateway["name"])
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Get the VPC NAT Gateway by ID:
|
|
232
|
+
|
|
233
|
+
```python
|
|
234
|
+
import pulumi
|
|
235
|
+
import pulumi_digitalocean as digitalocean
|
|
236
|
+
|
|
237
|
+
my_imported_vpc_nat_gateway = digitalocean.get_vpc_nat_gateway(id=my_existing_vpc_nat_gateway["id"])
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
:param _builtins.str id: The ID of VPC NAT Gateway.
|
|
242
|
+
:param _builtins.str name: The name of VPC NAT Gateway.
|
|
243
|
+
"""
|
|
244
|
+
__args__ = dict()
|
|
245
|
+
__args__['id'] = id
|
|
246
|
+
__args__['name'] = name
|
|
247
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
248
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getVpcNatGateway:getVpcNatGateway', __args__, opts=opts, typ=GetVpcNatGatewayResult)
|
|
249
|
+
return __ret__.apply(lambda __response__: GetVpcNatGatewayResult(
|
|
250
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
251
|
+
egresses=pulumi.get(__response__, 'egresses'),
|
|
252
|
+
icmp_timeout_seconds=pulumi.get(__response__, 'icmp_timeout_seconds'),
|
|
253
|
+
id=pulumi.get(__response__, 'id'),
|
|
254
|
+
name=pulumi.get(__response__, 'name'),
|
|
255
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
256
|
+
region=pulumi.get(__response__, 'region'),
|
|
257
|
+
size=pulumi.get(__response__, 'size'),
|
|
258
|
+
state=pulumi.get(__response__, 'state'),
|
|
259
|
+
tcp_timeout_seconds=pulumi.get(__response__, 'tcp_timeout_seconds'),
|
|
260
|
+
type=pulumi.get(__response__, 'type'),
|
|
261
|
+
udp_timeout_seconds=pulumi.get(__response__, 'udp_timeout_seconds'),
|
|
262
|
+
updated_at=pulumi.get(__response__, 'updated_at'),
|
|
263
|
+
vpcs=pulumi.get(__response__, 'vpcs')))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -43,41 +43,41 @@ class GetVpcPeeringResult:
|
|
|
43
43
|
raise TypeError("Expected argument 'vpc_ids' to be a list")
|
|
44
44
|
pulumi.set(__self__, "vpc_ids", vpc_ids)
|
|
45
45
|
|
|
46
|
-
@property
|
|
46
|
+
@_builtins.property
|
|
47
47
|
@pulumi.getter(name="createdAt")
|
|
48
|
-
def created_at(self) -> str:
|
|
48
|
+
def created_at(self) -> _builtins.str:
|
|
49
49
|
"""
|
|
50
50
|
The date and time of when the VPC Peering was created.
|
|
51
51
|
"""
|
|
52
52
|
return pulumi.get(self, "created_at")
|
|
53
53
|
|
|
54
|
-
@property
|
|
54
|
+
@_builtins.property
|
|
55
55
|
@pulumi.getter
|
|
56
|
-
def id(self) -> str:
|
|
56
|
+
def id(self) -> _builtins.str:
|
|
57
57
|
"""
|
|
58
58
|
The unique identifier for the VPC Peering.
|
|
59
59
|
"""
|
|
60
60
|
return pulumi.get(self, "id")
|
|
61
61
|
|
|
62
|
-
@property
|
|
62
|
+
@_builtins.property
|
|
63
63
|
@pulumi.getter
|
|
64
|
-
def name(self) -> str:
|
|
64
|
+
def name(self) -> _builtins.str:
|
|
65
65
|
"""
|
|
66
66
|
The name of the VPC Peering.
|
|
67
67
|
"""
|
|
68
68
|
return pulumi.get(self, "name")
|
|
69
69
|
|
|
70
|
-
@property
|
|
70
|
+
@_builtins.property
|
|
71
71
|
@pulumi.getter
|
|
72
|
-
def status(self) -> str:
|
|
72
|
+
def status(self) -> _builtins.str:
|
|
73
73
|
"""
|
|
74
74
|
The status of the VPC Peering.
|
|
75
75
|
"""
|
|
76
76
|
return pulumi.get(self, "status")
|
|
77
77
|
|
|
78
|
-
@property
|
|
78
|
+
@_builtins.property
|
|
79
79
|
@pulumi.getter(name="vpcIds")
|
|
80
|
-
def vpc_ids(self) -> Sequence[str]:
|
|
80
|
+
def vpc_ids(self) -> Sequence[_builtins.str]:
|
|
81
81
|
"""
|
|
82
82
|
The list of VPC IDs involved in the peering.
|
|
83
83
|
"""
|
|
@@ -97,9 +97,9 @@ class AwaitableGetVpcPeeringResult(GetVpcPeeringResult):
|
|
|
97
97
|
vpc_ids=self.vpc_ids)
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
def get_vpc_peering(id: Optional[str] = None,
|
|
101
|
-
name: Optional[str] = None,
|
|
102
|
-
vpc_ids: Optional[Sequence[str]] = None,
|
|
100
|
+
def get_vpc_peering(id: Optional[_builtins.str] = None,
|
|
101
|
+
name: Optional[_builtins.str] = None,
|
|
102
|
+
vpc_ids: Optional[Sequence[_builtins.str]] = None,
|
|
103
103
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVpcPeeringResult:
|
|
104
104
|
"""
|
|
105
105
|
## Example Usage
|
|
@@ -153,9 +153,9 @@ def get_vpc_peering(id: Optional[str] = None,
|
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
:param str id: The unique identifier of an existing VPC Peering.
|
|
157
|
-
:param str name: The name of an existing VPC Peering.
|
|
158
|
-
:param Sequence[str] vpc_ids: The list of VPC IDs involved in the peering.
|
|
156
|
+
:param _builtins.str id: The unique identifier of an existing VPC Peering.
|
|
157
|
+
:param _builtins.str name: The name of an existing VPC Peering.
|
|
158
|
+
:param Sequence[_builtins.str] vpc_ids: The list of VPC IDs involved in the peering.
|
|
159
159
|
"""
|
|
160
160
|
__args__ = dict()
|
|
161
161
|
__args__['id'] = id
|
|
@@ -170,9 +170,9 @@ def get_vpc_peering(id: Optional[str] = None,
|
|
|
170
170
|
name=pulumi.get(__ret__, 'name'),
|
|
171
171
|
status=pulumi.get(__ret__, 'status'),
|
|
172
172
|
vpc_ids=pulumi.get(__ret__, 'vpc_ids'))
|
|
173
|
-
def get_vpc_peering_output(id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
174
|
-
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
175
|
-
vpc_ids: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
173
|
+
def get_vpc_peering_output(id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
174
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
175
|
+
vpc_ids: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
176
176
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVpcPeeringResult]:
|
|
177
177
|
"""
|
|
178
178
|
## Example Usage
|
|
@@ -226,9 +226,9 @@ def get_vpc_peering_output(id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
226
226
|
```
|
|
227
227
|
|
|
228
228
|
|
|
229
|
-
:param str id: The unique identifier of an existing VPC Peering.
|
|
230
|
-
:param str name: The name of an existing VPC Peering.
|
|
231
|
-
:param Sequence[str] vpc_ids: The list of VPC IDs involved in the peering.
|
|
229
|
+
:param _builtins.str id: The unique identifier of an existing VPC Peering.
|
|
230
|
+
:param _builtins.str name: The name of an existing VPC Peering.
|
|
231
|
+
:param Sequence[_builtins.str] vpc_ids: The list of VPC IDs involved in the peering.
|
|
232
232
|
"""
|
|
233
233
|
__args__ = dict()
|
|
234
234
|
__args__['id'] = id
|