UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

237 lines 12 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Conference = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * ## Appendix * * <a name="timeZoneMapping"></a> * The time zone mapping relationship supports: * * | Timezone ID | Timezone | * | ---- | ---- | * | 1 | (GMT-12:00) Eniwetok, Kwajalein | * | 2 | (GMT-11:00) Midway Island, Samoa | * | 3 | (GMT-10:00) Hawaii | * | 4 | (GMT-09:00) Alaska | * | 5 | (GMT-08:00) Pacific Time(US&Canada);Tijuana | * | 6 | (GMT-07:00) Arizona | * | 7 | (GMT-07:00) Mountain Time(US&Canada) | * | 8 | (GMT-06:00) Central America | * | 9 | (GMT-06:00) Central Time(US&Canada) | * | 10 | (GMT-06:00) Mexico City | * | 11 | (GMT-06:00) Saskatchewan | * | 12 | (GMT-05:00) Bogota, Lima, Quito | * | 13 | (GMT-05:00) Eastern Time(US&Canada) | * | 14 | (GMT-05:00) Indiana(East) | * | 15 | (GMT-04:00) Atlantic time(Canada) | * | 16 | (GMT-04:00) Caracas, La Paz | * | 17 | (GMT-04:00) Santiago | * | 18 | (GMT-03:30) Newfoundland | * | 19 | (GMT-03:00) Brasilia | * | 20 | (GMT-03:00) Buenos Aires, Georgetown | * | 21 | (GMT-03:00) Greenland | * | 22 | (GMT-02:00) Mid-Atlantic | * | 23 | (GMT-01:00) Azores | * | 24 | (GMT-01:00) Cape Verde Is. | * | 25 | (GMT) Casablanca, Monrovia | * | 26 | (GMT) Greenwich Mean Time:Dublin, Edinburgh, Lisbon, London | * | 27 | (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | * | 28 | (GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague | * | 29 | (GMT+01:00) Brussels, Copenhagen, Madrid, Paris | * | 30 | (GMT+01:00) Sarajevo, Skopje, Sofija, Warsaw, Zagreb | * | 31 | (GMT+01:00) West Central Africa | * | 32 | (GMT+02:00) Athens, Istanbul, Vilnius | * | 33 | (GMT+02:00) Bucharest | * | 34 | (GMT+02:00) Cairo | * | 35 | (GMT+02:00) Harare, Pretoria | * | 36 | (GMT+02:00) Helsinki, Riga, Tallinn | * | 37 | (GMT+02:00) Jerusalem | * | 38 | (GMT+03:00) Baghdad, Minsk | * | 39 | (GMT+03:00) Kuwait, Riyadh | * | 40 | (GMT+03:00) Moscow, St. Petersburg, Volgograd | * | 41 | (GMT+03:00) Nairobi | * | 42 | (GMT+03:30) Tehran | * | 43 | (GMT+04:00) Abu Dhabi, Muscat | * | 44 | (GMT+04:00) Baku, Tbilisi, Yerevan | * | 45 | (GMT+04:30) Kabul | * | 46 | (GMT+05:00) Ekaterinburg | * | 47 | (GMT+05:00) Islamabad, Karachi, Tashkent | * | 48 | (GMT+05:30) Calcutta, Chennai, Mumbai, New Delhi | * | 49 | (GMT+05:45) Kathmandu | * | 50 | (GMT+06:00) Almaty, Novosibirsk | * | 51 | (GMT+06:00) Astana, Dhaka | * | 52 | (GMT+06:00) Sri Jayawardenepura | * | 53 | (GMT+06:30) Rangoon | * | 54 | (GMT+07:00) Bangkok, Hanoi, Jakarta | * | 55 | (GMT+07:00) Krasnoyarsk | * | 56 | (GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi, Taipei | * | 57 | (GMT+08:00) Irkutsk, Ulaan Bataar | * | 58 | (GMT+08:00) Kuala Lumpur, Singapore | * | 59 | (GMT+08:00) Perth | * | 60 | (GMT+09:00) Osaka, Sapporo, Tokyo | * | 61 | (GMT+09:00) Seoul | * | 62 | (GMT+09:00) Yakutsk | * | 63 | (GMT+09:30) Adelaide | * | 64 | (GMT+09:30) Darwin | * | 65 | (GMT+10:00) Brisbane | * | 66 | (GMT+10:00) Canberra, Melbourne, Sydney | * | 67 | (GMT+10:00) Guam, Port Moresby | * | 68 | (GMT+10:00) Hobart | * | 69 | (GMT+10:00) Vladivostok | * | 70 | (GMT+11:00) Magadan, Solomon Is., New Caledonia | * | 71 | (GMT+12:00) Auckland, Welington | * | 72 | (GMT+12:00) Fiji | * | 73 | (GMT+13:00) Nuku'alofa | * | 74 | (GMT+09:00) Irkutsk | * | 75 | (GMT) Casablanca | * | 76 | (GMT+04:00) Baku | * | 77 | (GMT+12:00) Kamchatka, Marshall Is. | * * ## Import * * Conferences (only scheduled conference and progressing conference) can be imported using their `id` and authorization parameters, separated by slashes, e.g. Import a conference and authenticated by account. bash * * ```sh * $ pulumi import huaweicloud:Meeting/conference:Conference test <id>/<account_name>/<account_password> * ``` * * Import a conference and authenticated by `APP ID`/`APP Key`. bash * * ```sh * $ pulumi import huaweicloud:Meeting/conference:Conference test <id>/<app_id>/<app_key>/<corp_id>/<user_id> * ``` * * The slashes cannot be missing even corporation ID and user ID are empty. Note that importing is not supported for expired conferences and the start time of the meeting is not imported along with it. You can ignore this change as below. hcl resource "huaweicloud_meeting_conference" "test" { * * ... * * lifecycle { * * ignore_changes = [ * * start_time, * * ] * * } } */ class Conference extends pulumi.CustomResource { /** * Get an existing Conference resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Conference(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Conference. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Conference.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accessNumber"] = state ? state.accessNumber : undefined; resourceInputs["accountName"] = state ? state.accountName : undefined; resourceInputs["accountPassword"] = state ? state.accountPassword : undefined; resourceInputs["appId"] = state ? state.appId : undefined; resourceInputs["appKey"] = state ? state.appKey : undefined; resourceInputs["audienceJoinUri"] = state ? state.audienceJoinUri : undefined; resourceInputs["auxAddress"] = state ? state.auxAddress : undefined; resourceInputs["chairJoinUri"] = state ? state.chairJoinUri : undefined; resourceInputs["conferenceType"] = state ? state.conferenceType : undefined; resourceInputs["conferenceUuid"] = state ? state.conferenceUuid : undefined; resourceInputs["configuration"] = state ? state.configuration : undefined; resourceInputs["corpId"] = state ? state.corpId : undefined; resourceInputs["cycleParams"] = state ? state.cycleParams : undefined; resourceInputs["duration"] = state ? state.duration : undefined; resourceInputs["encryptMode"] = state ? state.encryptMode : undefined; resourceInputs["guestJoinUri"] = state ? state.guestJoinUri : undefined; resourceInputs["isAutoRecord"] = state ? state.isAutoRecord : undefined; resourceInputs["isRecordAuxStream"] = state ? state.isRecordAuxStream : undefined; resourceInputs["joinPasswords"] = state ? state.joinPasswords : undefined; resourceInputs["language"] = state ? state.language : undefined; resourceInputs["liveAddress"] = state ? state.liveAddress : undefined; resourceInputs["mediaTypes"] = state ? state.mediaTypes : undefined; resourceInputs["meetingRoomId"] = state ? state.meetingRoomId : undefined; resourceInputs["participantNumber"] = state ? state.participantNumber : undefined; resourceInputs["participants"] = state ? state.participants : undefined; resourceInputs["recordAuthType"] = state ? state.recordAuthType : undefined; resourceInputs["recordType"] = state ? state.recordType : undefined; resourceInputs["startTime"] = state ? state.startTime : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["subconferences"] = state ? state.subconferences : undefined; resourceInputs["timezoneId"] = state ? state.timezoneId : undefined; resourceInputs["topic"] = state ? state.topic : undefined; resourceInputs["userId"] = state ? state.userId : undefined; } else { const args = argsOrState; if ((!args || args.duration === undefined) && !opts.urn) { throw new Error("Missing required property 'duration'"); } if ((!args || args.meetingRoomId === undefined) && !opts.urn) { throw new Error("Missing required property 'meetingRoomId'"); } if ((!args || args.topic === undefined) && !opts.urn) { throw new Error("Missing required property 'topic'"); } resourceInputs["accountName"] = args ? args.accountName : undefined; resourceInputs["accountPassword"] = args ? args.accountPassword : undefined; resourceInputs["appId"] = args ? args.appId : undefined; resourceInputs["appKey"] = args ? args.appKey : undefined; resourceInputs["auxAddress"] = args ? args.auxAddress : undefined; resourceInputs["configuration"] = args ? args.configuration : undefined; resourceInputs["corpId"] = args ? args.corpId : undefined; resourceInputs["cycleParams"] = args ? args.cycleParams : undefined; resourceInputs["duration"] = args ? args.duration : undefined; resourceInputs["encryptMode"] = args ? args.encryptMode : undefined; resourceInputs["isAutoRecord"] = args ? args.isAutoRecord : undefined; resourceInputs["isRecordAuxStream"] = args ? args.isRecordAuxStream : undefined; resourceInputs["language"] = args ? args.language : undefined; resourceInputs["liveAddress"] = args ? args.liveAddress : undefined; resourceInputs["mediaTypes"] = args ? args.mediaTypes : undefined; resourceInputs["meetingRoomId"] = args ? args.meetingRoomId : undefined; resourceInputs["participantNumber"] = args ? args.participantNumber : undefined; resourceInputs["participants"] = args ? args.participants : undefined; resourceInputs["recordAuthType"] = args ? args.recordAuthType : undefined; resourceInputs["recordType"] = args ? args.recordType : undefined; resourceInputs["startTime"] = args ? args.startTime : undefined; resourceInputs["timezoneId"] = args ? args.timezoneId : undefined; resourceInputs["topic"] = args ? args.topic : undefined; resourceInputs["userId"] = args ? args.userId : undefined; resourceInputs["accessNumber"] = undefined /*out*/; resourceInputs["audienceJoinUri"] = undefined /*out*/; resourceInputs["chairJoinUri"] = undefined /*out*/; resourceInputs["conferenceType"] = undefined /*out*/; resourceInputs["conferenceUuid"] = undefined /*out*/; resourceInputs["guestJoinUri"] = undefined /*out*/; resourceInputs["joinPasswords"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["subconferences"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Conference.__pulumiType, name, resourceInputs, opts); } } exports.Conference = Conference; /** @internal */ Conference.__pulumiType = 'huaweicloud:Meeting/conference:Conference'; //# sourceMappingURL=conference.js.map