list_deployments
async
¶
list_deployments(
*,
config_overrides: Optional[AsyncGreengrassV2ClientConfig] = None,
target_arn: Optional[TargetARN] = None,
history_filter: Optional[DeploymentHistoryFilter] = None,
parent_target_arn: Optional[ThingGroupARN] = None,
max_results: Optional[DefaultMaxResults] = None,
next_token: Optional[NextTokenString] = None,
) -> ListDeploymentsResponse
Retrieves a paginated list of deployments.
Parameters:
-
target_arn(Optional[TargetARN], default:None) –The ARN of the target IoT thing or thing group.
-
history_filter(Optional[DeploymentHistoryFilter], default:None) –The filter for the list of deployments. Choose one of the following options:
-
ALL– The list includes all deployments. -
LATEST_ONLY– The list includes only the latest revision of each deployment.
Default:
LATEST_ONLY -
-
parent_target_arn(Optional[ThingGroupARN], default:None) –The parent deployment's target ARN within a subdeployment.
-
max_results(Optional[DefaultMaxResults], default:None) –The maximum number of results to be returned per paginated request.
Default:
50 -
next_token(Optional[NextTokenString], default:None) –The token to be used for the next set of paginated results.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerException–IoT Greengrass can't process your request right now. Try again later.
-
ThrottlingException–Your request exceeded a request rate quota. For example, you might have exceeded the amount of times that you can retrieve device or deployment status per second.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_greengrassv2/_services/async_greengrass_v2.py
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 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 | |