{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-private-ca/json-schema/amazon-private-ca-create-template-group-access-control-entry-request-schema.json",
  "title": "CreateTemplateGroupAccessControlEntryRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-private-ca-accesscontrolentries-api-openapi.yml#/components/schemas/CreateTemplateGroupAccessControlEntryRequest",
  "type": "object",
  "properties": {
    "TemplateArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) that was returned when you called CreateTemplate."
    },
    "GroupSecurityIdentifier": {
      "type": "string",
      "description": "Security identifier (SID) of the group object from Active Directory. The SID starts with \"S-\"."
    },
    "GroupDisplayName": {
      "type": "string",
      "description": "Name of the Active Directory group. This name does not need to match the group name in Active Directory."
    },
    "AccessRights": {
      "$ref": "#/$defs/AccessRights"
    },
    "ClientToken": {
      "type": "string",
      "description": "Idempotency token."
    }
  },
  "required": [
    "TemplateArn",
    "GroupSecurityIdentifier",
    "GroupDisplayName",
    "AccessRights"
  ],
  "$defs": {
    "AccessRights": {
      "type": "object",
      "properties": {
        "Enroll": {
          "type": "string",
          "enum": [
            "ALLOW",
            "DENY"
          ],
          "description": "Allow or deny an Active Directory group from enrolling certificates issued against a template."
        },
        "AutoEnroll": {
          "type": "string",
          "enum": [
            "ALLOW",
            "DENY"
          ],
          "description": "Allow or deny an Active Directory group from autoenrolling certificates issued against a template. The Active Directory group must be allowed to enroll to allow autoenrollment"
        }
      }
    }
  }
}