list_access_grants_locations
¶
list_access_grants_locations(
account_id: AccountId,
*,
config_overrides: Optional[S3ControlClientConfig] = None,
next_token: Optional[ContinuationToken] = None,
max_results: Optional[MaxResults] = None,
location_scope: Optional[S3Prefix] = None,
) -> ListAccessGrantsLocationsResult
Returns a list of the locations registered in your S3 Access Grants instance.
- Permissions
-
You must have the
s3:ListAccessGrantsLocationspermission 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 Grants Locationsrequest 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. -
location_scope(Optional[S3Prefix], default:None) –The S3 path to the location that you are registering. The location scope can be the default S3 location
s3://, the S3 path to a buckets3://, or the S3 path to a bucket and prefixs3://. A prefix in S3 is a string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with the/ engineering/prefix or object key names that start with themarketing/campaigns/prefix.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.