{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/TemplateName"
 ],
 "definitions": {
  "Alignment": {
   "enum": [
    "LEFT",
    "CENTER",
    "RIGHT"
   ],
   "type": "string"
  },
  "BodyConfig": {
   "additionalProperties": false,
   "properties": {
    "Alignment": {
     "$ref": "#/definitions/Alignment"
    },
    "Body": {
     "type": "string"
    },
    "TextColor": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "ButtonAction": {
   "enum": [
    "LINK",
    "DEEP_LINK",
    "CLOSE"
   ],
   "type": "string"
  },
  "ButtonConfig": {
   "additionalProperties": false,
   "properties": {
    "Android": {
     "$ref": "#/definitions/OverrideButtonConfiguration"
    },
    "DefaultConfig": {
     "$ref": "#/definitions/DefaultButtonConfiguration"
    },
    "IOS": {
     "$ref": "#/definitions/OverrideButtonConfiguration"
    },
    "Web": {
     "$ref": "#/definitions/OverrideButtonConfiguration"
    }
   },
   "type": "object"
  },
  "DefaultButtonConfiguration": {
   "additionalProperties": false,
   "properties": {
    "BackgroundColor": {
     "type": "string"
    },
    "BorderRadius": {
     "type": "integer"
    },
    "ButtonAction": {
     "$ref": "#/definitions/ButtonAction"
    },
    "Link": {
     "type": "string"
    },
    "Text": {
     "type": "string"
    },
    "TextColor": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "HeaderConfig": {
   "additionalProperties": false,
   "properties": {
    "Alignment": {
     "$ref": "#/definitions/Alignment"
    },
    "Header": {
     "type": "string"
    },
    "TextColor": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "InAppMessageContent": {
   "additionalProperties": false,
   "properties": {
    "BackgroundColor": {
     "type": "string"
    },
    "BodyConfig": {
     "$ref": "#/definitions/BodyConfig"
    },
    "HeaderConfig": {
     "$ref": "#/definitions/HeaderConfig"
    },
    "ImageUrl": {
     "type": "string"
    },
    "PrimaryBtn": {
     "$ref": "#/definitions/ButtonConfig"
    },
    "SecondaryBtn": {
     "$ref": "#/definitions/ButtonConfig"
    }
   },
   "type": "object"
  },
  "OverrideButtonConfiguration": {
   "additionalProperties": false,
   "properties": {
    "ButtonAction": {
     "$ref": "#/definitions/ButtonAction"
    },
    "Link": {
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "lifecycle": {
  "date": "2026-10-30",
  "status": "sunset"
 },
 "primaryIdentifier": [
  "/properties/TemplateName"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "Content": {
   "insertionOrder": true,
   "items": {
    "$ref": "#/definitions/InAppMessageContent"
   },
   "type": "array"
  },
  "CustomConfig": {
   "type": [
    "object"
   ]
  },
  "Layout": {
   "enum": [
    "BOTTOM_BANNER",
    "TOP_BANNER",
    "OVERLAYS",
    "MOBILE_FEED",
    "MIDDLE_BANNER",
    "CAROUSEL"
   ],
   "type": "string"
  },
  "Tags": {
   "format": "json",
   "type": [
    "object",
    "string"
   ]
  },
  "TemplateDescription": {
   "type": "string"
  },
  "TemplateName": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "required": [
  "TemplateName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Pinpoint::InAppTemplate"
}
