UNPKG

awscdk-construct-scte-scheduler

Version:

AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API

348 lines (347 loc) 20.1 kB
import { createAggregatedClient } from "@smithy/core/client"; import { AcceptInputDeviceTransferCommand, } from "./commands/AcceptInputDeviceTransferCommand"; import { BatchDeleteCommand, } from "./commands/BatchDeleteCommand"; import { BatchStartCommand, } from "./commands/BatchStartCommand"; import { BatchStopCommand } from "./commands/BatchStopCommand"; import { BatchUpdateScheduleCommand, } from "./commands/BatchUpdateScheduleCommand"; import { CancelInputDeviceTransferCommand, } from "./commands/CancelInputDeviceTransferCommand"; import { ClaimDeviceCommand, } from "./commands/ClaimDeviceCommand"; import { CreateChannelCommand, } from "./commands/CreateChannelCommand"; import { CreateChannelPlacementGroupCommand, } from "./commands/CreateChannelPlacementGroupCommand"; import { CreateCloudWatchAlarmTemplateCommand, } from "./commands/CreateCloudWatchAlarmTemplateCommand"; import { CreateCloudWatchAlarmTemplateGroupCommand, } from "./commands/CreateCloudWatchAlarmTemplateGroupCommand"; import { CreateClusterCommand, } from "./commands/CreateClusterCommand"; import { CreateEventBridgeRuleTemplateCommand, } from "./commands/CreateEventBridgeRuleTemplateCommand"; import { CreateEventBridgeRuleTemplateGroupCommand, } from "./commands/CreateEventBridgeRuleTemplateGroupCommand"; import { CreateInputCommand, } from "./commands/CreateInputCommand"; import { CreateInputSecurityGroupCommand, } from "./commands/CreateInputSecurityGroupCommand"; import { CreateMultiplexCommand, } from "./commands/CreateMultiplexCommand"; import { CreateMultiplexProgramCommand, } from "./commands/CreateMultiplexProgramCommand"; import { CreateNetworkCommand, } from "./commands/CreateNetworkCommand"; import { CreateNodeCommand, } from "./commands/CreateNodeCommand"; import { CreateNodeRegistrationScriptCommand, } from "./commands/CreateNodeRegistrationScriptCommand"; import { CreatePartnerInputCommand, } from "./commands/CreatePartnerInputCommand"; import { CreateSdiSourceCommand, } from "./commands/CreateSdiSourceCommand"; import { CreateSignalMapCommand, } from "./commands/CreateSignalMapCommand"; import { CreateTagsCommand, } from "./commands/CreateTagsCommand"; import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand"; import { DeleteChannelPlacementGroupCommand, } from "./commands/DeleteChannelPlacementGroupCommand"; import { DeleteCloudWatchAlarmTemplateCommand, } from "./commands/DeleteCloudWatchAlarmTemplateCommand"; import { DeleteCloudWatchAlarmTemplateGroupCommand, } from "./commands/DeleteCloudWatchAlarmTemplateGroupCommand"; import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand"; import { DeleteEventBridgeRuleTemplateCommand, } from "./commands/DeleteEventBridgeRuleTemplateCommand"; import { DeleteEventBridgeRuleTemplateGroupCommand, } from "./commands/DeleteEventBridgeRuleTemplateGroupCommand"; import { DeleteInputCommand, } from "./commands/DeleteInputCommand"; import { DeleteInputSecurityGroupCommand, } from "./commands/DeleteInputSecurityGroupCommand"; import { DeleteMultiplexCommand, } from "./commands/DeleteMultiplexCommand"; import { DeleteMultiplexProgramCommand, } from "./commands/DeleteMultiplexProgramCommand"; import { DeleteNetworkCommand, } from "./commands/DeleteNetworkCommand"; import { DeleteNodeCommand, } from "./commands/DeleteNodeCommand"; import { DeleteReservationCommand, } from "./commands/DeleteReservationCommand"; import { DeleteScheduleCommand, } from "./commands/DeleteScheduleCommand"; import { DeleteSdiSourceCommand, } from "./commands/DeleteSdiSourceCommand"; import { DeleteSignalMapCommand, } from "./commands/DeleteSignalMapCommand"; import { DeleteTagsCommand, } from "./commands/DeleteTagsCommand"; import { DescribeAccountConfigurationCommand, } from "./commands/DescribeAccountConfigurationCommand"; import { DescribeChannelCommand, } from "./commands/DescribeChannelCommand"; import { DescribeChannelPlacementGroupCommand, } from "./commands/DescribeChannelPlacementGroupCommand"; import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand"; import { DescribeInputCommand, } from "./commands/DescribeInputCommand"; import { DescribeInputDeviceCommand, } from "./commands/DescribeInputDeviceCommand"; import { DescribeInputDeviceThumbnailCommand, } from "./commands/DescribeInputDeviceThumbnailCommand"; import { DescribeInputSecurityGroupCommand, } from "./commands/DescribeInputSecurityGroupCommand"; import { DescribeMultiplexCommand, } from "./commands/DescribeMultiplexCommand"; import { DescribeMultiplexProgramCommand, } from "./commands/DescribeMultiplexProgramCommand"; import { DescribeNetworkCommand, } from "./commands/DescribeNetworkCommand"; import { DescribeNodeCommand, } from "./commands/DescribeNodeCommand"; import { DescribeOfferingCommand, } from "./commands/DescribeOfferingCommand"; import { DescribeReservationCommand, } from "./commands/DescribeReservationCommand"; import { DescribeScheduleCommand, } from "./commands/DescribeScheduleCommand"; import { DescribeSdiSourceCommand, } from "./commands/DescribeSdiSourceCommand"; import { DescribeThumbnailsCommand, } from "./commands/DescribeThumbnailsCommand"; import { GetCloudWatchAlarmTemplateCommand, } from "./commands/GetCloudWatchAlarmTemplateCommand"; import { GetCloudWatchAlarmTemplateGroupCommand, } from "./commands/GetCloudWatchAlarmTemplateGroupCommand"; import { GetEventBridgeRuleTemplateCommand, } from "./commands/GetEventBridgeRuleTemplateCommand"; import { GetEventBridgeRuleTemplateGroupCommand, } from "./commands/GetEventBridgeRuleTemplateGroupCommand"; import { GetSignalMapCommand, } from "./commands/GetSignalMapCommand"; import { ListAlertsCommand, } from "./commands/ListAlertsCommand"; import { ListChannelPlacementGroupsCommand, } from "./commands/ListChannelPlacementGroupsCommand"; import { ListChannelsCommand, } from "./commands/ListChannelsCommand"; import { ListCloudWatchAlarmTemplateGroupsCommand, } from "./commands/ListCloudWatchAlarmTemplateGroupsCommand"; import { ListCloudWatchAlarmTemplatesCommand, } from "./commands/ListCloudWatchAlarmTemplatesCommand"; import { ListClusterAlertsCommand, } from "./commands/ListClusterAlertsCommand"; import { ListClustersCommand, } from "./commands/ListClustersCommand"; import { ListEventBridgeRuleTemplateGroupsCommand, } from "./commands/ListEventBridgeRuleTemplateGroupsCommand"; import { ListEventBridgeRuleTemplatesCommand, } from "./commands/ListEventBridgeRuleTemplatesCommand"; import { ListInputDevicesCommand, } from "./commands/ListInputDevicesCommand"; import { ListInputDeviceTransfersCommand, } from "./commands/ListInputDeviceTransfersCommand"; import { ListInputsCommand, } from "./commands/ListInputsCommand"; import { ListInputSecurityGroupsCommand, } from "./commands/ListInputSecurityGroupsCommand"; import { ListMultiplexAlertsCommand, } from "./commands/ListMultiplexAlertsCommand"; import { ListMultiplexesCommand, } from "./commands/ListMultiplexesCommand"; import { ListMultiplexProgramsCommand, } from "./commands/ListMultiplexProgramsCommand"; import { ListNetworksCommand, } from "./commands/ListNetworksCommand"; import { ListNodesCommand } from "./commands/ListNodesCommand"; import { ListOfferingsCommand, } from "./commands/ListOfferingsCommand"; import { ListReservationsCommand, } from "./commands/ListReservationsCommand"; import { ListSdiSourcesCommand, } from "./commands/ListSdiSourcesCommand"; import { ListSignalMapsCommand, } from "./commands/ListSignalMapsCommand"; import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand"; import { ListVersionsCommand, } from "./commands/ListVersionsCommand"; import { PurchaseOfferingCommand, } from "./commands/PurchaseOfferingCommand"; import { RebootInputDeviceCommand, } from "./commands/RebootInputDeviceCommand"; import { RejectInputDeviceTransferCommand, } from "./commands/RejectInputDeviceTransferCommand"; import { RestartChannelPipelinesCommand, } from "./commands/RestartChannelPipelinesCommand"; import { StartChannelCommand, } from "./commands/StartChannelCommand"; import { StartDeleteMonitorDeploymentCommand, } from "./commands/StartDeleteMonitorDeploymentCommand"; import { StartInputDeviceCommand, } from "./commands/StartInputDeviceCommand"; import { StartInputDeviceMaintenanceWindowCommand, } from "./commands/StartInputDeviceMaintenanceWindowCommand"; import { StartMonitorDeploymentCommand, } from "./commands/StartMonitorDeploymentCommand"; import { StartMultiplexCommand, } from "./commands/StartMultiplexCommand"; import { StartUpdateSignalMapCommand, } from "./commands/StartUpdateSignalMapCommand"; import { StopChannelCommand, } from "./commands/StopChannelCommand"; import { StopInputDeviceCommand, } from "./commands/StopInputDeviceCommand"; import { StopMultiplexCommand, } from "./commands/StopMultiplexCommand"; import { TransferInputDeviceCommand, } from "./commands/TransferInputDeviceCommand"; import { UpdateAccountConfigurationCommand, } from "./commands/UpdateAccountConfigurationCommand"; import { UpdateChannelClassCommand, } from "./commands/UpdateChannelClassCommand"; import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand"; import { UpdateChannelPlacementGroupCommand, } from "./commands/UpdateChannelPlacementGroupCommand"; import { UpdateCloudWatchAlarmTemplateCommand, } from "./commands/UpdateCloudWatchAlarmTemplateCommand"; import { UpdateCloudWatchAlarmTemplateGroupCommand, } from "./commands/UpdateCloudWatchAlarmTemplateGroupCommand"; import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand"; import { UpdateEventBridgeRuleTemplateCommand, } from "./commands/UpdateEventBridgeRuleTemplateCommand"; import { UpdateEventBridgeRuleTemplateGroupCommand, } from "./commands/UpdateEventBridgeRuleTemplateGroupCommand"; import { UpdateInputCommand, } from "./commands/UpdateInputCommand"; import { UpdateInputDeviceCommand, } from "./commands/UpdateInputDeviceCommand"; import { UpdateInputSecurityGroupCommand, } from "./commands/UpdateInputSecurityGroupCommand"; import { UpdateMultiplexCommand, } from "./commands/UpdateMultiplexCommand"; import { UpdateMultiplexProgramCommand, } from "./commands/UpdateMultiplexProgramCommand"; import { UpdateNetworkCommand, } from "./commands/UpdateNetworkCommand"; import { UpdateNodeCommand, } from "./commands/UpdateNodeCommand"; import { UpdateNodeStateCommand, } from "./commands/UpdateNodeStateCommand"; import { UpdateReservationCommand, } from "./commands/UpdateReservationCommand"; import { UpdateSdiSourceCommand, } from "./commands/UpdateSdiSourceCommand"; import { MediaLiveClient } from "./MediaLiveClient"; import { paginateDescribeSchedule } from "./pagination/DescribeSchedulePaginator"; import { paginateListAlerts } from "./pagination/ListAlertsPaginator"; import { paginateListChannelPlacementGroups } from "./pagination/ListChannelPlacementGroupsPaginator"; import { paginateListChannels } from "./pagination/ListChannelsPaginator"; import { paginateListCloudWatchAlarmTemplateGroups } from "./pagination/ListCloudWatchAlarmTemplateGroupsPaginator"; import { paginateListCloudWatchAlarmTemplates } from "./pagination/ListCloudWatchAlarmTemplatesPaginator"; import { paginateListClusterAlerts } from "./pagination/ListClusterAlertsPaginator"; import { paginateListClusters } from "./pagination/ListClustersPaginator"; import { paginateListEventBridgeRuleTemplateGroups } from "./pagination/ListEventBridgeRuleTemplateGroupsPaginator"; import { paginateListEventBridgeRuleTemplates } from "./pagination/ListEventBridgeRuleTemplatesPaginator"; import { paginateListInputDevices } from "./pagination/ListInputDevicesPaginator"; import { paginateListInputDeviceTransfers } from "./pagination/ListInputDeviceTransfersPaginator"; import { paginateListInputSecurityGroups } from "./pagination/ListInputSecurityGroupsPaginator"; import { paginateListInputs } from "./pagination/ListInputsPaginator"; import { paginateListMultiplexAlerts } from "./pagination/ListMultiplexAlertsPaginator"; import { paginateListMultiplexes } from "./pagination/ListMultiplexesPaginator"; import { paginateListMultiplexPrograms } from "./pagination/ListMultiplexProgramsPaginator"; import { paginateListNetworks } from "./pagination/ListNetworksPaginator"; import { paginateListNodes } from "./pagination/ListNodesPaginator"; import { paginateListOfferings } from "./pagination/ListOfferingsPaginator"; import { paginateListReservations } from "./pagination/ListReservationsPaginator"; import { paginateListSdiSources } from "./pagination/ListSdiSourcesPaginator"; import { paginateListSignalMaps } from "./pagination/ListSignalMapsPaginator"; import { waitUntilChannelCreated } from "./waiters/waitForChannelCreated"; import { waitUntilChannelDeleted } from "./waiters/waitForChannelDeleted"; import { waitUntilChannelPlacementGroupAssigned } from "./waiters/waitForChannelPlacementGroupAssigned"; import { waitUntilChannelPlacementGroupDeleted } from "./waiters/waitForChannelPlacementGroupDeleted"; import { waitUntilChannelPlacementGroupUnassigned } from "./waiters/waitForChannelPlacementGroupUnassigned"; import { waitUntilChannelRunning } from "./waiters/waitForChannelRunning"; import { waitUntilChannelStopped } from "./waiters/waitForChannelStopped"; import { waitUntilClusterCreated } from "./waiters/waitForClusterCreated"; import { waitUntilClusterDeleted } from "./waiters/waitForClusterDeleted"; import { waitUntilInputAttached } from "./waiters/waitForInputAttached"; import { waitUntilInputDeleted } from "./waiters/waitForInputDeleted"; import { waitUntilInputDetached } from "./waiters/waitForInputDetached"; import { waitUntilMultiplexCreated } from "./waiters/waitForMultiplexCreated"; import { waitUntilMultiplexDeleted } from "./waiters/waitForMultiplexDeleted"; import { waitUntilMultiplexRunning } from "./waiters/waitForMultiplexRunning"; import { waitUntilMultiplexStopped } from "./waiters/waitForMultiplexStopped"; import { waitUntilNodeDeregistered } from "./waiters/waitForNodeDeregistered"; import { waitUntilNodeRegistered } from "./waiters/waitForNodeRegistered"; import { waitUntilSignalMapCreated } from "./waiters/waitForSignalMapCreated"; import { waitUntilSignalMapMonitorDeleted } from "./waiters/waitForSignalMapMonitorDeleted"; import { waitUntilSignalMapMonitorDeployed } from "./waiters/waitForSignalMapMonitorDeployed"; import { waitUntilSignalMapUpdated } from "./waiters/waitForSignalMapUpdated"; const commands = { AcceptInputDeviceTransferCommand, BatchDeleteCommand, BatchStartCommand, BatchStopCommand, BatchUpdateScheduleCommand, CancelInputDeviceTransferCommand, ClaimDeviceCommand, CreateChannelCommand, CreateChannelPlacementGroupCommand, CreateCloudWatchAlarmTemplateCommand, CreateCloudWatchAlarmTemplateGroupCommand, CreateClusterCommand, CreateEventBridgeRuleTemplateCommand, CreateEventBridgeRuleTemplateGroupCommand, CreateInputCommand, CreateInputSecurityGroupCommand, CreateMultiplexCommand, CreateMultiplexProgramCommand, CreateNetworkCommand, CreateNodeCommand, CreateNodeRegistrationScriptCommand, CreatePartnerInputCommand, CreateSdiSourceCommand, CreateSignalMapCommand, CreateTagsCommand, DeleteChannelCommand, DeleteChannelPlacementGroupCommand, DeleteCloudWatchAlarmTemplateCommand, DeleteCloudWatchAlarmTemplateGroupCommand, DeleteClusterCommand, DeleteEventBridgeRuleTemplateCommand, DeleteEventBridgeRuleTemplateGroupCommand, DeleteInputCommand, DeleteInputSecurityGroupCommand, DeleteMultiplexCommand, DeleteMultiplexProgramCommand, DeleteNetworkCommand, DeleteNodeCommand, DeleteReservationCommand, DeleteScheduleCommand, DeleteSdiSourceCommand, DeleteSignalMapCommand, DeleteTagsCommand, DescribeAccountConfigurationCommand, DescribeChannelCommand, DescribeChannelPlacementGroupCommand, DescribeClusterCommand, DescribeInputCommand, DescribeInputDeviceCommand, DescribeInputDeviceThumbnailCommand, DescribeInputSecurityGroupCommand, DescribeMultiplexCommand, DescribeMultiplexProgramCommand, DescribeNetworkCommand, DescribeNodeCommand, DescribeOfferingCommand, DescribeReservationCommand, DescribeScheduleCommand, DescribeSdiSourceCommand, DescribeThumbnailsCommand, GetCloudWatchAlarmTemplateCommand, GetCloudWatchAlarmTemplateGroupCommand, GetEventBridgeRuleTemplateCommand, GetEventBridgeRuleTemplateGroupCommand, GetSignalMapCommand, ListAlertsCommand, ListChannelPlacementGroupsCommand, ListChannelsCommand, ListCloudWatchAlarmTemplateGroupsCommand, ListCloudWatchAlarmTemplatesCommand, ListClusterAlertsCommand, ListClustersCommand, ListEventBridgeRuleTemplateGroupsCommand, ListEventBridgeRuleTemplatesCommand, ListInputDevicesCommand, ListInputDeviceTransfersCommand, ListInputsCommand, ListInputSecurityGroupsCommand, ListMultiplexAlertsCommand, ListMultiplexesCommand, ListMultiplexProgramsCommand, ListNetworksCommand, ListNodesCommand, ListOfferingsCommand, ListReservationsCommand, ListSdiSourcesCommand, ListSignalMapsCommand, ListTagsForResourceCommand, ListVersionsCommand, PurchaseOfferingCommand, RebootInputDeviceCommand, RejectInputDeviceTransferCommand, RestartChannelPipelinesCommand, StartChannelCommand, StartDeleteMonitorDeploymentCommand, StartInputDeviceCommand, StartInputDeviceMaintenanceWindowCommand, StartMonitorDeploymentCommand, StartMultiplexCommand, StartUpdateSignalMapCommand, StopChannelCommand, StopInputDeviceCommand, StopMultiplexCommand, TransferInputDeviceCommand, UpdateAccountConfigurationCommand, UpdateChannelCommand, UpdateChannelClassCommand, UpdateChannelPlacementGroupCommand, UpdateCloudWatchAlarmTemplateCommand, UpdateCloudWatchAlarmTemplateGroupCommand, UpdateClusterCommand, UpdateEventBridgeRuleTemplateCommand, UpdateEventBridgeRuleTemplateGroupCommand, UpdateInputCommand, UpdateInputDeviceCommand, UpdateInputSecurityGroupCommand, UpdateMultiplexCommand, UpdateMultiplexProgramCommand, UpdateNetworkCommand, UpdateNodeCommand, UpdateNodeStateCommand, UpdateReservationCommand, UpdateSdiSourceCommand, }; const paginators = { paginateDescribeSchedule, paginateListAlerts, paginateListChannelPlacementGroups, paginateListChannels, paginateListCloudWatchAlarmTemplateGroups, paginateListCloudWatchAlarmTemplates, paginateListClusterAlerts, paginateListClusters, paginateListEventBridgeRuleTemplateGroups, paginateListEventBridgeRuleTemplates, paginateListInputDevices, paginateListInputDeviceTransfers, paginateListInputs, paginateListInputSecurityGroups, paginateListMultiplexAlerts, paginateListMultiplexes, paginateListMultiplexPrograms, paginateListNetworks, paginateListNodes, paginateListOfferings, paginateListReservations, paginateListSdiSources, paginateListSignalMaps, }; const waiters = { waitUntilChannelCreated, waitUntilChannelDeleted, waitUntilChannelRunning, waitUntilChannelStopped, waitUntilChannelPlacementGroupAssigned, waitUntilChannelPlacementGroupDeleted, waitUntilChannelPlacementGroupUnassigned, waitUntilClusterCreated, waitUntilClusterDeleted, waitUntilInputAttached, waitUntilInputDeleted, waitUntilInputDetached, waitUntilMultiplexCreated, waitUntilMultiplexDeleted, waitUntilMultiplexRunning, waitUntilMultiplexStopped, waitUntilNodeDeregistered, waitUntilNodeRegistered, waitUntilSignalMapCreated, waitUntilSignalMapMonitorDeleted, waitUntilSignalMapMonitorDeployed, waitUntilSignalMapUpdated, }; export class MediaLive extends MediaLiveClient { } createAggregatedClient(commands, MediaLive, { paginators, waiters });