listBackupAccessPointsByResource method
Returns the backup access points associated with the specified resource, such as an Amazon S3 bucket.
May throw InvalidParameterValueException.
May throw ServiceUnavailableException.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the resource whose backup access points
you want to list.
Parameter maxResults :
The maximum number of items to be returned.
Parameter nextToken :
The next item following a partial list of returned items. For example, if
a request is made to return MaxResults number of items,
NextToken allows you to return more items in your list
starting at the location pointed to by the next token.
Implementation
Future<ListBackupAccessPointsByResourceResponse>
listBackupAccessPointsByResource({
required String resourceArn,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (maxResults != null) 'MaxResults': [maxResults.toString()],
if (nextToken != null) 'NextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/backup-access-point/resource/${Uri.encodeComponent(resourceArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListBackupAccessPointsByResourceResponse.fromJson(response);
}