{
 "additionalIdentifiers": [
  [
   "/properties/GatewayId",
   "/properties/LinkId"
  ]
 ],
 "additionalProperties": false,
 "conditionalCreateOnlyProperties": [
  "/properties/GatewayId",
  "/properties/LinkAttributes",
  "/properties/LinkLogSettings"
 ],
 "definitions": {
  "Arn": {
   "maxLength": 2048,
   "minLength": 20,
   "pattern": "^arn:aws:rtbfabric:[a-zA-Z0-9_-]+:[0-9]{12}:gateway/[a-zA-Z0-9-]+/link/[a-zA-Z0-9-]+$",
   "type": "string"
  },
  "CreatedTimestamp": {
   "type": "string"
  },
  "GatewayId": {
   "pattern": "^rtb-gw-[a-z0-9-]{1,25}$",
   "type": "string"
  },
  "LinkAttributes": {
   "additionalProperties": false,
   "properties": {
    "CustomerProvidedId": {
     "type": "string"
    },
    "ResponderErrorMasking": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/ResponderErrorMaskingForHttpCode"
     },
     "maxItems": 200,
     "minItems": 1,
     "type": "array",
     "uniqueItems": false
    }
   },
   "type": "object"
  },
  "LinkId": {
   "pattern": "^link-[a-z0-9-]{1,25}$",
   "type": "string"
  },
  "LinkLogSettings": {
   "additionalProperties": false,
   "properties": {
    "ApplicationLogs": {
     "additionalProperties": false,
     "properties": {
      "LinkApplicationLogSampling": {
       "additionalProperties": false,
       "properties": {
        "ErrorLog": {
         "maximum": 100.0,
         "minimum": 0.0,
         "type": "number"
        },
        "FilterLog": {
         "maximum": 100.0,
         "minimum": 0.0,
         "type": "number"
        }
       },
       "required": [
        "ErrorLog",
        "FilterLog"
       ],
       "type": "object"
      }
     },
     "required": [
      "LinkApplicationLogSampling"
     ],
     "type": "object"
    }
   },
   "required": [
    "ApplicationLogs"
   ],
   "type": "object"
  },
  "LinkStatus": {
   "enum": [
    "PENDING_CREATION",
    "PENDING_REQUEST",
    "REQUESTED",
    "ACCEPTED",
    "ACTIVE",
    "REJECTED",
    "FAILED",
    "PENDING_DELETION",
    "DELETED",
    "PENDING_UPDATE",
    "PENDING_ISOLATION",
    "ISOLATED",
    "PENDING_RESTORATION",
    "UNKNOWN_TO_SDK_VERSION"
   ],
   "type": "string"
  },
  "ResponderErrorMaskingForHttpCode": {
   "additionalProperties": false,
   "properties": {
    "Action": {
     "enum": [
      "NO_BID",
      "PASSTHROUGH"
     ],
     "type": "string"
    },
    "HttpCode": {
     "maxLength": 7,
     "minLength": 3,
     "pattern": "^DEFAULT|4XX|5XX|\\d{3}$",
     "type": "string"
    },
    "LoggingTypes": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/ResponderErrorMaskingLoggingType"
     },
     "maxItems": 2,
     "minItems": 1,
     "type": "array",
     "uniqueItems": true
    },
    "ResponseLoggingPercentage": {
     "maximum": 100,
     "minimum": 0,
     "type": "number"
    }
   },
   "required": [
    "HttpCode",
    "Action",
    "LoggingTypes"
   ],
   "type": "object"
  },
  "ResponderErrorMaskingLoggingType": {
   "enum": [
    "NONE",
    "METRIC",
    "RESPONSE"
   ],
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key"
   ],
   "type": "object"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 0,
   "type": "array",
   "uniqueItems": true
  },
  "UpdatedTimestamp": {
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "Arn": {
   "$ref": "#/definitions/Arn"
  },
  "CreatedTimestamp": {
   "$ref": "#/definitions/CreatedTimestamp"
  },
  "GatewayId": {
   "$ref": "#/definitions/GatewayId"
  },
  "LinkAttributes": {
   "$ref": "#/definitions/LinkAttributes"
  },
  "LinkId": {
   "$ref": "#/definitions/LinkId"
  },
  "LinkLogSettings": {
   "$ref": "#/definitions/LinkLogSettings"
  },
  "LinkStatus": {
   "$ref": "#/definitions/LinkStatus"
  },
  "Tags": {
   "$ref": "#/definitions/Tags"
  },
  "UpdatedTimestamp": {
   "$ref": "#/definitions/UpdatedTimestamp"
  }
 },
 "readOnlyProperties": [
  "/properties/LinkId",
  "/properties/Arn",
  "/properties/LinkStatus",
  "/properties/CreatedTimestamp",
  "/properties/UpdatedTimestamp"
 ],
 "required": [
  "GatewayId",
  "LinkLogSettings"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::RTBFabric::InboundExternalLink"
}
