@pulumi-labs/vonage 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/bin/getTenDlcAccountSettings.d.ts +18 -0
  2. package/bin/getTenDlcAccountSettings.d.ts.map +1 -0
  3. package/bin/getTenDlcAccountSettings.js +48 -0
  4. package/bin/getTenDlcAccountSettings.js.map +1 -0
  5. package/bin/getTenDlcBrand.d.ts +177 -0
  6. package/bin/getTenDlcBrand.d.ts.map +1 -0
  7. package/bin/getTenDlcBrand.js +51 -0
  8. package/bin/getTenDlcBrand.js.map +1 -0
  9. package/bin/getTenDlcBrands.d.ts +29 -0
  10. package/bin/getTenDlcBrands.d.ts.map +1 -0
  11. package/bin/getTenDlcBrands.js +53 -0
  12. package/bin/getTenDlcBrands.js.map +1 -0
  13. package/bin/getTenDlcCampaign.d.ts +164 -0
  14. package/bin/getTenDlcCampaign.d.ts.map +1 -0
  15. package/bin/getTenDlcCampaign.js +53 -0
  16. package/bin/getTenDlcCampaign.js.map +1 -0
  17. package/bin/getTenDlcCampaignNumber.d.ts +56 -0
  18. package/bin/getTenDlcCampaignNumber.d.ts.map +1 -0
  19. package/bin/getTenDlcCampaignNumber.js +55 -0
  20. package/bin/getTenDlcCampaignNumber.js.map +1 -0
  21. package/bin/getTenDlcCampaignNumbers.d.ts +37 -0
  22. package/bin/getTenDlcCampaignNumbers.d.ts.map +1 -0
  23. package/bin/getTenDlcCampaignNumbers.js +53 -0
  24. package/bin/getTenDlcCampaignNumbers.js.map +1 -0
  25. package/bin/getTenDlcCampaignTermsAndConditions.d.ts +18 -0
  26. package/bin/getTenDlcCampaignTermsAndConditions.d.ts.map +1 -0
  27. package/bin/getTenDlcCampaignTermsAndConditions.js +48 -0
  28. package/bin/getTenDlcCampaignTermsAndConditions.js.map +1 -0
  29. package/bin/getTenDlcCampaigns.d.ts +37 -0
  30. package/bin/getTenDlcCampaigns.d.ts.map +1 -0
  31. package/bin/getTenDlcCampaigns.js +53 -0
  32. package/bin/getTenDlcCampaigns.js.map +1 -0
  33. package/bin/getTenDlcEnums.d.ts +29 -0
  34. package/bin/getTenDlcEnums.d.ts.map +1 -0
  35. package/bin/getTenDlcEnums.js +48 -0
  36. package/bin/getTenDlcEnums.js.map +1 -0
  37. package/bin/getTenDlcReseller.d.ts +52 -0
  38. package/bin/getTenDlcReseller.d.ts.map +1 -0
  39. package/bin/getTenDlcReseller.js +51 -0
  40. package/bin/getTenDlcReseller.js.map +1 -0
  41. package/bin/getTenDlcResellers.d.ts +19 -0
  42. package/bin/getTenDlcResellers.d.ts.map +1 -0
  43. package/bin/getTenDlcResellers.js +48 -0
  44. package/bin/getTenDlcResellers.js.map +1 -0
  45. package/bin/getTenDlcThroughputs.d.ts +29 -0
  46. package/bin/getTenDlcThroughputs.d.ts.map +1 -0
  47. package/bin/getTenDlcThroughputs.js +53 -0
  48. package/bin/getTenDlcThroughputs.js.map +1 -0
  49. package/bin/index.d.ts +51 -0
  50. package/bin/index.d.ts.map +1 -1
  51. package/bin/index.js +58 -1
  52. package/bin/index.js.map +1 -1
  53. package/bin/package.json +2 -2
  54. package/bin/tenDlcAccountSettings.d.ts +42 -0
  55. package/bin/tenDlcAccountSettings.d.ts.map +1 -0
  56. package/bin/tenDlcAccountSettings.js +82 -0
  57. package/bin/tenDlcAccountSettings.js.map +1 -0
  58. package/bin/tenDlcBrand.d.ts +286 -0
  59. package/bin/tenDlcBrand.d.ts.map +1 -0
  60. package/bin/tenDlcBrand.js +154 -0
  61. package/bin/tenDlcBrand.js.map +1 -0
  62. package/bin/tenDlcCampaign.d.ts +280 -0
  63. package/bin/tenDlcCampaign.d.ts.map +1 -0
  64. package/bin/tenDlcCampaign.js +171 -0
  65. package/bin/tenDlcCampaign.js.map +1 -0
  66. package/bin/tenDlcCampaignNumber.d.ts +74 -0
  67. package/bin/tenDlcCampaignNumber.d.ts.map +1 -0
  68. package/bin/tenDlcCampaignNumber.js +101 -0
  69. package/bin/tenDlcCampaignNumber.js.map +1 -0
  70. package/bin/tenDlcReseller.d.ts +74 -0
  71. package/bin/tenDlcReseller.d.ts.map +1 -0
  72. package/bin/tenDlcReseller.js +100 -0
  73. package/bin/tenDlcReseller.js.map +1 -0
  74. package/bin/types/input.d.ts +44 -0
  75. package/bin/types/input.d.ts.map +1 -1
  76. package/bin/types/output.d.ts +486 -0
  77. package/bin/types/output.d.ts.map +1 -1
  78. package/package.json +2 -2
@@ -0,0 +1,280 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * A 10DLC campaign: one messaging use case of a brand, registered with The Campaign Registry through Vonage. Registration is billed, reviewed by Vonage and the carriers (status moves from PENDING_REVIEW towards ACTIVE on its own) and never retried after an unknown outcome. Vonage cannot delete a campaign: destroy turns auto-renewal off, so it ends at its renewal date, and an ended campaign reads as gone. Fields Vonage locks after approval replace the campaign when changed. The resource ID is BRAND_ID/CAMPAIGN_ID. Shapes follow the published Vonage 10DLC OpenAPI definition and were not verified against a live account.
6
+ */
7
+ export declare class TenDlcCampaign extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing TenDlcCampaign resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param opts Optional settings to control the behavior of the CustomResource.
15
+ */
16
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): TenDlcCampaign;
17
+ /**
18
+ * Returns true if the given object is an instance of TenDlcCampaign. This is designed to work even
19
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
20
+ */
21
+ static isInstance(obj: any): obj is TenDlcCampaign;
22
+ /**
23
+ * Vonage account (API key) the campaign belongs to. Defaults to the provider's apiKey. Changing it replaces the campaign.
24
+ */
25
+ readonly accountId: pulumi.Output<string | undefined>;
26
+ /**
27
+ * Whether the content is age-gated. Changing it replaces the campaign.
28
+ */
29
+ readonly ageGated: pulumi.Output<boolean | undefined>;
30
+ /**
31
+ * Whether the campaign renews automatically. Destroy sets it to false.
32
+ */
33
+ readonly autoRenewal: pulumi.Output<boolean | undefined>;
34
+ /**
35
+ * ID of the TenDlcBrand the campaign belongs to. Changing it replaces the campaign.
36
+ */
37
+ readonly brandId: pulumi.Output<string>;
38
+ /**
39
+ * ID of the campaign (the resource ID is BRAND_ID/CAMPAIGN_ID).
40
+ */
41
+ readonly campaignId: pulumi.Output<string>;
42
+ /**
43
+ * When the campaign was created.
44
+ */
45
+ readonly createdDate: pulumi.Output<string | undefined>;
46
+ /**
47
+ * What the campaign is for and who receives the messages (40 to 4096 characters).
48
+ */
49
+ readonly description: pulumi.Output<string>;
50
+ /**
51
+ * Whether the campaign involves direct lending or loan arrangement. Changing it replaces the campaign.
52
+ */
53
+ readonly directLending: pulumi.Output<boolean | undefined>;
54
+ /**
55
+ * Whether messages contain embedded links. Changing it replaces the campaign.
56
+ */
57
+ readonly embeddedLink: pulumi.Output<boolean | undefined>;
58
+ /**
59
+ * Whether messages contain embedded phone numbers. Changing it replaces the campaign.
60
+ */
61
+ readonly embeddedPhone: pulumi.Output<boolean | undefined>;
62
+ /**
63
+ * Keywords that trigger the help message, comma separated (at most 255 characters).
64
+ */
65
+ readonly helpKeywords: pulumi.Output<string | undefined>;
66
+ /**
67
+ * Reply to the HELP keyword (20 to 320 characters).
68
+ */
69
+ readonly helpMessage: pulumi.Output<string>;
70
+ /**
71
+ * Whether the campaign handles HIPAA-covered data. Vonage only allows a change while no number was ever linked, so changing it replaces the campaign.
72
+ */
73
+ readonly hipaa: pulumi.Output<boolean | undefined>;
74
+ /**
75
+ * Your own label for the campaign (at most 50 characters).
76
+ */
77
+ readonly label: pulumi.Output<string | undefined>;
78
+ /**
79
+ * When the campaign was last updated.
80
+ */
81
+ readonly lastUpdated: pulumi.Output<string | undefined>;
82
+ /**
83
+ * How subscribers opt in and what they receive (40 to 4096 characters). Set either this or messageFlowDetails, not both. Vonage marks the free-text field deprecated. In the state this is always the text Vonage holds, which is rendered from messageFlowDetails when those were used.
84
+ */
85
+ readonly messageFlow: pulumi.Output<string | undefined>;
86
+ /**
87
+ * Structured description of the opt-in flow, the replacement for messageFlow. Set either this or messageFlow, not both. Vonage renders it into the message flow text. Switching between the two updates the campaign in place.
88
+ */
89
+ readonly messageFlowDetails: pulumi.Output<outputs.TenDlcMessageFlowDetails | undefined>;
90
+ /**
91
+ * Keywords that opt a subscriber in, comma separated. Needs optInMessage.
92
+ */
93
+ readonly optInKeywords: pulumi.Output<string | undefined>;
94
+ /**
95
+ * Confirmation sent when a subscriber opts in (20 to 320 characters).
96
+ */
97
+ readonly optInMessage: pulumi.Output<string>;
98
+ /**
99
+ * Keywords that opt a subscriber out, comma separated.
100
+ */
101
+ readonly optOutKeywords: pulumi.Output<string | undefined>;
102
+ /**
103
+ * Confirmation sent when a subscriber opts out (20 to 320 characters).
104
+ */
105
+ readonly optOutMessage: pulumi.Output<string>;
106
+ /**
107
+ * When the campaign was registered.
108
+ */
109
+ readonly registrationDate: pulumi.Output<string | undefined>;
110
+ /**
111
+ * When the campaign renews or ends.
112
+ */
113
+ readonly renewalDate: pulumi.Output<string | undefined>;
114
+ /**
115
+ * Whether the campaign is registered by a reseller.
116
+ */
117
+ readonly reseller: pulumi.Output<boolean | undefined>;
118
+ /**
119
+ * ID of the reseller the campaign is registered for (at most 8 characters).
120
+ */
121
+ readonly resellerId: pulumi.Output<string | undefined>;
122
+ /**
123
+ * One to five sample messages (20 to 1024 characters each). Vonage needs at least as many as the use case and the sub use cases require.
124
+ */
125
+ readonly samples: pulumi.Output<string[]>;
126
+ /**
127
+ * Campaign status: PENDING_REVIEW, UPDATES_REQUIRED, CARRIERS_REVIEW, ACTIVE, PENDING_CANCELLATION or SUSPENDED. It changes as Vonage and the carriers review the campaign; only ACTIVE lets traffic flow.
128
+ */
129
+ readonly status: pulumi.Output<string>;
130
+ /**
131
+ * Sub use cases of a MIXED-style campaign. Changing them replaces the campaign.
132
+ */
133
+ readonly subUsecases: pulumi.Output<string[] | undefined>;
134
+ /**
135
+ * Must be true: you agree to the 10DLC terms and conditions. Vonage never returns it, so it is not refreshed; an import sets it to true.
136
+ */
137
+ readonly tcAgreed: pulumi.Output<boolean>;
138
+ /**
139
+ * ID of the campaign at The Campaign Registry, once it exists there.
140
+ */
141
+ readonly tcrCampaignId: pulumi.Output<string | undefined>;
142
+ /**
143
+ * Status at The Campaign Registry: UNKNOWN, ACTIVE or CANCELED.
144
+ */
145
+ readonly tcrStatus: pulumi.Output<string | undefined>;
146
+ /**
147
+ * Whether the campaign can carry traffic.
148
+ */
149
+ readonly trafficEnabled: pulumi.Output<boolean | undefined>;
150
+ /**
151
+ * Up to 15 sample links that might be sent to subscribers.
152
+ */
153
+ readonly urlSamples: pulumi.Output<string[] | undefined>;
154
+ /**
155
+ * Use case: CUSTOMER_CARE, POLLING_VOTING, HIGHER_EDUCATION, PUBLIC_SERVICE_ANNOUNCEMENT, MARKETING or SECURITY_ALERT (the list can grow, see Vonage's enum endpoint). Read-only once Vonage approved the campaign, so changing it replaces the campaign.
156
+ */
157
+ readonly usecase: pulumi.Output<string>;
158
+ /**
159
+ * Industry vertical. Read-only once the campaign is approved, so changing it replaces the campaign.
160
+ */
161
+ readonly vertical: pulumi.Output<string | undefined>;
162
+ /**
163
+ * Create a TenDlcCampaign resource with the given unique name, arguments, and options.
164
+ *
165
+ * @param name The _unique_ name of the resource.
166
+ * @param args The arguments to use to populate this resource's properties.
167
+ * @param opts A bag of options that control this resource's behavior.
168
+ */
169
+ constructor(name: string, args: TenDlcCampaignArgs, opts?: pulumi.CustomResourceOptions);
170
+ }
171
+ /**
172
+ * The set of arguments for constructing a TenDlcCampaign resource.
173
+ */
174
+ export interface TenDlcCampaignArgs {
175
+ /**
176
+ * Vonage account (API key) the campaign belongs to. Defaults to the provider's apiKey. Changing it replaces the campaign.
177
+ */
178
+ accountId?: pulumi.Input<string | undefined>;
179
+ /**
180
+ * Whether the content is age-gated. Changing it replaces the campaign.
181
+ */
182
+ ageGated?: pulumi.Input<boolean | undefined>;
183
+ /**
184
+ * Whether the campaign renews automatically. Destroy sets it to false.
185
+ */
186
+ autoRenewal?: pulumi.Input<boolean | undefined>;
187
+ /**
188
+ * ID of the TenDlcBrand the campaign belongs to. Changing it replaces the campaign.
189
+ */
190
+ brandId: pulumi.Input<string>;
191
+ /**
192
+ * What the campaign is for and who receives the messages (40 to 4096 characters).
193
+ */
194
+ description: pulumi.Input<string>;
195
+ /**
196
+ * Whether the campaign involves direct lending or loan arrangement. Changing it replaces the campaign.
197
+ */
198
+ directLending?: pulumi.Input<boolean | undefined>;
199
+ /**
200
+ * Whether messages contain embedded links. Changing it replaces the campaign.
201
+ */
202
+ embeddedLink?: pulumi.Input<boolean | undefined>;
203
+ /**
204
+ * Whether messages contain embedded phone numbers. Changing it replaces the campaign.
205
+ */
206
+ embeddedPhone?: pulumi.Input<boolean | undefined>;
207
+ /**
208
+ * Keywords that trigger the help message, comma separated (at most 255 characters).
209
+ */
210
+ helpKeywords?: pulumi.Input<string | undefined>;
211
+ /**
212
+ * Reply to the HELP keyword (20 to 320 characters).
213
+ */
214
+ helpMessage: pulumi.Input<string>;
215
+ /**
216
+ * Whether the campaign handles HIPAA-covered data. Vonage only allows a change while no number was ever linked, so changing it replaces the campaign.
217
+ */
218
+ hipaa?: pulumi.Input<boolean | undefined>;
219
+ /**
220
+ * Your own label for the campaign (at most 50 characters).
221
+ */
222
+ label?: pulumi.Input<string | undefined>;
223
+ /**
224
+ * How subscribers opt in and what they receive (40 to 4096 characters). Set either this or messageFlowDetails, not both. Vonage marks the free-text field deprecated. In the state this is always the text Vonage holds, which is rendered from messageFlowDetails when those were used.
225
+ */
226
+ messageFlow?: pulumi.Input<string | undefined>;
227
+ /**
228
+ * Structured description of the opt-in flow, the replacement for messageFlow. Set either this or messageFlow, not both. Vonage renders it into the message flow text. Switching between the two updates the campaign in place.
229
+ */
230
+ messageFlowDetails?: pulumi.Input<inputs.TenDlcMessageFlowDetailsArgs | undefined>;
231
+ /**
232
+ * Keywords that opt a subscriber in, comma separated. Needs optInMessage.
233
+ */
234
+ optInKeywords?: pulumi.Input<string | undefined>;
235
+ /**
236
+ * Confirmation sent when a subscriber opts in (20 to 320 characters).
237
+ */
238
+ optInMessage: pulumi.Input<string>;
239
+ /**
240
+ * Keywords that opt a subscriber out, comma separated.
241
+ */
242
+ optOutKeywords?: pulumi.Input<string | undefined>;
243
+ /**
244
+ * Confirmation sent when a subscriber opts out (20 to 320 characters).
245
+ */
246
+ optOutMessage: pulumi.Input<string>;
247
+ /**
248
+ * Whether the campaign is registered by a reseller.
249
+ */
250
+ reseller?: pulumi.Input<boolean | undefined>;
251
+ /**
252
+ * ID of the reseller the campaign is registered for (at most 8 characters).
253
+ */
254
+ resellerId?: pulumi.Input<string | undefined>;
255
+ /**
256
+ * One to five sample messages (20 to 1024 characters each). Vonage needs at least as many as the use case and the sub use cases require.
257
+ */
258
+ samples: pulumi.Input<pulumi.Input<string>[]>;
259
+ /**
260
+ * Sub use cases of a MIXED-style campaign. Changing them replaces the campaign.
261
+ */
262
+ subUsecases?: pulumi.Input<pulumi.Input<string>[] | undefined>;
263
+ /**
264
+ * Must be true: you agree to the 10DLC terms and conditions. Vonage never returns it, so it is not refreshed; an import sets it to true.
265
+ */
266
+ tcAgreed: pulumi.Input<boolean>;
267
+ /**
268
+ * Up to 15 sample links that might be sent to subscribers.
269
+ */
270
+ urlSamples?: pulumi.Input<pulumi.Input<string>[] | undefined>;
271
+ /**
272
+ * Use case: CUSTOMER_CARE, POLLING_VOTING, HIGHER_EDUCATION, PUBLIC_SERVICE_ANNOUNCEMENT, MARKETING or SECURITY_ALERT (the list can grow, see Vonage's enum endpoint). Read-only once Vonage approved the campaign, so changing it replaces the campaign.
273
+ */
274
+ usecase: pulumi.Input<string>;
275
+ /**
276
+ * Industry vertical. Read-only once the campaign is approved, so changing it replaces the campaign.
277
+ */
278
+ vertical?: pulumi.Input<string | undefined>;
279
+ }
280
+ //# sourceMappingURL=tenDlcCampaign.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenDlcCampaign.d.ts","sourceRoot":"","sources":["../tenDlcCampaign.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;GAEG;AACH,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;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,cAAc;IAOjH;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,cAAc;IAOzD;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrE;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACrE;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACxE;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD;;OAEG;IACH,SAAgC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClE;;OAEG;IACH,SAAgC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/E;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,C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K,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/C"}
@@ -0,0 +1,171 @@
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.TenDlcCampaign = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * A 10DLC campaign: one messaging use case of a brand, registered with The Campaign Registry through Vonage. Registration is billed, reviewed by Vonage and the carriers (status moves from PENDING_REVIEW towards ACTIVE on its own) and never retried after an unknown outcome. Vonage cannot delete a campaign: destroy turns auto-renewal off, so it ends at its renewal date, and an ended campaign reads as gone. Fields Vonage locks after approval replace the campaign when changed. The resource ID is BRAND_ID/CAMPAIGN_ID. Shapes follow the published Vonage 10DLC OpenAPI definition and were not verified against a live account.
33
+ */
34
+ class TenDlcCampaign extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing TenDlcCampaign 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 TenDlcCampaign(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:TenDlcCampaign';
48
+ /**
49
+ * Returns true if the given object is an instance of TenDlcCampaign. 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'] === TenDlcCampaign.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a TenDlcCampaign 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?.brandId === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'brandId'");
71
+ }
72
+ if (args?.description === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'description'");
74
+ }
75
+ if (args?.helpMessage === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'helpMessage'");
77
+ }
78
+ if (args?.optInMessage === undefined && !opts.urn) {
79
+ throw new Error("Missing required property 'optInMessage'");
80
+ }
81
+ if (args?.optOutMessage === undefined && !opts.urn) {
82
+ throw new Error("Missing required property 'optOutMessage'");
83
+ }
84
+ if (args?.samples === undefined && !opts.urn) {
85
+ throw new Error("Missing required property 'samples'");
86
+ }
87
+ if (args?.tcAgreed === undefined && !opts.urn) {
88
+ throw new Error("Missing required property 'tcAgreed'");
89
+ }
90
+ if (args?.usecase === undefined && !opts.urn) {
91
+ throw new Error("Missing required property 'usecase'");
92
+ }
93
+ resourceInputs["accountId"] = args?.accountId;
94
+ resourceInputs["ageGated"] = args?.ageGated;
95
+ resourceInputs["autoRenewal"] = args?.autoRenewal;
96
+ resourceInputs["brandId"] = args?.brandId;
97
+ resourceInputs["description"] = args?.description;
98
+ resourceInputs["directLending"] = args?.directLending;
99
+ resourceInputs["embeddedLink"] = args?.embeddedLink;
100
+ resourceInputs["embeddedPhone"] = args?.embeddedPhone;
101
+ resourceInputs["helpKeywords"] = args?.helpKeywords;
102
+ resourceInputs["helpMessage"] = args?.helpMessage;
103
+ resourceInputs["hipaa"] = args?.hipaa;
104
+ resourceInputs["label"] = args?.label;
105
+ resourceInputs["messageFlow"] = args?.messageFlow;
106
+ resourceInputs["messageFlowDetails"] = args?.messageFlowDetails;
107
+ resourceInputs["optInKeywords"] = args?.optInKeywords;
108
+ resourceInputs["optInMessage"] = args?.optInMessage;
109
+ resourceInputs["optOutKeywords"] = args?.optOutKeywords;
110
+ resourceInputs["optOutMessage"] = args?.optOutMessage;
111
+ resourceInputs["reseller"] = args?.reseller;
112
+ resourceInputs["resellerId"] = args?.resellerId;
113
+ resourceInputs["samples"] = args?.samples;
114
+ resourceInputs["subUsecases"] = args?.subUsecases;
115
+ resourceInputs["tcAgreed"] = args?.tcAgreed;
116
+ resourceInputs["urlSamples"] = args?.urlSamples;
117
+ resourceInputs["usecase"] = args?.usecase;
118
+ resourceInputs["vertical"] = args?.vertical;
119
+ resourceInputs["campaignId"] = undefined /*out*/;
120
+ resourceInputs["createdDate"] = undefined /*out*/;
121
+ resourceInputs["lastUpdated"] = undefined /*out*/;
122
+ resourceInputs["registrationDate"] = undefined /*out*/;
123
+ resourceInputs["renewalDate"] = undefined /*out*/;
124
+ resourceInputs["status"] = undefined /*out*/;
125
+ resourceInputs["tcrCampaignId"] = undefined /*out*/;
126
+ resourceInputs["tcrStatus"] = undefined /*out*/;
127
+ resourceInputs["trafficEnabled"] = undefined /*out*/;
128
+ }
129
+ else {
130
+ resourceInputs["accountId"] = undefined /*out*/;
131
+ resourceInputs["ageGated"] = undefined /*out*/;
132
+ resourceInputs["autoRenewal"] = undefined /*out*/;
133
+ resourceInputs["brandId"] = undefined /*out*/;
134
+ resourceInputs["campaignId"] = undefined /*out*/;
135
+ resourceInputs["createdDate"] = undefined /*out*/;
136
+ resourceInputs["description"] = undefined /*out*/;
137
+ resourceInputs["directLending"] = undefined /*out*/;
138
+ resourceInputs["embeddedLink"] = undefined /*out*/;
139
+ resourceInputs["embeddedPhone"] = undefined /*out*/;
140
+ resourceInputs["helpKeywords"] = undefined /*out*/;
141
+ resourceInputs["helpMessage"] = undefined /*out*/;
142
+ resourceInputs["hipaa"] = undefined /*out*/;
143
+ resourceInputs["label"] = undefined /*out*/;
144
+ resourceInputs["lastUpdated"] = undefined /*out*/;
145
+ resourceInputs["messageFlow"] = undefined /*out*/;
146
+ resourceInputs["messageFlowDetails"] = undefined /*out*/;
147
+ resourceInputs["optInKeywords"] = undefined /*out*/;
148
+ resourceInputs["optInMessage"] = undefined /*out*/;
149
+ resourceInputs["optOutKeywords"] = undefined /*out*/;
150
+ resourceInputs["optOutMessage"] = undefined /*out*/;
151
+ resourceInputs["registrationDate"] = undefined /*out*/;
152
+ resourceInputs["renewalDate"] = undefined /*out*/;
153
+ resourceInputs["reseller"] = undefined /*out*/;
154
+ resourceInputs["resellerId"] = undefined /*out*/;
155
+ resourceInputs["samples"] = undefined /*out*/;
156
+ resourceInputs["status"] = undefined /*out*/;
157
+ resourceInputs["subUsecases"] = undefined /*out*/;
158
+ resourceInputs["tcAgreed"] = undefined /*out*/;
159
+ resourceInputs["tcrCampaignId"] = undefined /*out*/;
160
+ resourceInputs["tcrStatus"] = undefined /*out*/;
161
+ resourceInputs["trafficEnabled"] = undefined /*out*/;
162
+ resourceInputs["urlSamples"] = undefined /*out*/;
163
+ resourceInputs["usecase"] = undefined /*out*/;
164
+ resourceInputs["vertical"] = undefined /*out*/;
165
+ }
166
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
167
+ super(TenDlcCampaign.__pulumiType, name, resourceInputs, opts);
168
+ }
169
+ }
170
+ exports.TenDlcCampaign = TenDlcCampaign;
171
+ //# sourceMappingURL=tenDlcCampaign.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenDlcCampaign.js","sourceRoot":"","sources":["../tenDlcCampaign.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,6BAA6B,CAAC;IAEpE;;;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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IA+ID;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAwB,EAAE,IAAmC;QACnF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,I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,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AArRL,wCAsRC"}
@@ -0,0 +1,74 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Links an owned Vonage number to a 10DLC campaign so it may send campaign traffic. Vonage accepts the link asynchronously (HTTP 202), so the status starts as LINKING; the create then reads the link back and, if Vonage rejected it, reports the resource as partially created (it stays in state, so the next apply or destroy handles it). The resource ID is BRAND_ID/CAMPAIGN_ID/NUMBER. Every input replaces the link, and destroy unlinks the number. Shapes follow the published Vonage 10DLC OpenAPI definition and were not verified against a live account.
4
+ */
5
+ export declare class TenDlcCampaignNumber extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing TenDlcCampaignNumber 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): TenDlcCampaignNumber;
15
+ /**
16
+ * Returns true if the given object is an instance of TenDlcCampaignNumber. 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 TenDlcCampaignNumber;
20
+ /**
21
+ * ID of the brand that owns the campaign. Changing it replaces the link.
22
+ */
23
+ readonly brandId: pulumi.Output<string>;
24
+ /**
25
+ * ID of the campaign (the campaignId of a TenDlcCampaign). Changing it replaces the link.
26
+ */
27
+ readonly campaignId: pulumi.Output<string>;
28
+ /**
29
+ * Compliance findings Vonage reports for the number, if any.
30
+ */
31
+ readonly compliance: pulumi.Output<string[]>;
32
+ /**
33
+ * Two-letter ISO 3166 country code of the number, in capitals. Changing it replaces the link.
34
+ */
35
+ readonly country: pulumi.Output<string>;
36
+ /**
37
+ * The Vonage number to link, digits only with the country code (7 to 15 digits). It must be owned by the account. Changing it replaces the link.
38
+ */
39
+ readonly number: pulumi.Output<string>;
40
+ /**
41
+ * Link status: LINKING, LINKED or UNLINKING. Only LINKED allows traffic. It moves on its own; a link Vonage rejects fails the create.
42
+ */
43
+ readonly status: pulumi.Output<string>;
44
+ /**
45
+ * Create a TenDlcCampaignNumber 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: string, args: TenDlcCampaignNumberArgs, opts?: pulumi.CustomResourceOptions);
52
+ }
53
+ /**
54
+ * The set of arguments for constructing a TenDlcCampaignNumber resource.
55
+ */
56
+ export interface TenDlcCampaignNumberArgs {
57
+ /**
58
+ * ID of the brand that owns the campaign. Changing it replaces the link.
59
+ */
60
+ brandId: pulumi.Input<string>;
61
+ /**
62
+ * ID of the campaign (the campaignId of a TenDlcCampaign). Changing it replaces the link.
63
+ */
64
+ campaignId: pulumi.Input<string>;
65
+ /**
66
+ * Two-letter ISO 3166 country code of the number, in capitals. Changing it replaces the link.
67
+ */
68
+ country: pulumi.Input<string>;
69
+ /**
70
+ * The Vonage number to link, digits only with the country code (7 to 15 digits). It must be owned by the account. Changing it replaces the link.
71
+ */
72
+ number: pulumi.Input<string>;
73
+ }
74
+ //# sourceMappingURL=tenDlcCampaignNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenDlcCampaignNumber.d.ts","sourceRoot":"","sources":["../tenDlcCampaignNumber.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;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,oBAAoB;IAOvH;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,oBAAoB;IAO/D;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAgC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACpE;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD;;OAEG;IACH,SAAgC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAE9D;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAiChG;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
@@ -0,0 +1,101 @@
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.TenDlcCampaignNumber = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Links an owned Vonage number to a 10DLC campaign so it may send campaign traffic. Vonage accepts the link asynchronously (HTTP 202), so the status starts as LINKING; the create then reads the link back and, if Vonage rejected it, reports the resource as partially created (it stays in state, so the next apply or destroy handles it). The resource ID is BRAND_ID/CAMPAIGN_ID/NUMBER. Every input replaces the link, and destroy unlinks the number. Shapes follow the published Vonage 10DLC OpenAPI definition and were not verified against a live account.
33
+ */
34
+ class TenDlcCampaignNumber extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing TenDlcCampaignNumber 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 TenDlcCampaignNumber(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:TenDlcCampaignNumber';
48
+ /**
49
+ * Returns true if the given object is an instance of TenDlcCampaignNumber. 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'] === TenDlcCampaignNumber.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a TenDlcCampaignNumber 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?.brandId === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'brandId'");
71
+ }
72
+ if (args?.campaignId === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'campaignId'");
74
+ }
75
+ if (args?.country === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'country'");
77
+ }
78
+ if (args?.number === undefined && !opts.urn) {
79
+ throw new Error("Missing required property 'number'");
80
+ }
81
+ resourceInputs["brandId"] = args?.brandId;
82
+ resourceInputs["campaignId"] = args?.campaignId;
83
+ resourceInputs["country"] = args?.country;
84
+ resourceInputs["number"] = args?.number;
85
+ resourceInputs["compliance"] = undefined /*out*/;
86
+ resourceInputs["status"] = undefined /*out*/;
87
+ }
88
+ else {
89
+ resourceInputs["brandId"] = undefined /*out*/;
90
+ resourceInputs["campaignId"] = undefined /*out*/;
91
+ resourceInputs["compliance"] = undefined /*out*/;
92
+ resourceInputs["country"] = undefined /*out*/;
93
+ resourceInputs["number"] = undefined /*out*/;
94
+ resourceInputs["status"] = undefined /*out*/;
95
+ }
96
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
97
+ super(TenDlcCampaignNumber.__pulumiType, name, resourceInputs, opts);
98
+ }
99
+ }
100
+ exports.TenDlcCampaignNumber = TenDlcCampaignNumber;
101
+ //# sourceMappingURL=tenDlcCampaignNumber.js.map