{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ivschat-loggingconfiguration.json",
  "title": "AWSIVSChatLoggingConfigurationProperties",
  "description": "Resource type definition for AWS::IVSChat::LoggingConfiguration.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ivschat.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ivschat-loggingconfiguration.json",
    "sourceSha256": "29c2d746f04de2da8c186ff8a2d12d4ce90bc0b0ed600f34630feb80b7a89d51"
  },
  "type": "object",
  "properties": {
    "DestinationConfiguration": {
      "$ref": "#/$defs/DestinationConfiguration"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9-_]*$",
          "minLength": 0,
          "maxLength": 128
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the logging configuration. The value does not need to be unique."
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::IVSChat::LoggingConfiguration",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ivschat.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/Id",
    "/properties/State"
  ],
  "$defs": {
    "DestinationConfiguration": {
      "description": "Destination configuration for IVS Chat logging.",
      "type": "object",
      "title": "AWSIVSChatLoggingConfigurationDestinationConfigurationDefinition",
      "properties": {
        "CloudWatchLogs": {
          "$ref": "#/$defs/CloudWatchLogsDestinationConfiguration"
        },
        "Firehose": {
          "$ref": "#/$defs/FirehoseDestinationConfiguration"
        },
        "S3": {
          "$ref": "#/$defs/S3DestinationConfiguration"
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "CloudWatchLogsDestinationConfiguration": {
      "description": "CloudWatch destination configuration for IVS Chat logging.",
      "type": "object",
      "title": "AWSIVSChatLoggingConfigurationCloudWatchLogsDestinationConfigurationDefinition",
      "properties": {
        "LogGroupName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[\\.\\-_/#A-Za-z0-9]+$",
              "minLength": 1,
              "maxLength": 512
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Name of the Amazon CloudWatch Logs log group where chat activity will be logged."
        }
      },
      "required": [
        "LogGroupName"
      ],
      "additionalProperties": false
    },
    "FirehoseDestinationConfiguration": {
      "description": "Kinesis Firehose destination configuration for IVS Chat logging.",
      "type": "object",
      "title": "AWSIVSChatLoggingConfigurationFirehoseDestinationConfigurationDefinition",
      "properties": {
        "DeliveryStreamName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_.-]+$",
              "minLength": 1,
              "maxLength": 64
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged."
        }
      },
      "required": [
        "DeliveryStreamName"
      ],
      "additionalProperties": false
    },
    "S3DestinationConfiguration": {
      "description": "S3 destination configuration for IVS Chat logging.",
      "type": "object",
      "title": "AWSIVSChatLoggingConfigurationS3DestinationConfigurationDefinition",
      "properties": {
        "BucketName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-z0-9-.]+$",
              "minLength": 3,
              "maxLength": 63
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Name of the Amazon S3 bucket where chat activity will be logged."
        }
      },
      "required": [
        "BucketName"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSIVSChatLoggingConfigurationTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "DestinationConfiguration"
  ]
}
