{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iotwireless-serviceprofile.json",
  "title": "AWSIoTWirelessServiceProfileProperties",
  "description": "An example resource schema demonstrating some basic constructs and validation rules.. 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-serviceprofile.json",
    "sourceSha256": "db0d7e193c23fe40e5291ad5ae3e8b1c3b6e76de53a23c47438bbe4eff0dd112"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of service profile"
    },
    "LoRaWAN": {
      "description": "LoRaWAN supports all LoRa specific attributes for service profile for CreateServiceProfile operation",
      "$ref": "#/$defs/LoRaWANServiceProfile"
    },
    "Tags": {
      "description": "A list of key-value pairs that contain metadata for the service profile.",
      "type": "array",
      "uniqueItems": true,
      "maxItems": 200,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::IoTWireless::ServiceProfile",
  "taggable": true,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "$defs": {
    "LoRaWANServiceProfile": {
      "type": "object",
      "title": "AWSIoTWirelessServiceProfileLoRaWANServiceProfileDefinition",
      "properties": {
        "UlRate": {
          "type": "integer"
        },
        "UlBucketSize": {
          "type": "integer"
        },
        "UlRatePolicy": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DlRate": {
          "type": "integer"
        },
        "DlBucketSize": {
          "type": "integer"
        },
        "DlRatePolicy": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AddGwMetadata": {
          "type": "boolean"
        },
        "DevStatusReqFreq": {
          "type": "integer"
        },
        "ReportDevStatusBattery": {
          "type": "boolean"
        },
        "ReportDevStatusMargin": {
          "type": "boolean"
        },
        "DrMin": {
          "type": "integer"
        },
        "DrMax": {
          "type": "integer"
        },
        "ChannelMask": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PrAllowed": {
          "type": "boolean"
        },
        "HrAllowed": {
          "type": "boolean"
        },
        "RaAllowed": {
          "type": "boolean"
        },
        "NwkGeoLoc": {
          "type": "boolean"
        },
        "TargetPer": {
          "type": "integer"
        },
        "MinGwDiversity": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$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": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSIoTWirelessServiceProfileTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [],
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/Arn",
    "/properties/LoRaWAN/UlRate",
    "/properties/LoRaWAN/UlBucketSize",
    "/properties/LoRaWAN/UlRatePolicy",
    "/properties/LoRaWAN/DlRate",
    "/properties/LoRaWAN/DlBucketSize",
    "/properties/LoRaWAN/DlRatePolicy",
    "/properties/LoRaWAN/DevStatusReqFreq",
    "/properties/LoRaWAN/ReportDevStatusBattery",
    "/properties/LoRaWAN/ReportDevStatusMargin",
    "/properties/LoRaWAN/DrMin",
    "/properties/LoRaWAN/DrMax",
    "/properties/LoRaWAN/ChannelMask",
    "/properties/LoRaWAN/PrAllowed",
    "/properties/LoRaWAN/HrAllowed",
    "/properties/LoRaWAN/RaAllowed",
    "/properties/LoRaWAN/NwkGeoLoc",
    "/properties/LoRaWAN/TargetPer",
    "/properties/LoRaWAN/MinGwDiversity"
  ]
}
