{
  "typeName" : "AWS::Events::EventBus",
  "description" : "Resource type definition for AWS::Events::EventBus",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-events",
  "properties" : {
    "EventSourceName" : {
      "description" : "If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.",
      "type" : "string"
    },
    "Name" : {
      "description" : "The name of the event bus.",
      "type" : "string"
    },
    "Tags" : {
      "description" : "Any tags assigned to the event bus.",
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "Description" : {
      "description" : "The description of the event bus.",
      "type" : "string"
    },
    "KmsKeyIdentifier" : {
      "description" : "Kms Key Identifier used to encrypt events at rest in the event bus.",
      "type" : "string"
    },
    "Policy" : {
      "description" : "A JSON string that describes the permission policy statement for the event bus.",
      "type" : [ "object", "string" ]
    },
    "Arn" : {
      "description" : "The Amazon Resource Name (ARN) for the event bus.",
      "type" : "string"
    },
    "DeadLetterConfig" : {
      "description" : "Dead Letter Queue for the event bus.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Arn" : {
          "type" : "string"
        }
      }
    },
    "LogConfig" : {
      "description" : "The logging configuration settings for vended logs.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IncludeDetail" : {
          "type" : "string",
          "description" : "Configures whether or not to include event detail, input transformer details, target properties, and target input in the applicable log messages.",
          "enum" : [ "FULL", "NONE" ]
        },
        "Level" : {
          "type" : "string",
          "description" : "Configures the log level of the EventBus and determines which log messages are sent to Ingestion Hub for delivery.",
          "enum" : [ "INFO", "ERROR", "TRACE", "OFF" ]
        }
      }
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "events:UntagResource", "events:TagResource", "events:ListTagsForResource" ]
  },
  "additionalProperties" : false,
  "required" : [ "Name" ],
  "createOnlyProperties" : [ "/properties/Name" ],
  "writeOnlyProperties" : [ "/properties/EventSourceName" ],
  "readOnlyProperties" : [ "/properties/Arn" ],
  "primaryIdentifier" : [ "/properties/Name" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "events:CreateEventBus", "events:DescribeEventBus", "events:PutPermission", "events:ListTagsForResource", "events:TagResource", "kms:DescribeKey", "kms:GenerateDataKey", "kms:Decrypt", "kms:GenerateDataKeyWithoutPlaintext", "kms:ReEncrypt", "kms:ReEncryptFrom", "kms:ReEncryptTo", "kms:Encrypt" ]
    },
    "read" : {
      "permissions" : [ "events:DescribeEventBus", "events:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "events:TagResource", "events:UntagResource", "events:PutPermission", "events:DescribeEventBus", "events:UpdateEventBus", "kms:DescribeKey", "kms:GenerateDataKey", "kms:Decrypt", "kms:GenerateDataKeyWithoutPlaintext", "kms:ReEncrypt", "kms:ReEncryptFrom", "kms:ReEncryptTo", "kms:Encrypt" ]
    },
    "delete" : {
      "permissions" : [ "events:DescribeEventBus", "events:UpdateEventBus", "events:ListTagsForResource", "events:UntagResource", "events:RemovePermission", "events:DeleteEventBus" ]
    },
    "list" : {
      "permissions" : [ "events:ListEventBuses", "events:ListTagsForResource" ]
    }
  },
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "type" : "string"
        },
        "Value" : {
          "type" : "string"
        }
      },
      "required" : [ "Value", "Key" ]
    }
  }
}