ConstraintTarget (type)

{
  "additionalProperties": false, 
  "description": "Resource attribute on which constraint should be applied. Example - sourceGroups attribute of Edge CommunicationEntry to be   restricted, is given as:   {      \"target_resource_type\":\"CommunicationEntry\",      \"attribute\":\"sourceGroups\",      \"path_prefix\":\"/infra/domains/vmc-domain/edge-communication-maps/default/communication-entries\"   }", 
  "id": "ConstraintTarget", 
  "module_id": "PolicyConstraints", 
  "properties": {
    "attribute": {
      "required": false, 
      "title": "Attribute name of the target entity.", 
      "type": "string"
    }, 
    "path_prefix": {
      "description": "Path prefix of the entity to apply constraint. It should be a valid string prefix for policy path. This is required to further disambiguiate if multiple policy entities share the same resource type. Example - Edge FW and DFW use the same resource type CommunicationMap, CommunicationEntry, Group, etc. For multi-tenancy path-prefixes (i.e. path starting with /orgs) following values are supported: 1. When constraint is created under '/infra/constraints/' OR under    '/orgs/<org-id>/projects/<default-project>/infra/constraints/' then '/orgs/<org-id>/projects/<project-id>/'    value is supported. 2. When constraint is created under custom project i.e. '/orgs/<org-id>/projects/<project-id>/infra/constraints/'    then '/orgs/<org-id>/projects/<project-id>/vpcs/<vpc-id>/' value is supported.", 
      "required": false, 
      "title": "Path prefix of the entity to apply constraint.\n", 
      "type": "string"
    }, 
    "target_resource_type": {
      "description": "Target resource type accepts input as DTO Type and or FQDN. It also supports dot format like SecurityPolicy.Rule in a scenario where same DTO type shared across across policy sub tree. For example DTO type Rule shared by both security policy and gateway policy rules. So to specify any constraint for Security policy rule, user can define the target resource type as SecurityPolicy.Rule.", 
      "required": false, 
      "title": "Resource type of the target entity. This is required in case the\nconstraint expressions do not specify target resource type.\n", 
      "type": "string"
    }
  }, 
  "title": "Resource attribute on which constraint should be applied.", 
  "type": "object"
}