pulumi-dnsimple 3.5.0a1709211875__py3-none-any.whl → 4.3.0a1736832784__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-dnsimple might be problematic. Click here for more details.

@@ -0,0 +1,263 @@
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__ = ['DomainDelegationArgs', 'DomainDelegation']
18
+
19
+ @pulumi.input_type
20
+ class DomainDelegationArgs:
21
+ def __init__(__self__, *,
22
+ domain: pulumi.Input[str],
23
+ name_servers: pulumi.Input[Sequence[pulumi.Input[str]]]):
24
+ """
25
+ The set of arguments for constructing a DomainDelegation resource.
26
+ :param pulumi.Input[str] domain: The domain name.
27
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of name servers to delegate to.
28
+
29
+ # Attributes Reference
30
+ """
31
+ pulumi.set(__self__, "domain", domain)
32
+ pulumi.set(__self__, "name_servers", name_servers)
33
+
34
+ @property
35
+ @pulumi.getter
36
+ def domain(self) -> pulumi.Input[str]:
37
+ """
38
+ The domain name.
39
+ """
40
+ return pulumi.get(self, "domain")
41
+
42
+ @domain.setter
43
+ def domain(self, value: pulumi.Input[str]):
44
+ pulumi.set(self, "domain", value)
45
+
46
+ @property
47
+ @pulumi.getter(name="nameServers")
48
+ def name_servers(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
49
+ """
50
+ The list of name servers to delegate to.
51
+
52
+ # Attributes Reference
53
+ """
54
+ return pulumi.get(self, "name_servers")
55
+
56
+ @name_servers.setter
57
+ def name_servers(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
58
+ pulumi.set(self, "name_servers", value)
59
+
60
+
61
+ @pulumi.input_type
62
+ class _DomainDelegationState:
63
+ def __init__(__self__, *,
64
+ domain: Optional[pulumi.Input[str]] = None,
65
+ name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
66
+ """
67
+ Input properties used for looking up and filtering DomainDelegation resources.
68
+ :param pulumi.Input[str] domain: The domain name.
69
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of name servers to delegate to.
70
+
71
+ # Attributes Reference
72
+ """
73
+ if domain is not None:
74
+ pulumi.set(__self__, "domain", domain)
75
+ if name_servers is not None:
76
+ pulumi.set(__self__, "name_servers", name_servers)
77
+
78
+ @property
79
+ @pulumi.getter
80
+ def domain(self) -> Optional[pulumi.Input[str]]:
81
+ """
82
+ The domain name.
83
+ """
84
+ return pulumi.get(self, "domain")
85
+
86
+ @domain.setter
87
+ def domain(self, value: Optional[pulumi.Input[str]]):
88
+ pulumi.set(self, "domain", value)
89
+
90
+ @property
91
+ @pulumi.getter(name="nameServers")
92
+ def name_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
93
+ """
94
+ The list of name servers to delegate to.
95
+
96
+ # Attributes Reference
97
+ """
98
+ return pulumi.get(self, "name_servers")
99
+
100
+ @name_servers.setter
101
+ def name_servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
102
+ pulumi.set(self, "name_servers", value)
103
+
104
+
105
+ class DomainDelegation(pulumi.CustomResource):
106
+ @overload
107
+ def __init__(__self__,
108
+ resource_name: str,
109
+ opts: Optional[pulumi.ResourceOptions] = None,
110
+ domain: Optional[pulumi.Input[str]] = None,
111
+ name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
112
+ __props__=None):
113
+ """
114
+ ## Example Usage
115
+
116
+ ```python
117
+ import pulumi
118
+ import pulumi_dnsimple as dnsimple
119
+
120
+ # Create a domain delegation
121
+ foobar = dnsimple.DomainDelegation("foobar",
122
+ domain=dnsimple["domain"],
123
+ name_servers=[
124
+ "ns1.example.org",
125
+ "ns2.example.com",
126
+ ])
127
+ ```
128
+
129
+ ## Import
130
+
131
+ DNSimple domain delegations can be imported using the domain name.
132
+
133
+ **Importing domain delegation for example.com**
134
+
135
+ bash
136
+
137
+ ```sh
138
+ $ pulumi import dnsimple:index/domainDelegation:DomainDelegation resource_name example.com
139
+ ```
140
+
141
+ :param str resource_name: The name of the resource.
142
+ :param pulumi.ResourceOptions opts: Options for the resource.
143
+ :param pulumi.Input[str] domain: The domain name.
144
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of name servers to delegate to.
145
+
146
+ # Attributes Reference
147
+ """
148
+ ...
149
+ @overload
150
+ def __init__(__self__,
151
+ resource_name: str,
152
+ args: DomainDelegationArgs,
153
+ opts: Optional[pulumi.ResourceOptions] = None):
154
+ """
155
+ ## Example Usage
156
+
157
+ ```python
158
+ import pulumi
159
+ import pulumi_dnsimple as dnsimple
160
+
161
+ # Create a domain delegation
162
+ foobar = dnsimple.DomainDelegation("foobar",
163
+ domain=dnsimple["domain"],
164
+ name_servers=[
165
+ "ns1.example.org",
166
+ "ns2.example.com",
167
+ ])
168
+ ```
169
+
170
+ ## Import
171
+
172
+ DNSimple domain delegations can be imported using the domain name.
173
+
174
+ **Importing domain delegation for example.com**
175
+
176
+ bash
177
+
178
+ ```sh
179
+ $ pulumi import dnsimple:index/domainDelegation:DomainDelegation resource_name example.com
180
+ ```
181
+
182
+ :param str resource_name: The name of the resource.
183
+ :param DomainDelegationArgs args: The arguments to use to populate this resource's properties.
184
+ :param pulumi.ResourceOptions opts: Options for the resource.
185
+ """
186
+ ...
187
+ def __init__(__self__, resource_name: str, *args, **kwargs):
188
+ resource_args, opts = _utilities.get_resource_args_opts(DomainDelegationArgs, pulumi.ResourceOptions, *args, **kwargs)
189
+ if resource_args is not None:
190
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
191
+ else:
192
+ __self__._internal_init(resource_name, *args, **kwargs)
193
+
194
+ def _internal_init(__self__,
195
+ resource_name: str,
196
+ opts: Optional[pulumi.ResourceOptions] = None,
197
+ domain: Optional[pulumi.Input[str]] = None,
198
+ name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
199
+ __props__=None):
200
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
201
+ if not isinstance(opts, pulumi.ResourceOptions):
202
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
203
+ if opts.id is None:
204
+ if __props__ is not None:
205
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
206
+ __props__ = DomainDelegationArgs.__new__(DomainDelegationArgs)
207
+
208
+ if domain is None and not opts.urn:
209
+ raise TypeError("Missing required property 'domain'")
210
+ __props__.__dict__["domain"] = domain
211
+ if name_servers is None and not opts.urn:
212
+ raise TypeError("Missing required property 'name_servers'")
213
+ __props__.__dict__["name_servers"] = name_servers
214
+ super(DomainDelegation, __self__).__init__(
215
+ 'dnsimple:index/domainDelegation:DomainDelegation',
216
+ resource_name,
217
+ __props__,
218
+ opts)
219
+
220
+ @staticmethod
221
+ def get(resource_name: str,
222
+ id: pulumi.Input[str],
223
+ opts: Optional[pulumi.ResourceOptions] = None,
224
+ domain: Optional[pulumi.Input[str]] = None,
225
+ name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'DomainDelegation':
226
+ """
227
+ Get an existing DomainDelegation resource's state with the given name, id, and optional extra
228
+ properties used to qualify the lookup.
229
+
230
+ :param str resource_name: The unique name of the resulting resource.
231
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
232
+ :param pulumi.ResourceOptions opts: Options for the resource.
233
+ :param pulumi.Input[str] domain: The domain name.
234
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of name servers to delegate to.
235
+
236
+ # Attributes Reference
237
+ """
238
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
239
+
240
+ __props__ = _DomainDelegationState.__new__(_DomainDelegationState)
241
+
242
+ __props__.__dict__["domain"] = domain
243
+ __props__.__dict__["name_servers"] = name_servers
244
+ return DomainDelegation(resource_name, opts=opts, __props__=__props__)
245
+
246
+ @property
247
+ @pulumi.getter
248
+ def domain(self) -> pulumi.Output[str]:
249
+ """
250
+ The domain name.
251
+ """
252
+ return pulumi.get(self, "domain")
253
+
254
+ @property
255
+ @pulumi.getter(name="nameServers")
256
+ def name_servers(self) -> pulumi.Output[Sequence[str]]:
257
+ """
258
+ The list of name servers to delegate to.
259
+
260
+ # Attributes Reference
261
+ """
262
+ return pulumi.get(self, "name_servers")
263
+