@pulumi-labs/vonage 0.0.1-dev → 0.1.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/README.md +1 -0
- package/bin/apiSecret.d.ts +62 -0
- package/bin/apiSecret.d.ts.map +1 -0
- package/bin/apiSecret.js +92 -0
- package/bin/apiSecret.js.map +1 -0
- package/bin/application.d.ts +136 -0
- package/bin/application.d.ts.map +1 -0
- package/bin/application.js +110 -0
- package/bin/application.js.map +1 -0
- package/bin/config/index.d.ts +2 -0
- package/bin/config/index.d.ts.map +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +25 -0
- package/bin/config/vars.d.ts.map +1 -0
- package/bin/config/vars.js +67 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/getAccountBalance.d.ts +22 -0
- package/bin/getAccountBalance.d.ts.map +1 -0
- package/bin/getAccountBalance.js +48 -0
- package/bin/getAccountBalance.js.map +1 -0
- package/bin/getApiSecret.d.ts +44 -0
- package/bin/getApiSecret.d.ts.map +1 -0
- package/bin/getApiSecret.js +53 -0
- package/bin/getApiSecret.js.map +1 -0
- package/bin/getApiSecrets.d.ts +33 -0
- package/bin/getApiSecrets.d.ts.map +1 -0
- package/bin/getApiSecrets.js +53 -0
- package/bin/getApiSecrets.js.map +1 -0
- package/bin/getApplication.d.ts +48 -0
- package/bin/getApplication.d.ts.map +1 -0
- package/bin/getApplication.js +55 -0
- package/bin/getApplication.js.map +1 -0
- package/bin/getApplications.d.ts +29 -0
- package/bin/getApplications.d.ts.map +1 -0
- package/bin/getApplications.js +53 -0
- package/bin/getApplications.js.map +1 -0
- package/bin/getAvailableNumbers.d.ts +81 -0
- package/bin/getAvailableNumbers.d.ts.map +1 -0
- package/bin/getAvailableNumbers.js +63 -0
- package/bin/getAvailableNumbers.js.map +1 -0
- package/bin/getNumber.d.ts +72 -0
- package/bin/getNumber.d.ts.map +1 -0
- package/bin/getNumber.js +53 -0
- package/bin/getNumber.js.map +1 -0
- package/bin/getNumbers.d.ts +61 -0
- package/bin/getNumbers.d.ts.map +1 -0
- package/bin/getNumbers.js +61 -0
- package/bin/getNumbers.js.map +1 -0
- package/bin/getSubAccount.d.ts +56 -0
- package/bin/getSubAccount.d.ts.map +1 -0
- package/bin/getSubAccount.js +51 -0
- package/bin/getSubAccount.js.map +1 -0
- package/bin/getSubAccounts.d.ts +33 -0
- package/bin/getSubAccounts.d.ts.map +1 -0
- package/bin/getSubAccounts.js +53 -0
- package/bin/getSubAccounts.js.map +1 -0
- package/bin/getVerifyTemplate.d.ts +44 -0
- package/bin/getVerifyTemplate.d.ts.map +1 -0
- package/bin/getVerifyTemplate.js +55 -0
- package/bin/getVerifyTemplate.js.map +1 -0
- package/bin/getVerifyTemplateFragment.d.ts +76 -0
- package/bin/getVerifyTemplateFragment.d.ts.map +1 -0
- package/bin/getVerifyTemplateFragment.js +57 -0
- package/bin/getVerifyTemplateFragment.js.map +1 -0
- package/bin/index.d.ts +61 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +117 -0
- package/bin/index.js.map +1 -0
- package/bin/number.d.ts +130 -0
- package/bin/number.d.ts.map +1 -0
- package/bin/number.js +121 -0
- package/bin/number.js.map +1 -0
- package/bin/package.json +38 -0
- package/bin/provider.d.ts +70 -0
- package/bin/provider.d.ts.map +1 -0
- package/bin/provider.js +69 -0
- package/bin/provider.js.map +1 -0
- package/bin/subAccount.d.ts +90 -0
- package/bin/subAccount.d.ts.map +1 -0
- package/bin/subAccount.js +100 -0
- package/bin/subAccount.js.map +1 -0
- package/bin/types/index.d.ts +4 -0
- package/bin/types/index.d.ts.map +1 -0
- package/bin/types/index.js +34 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +219 -0
- package/bin/types/input.d.ts.map +1 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +340 -0
- package/bin/types/output.d.ts.map +1 -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.d.ts.map +1 -0
- package/bin/utilities.js +114 -0
- package/bin/utilities.js.map +1 -0
- package/bin/verifyTemplate.d.ts +54 -0
- package/bin/verifyTemplate.d.ts.map +1 -0
- package/bin/verifyTemplate.js +86 -0
- package/bin/verifyTemplate.js.map +1 -0
- package/bin/verifyTemplateFragment.d.ts +78 -0
- package/bin/verifyTemplateFragment.d.ts.map +1 -0
- package/bin/verifyTemplateFragment.js +105 -0
- package/bin/verifyTemplateFragment.js.map +1 -0
- package/package.json +38 -1
package/bin/provider.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Provider = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
class Provider extends pulumi.ProviderResource {
|
|
32
|
+
/** @internal */
|
|
33
|
+
static __pulumiType = 'vonage';
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
36
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
37
|
+
*/
|
|
38
|
+
static isInstance(obj) {
|
|
39
|
+
if (obj === undefined || obj === null) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resource.
|
|
48
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
49
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
50
|
+
*/
|
|
51
|
+
constructor(name, args, opts) {
|
|
52
|
+
let resourceInputs = {};
|
|
53
|
+
opts = opts || {};
|
|
54
|
+
{
|
|
55
|
+
resourceInputs["apiBaseUrl"] = (args?.apiBaseUrl) ?? utilities.getEnv("VONAGE_API_BASE_URL");
|
|
56
|
+
resourceInputs["apiKey"] = (args?.apiKey) ?? utilities.getEnv("VONAGE_API_KEY");
|
|
57
|
+
resourceInputs["apiSecret"] = (args?.apiSecret ? pulumi.secret(args.apiSecret) : undefined) ?? utilities.getEnv("VONAGE_API_SECRET");
|
|
58
|
+
resourceInputs["applicationId"] = (args?.applicationId) ?? utilities.getEnv("VONAGE_APPLICATION_ID");
|
|
59
|
+
resourceInputs["privateKey"] = (args?.privateKey ? pulumi.secret(args.privateKey) : undefined) ?? utilities.getEnv("VONAGE_PRIVATE_KEY");
|
|
60
|
+
resourceInputs["restBaseUrl"] = (args?.restBaseUrl) ?? utilities.getEnv("VONAGE_REST_BASE_URL");
|
|
61
|
+
}
|
|
62
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
63
|
+
const secretOpts = { additionalSecretOutputs: ["apiSecret", "privateKey"] };
|
|
64
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
65
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.Provider = Provider;
|
|
69
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IACjD,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,QAAQ,CAAC;IAE/C;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IA2BD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,SAAS,C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ulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A Vonage subaccount under the primary account. Subaccounts cannot be deleted through the API, only suspended (see suspendOnDelete). Requires primary account credentials.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SubAccount extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing SubAccount resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SubAccount;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of SubAccount. 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 SubAccount;
|
|
20
|
+
/**
|
|
21
|
+
* The subaccount API key (also the resource ID).
|
|
22
|
+
*/
|
|
23
|
+
readonly apiKey: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* ISO 8601 creation timestamp.
|
|
26
|
+
*/
|
|
27
|
+
readonly createdAt: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The subaccount API secret as returned by Vonage at creation. Stored as a secret.
|
|
30
|
+
*/
|
|
31
|
+
readonly generatedSecret: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Subaccount name (1-80 characters).
|
|
34
|
+
*/
|
|
35
|
+
readonly name: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* API key of the primary account that owns this subaccount.
|
|
38
|
+
*/
|
|
39
|
+
readonly primaryAccountApiKey: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* API secret for the subaccount, set at creation only (8-25 characters with at least one lowercase letter, one uppercase letter and one digit). When omitted Vonage generates one, exposed as the generatedSecret output. Create-only: the Vonage API cannot change it on an existing subaccount, so later changes are ignored (no diff, no update); manage rotation with the ApiSecret resource.
|
|
42
|
+
*/
|
|
43
|
+
readonly secret: pulumi.Output<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Vonage cannot delete subaccounts. When true, destroying this resource suspends the subaccount; when false or unset it is only removed from Pulumi state and stays active.
|
|
46
|
+
*/
|
|
47
|
+
readonly suspendOnDelete: pulumi.Output<boolean | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the subaccount is suspended.
|
|
50
|
+
*/
|
|
51
|
+
readonly suspended: pulumi.Output<boolean | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the subaccount draws on the primary account balance (server default true).
|
|
54
|
+
*/
|
|
55
|
+
readonly usePrimaryAccountBalance: pulumi.Output<boolean | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Create a SubAccount resource with the given unique name, arguments, and options.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resource.
|
|
60
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
61
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
62
|
+
*/
|
|
63
|
+
constructor(name: string, args: SubAccountArgs, opts?: pulumi.CustomResourceOptions);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The set of arguments for constructing a SubAccount resource.
|
|
67
|
+
*/
|
|
68
|
+
export interface SubAccountArgs {
|
|
69
|
+
/**
|
|
70
|
+
* Subaccount name (1-80 characters).
|
|
71
|
+
*/
|
|
72
|
+
name: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* API secret for the subaccount, set at creation only (8-25 characters with at least one lowercase letter, one uppercase letter and one digit). When omitted Vonage generates one, exposed as the generatedSecret output. Create-only: the Vonage API cannot change it on an existing subaccount, so later changes are ignored (no diff, no update); manage rotation with the ApiSecret resource.
|
|
75
|
+
*/
|
|
76
|
+
secret?: pulumi.Input<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Vonage cannot delete subaccounts. When true, destroying this resource suspends the subaccount; when false or unset it is only removed from Pulumi state and stays active.
|
|
79
|
+
*/
|
|
80
|
+
suspendOnDelete?: pulumi.Input<boolean | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* Whether the subaccount is suspended.
|
|
83
|
+
*/
|
|
84
|
+
suspended?: pulumi.Input<boolean | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the subaccount draws on the primary account balance (server default true).
|
|
87
|
+
*/
|
|
88
|
+
usePrimaryAccountBalance?: pulumi.Input<boolean | undefined>;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=subAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subAccount.d.ts","sourceRoot":"","sources":["../subAccount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,UAAU;IAO7G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,UAAU;IAOrD;;OAEG;IACH,SAAgC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAgC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnF;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAgC,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5E;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,SAAwB,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5E;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtE;;OAEG;IACH,SAAwB,wBAAwB,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAErF;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAgCtF;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACpD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CAChE"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.SubAccount = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Vonage subaccount under the primary account. Subaccounts cannot be deleted through the API, only suspended (see suspendOnDelete). Requires primary account credentials.
|
|
33
|
+
*/
|
|
34
|
+
class SubAccount extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing SubAccount resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new SubAccount(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'vonage:index:SubAccount';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of SubAccount. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === SubAccount.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a SubAccount resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.name === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'name'");
|
|
71
|
+
}
|
|
72
|
+
resourceInputs["name"] = args?.name;
|
|
73
|
+
resourceInputs["secret"] = args?.secret ? pulumi.secret(args.secret) : undefined;
|
|
74
|
+
resourceInputs["suspendOnDelete"] = args?.suspendOnDelete;
|
|
75
|
+
resourceInputs["suspended"] = args?.suspended;
|
|
76
|
+
resourceInputs["usePrimaryAccountBalance"] = args?.usePrimaryAccountBalance;
|
|
77
|
+
resourceInputs["apiKey"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["generatedSecret"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["primaryAccountApiKey"] = undefined /*out*/;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
resourceInputs["apiKey"] = undefined /*out*/;
|
|
84
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["generatedSecret"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["primaryAccountApiKey"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["secret"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["suspendOnDelete"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["suspended"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["usePrimaryAccountBalance"] = undefined /*out*/;
|
|
92
|
+
}
|
|
93
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
94
|
+
const secretOpts = { additionalSecretOutputs: ["generatedSecret", "secret"] };
|
|
95
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
96
|
+
super(SubAccount.__pulumiType, name, resourceInputs, opts);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.SubAccount = SubAccount;
|
|
100
|
+
//# sourceMappingURL=subAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subAccount.js","sourceRoot":"","sources":["../subAccount.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,gBAA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
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.output = exports.input = void 0;
|
|
29
|
+
// Export sub-modules:
|
|
30
|
+
const input = __importStar(require("./input"));
|
|
31
|
+
exports.input = input;
|
|
32
|
+
const output = __importStar(require("./output"));
|
|
33
|
+
exports.output = output;
|
|
34
|
+
//# 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,+CAAiC;AAI7B,sBAAK;AAHT,iDAAmC;AAI/B,wBAAM"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
export interface MeetingsCapabilityArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Webhook that receives recording status changes (POST only).
|
|
6
|
+
*/
|
|
7
|
+
recordingChanged?: pulumi.Input<inputs.WebhookArgs | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* Webhook that receives room changes (POST only).
|
|
10
|
+
*/
|
|
11
|
+
roomChanged?: pulumi.Input<inputs.WebhookArgs | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* Webhook that receives session changes (POST only).
|
|
14
|
+
*/
|
|
15
|
+
sessionChanged?: pulumi.Input<inputs.WebhookArgs | undefined>;
|
|
16
|
+
}
|
|
17
|
+
export interface MessagesCapabilityArgs {
|
|
18
|
+
/**
|
|
19
|
+
* Whether inbound media URLs require authentication.
|
|
20
|
+
*/
|
|
21
|
+
authenticateInboundMedia?: pulumi.Input<boolean | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Webhook that receives inbound messages (POST only).
|
|
24
|
+
*/
|
|
25
|
+
inboundUrl?: pulumi.Input<inputs.WebhookArgs | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Webhook that receives message status events (POST only).
|
|
28
|
+
*/
|
|
29
|
+
statusUrl?: pulumi.Input<inputs.WebhookArgs | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Messages API version, for example v1 or v0.1.
|
|
32
|
+
*/
|
|
33
|
+
version?: pulumi.Input<string | undefined>;
|
|
34
|
+
}
|
|
35
|
+
export interface NetworkApisCapabilityArgs {
|
|
36
|
+
/**
|
|
37
|
+
* The Network APIs application ID.
|
|
38
|
+
*/
|
|
39
|
+
networkApplicationId: pulumi.Input<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Redirect URI for the Network APIs OAuth flow.
|
|
42
|
+
*/
|
|
43
|
+
redirectUri?: pulumi.Input<string | undefined>;
|
|
44
|
+
}
|
|
45
|
+
export interface RtcCapabilityArgs {
|
|
46
|
+
/**
|
|
47
|
+
* Webhook that receives RTC events.
|
|
48
|
+
*/
|
|
49
|
+
eventUrl?: pulumi.Input<inputs.WebhookArgs | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Whether Vonage signs webhook requests.
|
|
52
|
+
*/
|
|
53
|
+
signedCallbacks?: pulumi.Input<boolean | undefined>;
|
|
54
|
+
}
|
|
55
|
+
export interface VerifyCapabilityArgs {
|
|
56
|
+
/**
|
|
57
|
+
* Webhook that receives Verify request status events (POST only).
|
|
58
|
+
*/
|
|
59
|
+
statusUrl?: pulumi.Input<inputs.WebhookArgs | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Verify API version, for example v2.
|
|
62
|
+
*/
|
|
63
|
+
version?: pulumi.Input<string | undefined>;
|
|
64
|
+
}
|
|
65
|
+
export interface VideoCapabilityArgs {
|
|
66
|
+
/**
|
|
67
|
+
* Recording storage and encryption settings.
|
|
68
|
+
*/
|
|
69
|
+
storage?: pulumi.Input<inputs.VideoStorageArgs | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Webhooks that receive Video API events.
|
|
72
|
+
*/
|
|
73
|
+
webhooks?: pulumi.Input<inputs.VideoWebhooksArgs | undefined>;
|
|
74
|
+
}
|
|
75
|
+
export interface VideoStorageArgs {
|
|
76
|
+
/**
|
|
77
|
+
* Whether recordings go to the configured cloud storage.
|
|
78
|
+
*/
|
|
79
|
+
cloudStorage?: pulumi.Input<boolean | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Whether video streams use end-to-end encryption.
|
|
82
|
+
*/
|
|
83
|
+
endToEndEncryption?: pulumi.Input<boolean | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Whether recordings are encrypted server side.
|
|
86
|
+
*/
|
|
87
|
+
serverSideEncryption?: pulumi.Input<boolean | undefined>;
|
|
88
|
+
}
|
|
89
|
+
export interface VideoWebhookArgs {
|
|
90
|
+
/**
|
|
91
|
+
* Whether Vonage calls the webhook (server default true).
|
|
92
|
+
*/
|
|
93
|
+
active?: pulumi.Input<boolean | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* The URL Vonage calls.
|
|
96
|
+
*/
|
|
97
|
+
address: pulumi.Input<string>;
|
|
98
|
+
}
|
|
99
|
+
export interface VideoWebhooksArgs {
|
|
100
|
+
/**
|
|
101
|
+
* Receives archive (recording) status changes.
|
|
102
|
+
*/
|
|
103
|
+
archiveStatus?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* Receives broadcast status changes.
|
|
106
|
+
*/
|
|
107
|
+
broadcastStatus?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* Receives live caption status changes.
|
|
110
|
+
*/
|
|
111
|
+
captionsStatus?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* Receives an event when a client connects to a session.
|
|
114
|
+
*/
|
|
115
|
+
connectionCreated?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* Receives an event when a client disconnects from a session.
|
|
118
|
+
*/
|
|
119
|
+
connectionDestroyed?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Receives Experience Composer render status changes.
|
|
122
|
+
*/
|
|
123
|
+
renderStatus?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* Receives an event when a session is created.
|
|
126
|
+
*/
|
|
127
|
+
sessionCreated?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* Receives an event when a session is destroyed.
|
|
130
|
+
*/
|
|
131
|
+
sessionDestroyed?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* Receives session notifications.
|
|
134
|
+
*/
|
|
135
|
+
sessionNotification?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* Receives an event when a SIP call is created.
|
|
138
|
+
*/
|
|
139
|
+
sipCallCreated?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* Receives an event when a SIP call is destroyed.
|
|
142
|
+
*/
|
|
143
|
+
sipCallDestroyed?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Receives an event when a SIP call is force-muted.
|
|
146
|
+
*/
|
|
147
|
+
sipCallMuteForced?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* Receives an event when a SIP call is updated.
|
|
150
|
+
*/
|
|
151
|
+
sipCallUpdated?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* Receives an event when a stream is created.
|
|
154
|
+
*/
|
|
155
|
+
streamCreated?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* Receives an event when a stream is destroyed.
|
|
158
|
+
*/
|
|
159
|
+
streamDestroyed?: pulumi.Input<inputs.VideoWebhookArgs | undefined>;
|
|
160
|
+
}
|
|
161
|
+
export interface VoiceCapabilityArgs {
|
|
162
|
+
/**
|
|
163
|
+
* Webhook Vonage calls to fetch the NCCO that controls an inbound or answered call.
|
|
164
|
+
*/
|
|
165
|
+
answerUrl?: pulumi.Input<inputs.VoiceWebhookArgs | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* Hours a named conversation stays active after creation (1-9000).
|
|
168
|
+
*/
|
|
169
|
+
conversationsTtl?: pulumi.Input<number | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* Webhook that receives call state events.
|
|
172
|
+
*/
|
|
173
|
+
eventUrl?: pulumi.Input<inputs.VoiceWebhookArgs | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* Webhook used if answerUrl is offline or returns an HTTP error.
|
|
176
|
+
*/
|
|
177
|
+
fallbackAnswerUrl?: pulumi.Input<inputs.VoiceWebhookArgs | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* Days call legs persist (1-31).
|
|
180
|
+
*/
|
|
181
|
+
legPersistenceTime?: pulumi.Input<number | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* Region that handles inbound, programmable SIP and SIP Connect calls: na-east, na-west, eu-east, eu-west, apac-sng or apac-australia.
|
|
184
|
+
*/
|
|
185
|
+
region?: pulumi.Input<string | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* Whether Vonage signs webhook requests (server default true).
|
|
188
|
+
*/
|
|
189
|
+
signedCallbacks?: pulumi.Input<boolean | undefined>;
|
|
190
|
+
}
|
|
191
|
+
export interface VoiceWebhookArgs {
|
|
192
|
+
/**
|
|
193
|
+
* The URL Vonage calls.
|
|
194
|
+
*/
|
|
195
|
+
address: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* Milliseconds Vonage waits to connect to the webhook (300-1000).
|
|
198
|
+
*/
|
|
199
|
+
connectTimeout?: pulumi.Input<number | undefined>;
|
|
200
|
+
/**
|
|
201
|
+
* HTTP method Vonage uses: GET or POST.
|
|
202
|
+
*/
|
|
203
|
+
httpMethod?: pulumi.Input<string | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* Milliseconds Vonage waits for the webhook response to be read (1000-10000).
|
|
206
|
+
*/
|
|
207
|
+
socketTimeout?: pulumi.Input<number | undefined>;
|
|
208
|
+
}
|
|
209
|
+
export interface WebhookArgs {
|
|
210
|
+
/**
|
|
211
|
+
* The URL Vonage calls.
|
|
212
|
+
*/
|
|
213
|
+
address: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* HTTP method Vonage uses: GET or POST. Messages, verify and meetings webhooks only accept POST.
|
|
216
|
+
*/
|
|
217
|
+
httpMethod?: pulumi.Input<string | undefined>;
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAChE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC7D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IACzD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC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