Skip to main content

Yaml

Yaml is a data type used to save object definitions in YAML.

💡 Common yaml usage​

The yaml property type can be used to store any key/value based data, for example:

  • Configurations;
  • Helm charts;
  • Dictionaries/Hash maps;
  • Manifests;
  • values.yml;
  • etc.

In this live demo example, we can see the Helm Chart yaml property. 🎬

API definition​

{
"myYAMLProp": {
"title": "My yaml",
"icon": "My icon",
"description": "My yaml property",
"type": "string",
"format": "yaml"
}
}

Check out Port's API reference to learn more.

Terraform definition​

resource "port_blueprint" "myBlueprint" {
# ...blueprint properties
properties = {
string_props = {
"myYamlProp" = {
title = "My yaml"
required = false
format = "yaml"
}
}
}
}

Pulumi definition​

"""A Python Pulumi program"""

import pulumi
from port_pulumi import Blueprint,BlueprintPropertiesArgs,BlueprintPropertyArgs

blueprint = Blueprint(
"myBlueprint",
identifier="myBlueprint",
title="My Blueprint",
properties=BlueprintPropertiesArgs(
string_props={
"myYamlProp": BlueprintPropertyArgs(
title="My yaml",
required=False,
format="yaml",
)
}
),
relations={}
)