list_secrets Method
Lists secrets in the current account and region.
Syntax
def list_secrets() -> None: ...
Remarks
This method lists the secrets in the current account and region. Note that, by default, secrets that have been scheduled for deletion are not included in the results; the IncludeDeleted configuration setting can be used to control this behavior.
Calling this method will fire the on_secret_list event once for each secret, and will also populate the Secret* properties. If the AlwaysParseVersions configuration setting is enabled, each secret's basic version information will also be parsed and used to populate the Version* properties and fire the on_version_list event.
If there are still more secrets available to list when this method returns, the secret_marker property will be populated. Continue to call this method until secret_marker is empty to accumulate all pages of results in the Secret* properties.
The MaxSecrets configuration setting can be used to control the maximum number of results to return at once.