Defines a map (dictionary) that can hold a user-defined structure of variables or lists.

## Explore further


For detailed documentation that includes this code sample, see the following:

- [Maps](https://docs.cloud.google.com/workflows/docs/reference/syntax/maps)

## Code sample

### YAML

    - createMap:
        assign:
          - dynamicKey: "MiddleName"
          - myMap:
              FirstName: "John"
              ${dynamicKey}: "Apple"
              LastName: "Smith"
              Age: 26
              Address:
                Street: "Flower Road 12"
                City: "Superville"
                Country: "Atlantis"

## What's next


To search and filter code samples for other Google Cloud products, see the
[Google Cloud sample browser](https://docs.cloud.google.com/docs/samples?product=workflows).