list_keys
async
¶
list_keys(
kvs_arn: KvsARN,
*,
config_overrides: Optional[AsyncCloudFrontKeyValueStoreClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
) -> ListKeysResponse
Returns a list of key value pairs.
Parameters:
-
kvs_arn(KvsARN) –The Amazon Resource Name (ARN) of the Key Value Store.
-
next_token(Optional[str], default:None) –If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page.
-
max_results(Optional[int], default:None) –Maximum number of results that are returned per call. The default is 10 and maximum allowed page is 50.
Raises:
-
AccessDeniedException–Access denied.
-
ConflictException–Resource is not in expected state.
-
InternalServerException–Internal server error.
-
ResourceNotFoundException–Resource was not found.
-
ValidationException–Validation failed.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List keys in the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
>>> await client.list_keys(kvs_arn='arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58', max_results=3)
List the next page in the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
>>> await client.list_keys(kvs_arn='arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58', max_results=3, next_token='hVTTZndkpBZ0VRZ0R1RF')
Source code in docs_src/capo_cloudfront_keyvaluestore/_services/async_cloud_front_key_value_store.py
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | |