@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
107 lines • 4.05 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Multiplex = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Resource for managing an AWS MediaLive Multiplex.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const available = aws.getAvailabilityZones({
* state: "available",
* });
* const example = new aws.medialive.Multiplex("example", {
* name: "example-multiplex-changed",
* availabilityZones: [
* available.then(available => available.names?.[0]),
* available.then(available => available.names?.[1]),
* ],
* multiplexSettings: {
* transportStreamBitrate: 1000000,
* transportStreamId: 1,
* transportStreamReservedBitrate: 1,
* maximumVideoBufferDelayMilliseconds: 1000,
* },
* startMultiplex: true,
* tags: {
* tag1: "value1",
* },
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import MediaLive Multiplex using the `id`. For example:
*
* ```sh
* $ pulumi import aws:medialive/multiplex:Multiplex example 12345678
* ```
*/
class Multiplex extends pulumi.CustomResource {
/**
* Get an existing Multiplex 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 Multiplex(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Multiplex. 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'] === Multiplex.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arn"] = state?.arn;
resourceInputs["availabilityZones"] = state?.availabilityZones;
resourceInputs["multiplexSettings"] = state?.multiplexSettings;
resourceInputs["name"] = state?.name;
resourceInputs["region"] = state?.region;
resourceInputs["startMultiplex"] = state?.startMultiplex;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
}
else {
const args = argsOrState;
if (args?.availabilityZones === undefined && !opts.urn) {
throw new Error("Missing required property 'availabilityZones'");
}
resourceInputs["availabilityZones"] = args?.availabilityZones;
resourceInputs["multiplexSettings"] = args?.multiplexSettings;
resourceInputs["name"] = args?.name;
resourceInputs["region"] = args?.region;
resourceInputs["startMultiplex"] = args?.startMultiplex;
resourceInputs["tags"] = args?.tags;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Multiplex.__pulumiType, name, resourceInputs, opts);
}
}
exports.Multiplex = Multiplex;
/** @internal */
Multiplex.__pulumiType = 'aws:medialive/multiplex:Multiplex';
//# sourceMappingURL=multiplex.js.map