{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-shield-proactiveengagement.json",
  "title": "AWSShieldProactiveEngagementProperties",
  "description": "Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-shield.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-shield-proactiveengagement.json",
    "sourceSha256": "69c2e3153137652d805087829c4e3d994e7f7da9597df9529faad06db3eac96f"
  },
  "type": "object",
  "properties": {
    "ProactiveEngagementStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "If `ENABLED`, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.\nIf `DISABLED`, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support."
    },
    "EmergencyContactList": {
      "description": "A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.\nTo enable proactive engagement, the contact list must include at least one phone number.",
      "type": "array",
      "insertionOrder": false,
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "$ref": "#/$defs/EmergencyContact"
      }
    }
  },
  "typeName": "AWS::Shield::ProactiveEngagement",
  "additionalProperties": false,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-shield.git",
  "primaryIdentifier": [
    "/properties/AccountId"
  ],
  "readOnlyProperties": [
    "/properties/AccountId"
  ],
  "tagging": {
    "taggable": false
  },
  "$defs": {
    "EmergencyContact": {
      "description": "An emergency contact is used by Shield Response Team (SRT) to contact you for escalations to the SRT and to initiate proactive customer support. An emergency contact requires an email address.",
      "type": "object",
      "title": "AWSShieldProactiveEngagementEmergencyContactDefinition",
      "required": [
        "EmailAddress"
      ],
      "properties": {
        "ContactNotes": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024,
              "pattern": "^[\\w\\s\\.\\-,:/()+@]*$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Additional notes regarding the contact."
        },
        "EmailAddress": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 150,
              "pattern": "^\\S+@\\S+\\.\\S+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The email address for the contact."
        },
        "PhoneNumber": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 16,
              "pattern": "^\\+[1-9]\\d{1,14}$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The phone number for the contact"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "ProactiveEngagementStatus",
    "EmergencyContactList"
  ]
}
