list_access_grants
¶
list_access_grants(
account_id: AccountId,
*,
config_overrides: Optional[S3ControlClientConfig] = 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/s3_control.py
3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 | |