summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_iam_policy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgw/rgw_iam_policy.h')
-rw-r--r--src/rgw/rgw_iam_policy.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rgw/rgw_iam_policy.h b/src/rgw/rgw_iam_policy.h
index c60872850a3..e528d1515c7 100644
--- a/src/rgw/rgw_iam_policy.h
+++ b/src/rgw/rgw_iam_policy.h
@@ -141,8 +141,14 @@ static constexpr std::uint64_t stsGetSessionToken = iamAll + 3;
static constexpr std::uint64_t stsTagSession = iamAll + 4;
static constexpr std::uint64_t stsAll = iamAll + 5;
+static constexpr std::uint64_t snsGetTopicAttributes = stsAll + 1;
+static constexpr std::uint64_t snsDeleteTopic = stsAll + 2;
+static constexpr std::uint64_t snsPublish = stsAll + 3;
+static constexpr std::uint64_t snsSetTopicAttributes = stsAll + 4;
+static constexpr std::uint64_t snsAll = stsAll + 5;
+
static constexpr std::uint64_t s3Count = s3All;
-static constexpr std::uint64_t allCount = stsAll + 1;
+static constexpr std::uint64_t allCount = snsAll + 1;
using Action_t = std::bitset<allCount>;
using NotAction_t = Action_t;
@@ -164,6 +170,7 @@ static const Action_t None(0);
static const Action_t s3AllValue = set_cont_bits<allCount>(0,s3All);
static const Action_t iamAllValue = set_cont_bits<allCount>(s3All+1,iamAll);
static const Action_t stsAllValue = set_cont_bits<allCount>(iamAll+1,stsAll);
+static const Action_t snsAllValue = set_cont_bits<allCount>(stsAll + 1, snsAll);
static const Action_t allValue = set_cont_bits<allCount>(0,allCount);
namespace {