{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-oam-link.json",
  "title": "AWSOamLinkProperties",
  "description": "Definition of AWS::Oam::Link Resource Type. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-oam-link.json",
    "sourceSha256": "38268195a1f92ef28c0f1f1f8760513ddc4648fd0e5401865e0f1a7c9f29b851"
  },
  "type": "object",
  "properties": {
    "LabelTemplate": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 64,
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ResourceTypes": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/ResourceType"
      },
      "maxItems": 50,
      "minItems": 1,
      "uniqueItems": true
    },
    "SinkIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "description": "Tags to apply to the link",
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "^(?!aws:.*)[a-zA-Z0-9\\s\\_\\.\\/\\=\\+\\-]{1,128}$": {
          "type": "string",
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.",
          "pattern": "^(?!aws:.*)[a-zA-Z0-9\\s\\_\\.\\/\\=\\+\\-]{0,256}$",
          "minLength": 0,
          "maxLength": 256
        }
      }
    }
  },
  "typeName": "AWS::Oam::Link",
  "$defs": {
    "ResourceType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "AWS::CloudWatch::Metric",
            "AWS::Logs::LogGroup",
            "AWS::XRay::Trace"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSOamLinkResourceTypeDefinition"
    }
  },
  "additionalProperties": false,
  "replacementStrategy": "delete_then_create",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false
  },
  "required": [
    "ResourceTypes",
    "SinkIdentifier"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/Label"
  ],
  "createOnlyProperties": [
    "/properties/SinkIdentifier",
    "/properties/LabelTemplate"
  ],
  "writeOnlyProperties": [
    "/properties/LabelTemplate"
  ],
  "primaryIdentifier": [
    "/properties/Arn"
  ]
}
