Skip to content

Filter

Structure Class

Filter dataclass

Bases: _SerdeShape

Allows you to add filters when you use the search function in Secrets Manager. For more information, see Find secrets in Secrets Manager.

Attributes

key class-attribute instance-attribute
key: str | None = ...

The following are keys you can use:

  • description: Prefix match, not case-sensitive.

  • name: Prefix match, case-sensitive.

  • tag-key: Prefix match, case-sensitive.

  • tag-value: Prefix match, case-sensitive.

  • primary-region: Prefix match, case-sensitive.

  • owning-service: Prefix match, case-sensitive.

  • all: Breaks the filter value string into words and then searches all attributes for matches. Not case-sensitive.

values class-attribute instance-attribute
values: list[str] | None = ...

The keyword to filter for.

You can prefix your search value with an exclamation mark (!) in order to perform negation filters.