Skip to content

list_backup_access_points_by_recovery_point async

list_backup_access_points_by_recovery_point(
    recovery_point_arn: RecoveryPointArn,
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
    max_results: Optional[
        ListBackupAccessPointsByRecoveryPointRequestMaxResultsInteger
    ] = None,
    next_token: Optional[str] = None,
) -> ListBackupAccessPointsByRecoveryPointResponse

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.

Parameters:

  • max_results (Optional[ListBackupAccessPointsByRecoveryPointRequestMaxResultsInteger], default: None ) –

    The maximum number of items to be returned.

  • next_token (Optional[str], default: None ) –

    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.

  • recovery_point_arn (RecoveryPointArn) –

    The Amazon Resource Name (ARN) of the recovery point whose backup access points you want to list.

Raises:

Source code in docs_src/capo_backup/_services/async_backup.py
async def list_backup_access_points_by_recovery_point(
    self,
    recovery_point_arn: "capo_backup.types.recovery_point_arn.RecoveryPointArn",
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
    max_results: Optional[
        "capo_backup.types.list_backup_access_points_by_recovery_point_request_max_results_integer.ListBackupAccessPointsByRecoveryPointRequestMaxResultsInteger"
    ] = None,
    next_token: Optional[str] = None,
) -> "capo_backup.types.list_backup_access_points_by_recovery_point_response.ListBackupAccessPointsByRecoveryPointResponse":
    """<p>Returns the backup access points associated with the specified recovery point.</p> <p>If you own the recovery point and have shared it with other accounts, the response includes backup access points created by those accounts.</p>

    Args:
        max_results: <p>The maximum number of items to be returned.</p>
        next_token: <p>The next item following a partial list of returned items. For example, if a request is made to return <code>MaxResults</code> number of items, <code>NextToken</code> allows you to return more items in your list starting at the location pointed to by the next token.</p>
        recovery_point_arn: <p>The Amazon Resource Name (ARN) of the recovery point whose backup access points you want to list.</p>

    Raises:
        capo_backup.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>Indicates that something is wrong with a parameter's value. For example, the value is out of range.</p>
        capo_backup.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request failed due to a temporary failure of the server.</p>
        capo_backup.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_backup.types.list_backup_access_points_by_recovery_point_request.ListBackupAccessPointsByRecoveryPointRequest]",
    ) -> AsyncOperationResponse[
        "capo_backup.types.list_backup_access_points_by_recovery_point_response.ListBackupAccessPointsByRecoveryPointResponse"
    ]:
        import capo_backup._operations.cryo_controller_user_manager.list_backup_access_points_by_recovery_point

        (
            output,
            http_response,
        ) = await capo_backup._operations.cryo_controller_user_manager.list_backup_access_points_by_recovery_point.async_list_backup_access_points_by_recovery_point(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_backup.types.list_backup_access_points_by_recovery_point_response.ListBackupAccessPointsByRecoveryPointResponse",
    ) -> dict[str, Any]:
        import capo_backup.types.list_backup_access_points_by_recovery_point_response

        return capo_backup.types.list_backup_access_points_by_recovery_point_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "ListBackupAccessPointsByRecoveryPoint", redact_output=_redact_output
        ),
    )
    input_: capo_backup.types.list_backup_access_points_by_recovery_point_request.ListBackupAccessPointsByRecoveryPointRequest = {
        "recovery_point_arn": recovery_point_arn
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output