list_presets
¶
list_presets(
*,
config_overrides: Optional[MediaConvertClientConfig] = None,
category: Optional[__string] = None,
list_by: Optional[PresetListBy] = None,
max_results: Optional[__integerMin1Max20] = None,
next_token: Optional[__string] = None,
order: Optional[Order] = None,
) -> ListPresetsResponse
Retrieve a JSON array of up to twenty of your presets. This will return the presets themselves, not just a list of them. To retrieve the next twenty presets, use the nextToken string returned with the array.
Parameters:
-
category(Optional[__string], default:None) –Optionally, specify a preset category to limit responses to only presets from that category.
-
list_by(Optional[PresetListBy], default:None) –Optional. When you request a list of presets, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
-
max_results(Optional[__integerMin1Max20], default:None) –Optional. Number of presets, up to twenty, that will be returned at one time
-
next_token(Optional[__string], default:None) –Use this string, provided with the response to a previous request, to request the next batch of presets.
-
order(Optional[Order], default:None) –Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
Raises:
-
BadRequestException–The service can't process your request because of a problem in the request. Please check your request form and syntax.
-
ConflictException–The service couldn't complete your request because there is a conflict with the current state of the resource.
-
ForbiddenException–You don't have permissions for this action with the credentials you sent.
-
InternalServerErrorException–The service encountered an unexpected condition and can't fulfill your request.
-
NotFoundException–The resource you requested doesn't exist.
-
ServiceQuotaExceededException–You attempted to create more resources than the service allows based on service quotas.
-
TooManyRequestsException–Too many requests have been sent in too short of a time. The service limits the rate at which it will accept requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mediaconvert/_services/media_convert.py
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 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 | |