list_resource_targets
async
¶
list_resource_targets(
*,
config_overrides: Optional[AsyncBackupExternalClientConfig] = 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/async_backup_external.py
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 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 | |