list_tables
async
¶
list_tables(
keyspace_name: KeyspaceName,
*,
config_overrides: Optional[AsyncKeyspacesClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListTablesResponse
The ListTables operation returns a list of tables for a specified keyspace.
To read keyspace metadata using ListTables, the IAM principal needs Select action permissions for the system keyspace.
Parameters:
-
next_token(Optional[NextToken], default:None) –The pagination token. To resume pagination, provide the
NextTokenvalue as an argument of a subsequent API invocation. -
max_results(Optional[MaxResults], default:None) –The total number of tables to return in the output. If the total number of tables available is more than the value specified, a
NextTokenis provided in the output. To resume pagination, provide theNextTokenvalue as an argument of a subsequent API invocation. -
keyspace_name(KeyspaceName) –The name of the keyspace.
Raises:
-
AccessDeniedException–You don't have sufficient access permissions to perform this action.
-
InternalServerException–Amazon Keyspaces was unable to fully process this request because of an internal server error.
-
ResourceNotFoundException–The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly, or its status might not be
ACTIVE. -
ServiceQuotaExceededException–The operation exceeded the service quota for this resource. For more information on service quotas, see Quotas in the Amazon Keyspaces Developer Guide.
-
ValidationException–The operation failed due to an invalid or malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_keyspaces/_services/async_keyspaces.py
1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 | |