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

pulumi_dnsimple/domain.py CHANGED
@@ -18,6 +18,8 @@ class DomainArgs:
18
18
  """
19
19
  The set of arguments for constructing a Domain resource.
20
20
  :param pulumi.Input[str] name: The domain name to be created
21
+
22
+ # Attributes Reference
21
23
  """
22
24
  pulumi.set(__self__, "name", name)
23
25
 
@@ -26,6 +28,8 @@ class DomainArgs:
26
28
  def name(self) -> pulumi.Input[str]:
27
29
  """
28
30
  The domain name to be created
31
+
32
+ # Attributes Reference
29
33
  """
30
34
  return pulumi.get(self, "name")
31
35
 
@@ -46,7 +50,15 @@ class _DomainState:
46
50
  unicode_name: Optional[pulumi.Input[str]] = None):
47
51
  """
48
52
  Input properties used for looking up and filtering Domain resources.
53
+ :param pulumi.Input[int] account_id: The account ID for the domain.
54
+ :param pulumi.Input[bool] auto_renew: Whether the domain is set to auto-renew.
49
55
  :param pulumi.Input[str] name: The domain name to be created
56
+
57
+ # Attributes Reference
58
+ :param pulumi.Input[bool] private_whois: Whether the domain has WhoIs privacy enabled.
59
+ :param pulumi.Input[int] registrant_id: The ID of the registrant (contact) for the domain.
60
+ :param pulumi.Input[str] state: The state of the domain.
61
+ :param pulumi.Input[str] unicode_name: The domain name in Unicode format.
50
62
  """
51
63
  if account_id is not None:
52
64
  pulumi.set(__self__, "account_id", account_id)
@@ -66,6 +78,9 @@ class _DomainState:
66
78
  @property
67
79
  @pulumi.getter(name="accountId")
68
80
  def account_id(self) -> Optional[pulumi.Input[int]]:
81
+ """
82
+ The account ID for the domain.
83
+ """
69
84
  return pulumi.get(self, "account_id")
70
85
 
71
86
  @account_id.setter
@@ -75,6 +90,9 @@ class _DomainState:
75
90
  @property
76
91
  @pulumi.getter(name="autoRenew")
77
92
  def auto_renew(self) -> Optional[pulumi.Input[bool]]:
93
+ """
94
+ Whether the domain is set to auto-renew.
95
+ """
78
96
  return pulumi.get(self, "auto_renew")
79
97
 
80
98
  @auto_renew.setter
@@ -86,6 +104,8 @@ class _DomainState:
86
104
  def name(self) -> Optional[pulumi.Input[str]]:
87
105
  """
88
106
  The domain name to be created
107
+
108
+ # Attributes Reference
89
109
  """
90
110
  return pulumi.get(self, "name")
91
111
 
@@ -96,6 +116,9 @@ class _DomainState:
96
116
  @property
97
117
  @pulumi.getter(name="privateWhois")
98
118
  def private_whois(self) -> Optional[pulumi.Input[bool]]:
119
+ """
120
+ Whether the domain has WhoIs privacy enabled.
121
+ """
99
122
  return pulumi.get(self, "private_whois")
100
123
 
101
124
  @private_whois.setter
@@ -105,6 +128,9 @@ class _DomainState:
105
128
  @property
106
129
  @pulumi.getter(name="registrantId")
107
130
  def registrant_id(self) -> Optional[pulumi.Input[int]]:
131
+ """
132
+ The ID of the registrant (contact) for the domain.
133
+ """
108
134
  return pulumi.get(self, "registrant_id")
109
135
 
110
136
  @registrant_id.setter
@@ -114,6 +140,9 @@ class _DomainState:
114
140
  @property
115
141
  @pulumi.getter
116
142
  def state(self) -> Optional[pulumi.Input[str]]:
143
+ """
144
+ The state of the domain.
145
+ """
117
146
  return pulumi.get(self, "state")
118
147
 
119
148
  @state.setter
@@ -123,6 +152,9 @@ class _DomainState:
123
152
  @property
124
153
  @pulumi.getter(name="unicodeName")
125
154
  def unicode_name(self) -> Optional[pulumi.Input[str]]:
155
+ """
156
+ The domain name in Unicode format.
157
+ """
126
158
  return pulumi.get(self, "unicode_name")
127
159
 
128
160
  @unicode_name.setter
@@ -154,13 +186,17 @@ class Domain(pulumi.CustomResource):
154
186
 
155
187
  DNSimple domains can be imported using their numeric record ID.
156
188
 
189
+ bash
190
+
157
191
  ```sh
158
192
  $ pulumi import dnsimple:index/domain:Domain resource_name 5678
159
193
  ```
160
194
 
161
195
  The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
162
196
 
163
- $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
197
+ bash
198
+
199
+ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
164
200
 
165
201
  {
166
202
 
@@ -213,6 +249,8 @@ class Domain(pulumi.CustomResource):
213
249
  :param str resource_name: The name of the resource.
214
250
  :param pulumi.ResourceOptions opts: Options for the resource.
215
251
  :param pulumi.Input[str] name: The domain name to be created
252
+
253
+ # Attributes Reference
216
254
  """
217
255
  ...
218
256
  @overload
@@ -237,13 +275,17 @@ class Domain(pulumi.CustomResource):
237
275
 
238
276
  DNSimple domains can be imported using their numeric record ID.
239
277
 
278
+ bash
279
+
240
280
  ```sh
241
281
  $ pulumi import dnsimple:index/domain:Domain resource_name 5678
242
282
  ```
243
283
 
244
284
  The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
245
285
 
246
- $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
286
+ bash
287
+
288
+ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
247
289
 
248
290
  {
249
291
 
@@ -351,7 +393,15 @@ class Domain(pulumi.CustomResource):
351
393
  :param str resource_name: The unique name of the resulting resource.
352
394
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
353
395
  :param pulumi.ResourceOptions opts: Options for the resource.
396
+ :param pulumi.Input[int] account_id: The account ID for the domain.
397
+ :param pulumi.Input[bool] auto_renew: Whether the domain is set to auto-renew.
354
398
  :param pulumi.Input[str] name: The domain name to be created
399
+
400
+ # Attributes Reference
401
+ :param pulumi.Input[bool] private_whois: Whether the domain has WhoIs privacy enabled.
402
+ :param pulumi.Input[int] registrant_id: The ID of the registrant (contact) for the domain.
403
+ :param pulumi.Input[str] state: The state of the domain.
404
+ :param pulumi.Input[str] unicode_name: The domain name in Unicode format.
355
405
  """
356
406
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
357
407
 
@@ -369,11 +419,17 @@ class Domain(pulumi.CustomResource):
369
419
  @property
370
420
  @pulumi.getter(name="accountId")
371
421
  def account_id(self) -> pulumi.Output[int]:
422
+ """
423
+ The account ID for the domain.
424
+ """
372
425
  return pulumi.get(self, "account_id")
373
426
 
374
427
  @property
375
428
  @pulumi.getter(name="autoRenew")
376
429
  def auto_renew(self) -> pulumi.Output[bool]:
430
+ """
431
+ Whether the domain is set to auto-renew.
432
+ """
377
433
  return pulumi.get(self, "auto_renew")
378
434
 
379
435
  @property
@@ -381,26 +437,40 @@ class Domain(pulumi.CustomResource):
381
437
  def name(self) -> pulumi.Output[str]:
382
438
  """
383
439
  The domain name to be created
440
+
441
+ # Attributes Reference
384
442
  """
385
443
  return pulumi.get(self, "name")
386
444
 
387
445
  @property
388
446
  @pulumi.getter(name="privateWhois")
389
447
  def private_whois(self) -> pulumi.Output[bool]:
448
+ """
449
+ Whether the domain has WhoIs privacy enabled.
450
+ """
390
451
  return pulumi.get(self, "private_whois")
391
452
 
392
453
  @property
393
454
  @pulumi.getter(name="registrantId")
394
455
  def registrant_id(self) -> pulumi.Output[int]:
456
+ """
457
+ The ID of the registrant (contact) for the domain.
458
+ """
395
459
  return pulumi.get(self, "registrant_id")
396
460
 
397
461
  @property
398
462
  @pulumi.getter
399
463
  def state(self) -> pulumi.Output[str]:
464
+ """
465
+ The state of the domain.
466
+ """
400
467
  return pulumi.get(self, "state")
401
468
 
402
469
  @property
403
470
  @pulumi.getter(name="unicodeName")
404
471
  def unicode_name(self) -> pulumi.Output[str]:
472
+ """
473
+ The domain name in Unicode format.
474
+ """
405
475
  return pulumi.get(self, "unicode_name")
406
476
 
@@ -0,0 +1,258 @@
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 pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+
12
+ __all__ = ['DomainDelegationArgs', 'DomainDelegation']
13
+
14
+ @pulumi.input_type
15
+ class DomainDelegationArgs:
16
+ def __init__(__self__, *,
17
+ domain: pulumi.Input[str],
18
+ name_servers: pulumi.Input[Sequence[pulumi.Input[str]]]):
19
+ """
20
+ The set of arguments for constructing a DomainDelegation resource.
21
+ :param pulumi.Input[str] domain: The domain name.
22
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of name servers to delegate to.
23
+
24
+ # Attributes Reference
25
+ """
26
+ pulumi.set(__self__, "domain", domain)
27
+ pulumi.set(__self__, "name_servers", name_servers)
28
+
29
+ @property
30
+ @pulumi.getter
31
+ def domain(self) -> pulumi.Input[str]:
32
+ """
33
+ The domain name.
34
+ """
35
+ return pulumi.get(self, "domain")
36
+
37
+ @domain.setter
38
+ def domain(self, value: pulumi.Input[str]):
39
+ pulumi.set(self, "domain", value)
40
+
41
+ @property
42
+ @pulumi.getter(name="nameServers")
43
+ def name_servers(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
44
+ """
45
+ The list of name servers to delegate to.
46
+
47
+ # Attributes Reference
48
+ """
49
+ return pulumi.get(self, "name_servers")
50
+
51
+ @name_servers.setter
52
+ def name_servers(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
53
+ pulumi.set(self, "name_servers", value)
54
+
55
+
56
+ @pulumi.input_type
57
+ class _DomainDelegationState:
58
+ def __init__(__self__, *,
59
+ domain: Optional[pulumi.Input[str]] = None,
60
+ name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
61
+ """
62
+ Input properties used for looking up and filtering DomainDelegation resources.
63
+ :param pulumi.Input[str] domain: The domain name.
64
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of name servers to delegate to.
65
+
66
+ # Attributes Reference
67
+ """
68
+ if domain is not None:
69
+ pulumi.set(__self__, "domain", domain)
70
+ if name_servers is not None:
71
+ pulumi.set(__self__, "name_servers", name_servers)
72
+
73
+ @property
74
+ @pulumi.getter
75
+ def domain(self) -> Optional[pulumi.Input[str]]:
76
+ """
77
+ The domain name.
78
+ """
79
+ return pulumi.get(self, "domain")
80
+
81
+ @domain.setter
82
+ def domain(self, value: Optional[pulumi.Input[str]]):
83
+ pulumi.set(self, "domain", value)
84
+
85
+ @property
86
+ @pulumi.getter(name="nameServers")
87
+ def name_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
88
+ """
89
+ The list of name servers to delegate to.
90
+
91
+ # Attributes Reference
92
+ """
93
+ return pulumi.get(self, "name_servers")
94
+
95
+ @name_servers.setter
96
+ def name_servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
97
+ pulumi.set(self, "name_servers", value)
98
+
99
+
100
+ class DomainDelegation(pulumi.CustomResource):
101
+ @overload
102
+ def __init__(__self__,
103
+ resource_name: str,
104
+ opts: Optional[pulumi.ResourceOptions] = None,
105
+ domain: Optional[pulumi.Input[str]] = None,
106
+ name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
107
+ __props__=None):
108
+ """
109
+ ## Example Usage
110
+
111
+ ```python
112
+ import pulumi
113
+ import pulumi_dnsimple as dnsimple
114
+
115
+ # Create a domain delegation
116
+ foobar = dnsimple.DomainDelegation("foobar",
117
+ domain=dnsimple["domain"],
118
+ name_servers=[
119
+ "ns1.example.org",
120
+ "ns2.example.com",
121
+ ])
122
+ ```
123
+
124
+ ## Import
125
+
126
+ DNSimple domain delegations can be imported using the domain name.
127
+
128
+ **Importing domain delegation for example.com**
129
+
130
+ bash
131
+
132
+ ```sh
133
+ $ pulumi import dnsimple:index/domainDelegation:DomainDelegation resource_name example.com
134
+ ```
135
+
136
+ :param str resource_name: The name of the resource.
137
+ :param pulumi.ResourceOptions opts: Options for the resource.
138
+ :param pulumi.Input[str] domain: The domain name.
139
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of name servers to delegate to.
140
+
141
+ # Attributes Reference
142
+ """
143
+ ...
144
+ @overload
145
+ def __init__(__self__,
146
+ resource_name: str,
147
+ args: DomainDelegationArgs,
148
+ opts: Optional[pulumi.ResourceOptions] = None):
149
+ """
150
+ ## Example Usage
151
+
152
+ ```python
153
+ import pulumi
154
+ import pulumi_dnsimple as dnsimple
155
+
156
+ # Create a domain delegation
157
+ foobar = dnsimple.DomainDelegation("foobar",
158
+ domain=dnsimple["domain"],
159
+ name_servers=[
160
+ "ns1.example.org",
161
+ "ns2.example.com",
162
+ ])
163
+ ```
164
+
165
+ ## Import
166
+
167
+ DNSimple domain delegations can be imported using the domain name.
168
+
169
+ **Importing domain delegation for example.com**
170
+
171
+ bash
172
+
173
+ ```sh
174
+ $ pulumi import dnsimple:index/domainDelegation:DomainDelegation resource_name example.com
175
+ ```
176
+
177
+ :param str resource_name: The name of the resource.
178
+ :param DomainDelegationArgs args: The arguments to use to populate this resource's properties.
179
+ :param pulumi.ResourceOptions opts: Options for the resource.
180
+ """
181
+ ...
182
+ def __init__(__self__, resource_name: str, *args, **kwargs):
183
+ resource_args, opts = _utilities.get_resource_args_opts(DomainDelegationArgs, pulumi.ResourceOptions, *args, **kwargs)
184
+ if resource_args is not None:
185
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
186
+ else:
187
+ __self__._internal_init(resource_name, *args, **kwargs)
188
+
189
+ def _internal_init(__self__,
190
+ resource_name: str,
191
+ opts: Optional[pulumi.ResourceOptions] = None,
192
+ domain: Optional[pulumi.Input[str]] = None,
193
+ name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
194
+ __props__=None):
195
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
196
+ if not isinstance(opts, pulumi.ResourceOptions):
197
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
198
+ if opts.id is None:
199
+ if __props__ is not None:
200
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
201
+ __props__ = DomainDelegationArgs.__new__(DomainDelegationArgs)
202
+
203
+ if domain is None and not opts.urn:
204
+ raise TypeError("Missing required property 'domain'")
205
+ __props__.__dict__["domain"] = domain
206
+ if name_servers is None and not opts.urn:
207
+ raise TypeError("Missing required property 'name_servers'")
208
+ __props__.__dict__["name_servers"] = name_servers
209
+ super(DomainDelegation, __self__).__init__(
210
+ 'dnsimple:index/domainDelegation:DomainDelegation',
211
+ resource_name,
212
+ __props__,
213
+ opts)
214
+
215
+ @staticmethod
216
+ def get(resource_name: str,
217
+ id: pulumi.Input[str],
218
+ opts: Optional[pulumi.ResourceOptions] = None,
219
+ domain: Optional[pulumi.Input[str]] = None,
220
+ name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'DomainDelegation':
221
+ """
222
+ Get an existing DomainDelegation resource's state with the given name, id, and optional extra
223
+ properties used to qualify the lookup.
224
+
225
+ :param str resource_name: The unique name of the resulting resource.
226
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
227
+ :param pulumi.ResourceOptions opts: Options for the resource.
228
+ :param pulumi.Input[str] domain: The domain name.
229
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of name servers to delegate to.
230
+
231
+ # Attributes Reference
232
+ """
233
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
234
+
235
+ __props__ = _DomainDelegationState.__new__(_DomainDelegationState)
236
+
237
+ __props__.__dict__["domain"] = domain
238
+ __props__.__dict__["name_servers"] = name_servers
239
+ return DomainDelegation(resource_name, opts=opts, __props__=__props__)
240
+
241
+ @property
242
+ @pulumi.getter
243
+ def domain(self) -> pulumi.Output[str]:
244
+ """
245
+ The domain name.
246
+ """
247
+ return pulumi.get(self, "domain")
248
+
249
+ @property
250
+ @pulumi.getter(name="nameServers")
251
+ def name_servers(self) -> pulumi.Output[Sequence[str]]:
252
+ """
253
+ The list of name servers to delegate to.
254
+
255
+ # Attributes Reference
256
+ """
257
+ return pulumi.get(self, "name_servers")
258
+