@pulumi-labs/vonage 0.0.1-dev → 0.2.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/accountSettings.d.ts +62 -0
- package/bin/accountSettings.d.ts.map +1 -0
- package/bin/accountSettings.js +87 -0
- package/bin/accountSettings.js.map +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/externalAccountApplicationLink.d.ts +58 -0
- package/bin/externalAccountApplicationLink.d.ts.map +1 -0
- package/bin/externalAccountApplicationLink.js +92 -0
- package/bin/externalAccountApplicationLink.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/getAccountSettings.d.ts +34 -0
- package/bin/getAccountSettings.d.ts.map +1 -0
- package/bin/getAccountSettings.js +48 -0
- package/bin/getAccountSettings.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 +81 -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/getExternalAccount.d.ts +56 -0
- package/bin/getExternalAccount.d.ts.map +1 -0
- package/bin/getExternalAccount.js +53 -0
- package/bin/getExternalAccount.js.map +1 -0
- package/bin/getExternalAccountApplicationLink.d.ts +56 -0
- package/bin/getExternalAccountApplicationLink.d.ts.map +1 -0
- package/bin/getExternalAccountApplicationLink.js +55 -0
- package/bin/getExternalAccountApplicationLink.js.map +1 -0
- package/bin/getExternalAccounts.d.ts +29 -0
- package/bin/getExternalAccounts.d.ts.map +1 -0
- package/bin/getExternalAccounts.js +53 -0
- package/bin/getExternalAccounts.js.map +1 -0
- package/bin/getMessengerAccount.d.ts +48 -0
- package/bin/getMessengerAccount.d.ts.map +1 -0
- package/bin/getMessengerAccount.js +51 -0
- package/bin/getMessengerAccount.js.map +1 -0
- package/bin/getNetworkApplicationProfile.d.ts +77 -0
- package/bin/getNetworkApplicationProfile.d.ts.map +1 -0
- package/bin/getNetworkApplicationProfile.js +51 -0
- package/bin/getNetworkApplicationProfile.js.map +1 -0
- package/bin/getNetworkApplicationProfileShare.d.ts +40 -0
- package/bin/getNetworkApplicationProfileShare.d.ts.map +1 -0
- package/bin/getNetworkApplicationProfileShare.js +53 -0
- package/bin/getNetworkApplicationProfileShare.js.map +1 -0
- package/bin/getNetworkApplicationProfileShares.d.ts +28 -0
- package/bin/getNetworkApplicationProfileShares.d.ts.map +1 -0
- package/bin/getNetworkApplicationProfileShares.js +51 -0
- package/bin/getNetworkApplicationProfileShares.js.map +1 -0
- package/bin/getNetworkApplicationProfiles.d.ts +45 -0
- package/bin/getNetworkApplicationProfiles.d.ts.map +1 -0
- package/bin/getNetworkApplicationProfiles.js +57 -0
- package/bin/getNetworkApplicationProfiles.js.map +1 -0
- package/bin/getNetworkBusinessProfile.d.ts +85 -0
- package/bin/getNetworkBusinessProfile.d.ts.map +1 -0
- package/bin/getNetworkBusinessProfile.js +51 -0
- package/bin/getNetworkBusinessProfile.js.map +1 -0
- package/bin/getNetworkBusinessProfiles.d.ts +29 -0
- package/bin/getNetworkBusinessProfiles.d.ts.map +1 -0
- package/bin/getNetworkBusinessProfiles.js +53 -0
- package/bin/getNetworkBusinessProfiles.js.map +1 -0
- package/bin/getNetworkRegistryCatalogue.d.ts +65 -0
- package/bin/getNetworkRegistryCatalogue.d.ts.map +1 -0
- package/bin/getNetworkRegistryCatalogue.js +55 -0
- package/bin/getNetworkRegistryCatalogue.js.map +1 -0
- package/bin/getNetworkTermsAndConditions.d.ts +36 -0
- package/bin/getNetworkTermsAndConditions.d.ts.map +1 -0
- package/bin/getNetworkTermsAndConditions.js +51 -0
- package/bin/getNetworkTermsAndConditions.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/getNumberPool.d.ts +44 -0
- package/bin/getNumberPool.d.ts.map +1 -0
- package/bin/getNumberPool.js +51 -0
- package/bin/getNumberPool.js.map +1 -0
- package/bin/getNumberPoolNumber.d.ts +40 -0
- package/bin/getNumberPoolNumber.d.ts.map +1 -0
- package/bin/getNumberPoolNumber.js +53 -0
- package/bin/getNumberPoolNumber.js.map +1 -0
- package/bin/getNumberPoolNumbers.d.ts +28 -0
- package/bin/getNumberPoolNumbers.d.ts.map +1 -0
- package/bin/getNumberPoolNumbers.js +51 -0
- package/bin/getNumberPoolNumbers.js.map +1 -0
- package/bin/getNumberPools.d.ts +19 -0
- package/bin/getNumberPools.d.ts.map +1 -0
- package/bin/getNumberPools.js +48 -0
- package/bin/getNumberPools.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/getPricing.d.ts +53 -0
- package/bin/getPricing.d.ts.map +1 -0
- package/bin/getPricing.js +57 -0
- package/bin/getPricing.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/getUser.d.ts +59 -0
- package/bin/getUser.d.ts.map +1 -0
- package/bin/getUser.js +55 -0
- package/bin/getUser.js.map +1 -0
- package/bin/getUsers.d.ts +29 -0
- package/bin/getUsers.d.ts.map +1 -0
- package/bin/getUsers.js +53 -0
- package/bin/getUsers.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 +148 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +214 -0
- package/bin/index.js.map +1 -0
- package/bin/messengerAccount.d.ts +66 -0
- package/bin/messengerAccount.d.ts.map +1 -0
- package/bin/messengerAccount.js +95 -0
- package/bin/messengerAccount.js.map +1 -0
- package/bin/networkApplicationProfile.d.ts +120 -0
- package/bin/networkApplicationProfile.d.ts.map +1 -0
- package/bin/networkApplicationProfile.js +118 -0
- package/bin/networkApplicationProfile.js.map +1 -0
- package/bin/networkApplicationProfileShare.d.ts +50 -0
- package/bin/networkApplicationProfileShare.d.ts.map +1 -0
- package/bin/networkApplicationProfileShare.js +87 -0
- package/bin/networkApplicationProfileShare.js.map +1 -0
- package/bin/networkBusinessProfile.d.ts +200 -0
- package/bin/networkBusinessProfile.d.ts.map +1 -0
- package/bin/networkBusinessProfile.js +150 -0
- package/bin/networkBusinessProfile.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/numberPool.d.ts +70 -0
- package/bin/numberPool.d.ts.map +1 -0
- package/bin/numberPool.js +93 -0
- package/bin/numberPool.js.map +1 -0
- package/bin/numberPoolNumber.d.ts +50 -0
- package/bin/numberPoolNumber.d.ts.map +1 -0
- package/bin/numberPoolNumber.js +87 -0
- package/bin/numberPoolNumber.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 +347 -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 +790 -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/user.d.ts +80 -0
- package/bin/user.d.ts.map +1 -0
- package/bin/user.js +87 -0
- package/bin/user.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
|
@@ -0,0 +1,150 @@
|
|
|
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.NetworkBusinessProfile = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Vonage Network Registry business profile. Registering a profile is a legal submission that Vonage and mobile operators review: it is not an instant API call, and its status moves from pending towards accepted on its own. Vonage has no plain update: a changed input is submitted as a change request, which the profile reflects once approved (until then the resource reports the requested values). Destroying the resource deletes the profile (Vonage deletes softly and can undelete it). Shapes follow the published Network Registry OpenAPI definition and were not verified against a live account.
|
|
33
|
+
*/
|
|
34
|
+
class NetworkBusinessProfile extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing NetworkBusinessProfile 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 NetworkBusinessProfile(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'vonage:index:NetworkBusinessProfile';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of NetworkBusinessProfile. 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'] === NetworkBusinessProfile.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a NetworkBusinessProfile 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?.businessInformation === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'businessInformation'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.contactRole === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'contactRole'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.countries === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'countries'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.name === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'name'");
|
|
80
|
+
}
|
|
81
|
+
if (args?.organisationType === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'organisationType'");
|
|
83
|
+
}
|
|
84
|
+
if (args?.privacyPolicyManagerEmail === undefined && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'privacyPolicyManagerEmail'");
|
|
86
|
+
}
|
|
87
|
+
if (args?.privacyPolicyUrl === undefined && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'privacyPolicyUrl'");
|
|
89
|
+
}
|
|
90
|
+
if (args?.taxNumber === undefined && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'taxNumber'");
|
|
92
|
+
}
|
|
93
|
+
if (args?.termsAndConditionsAccepted === undefined && !opts.urn) {
|
|
94
|
+
throw new Error("Missing required property 'termsAndConditionsAccepted'");
|
|
95
|
+
}
|
|
96
|
+
resourceInputs["businessInformation"] = args?.businessInformation;
|
|
97
|
+
resourceInputs["businessRegistrationId"] = args?.businessRegistrationId;
|
|
98
|
+
resourceInputs["contactRole"] = args?.contactRole;
|
|
99
|
+
resourceInputs["countries"] = args?.countries;
|
|
100
|
+
resourceInputs["dpoEmail"] = args?.dpoEmail;
|
|
101
|
+
resourceInputs["dpoRequired"] = args?.dpoRequired;
|
|
102
|
+
resourceInputs["emailNotificationsEnabled"] = args?.emailNotificationsEnabled;
|
|
103
|
+
resourceInputs["issuingAuthority"] = args?.issuingAuthority;
|
|
104
|
+
resourceInputs["name"] = args?.name;
|
|
105
|
+
resourceInputs["organisationType"] = args?.organisationType;
|
|
106
|
+
resourceInputs["privacyPolicyManagerEmail"] = args?.privacyPolicyManagerEmail;
|
|
107
|
+
resourceInputs["privacyPolicyUrl"] = args?.privacyPolicyUrl;
|
|
108
|
+
resourceInputs["taxNumber"] = args?.taxNumber;
|
|
109
|
+
resourceInputs["termsAndConditionsAccepted"] = args?.termsAndConditionsAccepted;
|
|
110
|
+
resourceInputs["tradingName"] = args?.tradingName;
|
|
111
|
+
resourceInputs["vettingExtraFields"] = args?.vettingExtraFields;
|
|
112
|
+
resourceInputs["vettingTermsAndConditionsAccepted"] = args?.vettingTermsAndConditionsAccepted;
|
|
113
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["changeRequestStatus"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["statusMessage"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["businessInformation"] = undefined /*out*/;
|
|
123
|
+
resourceInputs["businessRegistrationId"] = undefined /*out*/;
|
|
124
|
+
resourceInputs["changeRequestStatus"] = undefined /*out*/;
|
|
125
|
+
resourceInputs["contactRole"] = undefined /*out*/;
|
|
126
|
+
resourceInputs["countries"] = undefined /*out*/;
|
|
127
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["dpoEmail"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["dpoRequired"] = undefined /*out*/;
|
|
130
|
+
resourceInputs["emailNotificationsEnabled"] = undefined /*out*/;
|
|
131
|
+
resourceInputs["issuingAuthority"] = undefined /*out*/;
|
|
132
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
133
|
+
resourceInputs["organisationType"] = undefined /*out*/;
|
|
134
|
+
resourceInputs["privacyPolicyManagerEmail"] = undefined /*out*/;
|
|
135
|
+
resourceInputs["privacyPolicyUrl"] = undefined /*out*/;
|
|
136
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
137
|
+
resourceInputs["statusMessage"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["taxNumber"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["termsAndConditionsAccepted"] = undefined /*out*/;
|
|
140
|
+
resourceInputs["tradingName"] = undefined /*out*/;
|
|
141
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
142
|
+
resourceInputs["vettingExtraFields"] = undefined /*out*/;
|
|
143
|
+
resourceInputs["vettingTermsAndConditionsAccepted"] = undefined /*out*/;
|
|
144
|
+
}
|
|
145
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
146
|
+
super(NetworkBusinessProfile.__pulumiType, name, resourceInputs, opts);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.NetworkBusinessProfile = NetworkBusinessProfile;
|
|
150
|
+
//# sourceMappingURL=networkBusinessProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkBusinessProfile.js","sourceRoot":"","sources":["../networkBusinessProfile.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,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DED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A Vonage virtual number. Buying is billed; cancelling is permanent. Both are explicit inputs (acquisition, cancelOnDelete).
|
|
4
|
+
*/
|
|
5
|
+
export declare class Number extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Number 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): Number;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Number. 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 Number;
|
|
20
|
+
/**
|
|
21
|
+
* How the number joins the account: "buy" purchases it (BILLED, fails if the account already owns it) or "adopt" manages a number the account already owns (fails if it does not). Only used when the resource is created; later changes are ignored (no diff, no replace), because replacing a number would cancel it.
|
|
22
|
+
*/
|
|
23
|
+
readonly acquisition: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Application ID the number is linked to. Mutually exclusive with moHttpUrl and voiceCallbackType/Value.
|
|
26
|
+
*/
|
|
27
|
+
readonly appId: pulumi.Output<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Required explicit choice. true: destroying this resource CANCELS (permanently releases) the number. false: destroying it only removes it from Pulumi state; the number stays on the account and keeps billing.
|
|
30
|
+
*/
|
|
31
|
+
readonly cancelOnDelete: pulumi.Output<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Two-letter ISO 3166-1 alpha-2 country code of the number, for example US. Changing it replaces the resource.
|
|
34
|
+
*/
|
|
35
|
+
readonly country: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Voice routing type Vonage currently applies (sip, tel or app).
|
|
38
|
+
*/
|
|
39
|
+
readonly effectiveVoiceCallbackType: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Voice routing target Vonage currently applies.
|
|
42
|
+
*/
|
|
43
|
+
readonly effectiveVoiceCallbackValue: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Capabilities of the number, for example SMS, VOICE, MMS.
|
|
46
|
+
*/
|
|
47
|
+
readonly features: pulumi.Output<string[]>;
|
|
48
|
+
/**
|
|
49
|
+
* Effective inbound messages routing type (app or empty).
|
|
50
|
+
*/
|
|
51
|
+
readonly messagesCallbackType: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Effective inbound messages routing target (usually the linked application ID).
|
|
54
|
+
*/
|
|
55
|
+
readonly messagesCallbackValue: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Webhook for inbound SMS when the number is not linked to an application.
|
|
58
|
+
*/
|
|
59
|
+
readonly moHttpUrl: pulumi.Output<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* The number in international format without a leading plus, for example 14155550100. Changing it replaces the resource.
|
|
62
|
+
*/
|
|
63
|
+
readonly msisdn: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Number type reported by Vonage, for example landline, mobile-lvn or landline-toll-free.
|
|
66
|
+
*/
|
|
67
|
+
readonly type: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Voice routing type when the number is not linked to an application: sip, tel or app.
|
|
70
|
+
*/
|
|
71
|
+
readonly voiceCallbackType: pulumi.Output<string | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Voice routing target: a SIP URI, a phone number or an application ID, matching voiceCallbackType.
|
|
74
|
+
*/
|
|
75
|
+
readonly voiceCallbackValue: pulumi.Output<string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Webhook that receives voice call status events for the number.
|
|
78
|
+
*/
|
|
79
|
+
readonly voiceStatusCallback: pulumi.Output<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Create a Number resource with the given unique name, arguments, and options.
|
|
82
|
+
*
|
|
83
|
+
* @param name The _unique_ name of the resource.
|
|
84
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
85
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
86
|
+
*/
|
|
87
|
+
constructor(name: string, args: NumberArgs, opts?: pulumi.CustomResourceOptions);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The set of arguments for constructing a Number resource.
|
|
91
|
+
*/
|
|
92
|
+
export interface NumberArgs {
|
|
93
|
+
/**
|
|
94
|
+
* How the number joins the account: "buy" purchases it (BILLED, fails if the account already owns it) or "adopt" manages a number the account already owns (fails if it does not). Only used when the resource is created; later changes are ignored (no diff, no replace), because replacing a number would cancel it.
|
|
95
|
+
*/
|
|
96
|
+
acquisition: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Application ID the number is linked to. Mutually exclusive with moHttpUrl and voiceCallbackType/Value.
|
|
99
|
+
*/
|
|
100
|
+
appId?: pulumi.Input<string | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Required explicit choice. true: destroying this resource CANCELS (permanently releases) the number. false: destroying it only removes it from Pulumi state; the number stays on the account and keeps billing.
|
|
103
|
+
*/
|
|
104
|
+
cancelOnDelete: pulumi.Input<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* Two-letter ISO 3166-1 alpha-2 country code of the number, for example US. Changing it replaces the resource.
|
|
107
|
+
*/
|
|
108
|
+
country: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Webhook for inbound SMS when the number is not linked to an application.
|
|
111
|
+
*/
|
|
112
|
+
moHttpUrl?: pulumi.Input<string | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* The number in international format without a leading plus, for example 14155550100. Changing it replaces the resource.
|
|
115
|
+
*/
|
|
116
|
+
msisdn: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Voice routing type when the number is not linked to an application: sip, tel or app.
|
|
119
|
+
*/
|
|
120
|
+
voiceCallbackType?: pulumi.Input<string | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* Voice routing target: a SIP URI, a phone number or an application ID, matching voiceCallbackType.
|
|
123
|
+
*/
|
|
124
|
+
voiceCallbackValue?: pulumi.Input<string | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* Webhook that receives voice call status events for the number.
|
|
127
|
+
*/
|
|
128
|
+
voiceStatusCallback?: pulumi.Input<string | undefined>;
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../number.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;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,MAAM;IAOzG;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM;IAOjD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/D;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,C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EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC1D"}
|
package/bin/number.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
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.Number = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Vonage virtual number. Buying is billed; cancelling is permanent. Both are explicit inputs (acquisition, cancelOnDelete).
|
|
33
|
+
*/
|
|
34
|
+
class Number extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Number 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 Number(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'vonage:index:Number';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Number. 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'] === Number.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a Number 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?.acquisition === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'acquisition'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.cancelOnDelete === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'cancelOnDelete'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.country === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'country'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.msisdn === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'msisdn'");
|
|
80
|
+
}
|
|
81
|
+
resourceInputs["acquisition"] = args?.acquisition;
|
|
82
|
+
resourceInputs["appId"] = args?.appId;
|
|
83
|
+
resourceInputs["cancelOnDelete"] = args?.cancelOnDelete;
|
|
84
|
+
resourceInputs["country"] = args?.country;
|
|
85
|
+
resourceInputs["moHttpUrl"] = args?.moHttpUrl;
|
|
86
|
+
resourceInputs["msisdn"] = args?.msisdn;
|
|
87
|
+
resourceInputs["voiceCallbackType"] = args?.voiceCallbackType;
|
|
88
|
+
resourceInputs["voiceCallbackValue"] = args?.voiceCallbackValue;
|
|
89
|
+
resourceInputs["voiceStatusCallback"] = args?.voiceStatusCallback;
|
|
90
|
+
resourceInputs["effectiveVoiceCallbackType"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["effectiveVoiceCallbackValue"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["features"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["messagesCallbackType"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["messagesCallbackValue"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
resourceInputs["acquisition"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["appId"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["cancelOnDelete"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["country"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["effectiveVoiceCallbackType"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["effectiveVoiceCallbackValue"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["features"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["messagesCallbackType"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["messagesCallbackValue"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["moHttpUrl"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["msisdn"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["voiceCallbackType"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["voiceCallbackValue"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["voiceStatusCallback"] = undefined /*out*/;
|
|
113
|
+
}
|
|
114
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
115
|
+
const replaceOnChanges = { replaceOnChanges: ["country", "msisdn"] };
|
|
116
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
117
|
+
super(Number.__pulumiType, name, resourceInputs, opts);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.Number = Number;
|
|
121
|
+
//# sourceMappingURL=number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.js","sourceRoot":"","sources":["../number.ts"],"names":[],"mappings":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+
/**
|
|
3
|
+
* A Vonage number pool. Add numbers with NumberPoolNumber. Shapes follow the published Number Pools API specification and were not verified against a live account.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NumberPool extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing NumberPool 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): NumberPool;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of NumberPool. 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 NumberPool;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the account that owns the pool (the API key).
|
|
22
|
+
*/
|
|
23
|
+
readonly accountId: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* What Vonage does when no number in the pool can send the message: Pool (use any pool number), "CustomFrom" (use the sender in the request) or Reject (fail the message).
|
|
26
|
+
*/
|
|
27
|
+
readonly fallback: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Prefer a pool number local to the destination country when one exists. Defaults to false when unset (Vonage requires the flag on create, so false is sent).
|
|
30
|
+
*/
|
|
31
|
+
readonly localizedSenderPreferred: pulumi.Output<boolean | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Your identifier for the pool, unique within the account. Also the resource ID. Changing it replaces the pool.
|
|
34
|
+
*/
|
|
35
|
+
readonly poolId: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Keep using the same pool number for the same recipient when possible. Defaults to false when unset (Vonage requires the flag on create, so false is sent).
|
|
38
|
+
*/
|
|
39
|
+
readonly predictableSenderPreferred: pulumi.Output<boolean | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Create a NumberPool resource with the given unique name, arguments, and options.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resource.
|
|
44
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
45
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name: string, args: NumberPoolArgs, opts?: pulumi.CustomResourceOptions);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The set of arguments for constructing a NumberPool resource.
|
|
51
|
+
*/
|
|
52
|
+
export interface NumberPoolArgs {
|
|
53
|
+
/**
|
|
54
|
+
* What Vonage does when no number in the pool can send the message: Pool (use any pool number), "CustomFrom" (use the sender in the request) or Reject (fail the message).
|
|
55
|
+
*/
|
|
56
|
+
fallback: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefer a pool number local to the destination country when one exists. Defaults to false when unset (Vonage requires the flag on create, so false is sent).
|
|
59
|
+
*/
|
|
60
|
+
localizedSenderPreferred?: pulumi.Input<boolean | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Your identifier for the pool, unique within the account. Also the resource ID. Changing it replaces the pool.
|
|
63
|
+
*/
|
|
64
|
+
poolId: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Keep using the same pool number for the same recipient when possible. Defaults to false when unset (Vonage requires the flag on create, so false is sent).
|
|
67
|
+
*/
|
|
68
|
+
predictableSenderPreferred?: pulumi.Input<boolean | undefined>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=numberPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberPool.d.ts","sourceRoot":"","sources":["../numberPool.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,UAAW,SAAQ,MAAM,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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.NumberPool = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Vonage number pool. Add numbers with NumberPoolNumber. Shapes follow the published Number Pools API specification and were not verified against a live account.
|
|
33
|
+
*/
|
|
34
|
+
class NumberPool extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing NumberPool 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 NumberPool(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'vonage:index:NumberPool';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of NumberPool. 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'] === NumberPool.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a NumberPool 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?.fallback === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'fallback'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.poolId === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'poolId'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["fallback"] = args?.fallback;
|
|
76
|
+
resourceInputs["localizedSenderPreferred"] = args?.localizedSenderPreferred;
|
|
77
|
+
resourceInputs["poolId"] = args?.poolId;
|
|
78
|
+
resourceInputs["predictableSenderPreferred"] = args?.predictableSenderPreferred;
|
|
79
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
83
|
+
resourceInputs["fallback"] = undefined /*out*/;
|
|
84
|
+
resourceInputs["localizedSenderPreferred"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["poolId"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["predictableSenderPreferred"] = undefined /*out*/;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
super(NumberPool.__pulumiType, name, resourceInputs, opts);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.NumberPool = NumberPool;
|
|
93
|
+
//# sourceMappingURL=numberPool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberPool.js","sourceRoot":"","sources":["../numberPool.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,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,yBAAyB,CAAC;IAEhE;;;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,UAAU,CAA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AAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA/EL,gCAgFC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Membership of one owned number in a Vonage number pool. The ID is poolId/number. Removing the resource removes the number from the pool and never releases the number itself.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NumberPoolNumber extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing NumberPoolNumber 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): NumberPoolNumber;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of NumberPoolNumber. 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 NumberPoolNumber;
|
|
20
|
+
/**
|
|
21
|
+
* The owned number in E.164 format without the leading plus (7-15 digits). Changing it replaces the membership.
|
|
22
|
+
*/
|
|
23
|
+
readonly number: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the pool to add the number to. Changing it replaces the membership.
|
|
26
|
+
*/
|
|
27
|
+
readonly poolId: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a NumberPoolNumber resource with the given unique name, arguments, and options.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resource.
|
|
32
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
33
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
34
|
+
*/
|
|
35
|
+
constructor(name: string, args: NumberPoolNumberArgs, opts?: pulumi.CustomResourceOptions);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The set of arguments for constructing a NumberPoolNumber resource.
|
|
39
|
+
*/
|
|
40
|
+
export interface NumberPoolNumberArgs {
|
|
41
|
+
/**
|
|
42
|
+
* The owned number in E.164 format without the leading plus (7-15 digits). Changing it replaces the membership.
|
|
43
|
+
*/
|
|
44
|
+
number: pulumi.Input<string>;
|
|
45
|
+
/**
|
|
46
|
+
* ID of the pool to add the number to. Changing it replaces the membership.
|
|
47
|
+
*/
|
|
48
|
+
poolId: pulumi.Input<string>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=numberPoolNumber.d.ts.map
|