Skip to content

AttachedTo

Source code in docs_src/capo_iam_toolbox/types/attached_to.py
6
7
8
class AttachedTo(TypedDict, closed=True):
    arn: NotRequired["str"]
    """<p>The ARN of the entity that the policy is attached to. The ARN format depends on the policy type:</p> <ul> <li> <p>For identity, session, and permissions boundary policies, this is the principal ARN (for example, an IAM role or user ARN).</p> </li> <li> <p>For resource-based policies, this is the resource ARN.</p> </li> <li> <p>For organization control policies (SCPs and RCPs), this is the AWS Organizations ARN of the account, organizational unit, or root.</p> </li> </ul>"""

arn instance-attribute

arn: NotRequired[str]

The ARN of the entity that the policy is attached to. The ARN format depends on the policy type:

  • For identity, session, and permissions boundary policies, this is the principal ARN (for example, an IAM role or user ARN).

  • For resource-based policies, this is the resource ARN.

  • For organization control policies (SCPs and RCPs), this is the AWS Organizations ARN of the account, organizational unit, or root.