pulumi-namecheap 2.2.10 → 2.2.11
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/bin/config/index.d.ts +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +20 -0
- package/bin/config/vars.js +37 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/domainRecords.d.ts +83 -0
- package/bin/domainRecords.js +62 -0
- package/bin/domainRecords.js.map +1 -0
- package/bin/index.d.ts +9 -0
- package/bin/index.js +38 -0
- package/bin/index.js.map +1 -0
- package/bin/package.json +61 -0
- package/bin/provider.d.ts +63 -0
- package/bin/provider.js +58 -0
- package/bin/provider.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +23 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +22 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +5 -0
- package/bin/utilities.js +141 -0
- package/bin/utilities.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vars";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
// Export members:
|
|
20
|
+
__exportStar(require("./vars"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The namecheap API key
|
|
3
|
+
*/
|
|
4
|
+
export declare const apiKey: string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* A registered api user for namecheap
|
|
7
|
+
*/
|
|
8
|
+
export declare const apiUser: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Client IP address
|
|
11
|
+
*/
|
|
12
|
+
export declare const clientIp: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Use sandbox API endpoints
|
|
15
|
+
*/
|
|
16
|
+
export declare const useSandbox: boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* A registered user name for namecheap
|
|
19
|
+
*/
|
|
20
|
+
export declare const userName: string | undefined;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const __config = new pulumi.Config("namecheap");
|
|
7
|
+
Object.defineProperty(exports, "apiKey", {
|
|
8
|
+
get() {
|
|
9
|
+
return __config.get("apiKey");
|
|
10
|
+
},
|
|
11
|
+
enumerable: true,
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "apiUser", {
|
|
14
|
+
get() {
|
|
15
|
+
return __config.get("apiUser");
|
|
16
|
+
},
|
|
17
|
+
enumerable: true,
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "clientIp", {
|
|
20
|
+
get() {
|
|
21
|
+
return __config.get("clientIp");
|
|
22
|
+
},
|
|
23
|
+
enumerable: true,
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "useSandbox", {
|
|
26
|
+
get() {
|
|
27
|
+
return __config.getObject("useSandbox");
|
|
28
|
+
},
|
|
29
|
+
enumerable: true,
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "userName", {
|
|
32
|
+
get() {
|
|
33
|
+
return __config.get("userName");
|
|
34
|
+
},
|
|
35
|
+
enumerable: true,
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAMhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAU,YAAY,CAAC,CAAC;IACrD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class DomainRecords extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing DomainRecords resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainRecordsState, opts?: pulumi.CustomResourceOptions): DomainRecords;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of DomainRecords. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is DomainRecords;
|
|
20
|
+
/**
|
|
21
|
+
* Purchased available domain name on your account
|
|
22
|
+
*/
|
|
23
|
+
readonly domain: pulumi.Output<string>;
|
|
24
|
+
readonly domainRecordsId: pulumi.Output<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Possible values: NONE, MXE, MX, FWD, OX, GMAIL
|
|
27
|
+
*/
|
|
28
|
+
readonly emailType: pulumi.Output<string | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Possible values: MERGE (default), OVERWRITE
|
|
31
|
+
*/
|
|
32
|
+
readonly mode: pulumi.Output<string | undefined>;
|
|
33
|
+
readonly nameservers: pulumi.Output<string[] | undefined>;
|
|
34
|
+
readonly records: pulumi.Output<outputs.DomainRecordsRecord[] | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Create a DomainRecords resource with the given unique name, arguments, and options.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resource.
|
|
39
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
40
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
41
|
+
*/
|
|
42
|
+
constructor(name: string, args: DomainRecordsArgs, opts?: pulumi.CustomResourceOptions);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Input properties used for looking up and filtering DomainRecords resources.
|
|
46
|
+
*/
|
|
47
|
+
export interface DomainRecordsState {
|
|
48
|
+
/**
|
|
49
|
+
* Purchased available domain name on your account
|
|
50
|
+
*/
|
|
51
|
+
domain?: pulumi.Input<string>;
|
|
52
|
+
domainRecordsId?: pulumi.Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Possible values: NONE, MXE, MX, FWD, OX, GMAIL
|
|
55
|
+
*/
|
|
56
|
+
emailType?: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Possible values: MERGE (default), OVERWRITE
|
|
59
|
+
*/
|
|
60
|
+
mode?: pulumi.Input<string>;
|
|
61
|
+
nameservers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
62
|
+
records?: pulumi.Input<pulumi.Input<inputs.DomainRecordsRecord>[]>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The set of arguments for constructing a DomainRecords resource.
|
|
66
|
+
*/
|
|
67
|
+
export interface DomainRecordsArgs {
|
|
68
|
+
/**
|
|
69
|
+
* Purchased available domain name on your account
|
|
70
|
+
*/
|
|
71
|
+
domain: pulumi.Input<string>;
|
|
72
|
+
domainRecordsId?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Possible values: NONE, MXE, MX, FWD, OX, GMAIL
|
|
75
|
+
*/
|
|
76
|
+
emailType?: pulumi.Input<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Possible values: MERGE (default), OVERWRITE
|
|
79
|
+
*/
|
|
80
|
+
mode?: pulumi.Input<string>;
|
|
81
|
+
nameservers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
82
|
+
records?: pulumi.Input<pulumi.Input<inputs.DomainRecordsRecord>[]>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DomainRecords = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class DomainRecords extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing DomainRecords resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new DomainRecords(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of DomainRecords. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === DomainRecords.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["domain"] = state ? state.domain : undefined;
|
|
37
|
+
resourceInputs["domainRecordsId"] = state ? state.domainRecordsId : undefined;
|
|
38
|
+
resourceInputs["emailType"] = state ? state.emailType : undefined;
|
|
39
|
+
resourceInputs["mode"] = state ? state.mode : undefined;
|
|
40
|
+
resourceInputs["nameservers"] = state ? state.nameservers : undefined;
|
|
41
|
+
resourceInputs["records"] = state ? state.records : undefined;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const args = argsOrState;
|
|
45
|
+
if ((!args || args.domain === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'domain'");
|
|
47
|
+
}
|
|
48
|
+
resourceInputs["domain"] = args ? args.domain : undefined;
|
|
49
|
+
resourceInputs["domainRecordsId"] = args ? args.domainRecordsId : undefined;
|
|
50
|
+
resourceInputs["emailType"] = args ? args.emailType : undefined;
|
|
51
|
+
resourceInputs["mode"] = args ? args.mode : undefined;
|
|
52
|
+
resourceInputs["nameservers"] = args ? args.nameservers : undefined;
|
|
53
|
+
resourceInputs["records"] = args ? args.records : undefined;
|
|
54
|
+
}
|
|
55
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
56
|
+
super(DomainRecords.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.DomainRecords = DomainRecords;
|
|
60
|
+
/** @internal */
|
|
61
|
+
DomainRecords.__pulumiType = 'namecheap:index/domainRecords:DomainRecords';
|
|
62
|
+
//# sourceMappingURL=domainRecords.js.map
|
|
@@ -0,0 +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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,iBAAi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AAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;QAChE,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAChH,CAAC;;AA7EL,sCA8EC;AAhEG,gBAAgB;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
|
package/bin/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { DomainRecordsArgs, DomainRecordsState } from "./domainRecords";
|
|
2
|
+
export type DomainRecords = import("./domainRecords").DomainRecords;
|
|
3
|
+
export declare const DomainRecords: typeof import("./domainRecords").DomainRecords;
|
|
4
|
+
export { ProviderArgs } from "./provider";
|
|
5
|
+
export type Provider = import("./provider").Provider;
|
|
6
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
7
|
+
import * as config from "./config";
|
|
8
|
+
import * as types from "./types";
|
|
9
|
+
export { config, types, };
|
package/bin/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.types = exports.config = exports.Provider = exports.DomainRecords = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
exports.DomainRecords = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["DomainRecords"], () => require("./domainRecords"));
|
|
10
|
+
exports.Provider = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
12
|
+
// Export sub-modules:
|
|
13
|
+
const config = require("./config");
|
|
14
|
+
exports.config = config;
|
|
15
|
+
const types = require("./types");
|
|
16
|
+
exports.types = types;
|
|
17
|
+
const _module = {
|
|
18
|
+
version: utilities.getVersion(),
|
|
19
|
+
construct: (name, type, urn) => {
|
|
20
|
+
switch (type) {
|
|
21
|
+
case "namecheap:index/domainRecords:DomainRecords":
|
|
22
|
+
return new exports.DomainRecords(name, undefined, { urn });
|
|
23
|
+
default:
|
|
24
|
+
throw new Error(`unknown resource type ${type}`);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
pulumi.runtime.registerResourceModule("namecheap", "index/domainRecords", _module);
|
|
29
|
+
pulumi.runtime.registerResourcePackage("namecheap", {
|
|
30
|
+
version: utilities.getVersion(),
|
|
31
|
+
constructProvider: (name, type, urn) => {
|
|
32
|
+
if (type !== "pulumi:providers:namecheap") {
|
|
33
|
+
throw new Error(`unknown provider type ${type}`);
|
|
34
|
+
}
|
|
35
|
+
return new exports.Provider(name, undefined, { urn });
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
package/bin/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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;AAIpE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,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,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/bin/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pulumi-namecheap",
|
|
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.11",
|
|
5
|
+
"homepage": "https://github.com/hckhanh/pulumi-any-terraform",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/hckhanh/pulumi-any-terraform.git",
|
|
9
|
+
"directory": "packages/namecheap"
|
|
10
|
+
},
|
|
11
|
+
"private": false,
|
|
12
|
+
"main": "./bin/index.js",
|
|
13
|
+
"module": "./bin/index.js",
|
|
14
|
+
"types": "./bin/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./bin/index.js",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"async-mutex": "0.5.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@pulumi/pulumi": "3.191.0",
|
|
24
|
+
"@types/node": "24.3.0",
|
|
25
|
+
"typescript": "5.9.2"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@pulumi/pulumi": ">=3.191.0"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"bin",
|
|
32
|
+
"README.md"
|
|
33
|
+
],
|
|
34
|
+
"keywords": [
|
|
35
|
+
"pulumi",
|
|
36
|
+
"namecheap",
|
|
37
|
+
"dns",
|
|
38
|
+
"domain",
|
|
39
|
+
"records",
|
|
40
|
+
"terraform",
|
|
41
|
+
"provider",
|
|
42
|
+
"infrastructure",
|
|
43
|
+
"domain-management",
|
|
44
|
+
"dns-records",
|
|
45
|
+
"email-service"
|
|
46
|
+
],
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"pulumi": {
|
|
52
|
+
"resource": true,
|
|
53
|
+
"name": "terraform-provider",
|
|
54
|
+
"version": "0.8.0",
|
|
55
|
+
"parameterization": {
|
|
56
|
+
"name": "namecheap",
|
|
57
|
+
"version": "2.2.0",
|
|
58
|
+
"value": "eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The provider type for the namecheap package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
/**
|
|
15
|
+
* The namecheap API key
|
|
16
|
+
*/
|
|
17
|
+
readonly apiKey: pulumi.Output<string>;
|
|
18
|
+
/**
|
|
19
|
+
* A registered api user for namecheap
|
|
20
|
+
*/
|
|
21
|
+
readonly apiUser: pulumi.Output<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Client IP address
|
|
24
|
+
*/
|
|
25
|
+
readonly clientIp: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* A registered user name for namecheap
|
|
28
|
+
*/
|
|
29
|
+
readonly userName: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The set of arguments for constructing a Provider resource.
|
|
41
|
+
*/
|
|
42
|
+
export interface ProviderArgs {
|
|
43
|
+
/**
|
|
44
|
+
* The namecheap API key
|
|
45
|
+
*/
|
|
46
|
+
apiKey: pulumi.Input<string>;
|
|
47
|
+
/**
|
|
48
|
+
* A registered api user for namecheap
|
|
49
|
+
*/
|
|
50
|
+
apiUser: pulumi.Input<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Client IP address
|
|
53
|
+
*/
|
|
54
|
+
clientIp?: pulumi.Input<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Use sandbox API endpoints
|
|
57
|
+
*/
|
|
58
|
+
useSandbox?: pulumi.Input<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* A registered user name for namecheap
|
|
61
|
+
*/
|
|
62
|
+
userName: pulumi.Input<string>;
|
|
63
|
+
}
|
package/bin/provider.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The provider type for the namecheap package. By default, resources use package-wide configuration
|
|
10
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
11
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
12
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
|
+
*/
|
|
14
|
+
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resource.
|
|
29
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
30
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
31
|
+
*/
|
|
32
|
+
constructor(name, args, opts) {
|
|
33
|
+
let resourceInputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
{
|
|
36
|
+
if ((!args || args.apiKey === undefined) && !opts.urn) {
|
|
37
|
+
throw new Error("Missing required property 'apiKey'");
|
|
38
|
+
}
|
|
39
|
+
if ((!args || args.apiUser === undefined) && !opts.urn) {
|
|
40
|
+
throw new Error("Missing required property 'apiUser'");
|
|
41
|
+
}
|
|
42
|
+
if ((!args || args.userName === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'userName'");
|
|
44
|
+
}
|
|
45
|
+
resourceInputs["apiKey"] = args ? args.apiKey : undefined;
|
|
46
|
+
resourceInputs["apiUser"] = args ? args.apiUser : undefined;
|
|
47
|
+
resourceInputs["clientIp"] = args ? args.clientIp : undefined;
|
|
48
|
+
resourceInputs["useSandbox"] = pulumi.output(args ? args.useSandbox : undefined).apply(JSON.stringify);
|
|
49
|
+
resourceInputs["userName"] = args ? args.userName : undefined;
|
|
50
|
+
}
|
|
51
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
52
|
+
super(Provider.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Provider = Provider;
|
|
56
|
+
/** @internal */
|
|
57
|
+
Provider.__pulumiType = 'namecheap';
|
|
58
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +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,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACpD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;YAC1D,CAAC;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACrD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;YAC3D,CAAC;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACtD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;YAC5D,CAAC;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACvG,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAClE,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3G,CAAC;;AA5DL,4BA6DC;AA5DG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.output = exports.input = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const input = require("./input");
|
|
8
|
+
exports.input = input;
|
|
9
|
+
const output = require("./output");
|
|
10
|
+
exports.output = output;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export interface DomainRecordsRecord {
|
|
3
|
+
/**
|
|
4
|
+
* Possible values are URL or IP address. The value for this parameter is based on record type
|
|
5
|
+
*/
|
|
6
|
+
address: pulumi.Input<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Sub-domain/hostname to create the record for
|
|
9
|
+
*/
|
|
10
|
+
hostname: pulumi.Input<string>;
|
|
11
|
+
/**
|
|
12
|
+
* MX preference for host. Applicable for MX records only
|
|
13
|
+
*/
|
|
14
|
+
mxPref?: pulumi.Input<number>;
|
|
15
|
+
/**
|
|
16
|
+
* Time to live for all record types. Possible values: any value between 60 to 60000
|
|
17
|
+
*/
|
|
18
|
+
ttl?: pulumi.Input<number>;
|
|
19
|
+
/**
|
|
20
|
+
* Possible values: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME
|
|
21
|
+
*/
|
|
22
|
+
type: pulumi.Input<string>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DomainRecordsRecord {
|
|
2
|
+
/**
|
|
3
|
+
* Possible values are URL or IP address. The value for this parameter is based on record type
|
|
4
|
+
*/
|
|
5
|
+
address: string;
|
|
6
|
+
/**
|
|
7
|
+
* Sub-domain/hostname to create the record for
|
|
8
|
+
*/
|
|
9
|
+
hostname: string;
|
|
10
|
+
/**
|
|
11
|
+
* MX preference for host. Applicable for MX records only
|
|
12
|
+
*/
|
|
13
|
+
mxPref?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Time to live for all record types. Possible values: any value between 60 to 60000
|
|
16
|
+
*/
|
|
17
|
+
ttl?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Possible values: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME
|
|
20
|
+
*/
|
|
21
|
+
type: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
|
5
|
+
export declare function getPackage(): Promise<string | undefined>;
|
package/bin/utilities.js
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getEnv = getEnv;
|
|
15
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
16
|
+
exports.getEnvNumber = getEnvNumber;
|
|
17
|
+
exports.getVersion = getVersion;
|
|
18
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
19
|
+
exports.lazyLoad = lazyLoad;
|
|
20
|
+
exports.callAsync = callAsync;
|
|
21
|
+
exports.getPackage = getPackage;
|
|
22
|
+
const resproto = require("@pulumi/pulumi/proto/resource_pb");
|
|
23
|
+
const mutex = require("async-mutex");
|
|
24
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
25
|
+
function getEnv(...vars) {
|
|
26
|
+
for (const v of vars) {
|
|
27
|
+
const value = process.env[v];
|
|
28
|
+
if (value) {
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
function getEnvBoolean(...vars) {
|
|
35
|
+
const s = getEnv(...vars);
|
|
36
|
+
if (s !== undefined) {
|
|
37
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
38
|
+
// Terraform uses internally when parsing boolean values.
|
|
39
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
function getEnvNumber(...vars) {
|
|
49
|
+
const s = getEnv(...vars);
|
|
50
|
+
if (s !== undefined) {
|
|
51
|
+
const f = parseFloat(s);
|
|
52
|
+
if (!isNaN(f)) {
|
|
53
|
+
return f;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
function getVersion() {
|
|
59
|
+
let version = require('./package.json').version;
|
|
60
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
61
|
+
// If there is a v, strip it off.
|
|
62
|
+
if (version.indexOf('v') === 0) {
|
|
63
|
+
version = version.slice(1);
|
|
64
|
+
}
|
|
65
|
+
return version;
|
|
66
|
+
}
|
|
67
|
+
/** @internal */
|
|
68
|
+
function resourceOptsDefaults() {
|
|
69
|
+
return { version: getVersion() };
|
|
70
|
+
}
|
|
71
|
+
/** @internal */
|
|
72
|
+
function lazyLoad(exports, props, loadModule) {
|
|
73
|
+
for (let property of props) {
|
|
74
|
+
Object.defineProperty(exports, property, {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () {
|
|
77
|
+
return loadModule()[property];
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/** @internal */
|
|
83
|
+
function callAsync(tok, props, res, opts) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const o = runtime.call(tok, props, res);
|
|
86
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
87
|
+
const isKnown = yield o.isKnown;
|
|
88
|
+
const isSecret = yield o.isSecret;
|
|
89
|
+
const problem = !isKnown ? "an unknown value"
|
|
90
|
+
: isSecret ? "a secret value"
|
|
91
|
+
: undefined;
|
|
92
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
93
|
+
if (problem) {
|
|
94
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
95
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
96
|
+
}
|
|
97
|
+
// Extract a single property if requested.
|
|
98
|
+
if (opts && opts.property) {
|
|
99
|
+
return value[opts.property];
|
|
100
|
+
}
|
|
101
|
+
return value;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
const _packageLock = new mutex.Mutex();
|
|
105
|
+
var _packageRef = undefined;
|
|
106
|
+
function getPackage() {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
if (_packageRef === undefined) {
|
|
109
|
+
if (!runtime.supportsParameterization()) {
|
|
110
|
+
throw new Error("The Pulumi CLI does not support parameterization. Please update the Pulumi CLI");
|
|
111
|
+
}
|
|
112
|
+
yield _packageLock.acquire();
|
|
113
|
+
if (_packageRef === undefined) {
|
|
114
|
+
const monitor = runtime.getMonitor();
|
|
115
|
+
const params = new resproto.Parameterization();
|
|
116
|
+
params.setName("namecheap");
|
|
117
|
+
params.setVersion("2.2.0");
|
|
118
|
+
params.setValue(Uint8Array.from(atob("eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="), c => c.charCodeAt(0)));
|
|
119
|
+
const req = new resproto.RegisterPackageRequest();
|
|
120
|
+
req.setName("terraform-provider");
|
|
121
|
+
req.setVersion("0.8.0");
|
|
122
|
+
req.setDownloadUrl("");
|
|
123
|
+
req.setParameterization(params);
|
|
124
|
+
const resp = yield new Promise((resolve, reject) => {
|
|
125
|
+
monitor.registerPackage(req, (err, resp) => {
|
|
126
|
+
if (err) {
|
|
127
|
+
reject(err);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
resolve(resp);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
_packageRef = resp.getRef();
|
|
135
|
+
}
|
|
136
|
+
_packageLock.release();
|
|
137
|
+
}
|
|
138
|
+
return _packageRef;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=utilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,IAAI,IAAI,EAAE,CAAC;QACnB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE,CAAC;YACR,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;QAClB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;YAC3E,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;YAC9E,OAAO,KAAK,CAAC;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AAO,CAAC,WAAW,CAAC,CAAC;gBAC5B,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,8GAA8G,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE7K,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,sBAAsB,EAAE,CAAC;gBAClD,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;gBAClC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACxB,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;gBACvB,GAAG,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;gBAChC,MAAM,IAAI,GAAS,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBACxD,OAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,GAAQ,EAAE,IAAS,EAAE,EAAE;wBACrD,IAAI,GAAG,EAAE,CAAC;4BACT,MAAM,CAAC,GAAG,CAAC,CAAC;wBACb,CAAC;6BAAM,CAAC;4BACP,OAAO,CAAC,IAAI,CAAC,CAAC;wBACf,CAAC;oBACF,CAAC,CAAC,CAAC;gBACJ,CAAC,CAAC,CAAC;gBACH,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC7B,CAAC;YACD,YAAY,CAAC,OAAO,EAAE,CAAC;QACxB,CAAC;QACD,OAAO,WAAqB,CAAC;IAC9B,CAAC;CAAA"}
|
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.11",
|
|
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.191.0",
|
|
24
|
+
"@types/node": "24.3.0",
|
|
25
25
|
"typescript": "5.9.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@pulumi/pulumi": ">=3.
|
|
28
|
+
"@pulumi/pulumi": ">=3.191.0"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"bin",
|