create_flow
¶
create_flow(
*,
config_overrides: Optional[MediaConnectClientConfig] = None,
availability_zone: Optional[str] = None,
entitlements: Optional[__listOfGrantEntitlementRequest] = None,
media_streams: Optional[__listOfAddMediaStreamRequest] = None,
name: Optional[str] = None,
outputs: Optional[__listOfAddOutputRequest] = None,
source: Optional[SetSourceRequest] = None,
source_failover_config: Optional[FailoverConfig] = None,
sources: Optional[__listOfSetSourceRequest] = None,
vpc_interfaces: Optional[__listOfVpcInterfaceRequest] = None,
maintenance: Optional[AddMaintenance] = None,
source_monitoring_config: Optional[MonitoringConfig] = None,
flow_size: Optional[FlowSize] = None,
ndi_config: Optional[NdiConfig] = None,
encoding_config: Optional[EncodingConfig] = None,
flow_tags: Optional[__mapOfString] = None,
) -> CreateFlowResponse
Creates a new flow. The request must include one source. The request optionally can include outputs (up to 50) and entitlements (up to 50).
Parameters:
-
availability_zone(Optional[str], default:None) –The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current Amazon Web Services Region.
-
entitlements(Optional[__listOfGrantEntitlementRequest], default:None) –The entitlements that you want to grant on a flow.
-
media_streams(Optional[__listOfAddMediaStreamRequest], default:None) –The media streams that you want to add to the flow. You can associate these media streams with sources and outputs on the flow.
-
name(Optional[str], default:None) –The name of the flow.
-
outputs(Optional[__listOfAddOutputRequest], default:None) –The outputs that you want to add to this flow.
-
source(Optional[SetSourceRequest], default:None) –The settings for the source that you want to use for the new flow.
-
source_failover_config(Optional[FailoverConfig], default:None) –The settings for source failover.
-
sources(Optional[__listOfSetSourceRequest], default:None) –The sources that are assigned to the flow.
-
vpc_interfaces(Optional[__listOfVpcInterfaceRequest], default:None) –The VPC interfaces you want on the flow.
-
maintenance(Optional[AddMaintenance], default:None) –The maintenance settings you want to use for the flow.
-
source_monitoring_config(Optional[MonitoringConfig], default:None) –The settings for source monitoring.
-
flow_size(Optional[FlowSize], default:None) –Determines the processing capacity and feature set of the flow. Set this optional parameter to
LARGEif you want to enable NDI sources or outputs on the flow. -
ndi_config(Optional[NdiConfig], default:None) –Specifies the configuration settings for a flow's NDI source or output. Required when the flow includes an NDI source or output.
-
flow_tags(Optional[__mapOfString], default:None) –The key-value pairs that can be used to tag and organize the flow.
Raises:
-
BadRequestException–This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message.
-
CreateFlow420Exception–Exception raised by Elemental MediaConnect when creating the flow. See the error message for the operation for more information on the cause of this exception.
-
ForbiddenException–You do not have sufficient access to perform this action.
-
InternalServerErrorException–The server encountered an internal error and is unable to complete the request.
-
ServiceUnavailableException–The service is currently unavailable or busy.
-
TooManyRequestsException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mediaconnect/_services/media_connect.py
1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 | |