[Amazon Verified Permissions] Can't change "==" to "in" within policy template

0

In Amazon Verified Permissions I have a policy template that contains this: "principal == ?principal"

I want to change it to this: "principal in ?principal"

Seems like I should be allowed to do this, but when I try to make the change it does not allow it and returns: "Template principal cannot change during update."

Is there any way to change the operator in my template policy?

질문됨 4달 전147회 조회
1개 답변
0

There isn't currently a way to change this. It's not explicit on the Editing policy templates page, but as of 10-MAR-2024 Editing Amazon Verified Permissions static policies calls out "principal referenced by a static policy" as something that can't change.

You can't change these elements of a static policy:

  • Changing a policy from a static policy to a template-linked policy.
  • Changing the effect of a static policy from permit or forbid.
  • The principal referenced by a static policy.
  • The resource referenced by a static policy.

Verified Permissions can use principal as part of PolicyFilter and these is some backend indexing to support this. You are correct is is not clear that switching from == to in changes the principal. I'll submit documentation feedback on this topic.

profile pictureAWS
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠