{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-create-group-request-schema.json",
  "title": "CreateGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-directory-service-groups-api-openapi.yml#/components/schemas/CreateGroupRequest",
  "type": "object",
  "properties": {
    "DirectoryId": {
      "type": "string",
      "description": "The identifier (ID) of the directory that's associated with the group."
    },
    "SAMAccountName": {
      "type": "string",
      "description": "The name of the group."
    },
    "GroupType": {
      "type": "string",
      "enum": [
        "Distribution",
        "Security"
      ],
      "description": "The AD group type. For details, see Active Directory security group type."
    },
    "GroupScope": {
      "type": "string",
      "enum": [
        "DomainLocal",
        "Global",
        "Universal",
        "BuiltinLocal"
      ],
      "description": "The scope of the AD group. For details, see Active Directory security group scope."
    },
    "OtherAttributes": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/AttributeValue"
      },
      "description": "An expression that defines one or more attributes with the data type and value of each attribute."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique and case-sensitive identifier that you provide to make sure the idempotency of the request, so multiple identical calls have the same effect as one single call. A client token is valid for 8 hours after the first request that uses it completes. After 8 hours, any request with the same client token is treated as a new request. If the request succeeds, any future uses of that token will be idempotent for another 8 hours. If you submit a request with the same client token but change one of the other parameters within the 8-hour idempotency window, Directory Service Data returns an Confli"
    }
  },
  "required": [
    "DirectoryId",
    "SAMAccountName"
  ],
  "$defs": {
    "AttributeValue": {
      "type": "object",
      "properties": {
        "S": {
          "type": "string",
          "description": "Indicates that the attribute type value is a string. For example: \"S\": \"S Group\""
        },
        "N": {
          "type": "integer",
          "description": "Indicates that the attribute type value is a number. For example: \"N\": \"16\""
        },
        "BOOL": {
          "type": "boolean",
          "description": "Indicates that the attribute type value is a boolean. For example: \"BOOL\": true"
        },
        "SS": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Indicates that the attribute type value is a string set. For example: \"SS\": [\"sample_service_class/host.sample.com:1234/sample_service_name_1\", \"sample_service_class/host.sample.com:1234/sample_service_name_2\"]"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}