{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/SinkIdentifier",
  "/properties/LabelTemplate"
 ],
 "definitions": {
  "LinkConfiguration": {
   "additionalProperties": false,
   "properties": {
    "LogGroupConfiguration": {
     "$ref": "#/definitions/LinkFilter"
    },
    "MetricConfiguration": {
     "$ref": "#/definitions/LinkFilter"
    }
   },
   "type": "object"
  },
  "LinkFilter": {
   "additionalProperties": false,
   "properties": {
    "Filter": {
     "maxLength": 2000,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Filter"
   ],
   "type": "object"
  },
  "ResourceType": {
   "enum": [
    "AWS::CloudWatch::Metric",
    "AWS::Logs::LogGroup",
    "AWS::XRay::Trace",
    "AWS::ApplicationInsights::Application",
    "AWS::InternetMonitor::Monitor",
    "AWS::ApplicationSignals::Service",
    "AWS::ApplicationSignals::ServiceLevelObjective"
   ],
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "Arn": {
   "maxLength": 2048,
   "type": "string"
  },
  "Label": {
   "type": "string"
  },
  "LabelTemplate": {
   "maxLength": 64,
   "minLength": 1,
   "type": "string"
  },
  "LinkConfiguration": {
   "$ref": "#/definitions/LinkConfiguration"
  },
  "ResourceTypes": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/ResourceType"
   },
   "maxItems": 50,
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  },
  "SinkIdentifier": {
   "maxLength": 2048,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_:\\.\\-\\/]{0,2047}$",
   "type": "string"
  },
  "Tags": {
   "additionalProperties": false,
   "patternProperties": {
    "^(?!aws:.*).{1,128}$": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^(?!aws:.*).{0,256}$",
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn",
  "/properties/Label"
 ],
 "replacementStrategy": "delete_then_create",
 "required": [
  "ResourceTypes",
  "SinkIdentifier"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Oam::Link",
 "writeOnlyProperties": [
  "/properties/LabelTemplate"
 ]
}
