Resource: awsMedialiveMultiplex
Terraform resource for managing an AWS MediaLive Multiplex.
Example Usage
Basic Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsAvailabilityZonesAvailable =
new aws.dataAwsAvailabilityZones.DataAwsAvailabilityZones(this, "available", {
state: "available",
});
new aws.medialiveMultiplex.MedialiveMultiplex(this, "example", {
availabilityZones: [
`\${${dataAwsAvailabilityZonesAvailable.names.fqn}[0]}`,
`\${${dataAwsAvailabilityZonesAvailable.names.fqn}[1]}`,
],
multiplexSettings: {
maximumVideoBufferDelayMilliseconds: 1000,
transportStreamBitrate: 1000000,
transportStreamId: 1,
transportStreamReservedBitrate: 1,
},
name: "example-multiplex-changed",
startMultiplex: true,
tags: {
tag1: "value1",
},
});
Argument Reference
The following arguments are required:
availabilityZones
- (Required) A list of availability zones. You must specify exactly two.multiplexSettings
- (Required) Multiplex settings. See Multiplex Settings for more details.name
- (Required) name of Multiplex.
The following arguments are optional:
startMultiplex
- (Optional) Whether to start the Multiplex. Defaults tofalse
.tags
- (Optional) A map of tags to assign to the Multiplex. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Multiplex Settings
transportStreamBitrate
- (Required) Transport stream bit rate.transportStreamId
- (Required) Unique ID for each multiplex.transportStreamReservedBitrate
- (Optional) Transport stream reserved bit rate.maximumVideoBufferDelayMilliseconds
- (Optional) Maximum video buffer delay.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- ARN of the Multiplex.
Timeouts
create
- (Default30M
)update
- (Default30M
)delete
- (Default30M
)
Import
MediaLive Multiplex can be imported using the id
, e.g.,