Map Known Value Checks
The known value checks that are available for map values are:
MapExact
Check
The MapExact check tests that a resource attribute, or output value has a key-specified, matching collection of element values.
Example usage of MapExact in an ExpectKnownValue plan check.
MapPartial
Check
The MapPartial check tests that a resource attribute, or output value has matching element values for the specified keys.
Example usage of MapPartial in an ExpectKnownValue plan check.
In this example, only the element associated with key1
within the map is checked.
MapSizeExact
Check
The MapSizeExact check tests that a resource attribute, or output value contains the specified number of elements.
Example usage of MapSizeExact in an ExpectKnownValue plan check.