{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "FirehoseAPIStatement",
      "Effect": "Allow",
      "Action": [
        "firehose:PutRecord",
        "firehose:PutRecordBatch"
      ],
      "Resource": [
        "arn:aws:firehose:*:*:deliverystream/aws-waf-logs-*"
      ]
    },
    {
      "Sid": "DescribeOrganizationAPIStatement",
      "Effect": "Allow",
      "Action": "organizations:DescribeOrganization",
      "Resource": "*"
    },
    {
      "Sid": "KMSForFirehoseSSECMK",
      "Effect": "Allow",
      "Action": [
        "kms:GenerateDataKey",
        "kms:Decrypt"
      ],
      "Resource": "*",
      "Condition": {
        "StringLike": {
          "kms:ViaService": "firehose.*.amazonaws.com"
        }
      }
    }
  ]
}
