{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/SubscriberArn"
 ],
 "definitions": {
  "HttpsNotificationConfiguration": {
   "additionalProperties": false,
   "properties": {
    "AuthorizationApiKeyName": {
     "type": "string"
    },
    "AuthorizationApiKeyValue": {
     "type": "string"
    },
    "Endpoint": {
     "pattern": "^https?://.+$",
     "type": "string"
    },
    "HttpMethod": {
     "enum": [
      "POST",
      "PUT"
     ],
     "type": "string"
    },
    "TargetRoleArn": {
     "pattern": "^arn:.*$",
     "type": "string"
    }
   },
   "required": [
    "Endpoint",
    "TargetRoleArn"
   ],
   "type": "object"
  },
  "NotificationConfiguration": {
   "additionalProperties": false,
   "oneOf": [
    {
     "required": [
      "HttpsNotificationConfiguration"
     ]
    },
    {
     "required": [
      "SqsNotificationConfiguration"
     ]
    }
   ],
   "properties": {
    "HttpsNotificationConfiguration": {
     "$ref": "#/definitions/HttpsNotificationConfiguration"
    },
    "SqsNotificationConfiguration": {
     "$ref": "#/definitions/SqsNotificationConfiguration"
    }
   },
   "type": "object"
  },
  "SqsNotificationConfiguration": {
   "format": "json",
   "type": [
    "object",
    "string"
   ]
  }
 },
 "primaryIdentifier": [
  "/properties/SubscriberArn"
 ],
 "properties": {
  "NotificationConfiguration": {
   "$ref": "#/definitions/NotificationConfiguration"
  },
  "SubscriberArn": {
   "pattern": "^arn:.*$",
   "type": "string"
  },
  "SubscriberEndpoint": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/SubscriberEndpoint"
 ],
 "replacementStrategy": "delete_then_create",
 "required": [
  "SubscriberArn",
  "NotificationConfiguration"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-securitylake.git",
 "tagging": {
  "taggable": false
 },
 "typeName": "AWS::SecurityLake::SubscriberNotification",
 "writeOnlyProperties": [
  "/properties/NotificationConfiguration/HttpsNotificationConfiguration/AuthorizationApiKeyName",
  "/properties/NotificationConfiguration/HttpsNotificationConfiguration/AuthorizationApiKeyValue",
  "/properties/NotificationConfiguration/HttpsNotificationConfiguration/Endpoint",
  "/properties/NotificationConfiguration/HttpsNotificationConfiguration/HttpMethod",
  "/properties/NotificationConfiguration/HttpsNotificationConfiguration/TargetRoleArn"
 ]
}
