pulumi-dnsimple 3.5.0a1721425071__py3-none-any.whl → 4.0.0a1721432730__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,160 @@
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
+ from . import outputs
12
+
13
+ __all__ = [
14
+ 'GetRegistrantChangeCheckResult',
15
+ 'AwaitableGetRegistrantChangeCheckResult',
16
+ 'get_registrant_change_check',
17
+ 'get_registrant_change_check_output',
18
+ ]
19
+
20
+ @pulumi.output_type
21
+ class GetRegistrantChangeCheckResult:
22
+ """
23
+ A collection of values returned by getRegistrantChangeCheck.
24
+ """
25
+ def __init__(__self__, contact_id=None, domain_id=None, extended_attributes=None, id=None, registry_owner_change=None):
26
+ if contact_id and not isinstance(contact_id, str):
27
+ raise TypeError("Expected argument 'contact_id' to be a str")
28
+ pulumi.set(__self__, "contact_id", contact_id)
29
+ if domain_id and not isinstance(domain_id, str):
30
+ raise TypeError("Expected argument 'domain_id' to be a str")
31
+ pulumi.set(__self__, "domain_id", domain_id)
32
+ if extended_attributes and not isinstance(extended_attributes, list):
33
+ raise TypeError("Expected argument 'extended_attributes' to be a list")
34
+ pulumi.set(__self__, "extended_attributes", extended_attributes)
35
+ if id and not isinstance(id, str):
36
+ raise TypeError("Expected argument 'id' to be a str")
37
+ pulumi.set(__self__, "id", id)
38
+ if registry_owner_change and not isinstance(registry_owner_change, bool):
39
+ raise TypeError("Expected argument 'registry_owner_change' to be a bool")
40
+ pulumi.set(__self__, "registry_owner_change", registry_owner_change)
41
+
42
+ @property
43
+ @pulumi.getter(name="contactId")
44
+ def contact_id(self) -> str:
45
+ return pulumi.get(self, "contact_id")
46
+
47
+ @property
48
+ @pulumi.getter(name="domainId")
49
+ def domain_id(self) -> str:
50
+ return pulumi.get(self, "domain_id")
51
+
52
+ @property
53
+ @pulumi.getter(name="extendedAttributes")
54
+ def extended_attributes(self) -> Sequence['outputs.GetRegistrantChangeCheckExtendedAttributeResult']:
55
+ return pulumi.get(self, "extended_attributes")
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def id(self) -> str:
60
+ return pulumi.get(self, "id")
61
+
62
+ @property
63
+ @pulumi.getter(name="registryOwnerChange")
64
+ def registry_owner_change(self) -> bool:
65
+ return pulumi.get(self, "registry_owner_change")
66
+
67
+
68
+ class AwaitableGetRegistrantChangeCheckResult(GetRegistrantChangeCheckResult):
69
+ # pylint: disable=using-constant-test
70
+ def __await__(self):
71
+ if False:
72
+ yield self
73
+ return GetRegistrantChangeCheckResult(
74
+ contact_id=self.contact_id,
75
+ domain_id=self.domain_id,
76
+ extended_attributes=self.extended_attributes,
77
+ id=self.id,
78
+ registry_owner_change=self.registry_owner_change)
79
+
80
+
81
+ def get_registrant_change_check(contact_id: Optional[str] = None,
82
+ domain_id: Optional[str] = None,
83
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegistrantChangeCheckResult:
84
+ """
85
+ Get information on the requirements of a registrant change.
86
+
87
+ > **Note:** The registrant change API is currently in developer preview and is subject to change.
88
+
89
+ Get registrant change requirements for the `dnsimple.com` domain and the contact with ID `1234`:
90
+
91
+ ```python
92
+ import pulumi
93
+ import pulumi_dnsimple as dnsimple
94
+
95
+ example = dnsimple.get_registrant_change_check(domain_id="dnsimple.com",
96
+ contact_id="1234")
97
+ ```
98
+
99
+ The following arguments are supported:
100
+
101
+ * `domain_id` - (Required) The name or ID of the domain.
102
+ * `contact_id` - (Required) The ID of the contact you are planning to change to.
103
+
104
+ The following additional attributes are exported:
105
+
106
+ * `contact_id` - The ID of the contact you are planning to change to.
107
+ * `domain_id` - The name or ID of the domain.
108
+ * `extended_attributes` - (List) A list of extended attributes that are required for the registrant change. (see below for nested schema)
109
+ * `registry_owner_change` - (Boolean) Whether the registrant change is going to result in an owner change at the registry.
110
+
111
+ <a id="nestedblock--extended_attributes"></a>
112
+ """
113
+ __args__ = dict()
114
+ __args__['contactId'] = contact_id
115
+ __args__['domainId'] = domain_id
116
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
117
+ __ret__ = pulumi.runtime.invoke('dnsimple:index/getRegistrantChangeCheck:getRegistrantChangeCheck', __args__, opts=opts, typ=GetRegistrantChangeCheckResult).value
118
+
119
+ return AwaitableGetRegistrantChangeCheckResult(
120
+ contact_id=pulumi.get(__ret__, 'contact_id'),
121
+ domain_id=pulumi.get(__ret__, 'domain_id'),
122
+ extended_attributes=pulumi.get(__ret__, 'extended_attributes'),
123
+ id=pulumi.get(__ret__, 'id'),
124
+ registry_owner_change=pulumi.get(__ret__, 'registry_owner_change'))
125
+
126
+
127
+ @_utilities.lift_output_func(get_registrant_change_check)
128
+ def get_registrant_change_check_output(contact_id: Optional[pulumi.Input[str]] = None,
129
+ domain_id: Optional[pulumi.Input[str]] = None,
130
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRegistrantChangeCheckResult]:
131
+ """
132
+ Get information on the requirements of a registrant change.
133
+
134
+ > **Note:** The registrant change API is currently in developer preview and is subject to change.
135
+
136
+ Get registrant change requirements for the `dnsimple.com` domain and the contact with ID `1234`:
137
+
138
+ ```python
139
+ import pulumi
140
+ import pulumi_dnsimple as dnsimple
141
+
142
+ example = dnsimple.get_registrant_change_check(domain_id="dnsimple.com",
143
+ contact_id="1234")
144
+ ```
145
+
146
+ The following arguments are supported:
147
+
148
+ * `domain_id` - (Required) The name or ID of the domain.
149
+ * `contact_id` - (Required) The ID of the contact you are planning to change to.
150
+
151
+ The following additional attributes are exported:
152
+
153
+ * `contact_id` - The ID of the contact you are planning to change to.
154
+ * `domain_id` - The name or ID of the domain.
155
+ * `extended_attributes` - (List) A list of extended attributes that are required for the registrant change. (see below for nested schema)
156
+ * `registry_owner_change` - (Boolean) Whether the registrant change is going to result in an owner change at the registry.
157
+
158
+ <a id="nestedblock--extended_attributes"></a>
159
+ """
160
+ ...
@@ -73,6 +73,8 @@ def get_zone(name: Optional[str] = None,
73
73
  """
74
74
  Get information about a DNSimple zone.
75
75
 
76
+ !> Data source is getting deprecated in favor of `dnsimple\\_zone` resource.
77
+
76
78
  Get zone:
77
79
 
78
80
  ```python
@@ -110,6 +112,8 @@ def get_zone_output(name: Optional[pulumi.Input[str]] = None,
110
112
  """
111
113
  Get information about a DNSimple zone.
112
114
 
115
+ !> Data source is getting deprecated in favor of `dnsimple\\_zone` resource.
116
+
113
117
  Get zone:
114
118
 
115
119
  ```python
@@ -17,17 +17,21 @@ class LetsEncryptCertificateArgs:
17
17
  auto_renew: pulumi.Input[bool],
18
18
  domain_id: pulumi.Input[str],
19
19
  name: pulumi.Input[str],
20
+ alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
20
21
  signature_algorithm: Optional[pulumi.Input[str]] = None):
21
22
  """
22
23
  The set of arguments for constructing a LetsEncryptCertificate resource.
23
24
  :param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
24
25
  :param pulumi.Input[str] domain_id: The domain to be issued the certificate for
25
- :param pulumi.Input[str] name: The certificate name
26
+ :param pulumi.Input[str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
27
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] alternate_names: The certificate alternate names
26
28
  :param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
27
29
  """
28
30
  pulumi.set(__self__, "auto_renew", auto_renew)
29
31
  pulumi.set(__self__, "domain_id", domain_id)
30
32
  pulumi.set(__self__, "name", name)
33
+ if alternate_names is not None:
34
+ pulumi.set(__self__, "alternate_names", alternate_names)
31
35
  if signature_algorithm is not None:
32
36
  pulumi.set(__self__, "signature_algorithm", signature_algorithm)
33
37
 
@@ -59,7 +63,7 @@ class LetsEncryptCertificateArgs:
59
63
  @pulumi.getter
60
64
  def name(self) -> pulumi.Input[str]:
61
65
  """
62
- The certificate name
66
+ The certificate name; use `""` for the root domain. Wildcard names are supported.
63
67
  """
64
68
  return pulumi.get(self, "name")
65
69
 
@@ -67,6 +71,18 @@ class LetsEncryptCertificateArgs:
67
71
  def name(self, value: pulumi.Input[str]):
68
72
  pulumi.set(self, "name", value)
69
73
 
74
+ @property
75
+ @pulumi.getter(name="alternateNames")
76
+ def alternate_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
77
+ """
78
+ The certificate alternate names
79
+ """
80
+ return pulumi.get(self, "alternate_names")
81
+
82
+ @alternate_names.setter
83
+ def alternate_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
84
+ pulumi.set(self, "alternate_names", value)
85
+
70
86
  @property
71
87
  @pulumi.getter(name="signatureAlgorithm")
72
88
  def signature_algorithm(self) -> Optional[pulumi.Input[str]]:
@@ -83,6 +99,7 @@ class LetsEncryptCertificateArgs:
83
99
  @pulumi.input_type
84
100
  class _LetsEncryptCertificateState:
85
101
  def __init__(__self__, *,
102
+ alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
86
103
  authority_identifier: Optional[pulumi.Input[str]] = None,
87
104
  auto_renew: Optional[pulumi.Input[bool]] = None,
88
105
  created_at: Optional[pulumi.Input[str]] = None,
@@ -96,18 +113,21 @@ class _LetsEncryptCertificateState:
96
113
  years: Optional[pulumi.Input[int]] = None):
97
114
  """
98
115
  Input properties used for looking up and filtering LetsEncryptCertificate resources.
116
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] alternate_names: The certificate alternate names
99
117
  :param pulumi.Input[str] authority_identifier: The identifying certification authority (CA)
100
118
  :param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
101
119
  :param pulumi.Input[str] created_at: The datetime the certificate was created
102
120
  :param pulumi.Input[str] csr: The certificate signing request
103
121
  :param pulumi.Input[str] domain_id: The domain to be issued the certificate for
104
122
  :param pulumi.Input[str] expires_at: The datetime the certificate will expire
105
- :param pulumi.Input[str] name: The certificate name
123
+ :param pulumi.Input[str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
106
124
  :param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
107
125
  :param pulumi.Input[str] state: The state of the certificate
108
126
  :param pulumi.Input[str] updated_at: The datetime the certificate was last updated
109
127
  :param pulumi.Input[int] years: The years the certificate will last
110
128
  """
129
+ if alternate_names is not None:
130
+ pulumi.set(__self__, "alternate_names", alternate_names)
111
131
  if authority_identifier is not None:
112
132
  pulumi.set(__self__, "authority_identifier", authority_identifier)
113
133
  if auto_renew is not None:
@@ -131,6 +151,18 @@ class _LetsEncryptCertificateState:
131
151
  if years is not None:
132
152
  pulumi.set(__self__, "years", years)
133
153
 
154
+ @property
155
+ @pulumi.getter(name="alternateNames")
156
+ def alternate_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
157
+ """
158
+ The certificate alternate names
159
+ """
160
+ return pulumi.get(self, "alternate_names")
161
+
162
+ @alternate_names.setter
163
+ def alternate_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
164
+ pulumi.set(self, "alternate_names", value)
165
+
134
166
  @property
135
167
  @pulumi.getter(name="authorityIdentifier")
136
168
  def authority_identifier(self) -> Optional[pulumi.Input[str]]:
@@ -207,7 +239,7 @@ class _LetsEncryptCertificateState:
207
239
  @pulumi.getter
208
240
  def name(self) -> Optional[pulumi.Input[str]]:
209
241
  """
210
- The certificate name
242
+ The certificate name; use `""` for the root domain. Wildcard names are supported.
211
243
  """
212
244
  return pulumi.get(self, "name")
213
245
 
@@ -269,6 +301,7 @@ class LetsEncryptCertificate(pulumi.CustomResource):
269
301
  def __init__(__self__,
270
302
  resource_name: str,
271
303
  opts: Optional[pulumi.ResourceOptions] = None,
304
+ alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
272
305
  auto_renew: Optional[pulumi.Input[bool]] = None,
273
306
  domain_id: Optional[pulumi.Input[str]] = None,
274
307
  name: Optional[pulumi.Input[str]] = None,
@@ -286,14 +319,19 @@ class LetsEncryptCertificate(pulumi.CustomResource):
286
319
  foobar = dnsimple.LetsEncryptCertificate("foobar",
287
320
  domain_id=dnsimple["domainId"],
288
321
  auto_renew=False,
289
- name="www")
322
+ name="www",
323
+ alternate_names=[
324
+ "docs.example.com",
325
+ "status.example.com",
326
+ ])
290
327
  ```
291
328
 
292
329
  :param str resource_name: The name of the resource.
293
330
  :param pulumi.ResourceOptions opts: Options for the resource.
331
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] alternate_names: The certificate alternate names
294
332
  :param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
295
333
  :param pulumi.Input[str] domain_id: The domain to be issued the certificate for
296
- :param pulumi.Input[str] name: The certificate name
334
+ :param pulumi.Input[str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
297
335
  :param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
298
336
  """
299
337
  ...
@@ -314,7 +352,11 @@ class LetsEncryptCertificate(pulumi.CustomResource):
314
352
  foobar = dnsimple.LetsEncryptCertificate("foobar",
315
353
  domain_id=dnsimple["domainId"],
316
354
  auto_renew=False,
317
- name="www")
355
+ name="www",
356
+ alternate_names=[
357
+ "docs.example.com",
358
+ "status.example.com",
359
+ ])
318
360
  ```
319
361
 
320
362
  :param str resource_name: The name of the resource.
@@ -332,6 +374,7 @@ class LetsEncryptCertificate(pulumi.CustomResource):
332
374
  def _internal_init(__self__,
333
375
  resource_name: str,
334
376
  opts: Optional[pulumi.ResourceOptions] = None,
377
+ alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
335
378
  auto_renew: Optional[pulumi.Input[bool]] = None,
336
379
  domain_id: Optional[pulumi.Input[str]] = None,
337
380
  name: Optional[pulumi.Input[str]] = None,
@@ -345,6 +388,7 @@ class LetsEncryptCertificate(pulumi.CustomResource):
345
388
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
346
389
  __props__ = LetsEncryptCertificateArgs.__new__(LetsEncryptCertificateArgs)
347
390
 
391
+ __props__.__dict__["alternate_names"] = alternate_names
348
392
  if auto_renew is None and not opts.urn:
349
393
  raise TypeError("Missing required property 'auto_renew'")
350
394
  __props__.__dict__["auto_renew"] = auto_renew
@@ -372,6 +416,7 @@ class LetsEncryptCertificate(pulumi.CustomResource):
372
416
  def get(resource_name: str,
373
417
  id: pulumi.Input[str],
374
418
  opts: Optional[pulumi.ResourceOptions] = None,
419
+ alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
375
420
  authority_identifier: Optional[pulumi.Input[str]] = None,
376
421
  auto_renew: Optional[pulumi.Input[bool]] = None,
377
422
  created_at: Optional[pulumi.Input[str]] = None,
@@ -390,13 +435,14 @@ class LetsEncryptCertificate(pulumi.CustomResource):
390
435
  :param str resource_name: The unique name of the resulting resource.
391
436
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
392
437
  :param pulumi.ResourceOptions opts: Options for the resource.
438
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] alternate_names: The certificate alternate names
393
439
  :param pulumi.Input[str] authority_identifier: The identifying certification authority (CA)
394
440
  :param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
395
441
  :param pulumi.Input[str] created_at: The datetime the certificate was created
396
442
  :param pulumi.Input[str] csr: The certificate signing request
397
443
  :param pulumi.Input[str] domain_id: The domain to be issued the certificate for
398
444
  :param pulumi.Input[str] expires_at: The datetime the certificate will expire
399
- :param pulumi.Input[str] name: The certificate name
445
+ :param pulumi.Input[str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
400
446
  :param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
401
447
  :param pulumi.Input[str] state: The state of the certificate
402
448
  :param pulumi.Input[str] updated_at: The datetime the certificate was last updated
@@ -406,6 +452,7 @@ class LetsEncryptCertificate(pulumi.CustomResource):
406
452
 
407
453
  __props__ = _LetsEncryptCertificateState.__new__(_LetsEncryptCertificateState)
408
454
 
455
+ __props__.__dict__["alternate_names"] = alternate_names
409
456
  __props__.__dict__["authority_identifier"] = authority_identifier
410
457
  __props__.__dict__["auto_renew"] = auto_renew
411
458
  __props__.__dict__["created_at"] = created_at
@@ -419,6 +466,14 @@ class LetsEncryptCertificate(pulumi.CustomResource):
419
466
  __props__.__dict__["years"] = years
420
467
  return LetsEncryptCertificate(resource_name, opts=opts, __props__=__props__)
421
468
 
469
+ @property
470
+ @pulumi.getter(name="alternateNames")
471
+ def alternate_names(self) -> pulumi.Output[Optional[Sequence[str]]]:
472
+ """
473
+ The certificate alternate names
474
+ """
475
+ return pulumi.get(self, "alternate_names")
476
+
422
477
  @property
423
478
  @pulumi.getter(name="authorityIdentifier")
424
479
  def authority_identifier(self) -> pulumi.Output[str]:
@@ -471,7 +526,7 @@ class LetsEncryptCertificate(pulumi.CustomResource):
471
526
  @pulumi.getter
472
527
  def name(self) -> pulumi.Output[str]:
473
528
  """
474
- The certificate name
529
+ The certificate name; use `""` for the root domain. Wildcard names are supported.
475
530
  """
476
531
  return pulumi.get(self, "name")
477
532