Skip to main content

Check out Port for yourselfย 

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={}
)