list_origin_endpoints
async
¶
list_origin_endpoints(
channel_group_name: ResourceName,
channel_name: ResourceName,
*,
config_overrides: Optional[AsyncMediaPackageV2ClientConfig] = None,
max_results: Optional[ListResourceMaxResults] = None,
next_token: Optional[str] = None,
) -> ListOriginEndpointsResponse
Retrieves all origin endpoints in a specific channel that are configured in AWS Elemental MediaPackage.
Parameters:
-
channel_group_name(ResourceName) –The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.
-
channel_name(ResourceName) –The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.
-
max_results(Optional[ListResourceMaxResults], default:None) –The maximum number of results to return in the response.
-
next_token(Optional[str], default:None) –The pagination token from the GET list request. Use the token to fetch the next page of results.
Raises:
-
AccessDeniedException–Access is denied because either you don't have permissions to perform the requested operation or MediaPackage is getting throttling errors with CDN authorization. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide. Or, if you're using CDN authorization, you will receive this exception if MediaPackage receives a throttling error from Secrets Manager.
-
InternalServerException–Indicates that an error from the service occurred while trying to process a request.
-
ResourceNotFoundException–The specified resource doesn't exist.
-
ThrottlingException–The request throughput limit was exceeded.
-
ValidationException–The input failed to meet the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Listing all OriginEndpoints
>>> await client.list_origin_endpoints(channel_group_name='exampleChannelGroup', channel_name='exampleChannel')
Source code in docs_src/capo_mediapackagev2/_services/async_media_package_v2.py
1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 | |