SSMClient.get_parameters_by_path
rboto-ssm==0.4.0 · Service index · Types
Model summary (excerpt): Retrieve information about one or more parameters under a specified level in a hierarchy. This operation is authorized against the ssm:GetParametersByPath action for the path that you specify in the request. It isn't authorized against the individual parameters that it returns, and it isn't authorized against ssm:GetParameter . A principal who is allowed to call this operation for the path /a...
Install and imports
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
GetParametersByPathOutput,
ParameterStringFilter,
)
Signature
async def get_parameters_by_path(
*,
path: str,
recursive: bool | None = None,
parameter_filters: Sequence[ParameterStringFilter] | None = None,
with_decryption: bool | None = None,
max_results: int | None = None,
next_token: str | None = None,
) -> GetParametersByPathOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
path |
Yes | The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy is the parameter name except the last part of the parameter. For the API call to succeed, the last part of the parameter name can't be in the path. A parameter name hierarchy can have a maximum of 15 levels. Here is an example of a hierarchy: /Finance/Prod/IAD/WinServ2016/license33 |
recursive |
No | Retrieve all parameters within a hierarchy. |
parameter_filters |
No | Filters to limit the request results. The following Key values are supported for GetParametersByPath : Type , KeyId , and Label . The following Key values aren't supported for GetParametersByPath : tag , DataType , Name , Path , and Tier . |
with_decryption |
No | Retrieve all parameters in a hierarchy with their value decrypted. |
max_results |
No | The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results. |
next_token |
No | A token to start the list. Use this token to get the next set of results. |
Output
GetParametersByPathOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
parameters |
list[ParameterOutput] | None |
Always present | ParameterOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
GetParametersByPathOutput, ParameterStringFilter
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.get_parameters_by_path(...) accepts the same arguments and returns AsyncIterator[GetParametersByPathOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_ssm.exceptions:
InternalServerError, InvalidFilterKeyError, InvalidFilterOptionError, InvalidFilterValueError, InvalidKeyIdError, InvalidNextTokenError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.