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.

@@ -20,8 +20,8 @@ class EmailForwardArgs:
20
20
  """
21
21
  The set of arguments for constructing a EmailForward resource.
22
22
  :param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
23
- :param pulumi.Input[str] destination_email: The destination email address on another domain
24
- :param pulumi.Input[str] domain: The domain to add the email forwarding rule to
23
+ :param pulumi.Input[str] destination_email: The destination email address
24
+ :param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
25
25
  """
26
26
  pulumi.set(__self__, "alias_name", alias_name)
27
27
  pulumi.set(__self__, "destination_email", destination_email)
@@ -43,7 +43,7 @@ class EmailForwardArgs:
43
43
  @pulumi.getter(name="destinationEmail")
44
44
  def destination_email(self) -> pulumi.Input[str]:
45
45
  """
46
- The destination email address on another domain
46
+ The destination email address
47
47
  """
48
48
  return pulumi.get(self, "destination_email")
49
49
 
@@ -55,7 +55,7 @@ class EmailForwardArgs:
55
55
  @pulumi.getter
56
56
  def domain(self) -> pulumi.Input[str]:
57
57
  """
58
- The domain to add the email forwarding rule to
58
+ The domain name to add the email forwarding rule to
59
59
  """
60
60
  return pulumi.get(self, "domain")
61
61
 
@@ -73,10 +73,10 @@ class _EmailForwardState:
73
73
  domain: Optional[pulumi.Input[str]] = None):
74
74
  """
75
75
  Input properties used for looking up and filtering EmailForward resources.
76
- :param pulumi.Input[str] alias_email: The source email address on the domain
76
+ :param pulumi.Input[str] alias_email: The source email address on the domain, in full form. This is a computed attribute.
77
77
  :param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
78
- :param pulumi.Input[str] destination_email: The destination email address on another domain
79
- :param pulumi.Input[str] domain: The domain to add the email forwarding rule to
78
+ :param pulumi.Input[str] destination_email: The destination email address
79
+ :param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
80
80
  """
81
81
  if alias_email is not None:
82
82
  pulumi.set(__self__, "alias_email", alias_email)
@@ -91,7 +91,7 @@ class _EmailForwardState:
91
91
  @pulumi.getter(name="aliasEmail")
92
92
  def alias_email(self) -> Optional[pulumi.Input[str]]:
93
93
  """
94
- The source email address on the domain
94
+ The source email address on the domain, in full form. This is a computed attribute.
95
95
  """
96
96
  return pulumi.get(self, "alias_email")
97
97
 
@@ -115,7 +115,7 @@ class _EmailForwardState:
115
115
  @pulumi.getter(name="destinationEmail")
116
116
  def destination_email(self) -> Optional[pulumi.Input[str]]:
117
117
  """
118
- The destination email address on another domain
118
+ The destination email address
119
119
  """
120
120
  return pulumi.get(self, "destination_email")
121
121
 
@@ -127,7 +127,7 @@ class _EmailForwardState:
127
127
  @pulumi.getter
128
128
  def domain(self) -> Optional[pulumi.Input[str]]:
129
129
  """
130
- The domain to add the email forwarding rule to
130
+ The domain name to add the email forwarding rule to
131
131
  """
132
132
  return pulumi.get(self, "domain")
133
133
 
@@ -154,18 +154,29 @@ class EmailForward(pulumi.CustomResource):
154
154
  import pulumi
155
155
  import pulumi_dnsimple as dnsimple
156
156
 
157
- # Add an email forwarding rule to the domain
158
157
  foobar = dnsimple.EmailForward("foobar",
159
- domain=dnsimple_domain,
158
+ domain=dnsimple_domain["name"],
160
159
  alias_name="sales",
161
- destination_email="jane.doe@example.com")
160
+ destination_email="alice.appleseed@example.com")
161
+ ```
162
+
163
+ ## Import
164
+
165
+ DNSimple resources can be imported using the domain name and numeric email forward ID.
166
+
167
+ **Importing email forward for example.com with email forward ID 1234**
168
+
169
+ bash
170
+
171
+ ```sh
172
+ $ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
162
173
  ```
163
174
 
164
175
  :param str resource_name: The name of the resource.
165
176
  :param pulumi.ResourceOptions opts: Options for the resource.
166
177
  :param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
167
- :param pulumi.Input[str] destination_email: The destination email address on another domain
168
- :param pulumi.Input[str] domain: The domain to add the email forwarding rule to
178
+ :param pulumi.Input[str] destination_email: The destination email address
179
+ :param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
169
180
  """
170
181
  ...
171
182
  @overload
@@ -182,11 +193,22 @@ class EmailForward(pulumi.CustomResource):
182
193
  import pulumi
183
194
  import pulumi_dnsimple as dnsimple
184
195
 
185
- # Add an email forwarding rule to the domain
186
196
  foobar = dnsimple.EmailForward("foobar",
187
- domain=dnsimple_domain,
197
+ domain=dnsimple_domain["name"],
188
198
  alias_name="sales",
189
- destination_email="jane.doe@example.com")
199
+ destination_email="alice.appleseed@example.com")
200
+ ```
201
+
202
+ ## Import
203
+
204
+ DNSimple resources can be imported using the domain name and numeric email forward ID.
205
+
206
+ **Importing email forward for example.com with email forward ID 1234**
207
+
208
+ bash
209
+
210
+ ```sh
211
+ $ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
190
212
  ```
191
213
 
192
214
  :param str resource_name: The name of the resource.
@@ -247,10 +269,10 @@ class EmailForward(pulumi.CustomResource):
247
269
  :param str resource_name: The unique name of the resulting resource.
248
270
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
249
271
  :param pulumi.ResourceOptions opts: Options for the resource.
250
- :param pulumi.Input[str] alias_email: The source email address on the domain
272
+ :param pulumi.Input[str] alias_email: The source email address on the domain, in full form. This is a computed attribute.
251
273
  :param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
252
- :param pulumi.Input[str] destination_email: The destination email address on another domain
253
- :param pulumi.Input[str] domain: The domain to add the email forwarding rule to
274
+ :param pulumi.Input[str] destination_email: The destination email address
275
+ :param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
254
276
  """
255
277
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
256
278
 
@@ -266,7 +288,7 @@ class EmailForward(pulumi.CustomResource):
266
288
  @pulumi.getter(name="aliasEmail")
267
289
  def alias_email(self) -> pulumi.Output[str]:
268
290
  """
269
- The source email address on the domain
291
+ The source email address on the domain, in full form. This is a computed attribute.
270
292
  """
271
293
  return pulumi.get(self, "alias_email")
272
294
 
@@ -282,7 +304,7 @@ class EmailForward(pulumi.CustomResource):
282
304
  @pulumi.getter(name="destinationEmail")
283
305
  def destination_email(self) -> pulumi.Output[str]:
284
306
  """
285
- The destination email address on another domain
307
+ The destination email address
286
308
  """
287
309
  return pulumi.get(self, "destination_email")
288
310
 
@@ -290,7 +312,7 @@ class EmailForward(pulumi.CustomResource):
290
312
  @pulumi.getter
291
313
  def domain(self) -> pulumi.Output[str]:
292
314
  """
293
- The domain to add the email forwarding rule to
315
+ The domain name to add the email forwarding rule to
294
316
  """
295
317
  return pulumi.get(self, "domain")
296
318
 
@@ -8,6 +8,8 @@ import pulumi
8
8
  import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
+ from . import outputs
12
+ from ._inputs import *
11
13
 
12
14
  __all__ = [
13
15
  'GetCertificateResult',
@@ -21,12 +23,12 @@ class GetCertificateResult:
21
23
  """
22
24
  A collection of values returned by getCertificate.
23
25
  """
24
- def __init__(__self__, certificate_chains=None, certificate_id=None, domain=None, id=None, private_key=None, root_certificate=None, server_certificate=None):
26
+ def __init__(__self__, certificate_chains=None, certificate_id=None, domain=None, id=None, private_key=None, root_certificate=None, server_certificate=None, timeouts=None):
25
27
  if certificate_chains and not isinstance(certificate_chains, list):
26
28
  raise TypeError("Expected argument 'certificate_chains' to be a list")
27
29
  pulumi.set(__self__, "certificate_chains", certificate_chains)
28
- if certificate_id and not isinstance(certificate_id, str):
29
- raise TypeError("Expected argument 'certificate_id' to be a str")
30
+ if certificate_id and not isinstance(certificate_id, int):
31
+ raise TypeError("Expected argument 'certificate_id' to be a int")
30
32
  pulumi.set(__self__, "certificate_id", certificate_id)
31
33
  if domain and not isinstance(domain, str):
32
34
  raise TypeError("Expected argument 'domain' to be a str")
@@ -43,6 +45,9 @@ class GetCertificateResult:
43
45
  if server_certificate and not isinstance(server_certificate, str):
44
46
  raise TypeError("Expected argument 'server_certificate' to be a str")
45
47
  pulumi.set(__self__, "server_certificate", server_certificate)
48
+ if timeouts and not isinstance(timeouts, dict):
49
+ raise TypeError("Expected argument 'timeouts' to be a dict")
50
+ pulumi.set(__self__, "timeouts", timeouts)
46
51
 
47
52
  @property
48
53
  @pulumi.getter(name="certificateChains")
@@ -54,7 +59,7 @@ class GetCertificateResult:
54
59
 
55
60
  @property
56
61
  @pulumi.getter(name="certificateId")
57
- def certificate_id(self) -> str:
62
+ def certificate_id(self) -> int:
58
63
  return pulumi.get(self, "certificate_id")
59
64
 
60
65
  @property
@@ -65,9 +70,6 @@ class GetCertificateResult:
65
70
  @property
66
71
  @pulumi.getter
67
72
  def id(self) -> str:
68
- """
69
- The provider-assigned unique ID for this managed resource.
70
- """
71
73
  return pulumi.get(self, "id")
72
74
 
73
75
  @property
@@ -94,6 +96,11 @@ class GetCertificateResult:
94
96
  """
95
97
  return pulumi.get(self, "server_certificate")
96
98
 
99
+ @property
100
+ @pulumi.getter
101
+ def timeouts(self) -> Optional['outputs.GetCertificateTimeoutsResult']:
102
+ return pulumi.get(self, "timeouts")
103
+
97
104
 
98
105
  class AwaitableGetCertificateResult(GetCertificateResult):
99
106
  # pylint: disable=using-constant-test
@@ -107,11 +114,13 @@ class AwaitableGetCertificateResult(GetCertificateResult):
107
114
  id=self.id,
108
115
  private_key=self.private_key,
109
116
  root_certificate=self.root_certificate,
110
- server_certificate=self.server_certificate)
117
+ server_certificate=self.server_certificate,
118
+ timeouts=self.timeouts)
111
119
 
112
120
 
113
- def get_certificate(certificate_id: Optional[str] = None,
121
+ def get_certificate(certificate_id: Optional[int] = None,
114
122
  domain: Optional[str] = None,
123
+ timeouts: Optional[pulumi.InputType['GetCertificateTimeoutsArgs']] = None,
115
124
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCertificateResult:
116
125
  """
117
126
  Provides a DNSimple certificate data source.
@@ -127,12 +136,13 @@ def get_certificate(certificate_id: Optional[str] = None,
127
136
  ```
128
137
 
129
138
 
130
- :param str certificate_id: The ID of the SSL Certificate
139
+ :param int certificate_id: The ID of the SSL Certificate
131
140
  :param str domain: The domain of the SSL Certificate
132
141
  """
133
142
  __args__ = dict()
134
143
  __args__['certificateId'] = certificate_id
135
144
  __args__['domain'] = domain
145
+ __args__['timeouts'] = timeouts
136
146
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
137
147
  __ret__ = pulumi.runtime.invoke('dnsimple:index/getCertificate:getCertificate', __args__, opts=opts, typ=GetCertificateResult).value
138
148
 
@@ -143,12 +153,14 @@ def get_certificate(certificate_id: Optional[str] = None,
143
153
  id=pulumi.get(__ret__, 'id'),
144
154
  private_key=pulumi.get(__ret__, 'private_key'),
145
155
  root_certificate=pulumi.get(__ret__, 'root_certificate'),
146
- server_certificate=pulumi.get(__ret__, 'server_certificate'))
156
+ server_certificate=pulumi.get(__ret__, 'server_certificate'),
157
+ timeouts=pulumi.get(__ret__, 'timeouts'))
147
158
 
148
159
 
149
160
  @_utilities.lift_output_func(get_certificate)
150
- def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
161
+ def get_certificate_output(certificate_id: Optional[pulumi.Input[int]] = None,
151
162
  domain: Optional[pulumi.Input[str]] = None,
163
+ timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetCertificateTimeoutsArgs']]]] = None,
152
164
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCertificateResult]:
153
165
  """
154
166
  Provides a DNSimple certificate data source.
@@ -164,7 +176,7 @@ def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
164
176
  ```
165
177
 
166
178
 
167
- :param str certificate_id: The ID of the SSL Certificate
179
+ :param int certificate_id: The ID of the SSL Certificate
168
180
  :param str domain: The domain of the SSL Certificate
169
181
  """
170
182
  ...
@@ -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
@@ -86,11 +88,10 @@ def get_zone(name: Optional[str] = None,
86
88
 
87
89
  * `name` - (Required) The name of the zone
88
90
 
89
- The following attributes are exported:
91
+ The following additional attributes are exported:
90
92
 
91
93
  * `id` - The zone ID
92
94
  * `account_id` - The account ID
93
- * `name` - The name of the zone
94
95
  * `reverse` - True for a reverse zone, false for a forward zone.
95
96
  """
96
97
  __args__ = dict()
@@ -111,6 +112,8 @@ def get_zone_output(name: Optional[pulumi.Input[str]] = None,
111
112
  """
112
113
  Get information about a DNSimple zone.
113
114
 
115
+ !> Data source is getting deprecated in favor of `dnsimple\\_zone` resource.
116
+
114
117
  Get zone:
115
118
 
116
119
  ```python
@@ -124,11 +127,10 @@ def get_zone_output(name: Optional[pulumi.Input[str]] = None,
124
127
 
125
128
  * `name` - (Required) The name of the zone
126
129
 
127
- The following attributes are exported:
130
+ The following additional attributes are exported:
128
131
 
129
132
  * `id` - The zone ID
130
133
  * `account_id` - The account ID
131
- * `name` - The name of the zone
132
134
  * `reverse` - True for a reverse zone, false for a forward zone.
133
135
  """
134
136
  ...