{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-create-folder-request-schema.json",
  "title": "CreateFolderRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-folders-api-openapi.yml#/components/schemas/CreateFolderRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The ID for the Amazon Web Services account where you want to create the folder."
    },
    "FolderId": {
      "type": "string",
      "description": "The ID of the folder."
    },
    "Name": {
      "type": "string",
      "description": "The name of the folder."
    },
    "FolderType": {
      "type": "string",
      "enum": [
        "SHARED",
        "RESTRICTED"
      ],
      "description": "The type of folder. By default, folderType is SHARED."
    },
    "ParentFolderArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) for the parent folder. ParentFolderArn can be null. An empty parentFolderArn creates a root-level folder."
    },
    "Permissions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourcePermission"
      },
      "description": "A structure that describes the principals and the resource-level permissions of a folder. To specify no permissions, omit Permissions."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Tags for the folder."
    },
    "SharingModel": {
      "type": "string",
      "enum": [
        "ACCOUNT",
        "NAMESPACE"
      ],
      "description": "An optional parameter that determines the sharing scope of the folder. The default value for this parameter is ACCOUNT."
    }
  },
  "required": [
    "AwsAccountId",
    "FolderId"
  ],
  "$defs": {
    "ResourcePermission": {
      "type": "object",
      "properties": {
        "Principal": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the principal. This can be one of the following: The ARN of an Quick Sight user or group associated with a data source or dataset. (This is common.) The ARN of an Quick Sight user, group, or namespace associated with an analysis, dashboard, template, or theme. Namespace sharing is not supported for action connectors. (This is common.) The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a Quick Sight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. Account root sharing is not supported for "
        },
        "Actions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IAM action to grant or revoke permissions on."
        }
      },
      "required": [
        "Principal",
        "Actions"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Tag key."
        },
        "Value": {
          "type": "string",
          "description": "Tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}