listBackupAccessPointsByRecoveryPoint method

Future<ListBackupAccessPointsByRecoveryPointResponse> listBackupAccessPointsByRecoveryPoint({
  1. required String recoveryPointArn,
  2. int? maxResults,
  3. String? nextToken,
})

Returns the backup access points associated with the specified recovery point.

If you own the recovery point and have shared it with other accounts, the response includes backup access points created by those accounts.

May throw InvalidParameterValueException. May throw ServiceUnavailableException.

Parameter recoveryPointArn : The Amazon Resource Name (ARN) of the recovery point 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<ListBackupAccessPointsByRecoveryPointResponse>
    listBackupAccessPointsByRecoveryPoint({
  required String recoveryPointArn,
  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/recovery-point/${Uri.encodeComponent(recoveryPointArn)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListBackupAccessPointsByRecoveryPointResponse.fromJson(response);
}