{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-organizations-account.json",
  "title": "AWSOrganizationsAccountProperties",
  "description": "You can use AWS::Organizations::Account to manage accounts in organization.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-organizations>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-organizations-account.json",
    "sourceSha256": "7e42869feadeb68f1ee62eb695fe6117091a042575159aa78947ed117c1ceabf"
  },
  "type": "object",
  "properties": {
    "AccountName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[\\u0020-\\u007E]+",
          "minLength": 1,
          "maxLength": 50
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The friendly name of the member account."
    },
    "Email": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[^\\s@]+@[^\\s@]+\\.[^\\s@]+",
          "minLength": 6,
          "maxLength": 64
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The email address of the owner to assign to the new member account."
    },
    "RoleName": {
      "oneOf": [
        {
          "type": "string",
          "default": "OrganizationAccountAccessRole",
          "pattern": "[\\w+=,.@-]{1,64}",
          "minLength": 1,
          "maxLength": 64
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of an IAM role that AWS Organizations automatically preconfigures in the new member account. Default name is OrganizationAccountAccessRole if not specified."
    },
    "ParentIds": {
      "description": "List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.",
      "type": "array",
      "insertionOrder": false,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "pattern": "^(r-[0-9a-z]{4,32})|(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32})$"
      }
    },
    "Tags": {
      "description": "A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Organizations::Account",
  "primaryIdentifier": [
    "/properties/AccountId"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-organizations",
  "writeOnlyProperties": [
    "/properties/RoleName"
  ],
  "additionalProperties": false,
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "$defs": {
    "Tag": {
      "description": "A custom key-value pair associated with a resource within your organization.",
      "type": "object",
      "title": "AWSOrganizationsAccountTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[\\s\\S]*",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key identifier, or name, of the tag."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[\\s\\S]*",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null."
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "AccountName",
    "Email"
  ],
  "readOnlyProperties": [
    "/properties/AccountId",
    "/properties/Status",
    "/properties/JoinedTimestamp",
    "/properties/JoinedMethod",
    "/properties/Arn"
  ]
}
