{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-pinpoint-inapptemplate.json",
  "title": "AWSPinpointInAppTemplateProperties",
  "description": "Resource Type definition for AWS::Pinpoint::InAppTemplate. 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-pinpoint-inapptemplate.json",
    "sourceSha256": "058231b71829ee4c17863bc2d9313ecc714e0e655644c40213585321096a0980"
  },
  "type": "object",
  "properties": {
    "Content": {
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/InAppMessageContent"
      },
      "type": "array"
    },
    "CustomConfig": {
      "type": "object"
    },
    "Layout": {
      "oneOf": [
        {
          "enum": [
            "BOTTOM_BANNER",
            "TOP_BANNER",
            "OVERLAYS",
            "MOBILE_FEED",
            "MIDDLE_BANNER",
            "CAROUSEL"
          ],
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "object"
    },
    "TemplateDescription": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "TemplateName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    }
  },
  "$defs": {
    "Alignment": {
      "oneOf": [
        {
          "enum": [
            "LEFT",
            "CENTER",
            "RIGHT"
          ],
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSPinpointInAppTemplateAlignmentDefinition"
    },
    "BodyConfig": {
      "title": "AWSPinpointInAppTemplateBodyConfigDefinition",
      "properties": {
        "Alignment": {
          "$ref": "#/$defs/Alignment"
        },
        "Body": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TextColor": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "ButtonAction": {
      "oneOf": [
        {
          "enum": [
            "LINK",
            "DEEP_LINK",
            "CLOSE"
          ],
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSPinpointInAppTemplateButtonActionDefinition"
    },
    "ButtonConfig": {
      "title": "AWSPinpointInAppTemplateButtonConfigDefinition",
      "properties": {
        "Android": {
          "$ref": "#/$defs/OverrideButtonConfiguration"
        },
        "DefaultConfig": {
          "$ref": "#/$defs/DefaultButtonConfiguration"
        },
        "IOS": {
          "$ref": "#/$defs/OverrideButtonConfiguration"
        },
        "Web": {
          "$ref": "#/$defs/OverrideButtonConfiguration"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "DefaultButtonConfiguration": {
      "title": "AWSPinpointInAppTemplateDefaultButtonConfigurationDefinition",
      "properties": {
        "BackgroundColor": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "BorderRadius": {
          "type": "integer"
        },
        "ButtonAction": {
          "$ref": "#/$defs/ButtonAction"
        },
        "Link": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Text": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TextColor": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "HeaderConfig": {
      "title": "AWSPinpointInAppTemplateHeaderConfigDefinition",
      "properties": {
        "Alignment": {
          "$ref": "#/$defs/Alignment"
        },
        "Header": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TextColor": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "InAppMessageContent": {
      "title": "AWSPinpointInAppTemplateInAppMessageContentDefinition",
      "properties": {
        "BackgroundColor": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "BodyConfig": {
          "$ref": "#/$defs/BodyConfig"
        },
        "HeaderConfig": {
          "$ref": "#/$defs/HeaderConfig"
        },
        "ImageUrl": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PrimaryBtn": {
          "$ref": "#/$defs/ButtonConfig"
        },
        "SecondaryBtn": {
          "$ref": "#/$defs/ButtonConfig"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "OverrideButtonConfiguration": {
      "title": "AWSPinpointInAppTemplateOverrideButtonConfigurationDefinition",
      "properties": {
        "ButtonAction": {
          "$ref": "#/$defs/ButtonAction"
        },
        "Link": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "createOnlyProperties": [
    "/properties/TemplateName"
  ],
  "additionalProperties": false,
  "typeName": "AWS::Pinpoint::InAppTemplate",
  "primaryIdentifier": [
    "/properties/TemplateName"
  ],
  "taggable": true,
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "required": [
    "TemplateName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git"
}
