> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

YAML

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

Common usage​

Use YAML properties to store the contents of configuration files, such as:

  • Kubernetes manifests.
  • Helm values files.
  • CI/CD pipeline definitions.

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​

The examples below use version 2.29.0 of the Terraform and Pulumi providers. Configure your provider first, then run one example at a time in its own project. Each example creates a blueprint; use distinct identifiers when you combine examples.

resource "port_blueprint" "myBlueprint" {
identifier = "myBlueprint"
title = "My blueprint"
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,BlueprintPropertiesStringPropsArgs

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