Skip to content

createCustomDataType

Create a new custom data type.

Arguments

Argument Type Description
input (required) CreateCustomDataTypeInput! Input to create a data type used for running sensitive data classification on workloads.

Returns

CreateCustomDataTypeReply!

Sample

mutation CreateCustomDataType($input: CreateCustomDataTypeInput!) {
  createCustomDataType(input: $input)
}
{
  "input": {
    "dataCategoryIds": [
      "example-string"
    ],
    "dataType": {
      "name": "example-string",
      "ruleTypes": [
        "STRUCTURED"
      ]
    }
  }
}
{
  "data": {
    "createCustomDataType": {
      "dataType": {
        "analyzerType": "ABA_ROUTING_NUMBER",
        "dictionary": [
          "example-string"
        ],
        "dictionaryCsv": "example-string",
        "excludeFieldNamePattern": "example-string",
        "excludePathPattern": "example-string",
        "excludeValueRegex": "example-string"
      }
    }
  }
}