{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-pinpoint-segment.json",
  "title": "AWSPinpointSegmentProperties",
  "description": "Resource Type definition for AWS::Pinpoint::Segment. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-pinpoint-segment.json",
    "sourceSha256": "992c32553c93af8c89e74e3f24e62650feefab31d93b2cda9566142d4d50cf59"
  },
  "type": "object",
  "properties": {
    "SegmentGroups": {
      "$ref": "#/$defs/SegmentGroups"
    },
    "Dimensions": {
      "$ref": "#/$defs/SegmentDimensions"
    },
    "ApplicationId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "object"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    }
  },
  "typeName": "AWS::Pinpoint::Segment",
  "primaryIdentifier": [
    "/properties/SegmentId"
  ],
  "$defs": {
    "SegmentDimensions": {
      "type": "object",
      "title": "AWSPinpointSegmentSegmentDimensionsDefinition",
      "properties": {
        "Demographic": {
          "$ref": "#/$defs/Demographic"
        },
        "Metrics": {
          "type": "object"
        },
        "Attributes": {
          "type": "object"
        },
        "Behavior": {
          "$ref": "#/$defs/Behavior"
        },
        "UserAttributes": {
          "type": "object"
        },
        "Location": {
          "$ref": "#/$defs/Location"
        }
      },
      "additionalProperties": false
    },
    "SegmentGroups": {
      "type": "object",
      "title": "AWSPinpointSegmentSegmentGroupsDefinition",
      "properties": {
        "Groups": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Groups"
          }
        },
        "Include": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Demographic": {
      "type": "object",
      "title": "AWSPinpointSegmentDemographicDefinition",
      "properties": {
        "AppVersion": {
          "$ref": "#/$defs/SetDimension"
        },
        "DeviceType": {
          "$ref": "#/$defs/SetDimension"
        },
        "Platform": {
          "$ref": "#/$defs/SetDimension"
        },
        "Channel": {
          "$ref": "#/$defs/SetDimension"
        },
        "Model": {
          "$ref": "#/$defs/SetDimension"
        },
        "Make": {
          "$ref": "#/$defs/SetDimension"
        }
      },
      "additionalProperties": false
    },
    "Groups": {
      "type": "object",
      "title": "AWSPinpointSegmentGroupsDefinition",
      "properties": {
        "Type": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SourceType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Dimensions": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/SegmentDimensions"
          }
        },
        "SourceSegments": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/SourceSegments"
          }
        }
      },
      "additionalProperties": false
    },
    "Location": {
      "type": "object",
      "title": "AWSPinpointSegmentLocationDefinition",
      "properties": {
        "GPSPoint": {
          "$ref": "#/$defs/GPSPoint"
        },
        "Country": {
          "$ref": "#/$defs/SetDimension"
        }
      },
      "additionalProperties": false
    },
    "Behavior": {
      "type": "object",
      "title": "AWSPinpointSegmentBehaviorDefinition",
      "properties": {
        "Recency": {
          "$ref": "#/$defs/Recency"
        }
      },
      "additionalProperties": false
    },
    "SetDimension": {
      "type": "object",
      "title": "AWSPinpointSegmentSetDimensionDefinition",
      "properties": {
        "DimensionType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Values": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "SourceSegments": {
      "type": "object",
      "title": "AWSPinpointSegmentSourceSegmentsDefinition",
      "properties": {
        "Version": {
          "type": "integer"
        },
        "Id": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Id"
      ],
      "additionalProperties": false
    },
    "GPSPoint": {
      "type": "object",
      "title": "AWSPinpointSegmentGPSPointDefinition",
      "properties": {
        "RangeInKilometers": {
          "type": "number"
        },
        "Coordinates": {
          "$ref": "#/$defs/Coordinates"
        }
      },
      "required": [
        "RangeInKilometers",
        "Coordinates"
      ],
      "additionalProperties": false
    },
    "Recency": {
      "type": "object",
      "title": "AWSPinpointSegmentRecencyDefinition",
      "properties": {
        "Duration": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RecencyType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Duration",
        "RecencyType"
      ],
      "additionalProperties": false
    },
    "Coordinates": {
      "type": "object",
      "title": "AWSPinpointSegmentCoordinatesDefinition",
      "properties": {
        "Latitude": {
          "type": "number"
        },
        "Longitude": {
          "type": "number"
        }
      },
      "required": [
        "Longitude",
        "Latitude"
      ],
      "additionalProperties": false
    }
  },
  "createOnlyProperties": [
    "/properties/ApplicationId"
  ],
  "additionalProperties": false,
  "required": [
    "ApplicationId",
    "Name"
  ],
  "readOnlyProperties": [
    "/properties/SegmentId",
    "/properties/Arn"
  ]
}
