Skip to content

Grantee

Source code in docs_src/capo_s3_control/types/grantee.py
class Grantee(TypedDict, closed=True):
    grantee_type: NotRequired["capo_s3_control.types.grantee_type.GranteeType"]
    """<p>The type of the grantee to which access has been granted. It can be one of the following values:</p> <ul> <li> <p> <code>IAM</code> - An IAM user or role.</p> </li> <li> <p> <code>DIRECTORY_USER</code> - A user from your corporate directory. The user can sign in through IAM Identity Center or through IAM federation with your external identity provider.</p> </li> <li> <p> <code>DIRECTORY_GROUP</code> - A group from your corporate directory. Group grants match users who sign in through IAM Identity Center. They also match users who sign in through IAM federation when the IAM identity provider is configured for <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation_configure_group_access.html">group-based access</a>.</p> </li> <li> <p> <code>ATTRIBUTE</code> - A runtime claim that you map on your IAM identity provider, such as a department. The grant matches every user who signs in through IAM federation with this runtime claim and value.</p> </li> </ul>"""
    grantee_identifier: NotRequired[
        "capo_s3_control.types.grantee_identifier.GranteeIdentifier"
    ]
    """<p>The unique identifier of the <code>Grantee</code>. The format depends on the grantee type:</p> <ul> <li> <p> <code>IAM</code> - The IAM Amazon Resource Name (ARN) of the user or role.</p> </li> <li> <p> <code>DIRECTORY_USER</code> - The user's name, or the ID that IAM Identity Center uses for the user, for example, <code>a1b2c3d4-5678-90ab-cdef-EXAMPLE11111</code>. For IAM federation, the name is the subject that IAM sets from your identity provider token, for example, the user ID <code>00u1a2b3c4EXAMPLE</code>. For IAM Identity Center, the name is the user's username.</p> </li> <li> <p> <code>DIRECTORY_GROUP</code> - The group's display name in IAM Identity Center, for example, <code>finance-analysts</code>, or the group's IAM Identity Center ID.</p> </li> <li> <p> <code>ATTRIBUTE</code> - One runtime claim and its value, in the form <code>aws:TransactionContext/IdentityProvider/<i>key</i>=<i>value</i> </code>, for example, <code>aws:TransactionContext/IdentityProvider/department=Finance</code>. Each attribute grant contains one key and one value.</p> </li> </ul> <p>S3 Access Grants stores the identifier exactly as you enter it. It compares identifiers exactly, and the comparison is case sensitive. S3 Access Grants doesn't check that the user, group, or attribute exists when you create the grant.</p> <p>User names can be up to 128 characters long. They can contain letters, numbers, spaces, and the characters <code>_ . : / = + - @</code>. Group names can be up to 128 characters long. They can contain any character that IAM Identity Center allows in a group display name, such as <code>R&D</code> or <code>Finance (EU)</code>. Attribute keys and values can each be up to 128 characters long. Both can contain letters, numbers, and the characters <code>_ . : / + - @</code>. Values can also contain spaces and <code>=</code>. As a best practice, use an immutable user ID from your identity provider instead of an email address.</p>"""

grantee_identifier instance-attribute

grantee_identifier: NotRequired[GranteeIdentifier]

The unique identifier of the Grantee. The format depends on the grantee type:

  • IAM - The IAM Amazon Resource Name (ARN) of the user or role.

  • DIRECTORY_USER - The user's name, or the ID that IAM Identity Center uses for the user, for example, a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. For IAM federation, the name is the subject that IAM sets from your identity provider token, for example, the user ID 00u1a2b3c4EXAMPLE. For IAM Identity Center, the name is the user's username.

  • DIRECTORY_GROUP - The group's display name in IAM Identity Center, for example, finance-analysts, or the group's IAM Identity Center ID.

  • ATTRIBUTE - One runtime claim and its value, in the form aws:TransactionContext/IdentityProvider/key=value , for example, aws:TransactionContext/IdentityProvider/department=Finance. Each attribute grant contains one key and one value.

S3 Access Grants stores the identifier exactly as you enter it. It compares identifiers exactly, and the comparison is case sensitive. S3 Access Grants doesn't check that the user, group, or attribute exists when you create the grant.

User names can be up to 128 characters long. They can contain letters, numbers, spaces, and the characters _ . : / = + - @. Group names can be up to 128 characters long. They can contain any character that IAM Identity Center allows in a group display name, such as R&D or Finance (EU). Attribute keys and values can each be up to 128 characters long. Both can contain letters, numbers, and the characters _ . : / + - @. Values can also contain spaces and =. As a best practice, use an immutable user ID from your identity provider instead of an email address.

grantee_type instance-attribute

grantee_type: NotRequired[GranteeType]

The type of the grantee to which access has been granted. It can be one of the following values:

  • IAM - An IAM user or role.

  • DIRECTORY_USER - A user from your corporate directory. The user can sign in through IAM Identity Center or through IAM federation with your external identity provider.

  • DIRECTORY_GROUP - A group from your corporate directory. Group grants match users who sign in through IAM Identity Center. They also match users who sign in through IAM federation when the IAM identity provider is configured for group-based access.

  • ATTRIBUTE - A runtime claim that you map on your IAM identity provider, such as a department. The grant matches every user who signs in through IAM federation with this runtime claim and value.