Tuple Known Value Checks
Note
Provider developers will only encounter tuples when testing dynamic data values.
The known value checks that are available for tuple values are:
TupleExact
Check
The TupleExact check tests that a resource attribute, or output value has an order-dependent, matching collection of element values.
Example usage of TupleExact in an ExpectKnownValue plan check.
TuplePartial
Check
The TuplePartial check tests that a resource attribute, or output value has matching element values for the specified collection indices.
Example usage of TuplePartial in an ExpectKnownValue plan check. In this example, only the second element within the tuple, the element defined at index 1
, is checked.
TupleSizeExact
Check
The TupleSizeExact check tests that a resource attribute, or output value contains the specified number of elements.
Example usage of TupleSizeExact in an ExpectKnownValue plan check.