@pulumi/dnsimple 5.3.0-alpha.1785479682 → 5.3.0
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.
- package/domain.d.ts +49 -0
- package/domain.d.ts.map +1 -1
- package/domain.js +9 -0
- package/domain.js.map +1 -1
- package/package.json +2 -2
package/domain.d.ts
CHANGED
|
@@ -2,6 +2,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Provides a DNSimple domain resource.
|
|
4
4
|
*
|
|
5
|
+
* > **Warning** Destroying a `dnsimple.Domain` resource deletes the domain from your DNSimple account, and **its DNS records are not recoverable**. A domain registered through DNSimple stays registered at the registry and remains yours until it expires, but recovering it means adding it back to your account as a zone and then [contacting DNSimple support](https://dnsimple.com/contact) to have the registration relinked. See [Recovering a deleted domain](https://support.dnsimple.com/articles/recovering-deleted-domain/).
|
|
6
|
+
*
|
|
7
|
+
* Two things are worth knowing before you manage a domain with this resource:
|
|
8
|
+
*
|
|
9
|
+
* - Set `preventDelete` to `true` to make `terraform destroy` fail for the resource instead of deleting the domain.
|
|
10
|
+
* - If you only want Terraform to stop tracking the domain, remove it from state rather than destroying it. See Removing a domain from Terraform.
|
|
11
|
+
*
|
|
5
12
|
* ## Example Usage
|
|
6
13
|
*
|
|
7
14
|
* ```typescript
|
|
@@ -49,6 +56,20 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
49
56
|
* The domain name to be created.
|
|
50
57
|
*/
|
|
51
58
|
readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Optional flag to guard against [accidental registration deletion of the domain](https://support.dnsimple.com/articles/recovering-deleted-domain/) (default `false`). Set it to `true` and `terraform destroy` will fail for this resource. Because changing `name` requires replacement, and replacement destroys the existing domain, renaming also fails while it is enabled — set it back to `false` and apply first.
|
|
61
|
+
*
|
|
62
|
+
* ```typescript
|
|
63
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
64
|
+
* import * as dnsimple from "@pulumi/dnsimple";
|
|
65
|
+
*
|
|
66
|
+
* const example = new dnsimple.Domain("example", {
|
|
67
|
+
* name: "example.com",
|
|
68
|
+
* preventDelete: true,
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
readonly preventDelete: pulumi.Output<boolean>;
|
|
52
73
|
/**
|
|
53
74
|
* Whether the domain has WhoIs privacy enabled.
|
|
54
75
|
*/
|
|
@@ -94,6 +115,20 @@ export interface DomainState {
|
|
|
94
115
|
* The domain name to be created.
|
|
95
116
|
*/
|
|
96
117
|
name?: pulumi.Input<string | undefined>;
|
|
118
|
+
/**
|
|
119
|
+
* Optional flag to guard against [accidental registration deletion of the domain](https://support.dnsimple.com/articles/recovering-deleted-domain/) (default `false`). Set it to `true` and `terraform destroy` will fail for this resource. Because changing `name` requires replacement, and replacement destroys the existing domain, renaming also fails while it is enabled — set it back to `false` and apply first.
|
|
120
|
+
*
|
|
121
|
+
* ```typescript
|
|
122
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
123
|
+
* import * as dnsimple from "@pulumi/dnsimple";
|
|
124
|
+
*
|
|
125
|
+
* const example = new dnsimple.Domain("example", {
|
|
126
|
+
* name: "example.com",
|
|
127
|
+
* preventDelete: true,
|
|
128
|
+
* });
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
preventDelete?: pulumi.Input<boolean | undefined>;
|
|
97
132
|
/**
|
|
98
133
|
* Whether the domain has WhoIs privacy enabled.
|
|
99
134
|
*/
|
|
@@ -123,5 +158,19 @@ export interface DomainArgs {
|
|
|
123
158
|
* The domain name to be created.
|
|
124
159
|
*/
|
|
125
160
|
name: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Optional flag to guard against [accidental registration deletion of the domain](https://support.dnsimple.com/articles/recovering-deleted-domain/) (default `false`). Set it to `true` and `terraform destroy` will fail for this resource. Because changing `name` requires replacement, and replacement destroys the existing domain, renaming also fails while it is enabled — set it back to `false` and apply first.
|
|
163
|
+
*
|
|
164
|
+
* ```typescript
|
|
165
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
166
|
+
* import * as dnsimple from "@pulumi/dnsimple";
|
|
167
|
+
*
|
|
168
|
+
* const example = new dnsimple.Domain("example", {
|
|
169
|
+
* name: "example.com",
|
|
170
|
+
* preventDelete: true,
|
|
171
|
+
* });
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
preventDelete?: pulumi.Input<boolean | undefined>;
|
|
126
175
|
}
|
|
127
176
|
//# sourceMappingURL=domain.d.ts.map
|
package/domain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../domain.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../domain.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,MAAM;IAO9H;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM;IAOjD;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClE;;OAEG;IACH,SAAwB,IAAI,EAAE,MAA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,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACrD"}
|
package/domain.js
CHANGED
|
@@ -31,6 +31,13 @@ const utilities = __importStar(require("./utilities"));
|
|
|
31
31
|
/**
|
|
32
32
|
* Provides a DNSimple domain resource.
|
|
33
33
|
*
|
|
34
|
+
* > **Warning** Destroying a `dnsimple.Domain` resource deletes the domain from your DNSimple account, and **its DNS records are not recoverable**. A domain registered through DNSimple stays registered at the registry and remains yours until it expires, but recovering it means adding it back to your account as a zone and then [contacting DNSimple support](https://dnsimple.com/contact) to have the registration relinked. See [Recovering a deleted domain](https://support.dnsimple.com/articles/recovering-deleted-domain/).
|
|
35
|
+
*
|
|
36
|
+
* Two things are worth knowing before you manage a domain with this resource:
|
|
37
|
+
*
|
|
38
|
+
* - Set `preventDelete` to `true` to make `terraform destroy` fail for the resource instead of deleting the domain.
|
|
39
|
+
* - If you only want Terraform to stop tracking the domain, remove it from state rather than destroying it. See Removing a domain from Terraform.
|
|
40
|
+
*
|
|
34
41
|
* ## Example Usage
|
|
35
42
|
*
|
|
36
43
|
* ```typescript
|
|
@@ -83,6 +90,7 @@ class Domain extends pulumi.CustomResource {
|
|
|
83
90
|
resourceInputs["accountId"] = state?.accountId;
|
|
84
91
|
resourceInputs["autoRenew"] = state?.autoRenew;
|
|
85
92
|
resourceInputs["name"] = state?.name;
|
|
93
|
+
resourceInputs["preventDelete"] = state?.preventDelete;
|
|
86
94
|
resourceInputs["privateWhois"] = state?.privateWhois;
|
|
87
95
|
resourceInputs["registrantId"] = state?.registrantId;
|
|
88
96
|
resourceInputs["state"] = state?.state;
|
|
@@ -95,6 +103,7 @@ class Domain extends pulumi.CustomResource {
|
|
|
95
103
|
throw new Error("Missing required property 'name'");
|
|
96
104
|
}
|
|
97
105
|
resourceInputs["name"] = args?.name;
|
|
106
|
+
resourceInputs["preventDelete"] = args?.preventDelete;
|
|
98
107
|
resourceInputs["accountId"] = undefined /*out*/;
|
|
99
108
|
resourceInputs["autoRenew"] = undefined /*out*/;
|
|
100
109
|
resourceInputs["privateWhois"] = undefined /*out*/;
|
package/domain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../domain.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../domain.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,8BAA8B,C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,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAlHL,wBAmHC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/dnsimple",
|
|
3
|
-
"version": "5.3.0
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing dnsimple cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "dnsimple",
|
|
26
|
-
"version": "5.3.0
|
|
26
|
+
"version": "5.3.0"
|
|
27
27
|
}
|
|
28
28
|
}
|