{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iotwireless-partneraccount.json",
  "title": "AWSIoTWirelessPartnerAccountProperties",
  "description": "Create and manage partner account. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iotwireless-partneraccount.json",
    "sourceSha256": "68d9c8425ccadfedb1a9a8d401e5b6bb820db624839469212a4114aacd2e18a4"
  },
  "type": "object",
  "properties": {
    "Sidewalk": {
      "description": "The Sidewalk account credentials.",
      "$ref": "#/$defs/SidewalkAccountInfo"
    },
    "PartnerAccountId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The partner account ID to disassociate from the AWS account"
    },
    "PartnerType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "Sidewalk"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The partner type"
    },
    "SidewalkResponse": {
      "description": "The Sidewalk account credentials.",
      "$ref": "#/$defs/SidewalkAccountInfoWithFingerprint"
    },
    "AccountLinked": {
      "description": "Whether the partner account is linked to the AWS account.",
      "type": "boolean"
    },
    "SidewalkUpdate": {
      "description": "The Sidewalk account credentials.",
      "$ref": "#/$defs/SidewalkUpdateAccount"
    },
    "Tags": {
      "description": "A list of key-value pairs that contain metadata for the destination.",
      "type": "array",
      "uniqueItems": true,
      "maxItems": 200,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::IoTWireless::PartnerAccount",
  "taggable": true,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/PartnerAccountId"
  ],
  "$defs": {
    "SidewalkAccountInfo": {
      "type": "object",
      "title": "AWSIoTWirelessPartnerAccountSidewalkAccountInfoDefinition",
      "properties": {
        "AppServerPrivateKey": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-fA-F0-9]{64}",
              "minLength": 1,
              "maxLength": 4096
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AppServerPrivateKey"
      ],
      "additionalProperties": false
    },
    "SidewalkAccountInfoWithFingerprint": {
      "type": "object",
      "title": "AWSIoTWirelessPartnerAccountSidewalkAccountInfoWithFingerprintDefinition",
      "properties": {
        "AmazonId": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 2048
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Fingerprint": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-fA-F0-9]{64}",
              "minLength": 64,
              "maxLength": 64
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "SidewalkUpdateAccount": {
      "type": "object",
      "title": "AWSIoTWirelessPartnerAccountSidewalkUpdateAccountDefinition",
      "properties": {
        "AppServerPrivateKey": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-fA-F0-9]{64}",
              "minLength": 1,
              "maxLength": 4096
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 127
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSIoTWirelessPartnerAccountTagDefinition",
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/Fingerprint"
  ],
  "writeOnlyProperties": [
    "/properties/SidewalkUpdate",
    "/properties/Sidewalk"
  ],
  "createOnlyProperties": [
    "/properties/PartnerAccountId"
  ]
}
