{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-elasticache-replicationgroup.json",
  "title": "AWSElastiCacheReplicationGroupProperties",
  "description": "Resource Type definition for AWS::ElastiCache::ReplicationGroup. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-elasticache-replicationgroup.json",
    "sourceSha256": "40079d7000fb0596e0644e7f3d18f5154955ba2d698afdc71b3f56736219f69c"
  },
  "type": "object",
  "properties": {
    "PreferredCacheClusterAZs": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "ReaderEndPointPort": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "NodeGroupConfiguration": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/NodeGroupConfiguration"
      }
    },
    "SnapshotArns": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "ConfigurationEndPointPort": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Port": {
      "type": "integer"
    },
    "NumNodeGroups": {
      "type": "integer"
    },
    "NotificationTopicArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AutomaticFailoverEnabled": {
      "type": "boolean"
    },
    "ReplicasPerNodeGroup": {
      "type": "integer"
    },
    "TransitEncryptionEnabled": {
      "type": "boolean"
    },
    "Engine": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "PrimaryEndPointAddress": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "GlobalReplicationGroupId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ConfigurationEndPointAddress": {
      "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"
        }
      ]
    },
    "KmsKeyId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "PrimaryClusterId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ReadEndPointPorts": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AutoMinorVersionUpgrade": {
      "type": "boolean"
    },
    "SecurityGroupIds": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "SnapshotWindow": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "TransitEncryptionMode": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "SnapshotRetentionLimit": {
      "type": "integer"
    },
    "ReadEndPointAddressesList": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "SnapshottingClusterId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "IpDiscovery": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ReadEndPointAddresses": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "PrimaryEndPointPort": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CacheSecurityGroupNames": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "ClusterMode": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ReadEndPointPortsList": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "SnapshotName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ReplicationGroupDescription": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ReaderEndPointAddress": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "MultiAZEnabled": {
      "type": "boolean"
    },
    "NetworkType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "NumCacheClusters": {
      "type": "integer"
    },
    "CacheSubnetGroupName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CacheParameterGroupName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "PreferredMaintenanceWindow": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AtRestEncryptionEnabled": {
      "type": "boolean"
    },
    "CacheNodeType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "UserGroupIds": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "AuthToken": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DataTieringEnabled": {
      "type": "boolean"
    },
    "LogDeliveryConfigurations": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/LogDeliveryConfigurationRequest"
      }
    }
  },
  "typeName": "AWS::ElastiCache::ReplicationGroup",
  "readOnlyProperties": [
    "/properties/ConfigurationEndPoint.Address",
    "/properties/PrimaryEndPoint.Address",
    "/properties/PrimaryEndPoint.Port",
    "/properties/ReaderEndPoint.Address",
    "/properties/ConfigurationEndPoint.Port",
    "/properties/ReadEndPoint.Addresses.List",
    "/properties/ReadEndPoint.Ports.List",
    "/properties/ReaderEndPoint.Port",
    "/properties/ReadEndPoint.Addresses",
    "/properties/ReadEndPoint.Ports",
    "/properties/ReplicationGroupId"
  ],
  "$defs": {
    "LogDeliveryConfigurationRequest": {
      "type": "object",
      "title": "AWSElastiCacheReplicationGroupLogDeliveryConfigurationRequestDefinition",
      "properties": {
        "LogType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "LogFormat": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DestinationType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DestinationDetails": {
          "$ref": "#/$defs/DestinationDetails"
        }
      },
      "required": [
        "LogFormat",
        "LogType",
        "DestinationType",
        "DestinationDetails"
      ],
      "additionalProperties": false
    },
    "KinesisFirehoseDestinationDetails": {
      "type": "object",
      "title": "AWSElastiCacheReplicationGroupKinesisFirehoseDestinationDetailsDefinition",
      "properties": {
        "DeliveryStream": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "DeliveryStream"
      ],
      "additionalProperties": false
    },
    "CloudWatchLogsDestinationDetails": {
      "type": "object",
      "title": "AWSElastiCacheReplicationGroupCloudWatchLogsDestinationDetailsDefinition",
      "properties": {
        "LogGroup": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "LogGroup"
      ],
      "additionalProperties": false
    },
    "NodeGroupConfiguration": {
      "type": "object",
      "title": "AWSElastiCacheReplicationGroupNodeGroupConfigurationDefinition",
      "properties": {
        "Slots": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PrimaryAvailabilityZone": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ReplicaAvailabilityZones": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "NodeGroupId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ReplicaCount": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSElastiCacheReplicationGroupTagDefinition",
      "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
    },
    "DestinationDetails": {
      "type": "object",
      "title": "AWSElastiCacheReplicationGroupDestinationDetailsDefinition",
      "properties": {
        "CloudWatchLogsDetails": {
          "$ref": "#/$defs/CloudWatchLogsDestinationDetails"
        },
        "KinesisFirehoseDetails": {
          "$ref": "#/$defs/KinesisFirehoseDestinationDetails"
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/ReplicationGroupId"
  ],
  "additionalProperties": false,
  "required": [
    "ReplicationGroupDescription"
  ],
  "createOnlyProperties": [
    "/properties/KmsKeyId",
    "/properties/Port",
    "/properties/SnapshotArns",
    "/properties/CacheSubnetGroupName",
    "/properties/NetworkType",
    "/properties/DataTieringEnabled",
    "/properties/AtRestEncryptionEnabled",
    "/properties/ReplicationGroupId",
    "/properties/GlobalReplicationGroupId",
    "/properties/ReplicasPerNodeGroup",
    "/properties/PreferredCacheClusterAZs",
    "/properties/SnapshotName",
    "/properties/Engine"
  ]
}
