{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-cognito-userpoolriskconfigurationattachment.json",
  "title": "AWSCognitoUserPoolRiskConfigurationAttachmentProperties",
  "description": "Resource Type definition for AWS::Cognito::UserPoolRiskConfigurationAttachment. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-cognito-userpoolriskconfigurationattachment.json",
    "sourceSha256": "90505fba8c42f9ccabde62e10925c192e2ee87166d518f155224acbe698060dd"
  },
  "type": "object",
  "properties": {
    "CompromisedCredentialsRiskConfiguration": {
      "$ref": "#/$defs/CompromisedCredentialsRiskConfigurationType"
    },
    "UserPoolId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ClientId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AccountTakeoverRiskConfiguration": {
      "$ref": "#/$defs/AccountTakeoverRiskConfigurationType"
    },
    "RiskExceptionConfiguration": {
      "$ref": "#/$defs/RiskExceptionConfigurationType"
    }
  },
  "typeName": "AWS::Cognito::UserPoolRiskConfigurationAttachment",
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "$defs": {
    "RiskExceptionConfigurationType": {
      "type": "object",
      "title": "AWSCognitoUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypeDefinition",
      "properties": {
        "BlockedIPRangeList": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "SkippedIPRangeList": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "CompromisedCredentialsRiskConfigurationType": {
      "type": "object",
      "title": "AWSCognitoUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypeDefinition",
      "properties": {
        "Actions": {
          "$ref": "#/$defs/CompromisedCredentialsActionsType"
        },
        "EventFilter": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "Actions"
      ],
      "additionalProperties": false
    },
    "AccountTakeoverRiskConfigurationType": {
      "type": "object",
      "title": "AWSCognitoUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypeDefinition",
      "properties": {
        "Actions": {
          "$ref": "#/$defs/AccountTakeoverActionsType"
        },
        "NotifyConfiguration": {
          "$ref": "#/$defs/NotifyConfigurationType"
        }
      },
      "required": [
        "Actions"
      ],
      "additionalProperties": false
    },
    "NotifyConfigurationType": {
      "type": "object",
      "title": "AWSCognitoUserPoolRiskConfigurationAttachmentNotifyConfigurationTypeDefinition",
      "properties": {
        "BlockEmail": {
          "$ref": "#/$defs/NotifyEmailType"
        },
        "ReplyTo": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SourceArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "NoActionEmail": {
          "$ref": "#/$defs/NotifyEmailType"
        },
        "From": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MfaEmail": {
          "$ref": "#/$defs/NotifyEmailType"
        }
      },
      "required": [
        "SourceArn"
      ],
      "additionalProperties": false
    },
    "CompromisedCredentialsActionsType": {
      "type": "object",
      "title": "AWSCognitoUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypeDefinition",
      "properties": {
        "EventAction": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "EventAction"
      ],
      "additionalProperties": false
    },
    "AccountTakeoverActionsType": {
      "type": "object",
      "title": "AWSCognitoUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypeDefinition",
      "properties": {
        "HighAction": {
          "$ref": "#/$defs/AccountTakeoverActionType"
        },
        "LowAction": {
          "$ref": "#/$defs/AccountTakeoverActionType"
        },
        "MediumAction": {
          "$ref": "#/$defs/AccountTakeoverActionType"
        }
      },
      "additionalProperties": false
    },
    "AccountTakeoverActionType": {
      "type": "object",
      "title": "AWSCognitoUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypeDefinition",
      "properties": {
        "Notify": {
          "type": "boolean"
        },
        "EventAction": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Notify",
        "EventAction"
      ],
      "additionalProperties": false
    },
    "NotifyEmailType": {
      "type": "object",
      "title": "AWSCognitoUserPoolRiskConfigurationAttachmentNotifyEmailTypeDefinition",
      "properties": {
        "TextBody": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "HtmlBody": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Subject": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Subject"
      ],
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "ClientId",
    "UserPoolId"
  ],
  "createOnlyProperties": [
    "/properties/UserPoolId",
    "/properties/ClientId"
  ]
}
