Define a map

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:

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.