github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/examples/create-formation-constraint/create-formation-constraint.graphql (about)

     1  # Code generated by Compass integration tests, DO NOT EDIT.
     2  mutation {
     3    result: createFormationConstraint(
     4      formationConstraint: {
     5        name: "test_constraint"
     6        constraintType: PRE
     7        targetOperation: ASSIGN_FORMATION
     8        operator: "IsNotAssignedToAnyFormationOfType"
     9        resourceType: TENANT
    10        resourceSubtype: "subaccount"
    11        inputTemplate: "{\"formation_template_id\": \"{{.FormationTemplateID}}\",\"resource_type\": \"{{.ResourceType}}\",\"resource_subtype\": \"{{.ResourceSubtype}}\",\"resource_id\": \"{{.ResourceID}}\",\"tenant\": \"{{.TenantID}}\"}"
    12        constraintScope: FORMATION_TYPE
    13      }
    14    ) {
    15      id
    16      name
    17      constraintType
    18      targetOperation
    19      operator
    20      resourceType
    21      resourceSubtype
    22      inputTemplate
    23      constraintScope
    24    }
    25  }