getBucketAccessKeys method
Returns the existing access key IDs for the specified Amazon Lightsail bucket.
May throw AccessDeniedException.
May throw InvalidInputException.
May throw NotFoundException.
May throw RegionSetupInProgressException.
May throw ServiceException.
May throw UnauthenticatedException.
Parameter bucketName :
The name of the bucket for which to return access keys.
Implementation
Future<GetBucketAccessKeysResult> getBucketAccessKeys({
required String bucketName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Lightsail_20161128.GetBucketAccessKeys'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'bucketName': bucketName,
},
);
return GetBucketAccessKeysResult.fromJson(jsonResponse.body);
}