List Known Value Checks
The known value checks that are available for list values are:
ListExact
Check
The ListExact check tests that a resource attribute, or output value has an order-dependent, matching collection of element values.
Example usage of ListExact in an ExpectKnownValue plan check.
ListPartial
Check
The ListPartial check tests that a resource attribute, or output value has matching element values for the specified collection indices.
Example usage of ListPartial in an ExpectKnownValue plan check. In this example, only the first element within the list, the element defined at index 0
, is checked.
ListSizeExact
Check
The ListSizeExact check tests that a resource attribute, or output value contains the specified number of elements.
Example usage of ListSizeExact in an ExpectKnownValue plan check.