PipelineComponentInput
A component to create, or the new draft for an existing one. Replacing a component changes only its draft; published versions stay as they are.
Shape
- nameComponentName (string)
bodyComponentBodyoptional
- The ComponentBody schema
component_instancesarray of NestedComponentInstanceoptionalOther components this component uses. Always empty in a published version, where they have already been expanded into steps.
- The NestedComponentInstance schema
- component_idComponentId (string · uuid)
- idNodeId (string)
- namestring
- versionComponentVersionRef (string)
- component_refstring or nulloptional
- paramsobjectoptional
- stage_mapobjectoptionalBinds every slot the referenced component declares to a slot of the containing body.
edgesarray of EdgeoptionalConnections between the component's own steps; both ends must be steps of this component.
- The Edge schema
- idEdgeId (string)
- source_node_idNodeId (string)
- target_node_idNodeId (string)
- source_portPortName (string) or nulloptionalAbsent on a dependency-only edge.
- target_portPortName (string) or nulloptionalAbsent on a dependency-only edge.
inputsarray of ComponentInputPortoptional
- The ComponentInputPort schema
- namePortName (string)
targetsarray of PortRef
- The PortRef schema
- node_idNodeId (string)
- portPortName (string)
- descriptionstring or nulloptional
nodesarray of ComponentNodeoptional
- The ComponentNode schema
nodeNode
- The Node schema
- capability_idCapabilityId (string)
- idNodeId (string)
- namestring
- allow_failurebooleanoptionalWhen
true, this node's failure (a non-zero exit or a timeout, after any retries) is non-blocking: it does not fail the enclosing stage or the run. The node's transitive dependents — which can never receive its output — are skipped, while independent branches and later stages keep running. A run whose only failures wereallow_failurenodes finishessucceeded_with_warnings. - approvalManualApproval or nulloptionalHolds this step until it is approved. A step deploying to an environment that requires approval is held as well, whether or not this is set.
- changesarray of string or nulloptionalPath globs that decide whether this step runs: when none of them matches a path the push changed, the step is skipped. When absent and
serviceis set, the service's own path globs apply. - configobjectoptionalThe step's provider-specific configuration, checked against the capability's
config_schemawhen the run starts. - connectionProviderConnectionName (string) or nulloptionalThe provider connection to use, by name (e.g.
aws-prod). When absent, the step uses the provider's only connection available to the repository, if there is exactly one. - cpustring or nulloptional
- environmentEnvironmentSlug (string) or nulloptionalThe environment this step deploys to, by slug. It is looked up on the repository and then on each group above it when the run starts.
- matrixMatrixSpec or nulloptionalRuns this step once for every combination of the named dimensions' values. At most 100 copies.
- max_retriesinteger · int32optional0–∞
- memorystring or nulloptional
- resource_groupNodeResourceGroup or nulloptionalKeeps this step from running at the same time as any other step, in any of your organization's pipelines, that names the same resource group — a Terraform state, a shared staging database, a fragile external sandbox. The
cancel_previousmode is not accepted here. - retry_delay_secondsinteger · int32optional0–∞
- serviceServiceSlug (string) or nulloptionalThe catalog service this step acts on, by slug. Optional when the repository holds exactly one service, which is then implied; required when it holds more.
- timeout_secondsinteger · int32 or nulloptional0–∞
- variables_fromEnvironmentSlug (string) or nulloptionalAn environment whose plain variables this step reads, by slug, without deploying there — for a build that bakes the environment's settings in. The step receives the environment's non-secret variables and nothing else: no approval, no lock, no secrets, and no deployment is recorded. A step may name this or
environment, not both. - versionProviderVersion (string) or nulloptionalPins a specific provider version. When absent, the provider's default version for this repository is used, as it stands when the run starts.
- stage_slotStageSlot (string)Which of the component's stage slots this step is placed in.
param_slotsComponentNodeParamsoptionalStep fields whose values come from the component's parameters rather than from the step.
- The ComponentNodeParams schema
- allow_failureComponentParamName (string) or nulloptional
- connectionComponentParamName (string) or nulloptional
- cpuComponentParamName (string) or nulloptional
- environmentComponentParamName (string) or nulloptional
- max_retriesComponentParamName (string) or nulloptional
- memoryComponentParamName (string) or nulloptional
- retry_delay_secondsComponentParamName (string) or nulloptional
- serviceComponentParamName (string) or nulloptional
- timeout_secondsComponentParamName (string) or nulloptional
- variables_fromComponentParamName (string) or nulloptionalThe parameter naming the environment whose plain variables this step reads without deploying there.
outputsarray of ComponentOutputPortoptional
- The ComponentOutputPort schema
- namePortName (string)
sourcePortRef
- The PortRef schema
- node_idNodeId (string)
- portPortName (string)
- descriptionstring or nulloptional
parametersarray of ComponentParameteroptional
- The ComponentParameter schema
- nameComponentParamName (string)
- param_typeComponentParamTypestringnumberbooleanobjectarrayThe JSON shape a parameter's value must have.
- allowed_valuesarray of object or nulloptionalThe only values this parameter accepts. Absent means any value of its type. On a published parameter, adding this list or removing a value from it is a major version change; adding a value is a minor one.
- defaultobjectoptional
- descriptionstring or nulloptional
- requiredbooleanoptionalWhether a pipeline using the component must supply a value. A required parameter cannot have a default.
- stage_slotsarray of StageSlot (string)optionalThe positions the component's steps occupy, in order. A pipeline using the component maps each slot to one of its own stages.
- descriptionstring or nulloptional
Example
Synthesized example{
"name": "payments-api",
"body": {
"component_instances": [
{
"component_id": "26b5c316-96f1-48ec-9986-4bf85c7b2143",
"id": "id-9e7c",
"name": "payments-api",
"version": "version-71b6"
},
{
"component_id": "acb74bbc-eeb8-429f-b97e-737d28f7e02d",
"id": "id-b270",
"name": "payments-api",
"version": "version-32ae"
}
],
"edges": [
{
"id": "id-72d2",
"source_node_id": "54a11af6-2e25-44a3-a765-1eb5ae792caf",
"target_node_id": "9e355701-a3ea-4c6b-a78c-51d89ebb56cc"
}
],
"inputs": [
{
"name": "payments-api",
"targets": []
},
{
"name": "payments-api",
"targets": []
}
],
"nodes": [
{
"node": {
"capability_id": "d10e7765-15f5-411b-b17c-1b531e5ec8f1",
"id": "id-5c3f",
"name": "payments-api"
},
"stage_slot": "stage-slot-f806"
},
{
"node": {
"capability_id": "6ba1be44-294e-42d7-9afd-84f20ab2792e",
"id": "id-dc14",
"name": "payments-api"
},
"stage_slot": "stage-slot-dc4f"
}
],
"outputs": [
{
"name": "payments-api",
"source": {
"node_id": "2096c95c-cb5d-4c3e-ad5e-9ebdd6001faa",
"port": "port-5488"
}
}
],
"parameters": [
{
"name": "payments-api",
"param_type": "string"
}
],
"stage_slots": [
"stage-slots-b4a4",
"stage-slots-e2dd"
]
},
"description": "Renders each region as density contours of its operations."
}
Graph
Used inside
No schema contains this one.
Contains
Used by
Sent by 4 operations
- POSTCreate a reusable pipeline component/groups/{group_id}/pipeline-components
- PUTReplace a component's draft body/groups/{group_id}/pipeline-components/{component_id}
- POSTCreate a reusable pipeline component/repositories/{repo_id}/pipeline-components
- PUTReplace a component's draft body/repositories/{repo_id}/pipeline-components/{component_id}
Returned by 0 operations
No operation returns it directly.