iacDeclaredVariables

Topics: Admin

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.

Returns

[IaCDeclaredVariable!]!

Arguments

Stack whose repository holds the commit.

commit

StringOptional

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

Exact field 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"])

Declared on Query. Access is checked by the platform for each operation.