{
  "name": "CreateWorkloadKey",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "POST",
    "path": "/auth/workload-keys",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": true
  },
  "requestBody": "json",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "abacScope": {
        "default": "function-execution",
        "type": "string"
      },
      "principalId": {
        "type": "string"
      }
    },
    "required": [
      "principalId"
    ],
    "title": "CreateWorkloadKeyRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "accessKeyId": {
        "type": "string"
      },
      "principalId": {
        "type": "string"
      },
      "secretAccessKey": {
        "type": "string",
        "writeOnly": true,
        "x-one-time-secret": true,
        "x-sensitive": true
      }
    },
    "required": [
      "accessKeyId",
      "principalId",
      "secretAccessKey"
    ],
    "title": "CreateWorkloadKeyResponse",
    "type": "object"
  }
}
