{
  "additionalProperties" : false,
  "createOnlyProperties" : [ "/properties/Name" ],
  "definitions" : {
    "EndPoint" : {
      "additionalProperties" : false,
      "properties" : {
        "KinesisStreamConfig" : {
          "$ref" : "#/definitions/KinesisStreamConfig"
        },
        "StreamType" : {
          "type" : "string"
        }
      },
      "required" : [ "KinesisStreamConfig", "StreamType" ],
      "type" : "object"
    },
    "KinesisStreamConfig" : {
      "additionalProperties" : false,
      "properties" : {
        "RoleArn" : {
          "type" : "string"
        },
        "StreamArn" : {
          "type" : "string"
        }
      },
      "required" : [ "RoleArn", "StreamArn" ],
      "type" : "object"
    }
  },
  "description" : "Resource Type definition for AWS::CloudFront::RealtimeLogConfig",
  "handlers" : {
    "create" : {
      "permissions" : [ "cloudfront:CreateRealtimeLogConfig" ]
    },
    "delete" : {
      "permissions" : [ "cloudfront:DeleteRealtimeLogConfig" ]
    },
    "list" : {
      "permissions" : [ "cloudfront:ListRealtimeLogConfigs" ]
    },
    "read" : {
      "permissions" : [ "cloudfront:GetRealtimeLogConfig" ]
    },
    "update" : {
      "permissions" : [ "cloudfront:UpdateRealtimeLogConfig" ]
    }
  },
  "primaryIdentifier" : [ "/properties/Arn" ],
  "properties" : {
    "Arn" : {
      "type" : "string"
    },
    "EndPoints" : {
      "items" : {
        "$ref" : "#/definitions/EndPoint"
      },
      "minItems" : 1,
      "type" : "array",
      "uniqueItems" : false
    },
    "Fields" : {
      "items" : {
        "type" : "string"
      },
      "minItems" : 1,
      "type" : "array",
      "uniqueItems" : false
    },
    "Name" : {
      "type" : "string"
    },
    "SamplingRate" : {
      "maximum" : 100,
      "minimum" : 1,
      "multipleOf" : 1.0,
      "type" : "number"
    }
  },
  "readOnlyProperties" : [ "/properties/Arn" ],
  "required" : [ "Name", "EndPoints", "Fields", "SamplingRate" ],
  "typeName" : "AWS::CloudFront::RealtimeLogConfig"
}