list_documents
async
¶
list_documents(
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
document_filter_list: Optional[DocumentFilterList] = None,
filters: Optional[DocumentKeyValuesFilterList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListDocumentsResult
Returns all Systems Manager (SSM) documents in the current Amazon Web Services account and Amazon Web Services Region. You can limit the results of this request by using a filter.
Parameters:
-
document_filter_list(Optional[DocumentFilterList], default:None) –This data type is deprecated. Instead, use
Filters. -
filters(Optional[DocumentKeyValuesFilterList], default:None) –One or more
DocumentKeyValuesFilterobjects. Use a filter to return a more specific list of results. For keys, you can specify one or more key-value pair tags that have been applied to a document. Other valid keys includeOwner,Name,PlatformTypes,DocumentType,TargetType, andCloudProviders. For example, to return documents you own useKey=Owner,Values=Self. To specify a custom key-value pair, use the formatKey=tag:tagName,Values=valueName.This API operation only supports filtering documents by using a single tag key and one or more tag values. For example:
Key=tag:tagName,Values=valueName1,valueName2 -
max_results(Optional[MaxResults], default:None) –The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidFilterKey–The specified key isn't valid.
-
InvalidNextToken–The specified token isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 | |