list_resource_targets
¶
list_resource_targets(
*,
config_overrides: Optional[BackupExternalClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
resource_provider_arn: Optional[ResourceProviderArn] = None,
resource_target_type: Optional[ResourceTargetType] = None,
) -> ListResourceTargetsOutput
Returns a list of resource targets, optionally filtered by resource provider or target type. Use the pagination token to retrieve additional results.
Parameters:
-
max_results(Optional[int], default:None) –The maximum number of results to return in a single response.
-
next_token(Optional[NextToken], default:None) –The token returned by a previous call to retrieve the next page of results.
-
resource_provider_arn(Optional[ResourceProviderArn], default:None) –The Amazon Resource Name (ARN) of the resource provider by which to filter the results.
-
resource_target_type(Optional[ResourceTargetType], default:None) –The resource target type by which to filter the results.
Raises:
-
AccessDeniedException–The request was denied because you do not have permission to perform the requested operation.
-
ConflictException–The request conflicts with the current state of the specified resource.
-
InternalServerException–The request failed because of an internal server error.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The request was denied because the request rate is too high.
-
ValidationException–The request contains invalid parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup_external/_services/backup_external.py
1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 | |