describe_clusters
async
¶
describe_clusters(
*,
config_overrides: Optional[AsyncMemoryDBClientConfig] = None,
cluster_name: Optional[String] = None,
max_results: Optional[IntegerOptional] = None,
next_token: Optional[String] = None,
show_shard_details: Optional[BooleanOptional] = None,
) -> DescribeClustersResponse
Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cluster if a cluster name is supplied.
Parameters:
-
cluster_name(Optional[String], default:None) –The name of the cluster.
-
max_results(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
-
next_token(Optional[String], default:None) –An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
-
show_shard_details(Optional[BooleanOptional], default:None) –An optional flag that can be included in the request to retrieve information about the individual shard(s).
Raises:
-
ClusterNotFoundFault–The specified cluster does not exist.
-
InvalidParameterCombinationException–The specified parameter combination is not valid.
-
InvalidParameterValueException–The specified parameter value is not valid.
-
ServiceLinkedRoleNotFoundFault–The required service-linked role was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_memorydb/_services/async_memory_db.py
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 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 | |