list_access_grants
async
¶
list_access_grants(
account_id: AccountId,
*,
config_overrides: Optional[AsyncS3ControlClientConfig] = None,
next_token: Optional[ContinuationToken] = None,
max_results: Optional[MaxResults] = None,
grantee_type: Optional[GranteeType] = None,
grantee_identifier: Optional[GranteeIdentifier] = None,
permission: Optional[Permission] = None,
grant_scope: Optional[S3Prefix] = None,
application_arn: Optional[IdentityCenterApplicationArn] = None,
) -> ListAccessGrantsResult
Returns the list of access grants in your S3 Access Grants instance.
- Permissions
-
You must have the
s3:ListAccessGrantspermission to use this operation.
Parameters:
-
account_id(AccountId) –The Amazon Web Services account ID of the S3 Access Grants instance.
-
next_token(Optional[ContinuationToken], default:None) –A pagination token to request the next page of results. Pass this value into a subsequent
List Access Grantsrequest in order to retrieve the next page of results. -
max_results(Optional[MaxResults], default:None) –The maximum number of access grants that you would like returned in the
List Access Grantsresponse. If the results include the pagination tokenNextToken, make another call using theNextTokento determine if there are more results. -
grantee_type(Optional[GranteeType], default:None) –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- Your corporate directory user. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance. -
DIRECTORY_GROUP- Your corporate directory group. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.
-
-
grantee_identifier(Optional[GranteeIdentifier], default:None) –The unique identifer of the
Grantee. If the grantee type isIAM, the identifier is the IAM Amazon Resource Name (ARN) of the user or role. If the grantee type is a directory user or group, the identifier is 128-bit universally unique identifier (UUID) in the formata1b2c3d4-5678-90ab-cdef-EXAMPLE11111. You can obtain this UUID from your Amazon Web Services IAM Identity Center instance. -
permission(Optional[Permission], default:None) –The type of permission granted to your S3 data, which can be set to one of the following values:
-
READ– Grant read-only access to the S3 data. -
WRITE– Grant write-only access to the S3 data. -
READWRITE– Grant both read and write access to the S3 data.
-
-
grant_scope(Optional[S3Prefix], default:None) –The S3 path of the data to which you are granting access. It is the result of appending the
Subprefixto the location scope. -
application_arn(Optional[IdentityCenterApplicationArn], default:None) –The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_s3_control/_services/async_s3_control.py
3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 | |