pulumi-namecheap 2.2.11 → 2.2.12
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/README.md +123 -107
- package/bin/domainRecords.js +14 -14
- package/bin/domainRecords.js.map +1 -1
- package/bin/index.d.ts +1 -3
- package/bin/index.js +18 -4
- package/bin/index.js.map +1 -1
- package/bin/package.json +5 -5
- package/bin/provider.d.ts +16 -0
- package/bin/provider.js +17 -8
- package/bin/provider.js.map +1 -1
- package/bin/utilities.js +47 -60
- package/bin/utilities.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -17,20 +17,29 @@ This package provides a Pulumi provider that enables you to manage your Namechea
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
### npm
|
|
20
|
+
|
|
20
21
|
```bash
|
|
21
22
|
npm install pulumi-namecheap
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
### yarn
|
|
26
|
+
|
|
25
27
|
```bash
|
|
26
28
|
yarn add pulumi-namecheap
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
### pnpm
|
|
32
|
+
|
|
30
33
|
```bash
|
|
31
34
|
pnpm add pulumi-namecheap
|
|
32
35
|
```
|
|
33
36
|
|
|
37
|
+
### bun
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
bun add pulumi-namecheap
|
|
41
|
+
```
|
|
42
|
+
|
|
34
43
|
## Configuration
|
|
35
44
|
|
|
36
45
|
Before using the provider, you need to configure authentication with your Namecheap API credentials.
|
|
@@ -51,6 +60,7 @@ Before using the provider, you need to configure authentication with your Namech
|
|
|
51
60
|
You can configure the provider in several ways:
|
|
52
61
|
|
|
53
62
|
#### 1. Using Pulumi Config
|
|
63
|
+
|
|
54
64
|
```bash
|
|
55
65
|
pulumi config set namecheap:apiKey your-api-key
|
|
56
66
|
pulumi config set namecheap:apiUser your-api-user
|
|
@@ -60,6 +70,7 @@ pulumi config set namecheap:useSandbox false # optional
|
|
|
60
70
|
```
|
|
61
71
|
|
|
62
72
|
#### 2. Using Environment Variables
|
|
73
|
+
|
|
63
74
|
```bash
|
|
64
75
|
export NAMECHEAP_API_KEY="your-api-key"
|
|
65
76
|
export NAMECHEAP_API_USER="your-api-user"
|
|
@@ -69,16 +80,17 @@ export NAMECHEAP_USE_SANDBOX="false" # optional
|
|
|
69
80
|
```
|
|
70
81
|
|
|
71
82
|
#### 3. Provider Constructor
|
|
83
|
+
|
|
72
84
|
```typescript
|
|
73
|
-
import * as namecheap from
|
|
74
|
-
|
|
75
|
-
const provider = new namecheap.Provider(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
})
|
|
85
|
+
import * as namecheap from 'pulumi-namecheap'
|
|
86
|
+
|
|
87
|
+
const provider = new namecheap.Provider('namecheap-provider', {
|
|
88
|
+
apiKey: 'your-api-key',
|
|
89
|
+
apiUser: 'your-api-user',
|
|
90
|
+
userName: 'your-username',
|
|
91
|
+
clientIp: 'your-client-ip',
|
|
92
|
+
useSandbox: false, // optional
|
|
93
|
+
})
|
|
82
94
|
```
|
|
83
95
|
|
|
84
96
|
## Usage
|
|
@@ -86,121 +98,125 @@ const provider = new namecheap.Provider("namecheap-provider", {
|
|
|
86
98
|
### Basic Domain Records Management
|
|
87
99
|
|
|
88
100
|
```typescript
|
|
89
|
-
import * as namecheap from
|
|
101
|
+
import * as namecheap from 'pulumi-namecheap'
|
|
90
102
|
|
|
91
103
|
// Create DNS records for your domain
|
|
92
|
-
const records = new namecheap.DomainRecords(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
})
|
|
104
|
+
const records = new namecheap.DomainRecords('my-domain-records', {
|
|
105
|
+
domain: 'example.com',
|
|
106
|
+
mode: 'OVERWRITE', // MERGE (default) or OVERWRITE
|
|
107
|
+
records: [
|
|
108
|
+
{
|
|
109
|
+
hostname: '@',
|
|
110
|
+
type: 'A',
|
|
111
|
+
address: '192.168.1.100',
|
|
112
|
+
ttl: 300,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
hostname: 'www',
|
|
116
|
+
type: 'CNAME',
|
|
117
|
+
address: 'example.com',
|
|
118
|
+
ttl: 300,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
hostname: '@',
|
|
122
|
+
type: 'MX',
|
|
123
|
+
address: 'mail.example.com',
|
|
124
|
+
mxPref: 10,
|
|
125
|
+
ttl: 300,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
hostname: '@',
|
|
129
|
+
type: 'TXT',
|
|
130
|
+
address: 'v=spf1 include:_spf.google.com ~all',
|
|
131
|
+
ttl: 300,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
})
|
|
123
135
|
```
|
|
124
136
|
|
|
125
137
|
### Advanced Configuration with Email Setup
|
|
126
138
|
|
|
127
139
|
```typescript
|
|
128
|
-
import * as namecheap from
|
|
129
|
-
|
|
130
|
-
const domainRecords = new namecheap.DomainRecords(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
})
|
|
140
|
+
import * as namecheap from 'pulumi-namecheap'
|
|
141
|
+
|
|
142
|
+
const domainRecords = new namecheap.DomainRecords('example-domain', {
|
|
143
|
+
domain: 'example.com',
|
|
144
|
+
emailType: 'GMAIL', // Configure Gmail for email
|
|
145
|
+
mode: 'MERGE',
|
|
146
|
+
records: [
|
|
147
|
+
// A record for root domain
|
|
148
|
+
{
|
|
149
|
+
hostname: '@',
|
|
150
|
+
type: 'A',
|
|
151
|
+
address: '203.0.113.1',
|
|
152
|
+
ttl: 1800,
|
|
153
|
+
},
|
|
154
|
+
// CNAME for www subdomain
|
|
155
|
+
{
|
|
156
|
+
hostname: 'www',
|
|
157
|
+
type: 'CNAME',
|
|
158
|
+
address: 'example.com',
|
|
159
|
+
ttl: 1800,
|
|
160
|
+
},
|
|
161
|
+
// Multiple MX records for redundancy
|
|
162
|
+
{
|
|
163
|
+
hostname: '@',
|
|
164
|
+
type: 'MX',
|
|
165
|
+
address: 'aspmx.l.google.com',
|
|
166
|
+
mxPref: 1,
|
|
167
|
+
ttl: 3600,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
hostname: '@',
|
|
171
|
+
type: 'MX',
|
|
172
|
+
address: 'alt1.aspmx.l.google.com',
|
|
173
|
+
mxPref: 5,
|
|
174
|
+
ttl: 3600,
|
|
175
|
+
},
|
|
176
|
+
// TXT record for domain verification
|
|
177
|
+
{
|
|
178
|
+
hostname: '@',
|
|
179
|
+
type: 'TXT',
|
|
180
|
+
address: 'google-site-verification=your-verification-string',
|
|
181
|
+
ttl: 3600,
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
})
|
|
173
185
|
|
|
174
186
|
// Export the domain records ID
|
|
175
|
-
export const domainRecordsId = domainRecords.domainRecordsId
|
|
187
|
+
export const domainRecordsId = domainRecords.domainRecordsId
|
|
176
188
|
```
|
|
177
189
|
|
|
178
190
|
### Using Custom Provider Instance
|
|
179
191
|
|
|
180
192
|
```typescript
|
|
181
|
-
import * as namecheap from
|
|
193
|
+
import * as namecheap from 'pulumi-namecheap'
|
|
182
194
|
|
|
183
195
|
// Create a custom provider for sandbox testing
|
|
184
|
-
const sandboxProvider = new namecheap.Provider(
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
})
|
|
196
|
+
const sandboxProvider = new namecheap.Provider('sandbox-provider', {
|
|
197
|
+
apiKey: 'your-sandbox-api-key',
|
|
198
|
+
apiUser: 'your-api-user',
|
|
199
|
+
userName: 'your-username',
|
|
200
|
+
clientIp: 'your-client-ip',
|
|
201
|
+
useSandbox: true,
|
|
202
|
+
})
|
|
191
203
|
|
|
192
204
|
// Use the custom provider
|
|
193
|
-
const testRecords = new namecheap.DomainRecords(
|
|
194
|
-
|
|
205
|
+
const testRecords = new namecheap.DomainRecords(
|
|
206
|
+
'test-records',
|
|
207
|
+
{
|
|
208
|
+
domain: 'test-domain.com',
|
|
195
209
|
records: [
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
210
|
+
{
|
|
211
|
+
hostname: 'test',
|
|
212
|
+
type: 'A',
|
|
213
|
+
address: '192.168.1.1',
|
|
214
|
+
ttl: 300,
|
|
215
|
+
},
|
|
202
216
|
],
|
|
203
|
-
},
|
|
217
|
+
},
|
|
218
|
+
{ provider: sandboxProvider },
|
|
219
|
+
)
|
|
204
220
|
```
|
|
205
221
|
|
|
206
222
|
## Resources
|
|
@@ -237,7 +253,7 @@ For detailed API documentation, see the generated documentation in your IDE or v
|
|
|
237
253
|
|
|
238
254
|
1. **Log in to Namecheap**: Go to your Namecheap account dashboard
|
|
239
255
|
2. **Enable API Access**: Navigate to Profile → Tools → Namecheap API Access
|
|
240
|
-
3. **Generate API Key**: Create a new API key for your application
|
|
256
|
+
3. **Generate API Key**: Create a new API key for your application
|
|
241
257
|
4. **Whitelist IP**: Add your client IP address to the whitelist
|
|
242
258
|
5. **Note Your Details**: Save your API key, username, and API user name
|
|
243
259
|
|
|
@@ -249,14 +265,14 @@ Namecheap provides a sandbox environment for testing. Set `useSandbox: true` in
|
|
|
249
265
|
|
|
250
266
|
You can find more examples in the [examples directory](./examples) or check out these common use cases:
|
|
251
267
|
|
|
252
|
-
- [Basic A/CNAME Records](./examples/basic-records)
|
|
268
|
+
- [Basic A/CNAME Records](./examples/basic-records)
|
|
253
269
|
- [Email Configuration](./examples/email-setup)
|
|
254
270
|
- [Multi-domain Management](./examples/multiple-domains)
|
|
255
271
|
- [Sandbox Testing](./examples/sandbox-testing)
|
|
256
272
|
|
|
257
273
|
## Support
|
|
258
274
|
|
|
259
|
-
This provider is a derived work of the [Terraform Provider](https://github.com/namecheap/terraform-provider-namecheap) distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/).
|
|
275
|
+
This provider is a derived work of the [Terraform Provider](https://github.com/namecheap/terraform-provider-namecheap) distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/).
|
|
260
276
|
|
|
261
277
|
If you encounter a bug or missing feature, please consult the source [`terraform-provider-namecheap` repo](https://github.com/namecheap/terraform-provider-namecheap/issues).
|
|
262
278
|
|
package/bin/domainRecords.js
CHANGED
|
@@ -16,7 +16,7 @@ class DomainRecords extends pulumi.CustomResource {
|
|
|
16
16
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
17
|
*/
|
|
18
18
|
static get(name, id, state, opts) {
|
|
19
|
-
return new DomainRecords(name, state,
|
|
19
|
+
return new DomainRecords(name, state, { ...opts, id: id });
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Returns true if the given object is an instance of DomainRecords. This is designed to work even
|
|
@@ -33,24 +33,24 @@ class DomainRecords extends pulumi.CustomResource {
|
|
|
33
33
|
opts = opts || {};
|
|
34
34
|
if (opts.id) {
|
|
35
35
|
const state = argsOrState;
|
|
36
|
-
resourceInputs["domain"] = state
|
|
37
|
-
resourceInputs["domainRecordsId"] = state
|
|
38
|
-
resourceInputs["emailType"] = state
|
|
39
|
-
resourceInputs["mode"] = state
|
|
40
|
-
resourceInputs["nameservers"] = state
|
|
41
|
-
resourceInputs["records"] = state
|
|
36
|
+
resourceInputs["domain"] = state?.domain;
|
|
37
|
+
resourceInputs["domainRecordsId"] = state?.domainRecordsId;
|
|
38
|
+
resourceInputs["emailType"] = state?.emailType;
|
|
39
|
+
resourceInputs["mode"] = state?.mode;
|
|
40
|
+
resourceInputs["nameservers"] = state?.nameservers;
|
|
41
|
+
resourceInputs["records"] = state?.records;
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
44
44
|
const args = argsOrState;
|
|
45
|
-
if (
|
|
45
|
+
if (args?.domain === undefined && !opts.urn) {
|
|
46
46
|
throw new Error("Missing required property 'domain'");
|
|
47
47
|
}
|
|
48
|
-
resourceInputs["domain"] = args
|
|
49
|
-
resourceInputs["domainRecordsId"] = args
|
|
50
|
-
resourceInputs["emailType"] = args
|
|
51
|
-
resourceInputs["mode"] = args
|
|
52
|
-
resourceInputs["nameservers"] = args
|
|
53
|
-
resourceInputs["records"] = args
|
|
48
|
+
resourceInputs["domain"] = args?.domain;
|
|
49
|
+
resourceInputs["domainRecordsId"] = args?.domainRecordsId;
|
|
50
|
+
resourceInputs["emailType"] = args?.emailType;
|
|
51
|
+
resourceInputs["mode"] = args?.mode;
|
|
52
|
+
resourceInputs["nameservers"] = args?.nameservers;
|
|
53
|
+
resourceInputs["records"] = args?.records;
|
|
54
54
|
}
|
|
55
55
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
56
56
|
super(DomainRecords.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
package/bin/domainRecords.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domainRecords.js","sourceRoot":"","sources":["../domainRecords.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"domainRecords.js","sourceRoot":"","sources":["../domainRecords.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IA0BD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YACV,MAAM,KAAK,GAAG,WAA6C,CAAC;YA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;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
|
package/bin/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export { DomainRecordsArgs, DomainRecordsState } from "./domainRecords";
|
|
2
2
|
export type DomainRecords = import("./domainRecords").DomainRecords;
|
|
3
3
|
export declare const DomainRecords: typeof import("./domainRecords").DomainRecords;
|
|
4
|
-
export
|
|
5
|
-
export type Provider = import("./provider").Provider;
|
|
6
|
-
export declare const Provider: typeof import("./provider").Provider;
|
|
4
|
+
export * from "./provider";
|
|
7
5
|
import * as config from "./config";
|
|
8
6
|
import * as types from "./types";
|
|
9
7
|
export { config, types, };
|
package/bin/index.js
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
4
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.types = exports.config = exports.
|
|
19
|
+
exports.types = exports.config = exports.DomainRecords = void 0;
|
|
6
20
|
const pulumi = require("@pulumi/pulumi");
|
|
7
21
|
const utilities = require("./utilities");
|
|
8
22
|
exports.DomainRecords = null;
|
|
9
23
|
utilities.lazyLoad(exports, ["DomainRecords"], () => require("./domainRecords"));
|
|
10
|
-
exports
|
|
11
|
-
|
|
24
|
+
__exportStar(require("./provider"), exports);
|
|
25
|
+
const provider_1 = require("./provider");
|
|
12
26
|
// Export sub-modules:
|
|
13
27
|
const config = require("./config");
|
|
14
28
|
exports.config = config;
|
|
@@ -32,7 +46,7 @@ pulumi.runtime.registerResourcePackage("namecheap", {
|
|
|
32
46
|
if (type !== "pulumi:providers:namecheap") {
|
|
33
47
|
throw new Error(`unknown provider type ${type}`);
|
|
34
48
|
}
|
|
35
|
-
return new
|
|
49
|
+
return new provider_1.Provider(name, undefined, { urn });
|
|
36
50
|
},
|
|
37
51
|
});
|
|
38
52
|
//# sourceMappingURL=index.js.map
|
package/bin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,aAAa,GAAmD,IAAW,CAAC;AACzF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEjF,6CAA2B;AAC3B,yCAAsC;AAGtC,sBAAsB;AACtB,mCAAmC;AAI/B,wBAAM;AAHV,iCAAiC;AAI7B,sBAAK;AAGT,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE,CAAC;YACX,KAAK,6CAA6C;gBAC9C,OAAO,IAAI,qBAAa,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC3D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,WAAW,EAAE;IAChD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,4BAA4B,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/bin/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pulumi-namecheap",
|
|
3
3
|
"description": "A Pulumi provider for managing Namecheap domain records and DNS configuration, dynamically bridged from the Terraform Namecheap provider with support for A, AAAA, CNAME, MX, TXT records and email services.",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.12",
|
|
5
5
|
"homepage": "https://github.com/hckhanh/pulumi-any-terraform",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"async-mutex": "0.5.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@pulumi/pulumi": "3.
|
|
24
|
-
"@types/node": "24.
|
|
23
|
+
"@pulumi/pulumi": "3.198.0",
|
|
24
|
+
"@types/node": "24.5.2",
|
|
25
25
|
"typescript": "5.9.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@pulumi/pulumi": ">=3.
|
|
28
|
+
"@pulumi/pulumi": ">=3.190.0 <4"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"bin",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"pulumi": {
|
|
52
52
|
"resource": true,
|
|
53
53
|
"name": "terraform-provider",
|
|
54
|
-
"version": "0.
|
|
54
|
+
"version": "0.14.0",
|
|
55
55
|
"parameterization": {
|
|
56
56
|
"name": "namecheap",
|
|
57
57
|
"version": "2.2.0",
|
package/bin/provider.d.ts
CHANGED
|
@@ -35,6 +35,12 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
35
35
|
* @param opts A bag of options that control this resource's behavior.
|
|
36
36
|
*/
|
|
37
37
|
constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
38
|
+
/**
|
|
39
|
+
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
|
40
|
+
*/
|
|
41
|
+
terraformConfig(): pulumi.Output<{
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}>;
|
|
38
44
|
}
|
|
39
45
|
/**
|
|
40
46
|
* The set of arguments for constructing a Provider resource.
|
|
@@ -61,3 +67,13 @@ export interface ProviderArgs {
|
|
|
61
67
|
*/
|
|
62
68
|
userName: pulumi.Input<string>;
|
|
63
69
|
}
|
|
70
|
+
export declare namespace Provider {
|
|
71
|
+
/**
|
|
72
|
+
* The results of the Provider.terraformConfig method.
|
|
73
|
+
*/
|
|
74
|
+
interface TerraformConfigResult {
|
|
75
|
+
readonly result: {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
package/bin/provider.js
CHANGED
|
@@ -33,24 +33,33 @@ class Provider extends pulumi.ProviderResource {
|
|
|
33
33
|
let resourceInputs = {};
|
|
34
34
|
opts = opts || {};
|
|
35
35
|
{
|
|
36
|
-
if (
|
|
36
|
+
if (args?.apiKey === undefined && !opts.urn) {
|
|
37
37
|
throw new Error("Missing required property 'apiKey'");
|
|
38
38
|
}
|
|
39
|
-
if (
|
|
39
|
+
if (args?.apiUser === undefined && !opts.urn) {
|
|
40
40
|
throw new Error("Missing required property 'apiUser'");
|
|
41
41
|
}
|
|
42
|
-
if (
|
|
42
|
+
if (args?.userName === undefined && !opts.urn) {
|
|
43
43
|
throw new Error("Missing required property 'userName'");
|
|
44
44
|
}
|
|
45
|
-
resourceInputs["apiKey"] = args
|
|
46
|
-
resourceInputs["apiUser"] = args
|
|
47
|
-
resourceInputs["clientIp"] = args
|
|
48
|
-
resourceInputs["useSandbox"] = pulumi.output(args
|
|
49
|
-
resourceInputs["userName"] = args
|
|
45
|
+
resourceInputs["apiKey"] = args?.apiKey;
|
|
46
|
+
resourceInputs["apiUser"] = args?.apiUser;
|
|
47
|
+
resourceInputs["clientIp"] = args?.clientIp;
|
|
48
|
+
resourceInputs["useSandbox"] = pulumi.output(args?.useSandbox).apply(JSON.stringify);
|
|
49
|
+
resourceInputs["userName"] = args?.userName;
|
|
50
50
|
}
|
|
51
51
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
52
52
|
super(Provider.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
|
56
|
+
*/
|
|
57
|
+
terraformConfig() {
|
|
58
|
+
const result = pulumi.runtime.call("pulumi:providers:namecheap/terraformConfig", {
|
|
59
|
+
"__self__": this,
|
|
60
|
+
}, this, utilities.getPackage());
|
|
61
|
+
return result.result;
|
|
62
|
+
}
|
|
54
63
|
}
|
|
55
64
|
exports.Provider = Provider;
|
|
56
65
|
/** @internal */
|
package/bin/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAmBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,CAAC;YACG,IAAI,
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAmBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,CAAC;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AS,CAAC,UAAU,EAAE,CAAC,CAAC;QACjC,OAAO,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;;AAtEL,4BAuEC;AAtEG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
|
package/bin/utilities.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
5
|
exports.getEnv = getEnv;
|
|
15
6
|
exports.getEnvBoolean = getEnvBoolean;
|
|
@@ -80,62 +71,58 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
80
71
|
}
|
|
81
72
|
}
|
|
82
73
|
/** @internal */
|
|
83
|
-
function callAsync(tok, props, res, opts) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return value;
|
|
102
|
-
});
|
|
74
|
+
async function callAsync(tok, props, res, opts) {
|
|
75
|
+
const o = runtime.call(tok, props, res);
|
|
76
|
+
const value = await o.promise(true /*withUnknowns*/);
|
|
77
|
+
const isKnown = await o.isKnown;
|
|
78
|
+
const isSecret = await o.isSecret;
|
|
79
|
+
const problem = !isKnown ? "an unknown value"
|
|
80
|
+
: isSecret ? "a secret value"
|
|
81
|
+
: undefined;
|
|
82
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
83
|
+
if (problem) {
|
|
84
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
85
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
86
|
+
}
|
|
87
|
+
// Extract a single property if requested.
|
|
88
|
+
if (opts && opts.property) {
|
|
89
|
+
return value[opts.property];
|
|
90
|
+
}
|
|
91
|
+
return value;
|
|
103
92
|
}
|
|
104
93
|
const _packageLock = new mutex.Mutex();
|
|
105
94
|
var _packageRef = undefined;
|
|
106
|
-
function getPackage() {
|
|
107
|
-
|
|
95
|
+
async function getPackage() {
|
|
96
|
+
if (_packageRef === undefined) {
|
|
97
|
+
if (!runtime.supportsParameterization()) {
|
|
98
|
+
throw new Error("The Pulumi CLI does not support parameterization. Please update the Pulumi CLI");
|
|
99
|
+
}
|
|
100
|
+
await _packageLock.acquire();
|
|
108
101
|
if (_packageRef === undefined) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
reject(err);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
resolve(resp);
|
|
131
|
-
}
|
|
132
|
-
});
|
|
102
|
+
const monitor = runtime.getMonitor();
|
|
103
|
+
const params = new resproto.Parameterization();
|
|
104
|
+
params.setName("namecheap");
|
|
105
|
+
params.setVersion("2.2.0");
|
|
106
|
+
params.setValue(Uint8Array.from(atob("eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="), c => c.charCodeAt(0)));
|
|
107
|
+
const req = new resproto.RegisterPackageRequest();
|
|
108
|
+
req.setName("terraform-provider");
|
|
109
|
+
req.setVersion("0.14.0");
|
|
110
|
+
req.setDownloadUrl("");
|
|
111
|
+
req.setParameterization(params);
|
|
112
|
+
const resp = await new Promise((resolve, reject) => {
|
|
113
|
+
monitor.registerPackage(req, (err, resp) => {
|
|
114
|
+
if (err) {
|
|
115
|
+
reject(err);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
resolve(resp);
|
|
119
|
+
}
|
|
133
120
|
});
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
_packageLock.release();
|
|
121
|
+
});
|
|
122
|
+
_packageRef = resp.getRef();
|
|
137
123
|
}
|
|
138
|
-
|
|
139
|
-
}
|
|
124
|
+
_packageLock.release();
|
|
125
|
+
}
|
|
126
|
+
return _packageRef;
|
|
140
127
|
}
|
|
141
128
|
//# sourceMappingURL=utilities.js.map
|
package/bin/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAQjF,wBAQC;AAED,sCAaC;AAED,oCASC;AAED,gCAQC;AAGD,oDAEC;AAGD,4BASC;AAGD,8BAwBC;AAID,gCAiCC;AAnID,6DAA6D;AAC7D,qCAAqC;AAErC,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,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E,CAAC,CAAC;YACvB,GAAG,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;YAChC,MAAM,IAAI,GAAS,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACxD,OAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,GAAQ,EAAE,IAAS,EAAE,EAAE;oBACrD,IAAI,GAAG,EAAE,CAAC;wBACT,MAAM,CAAC,GAAG,CAAC,CAAC;oBACb,CAAC;yBAAM,CAAC;wBACP,OAAO,CAAC,IAAI,CAAC,CAAC;oBACf,CAAC;gBACF,CAAC,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;YACH,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAC7B,CAAC;QACD,YAAY,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IACD,OAAO,WAAqB,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pulumi-namecheap",
|
|
3
3
|
"description": "A Pulumi provider for managing Namecheap domain records and DNS configuration, dynamically bridged from the Terraform Namecheap provider with support for A, AAAA, CNAME, MX, TXT records and email services.",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.12",
|
|
5
5
|
"homepage": "https://github.com/hckhanh/pulumi-any-terraform",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"async-mutex": "0.5.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@pulumi/pulumi": "3.
|
|
24
|
-
"@types/node": "24.
|
|
23
|
+
"@pulumi/pulumi": "3.198.0",
|
|
24
|
+
"@types/node": "24.5.2",
|
|
25
25
|
"typescript": "5.9.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@pulumi/pulumi": ">=3.
|
|
28
|
+
"@pulumi/pulumi": ">=3.190.0 <4"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"bin",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"pulumi": {
|
|
52
52
|
"resource": true,
|
|
53
53
|
"name": "terraform-provider",
|
|
54
|
-
"version": "0.
|
|
54
|
+
"version": "0.14.0",
|
|
55
55
|
"parameterization": {
|
|
56
56
|
"name": "namecheap",
|
|
57
57
|
"version": "2.2.0",
|