โ† API reference
Query / admin

iacDeclaredVariables

List the variables a commit's source declares, in declaration order, for checking that a stack holds a value for each before promoting that commit. Requires stack read access.

Arguments

stackIdIaCStackID!

Stack whose repository holds the commit.

commitString

Commit to read; omitted reads main. Without main and without a commit the list is empty.

Returns [IaCDeclaredVariable!]!

Scalar fields at a glance

nameString!
sensitiveBoolean!
allowEmptyBoolean!
hasDefaultBoolean!
โ†— View the complete IaCDeclaredVariable type

Explore in a view

Administration and IAM
View exact SDL
"""
List the variables a commit's source declares, in declaration order, for checking that a stack holds a value for each before promoting that commit. Requires stack read access.
"""
iacDeclaredVariables(
  """Stack whose repository holds the commit."""
  stackId: IaCStackID!
  """
  Commit to read; omitted reads main. Without main and without a commit the list is empty.
  """
  commit: String
): [IaCDeclaredVariable!]! @topic(names: ["admin"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.