{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-amazonmq-broker.json",
  "title": "AWSAmazonMQBrokerProperties",
  "description": "Resource Type definition for AWS::AmazonMQ::Broker. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-amazonmq-broker.json",
    "sourceSha256": "4032f639f71e8d0b27ba2a7f30ebca87ef5d210933f03fec04e4cc4d05a4ab6f"
  },
  "type": "object",
  "properties": {
    "SecurityGroups": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "Configuration": {
      "$ref": "#/$defs/ConfigurationId"
    },
    "AuthenticationStrategy": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Users": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/User"
      }
    },
    "SubnetIds": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "DeploymentMode": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EngineType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EncryptionOptions": {
      "$ref": "#/$defs/EncryptionOptions"
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/TagsEntry"
      }
    },
    "StorageType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EngineVersion": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "MaintenanceWindowStartTime": {
      "$ref": "#/$defs/MaintenanceWindow"
    },
    "HostInstanceType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AutoMinorVersionUpgrade": {
      "type": "boolean"
    },
    "Logs": {
      "$ref": "#/$defs/LogList"
    },
    "BrokerName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "LdapServerMetadata": {
      "$ref": "#/$defs/LdapServerMetadata"
    },
    "PubliclyAccessible": {
      "type": "boolean"
    }
  },
  "typeName": "AWS::AmazonMQ::Broker",
  "readOnlyProperties": [
    "/properties/IpAddresses",
    "/properties/Id",
    "/properties/MqttEndpoints",
    "/properties/OpenWireEndpoints",
    "/properties/ConfigurationId",
    "/properties/ConfigurationRevision",
    "/properties/StompEndpoints",
    "/properties/WssEndpoints",
    "/properties/AmqpEndpoints",
    "/properties/Arn"
  ],
  "$defs": {
    "LogList": {
      "type": "object",
      "title": "AWSAmazonMQBrokerLogListDefinition",
      "properties": {
        "Audit": {
          "type": "boolean"
        },
        "General": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "LdapServerMetadata": {
      "type": "object",
      "title": "AWSAmazonMQBrokerLdapServerMetadataDefinition",
      "properties": {
        "Hosts": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "UserRoleName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "UserSearchMatching": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "UserBase": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "UserSearchSubtree": {
          "type": "boolean"
        },
        "RoleSearchMatching": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ServiceAccountUsername": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleBase": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ServiceAccountPassword": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleSearchSubtree": {
          "type": "boolean"
        }
      },
      "required": [
        "Hosts",
        "UserSearchMatching",
        "UserBase",
        "RoleSearchMatching",
        "ServiceAccountUsername",
        "RoleBase",
        "ServiceAccountPassword"
      ],
      "additionalProperties": false
    },
    "User": {
      "type": "object",
      "title": "AWSAmazonMQBrokerUserDefinition",
      "properties": {
        "ConsoleAccess": {
          "type": "boolean"
        },
        "Username": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Groups": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "Password": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Username",
        "Password"
      ],
      "additionalProperties": false
    },
    "MaintenanceWindow": {
      "type": "object",
      "title": "AWSAmazonMQBrokerMaintenanceWindowDefinition",
      "properties": {
        "DayOfWeek": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TimeOfDay": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TimeZone": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "DayOfWeek",
        "TimeOfDay",
        "TimeZone"
      ],
      "additionalProperties": false
    },
    "TagsEntry": {
      "type": "object",
      "title": "AWSAmazonMQBrokerTagsEntryDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "EncryptionOptions": {
      "type": "object",
      "title": "AWSAmazonMQBrokerEncryptionOptionsDefinition",
      "properties": {
        "KmsKeyId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "UseAwsOwnedKey": {
          "type": "boolean"
        }
      },
      "required": [
        "UseAwsOwnedKey"
      ],
      "additionalProperties": false
    },
    "ConfigurationId": {
      "type": "object",
      "title": "AWSAmazonMQBrokerConfigurationIdDefinition",
      "properties": {
        "Revision": {
          "type": "integer"
        },
        "Id": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Revision",
        "Id"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "EngineVersion",
    "DeploymentMode",
    "HostInstanceType",
    "EngineType",
    "AutoMinorVersionUpgrade",
    "Users",
    "PubliclyAccessible",
    "BrokerName"
  ],
  "createOnlyProperties": [
    "/properties/BrokerName",
    "/properties/StorageType",
    "/properties/DeploymentMode",
    "/properties/EngineType",
    "/properties/SubnetIds",
    "/properties/AuthenticationStrategy",
    "/properties/EncryptionOptions",
    "/properties/PubliclyAccessible"
  ]
}
