get_parameters_by_path
¶
get_parameters_by_path(
path: PSParameterName,
*,
config_overrides: Optional[SSMClientConfig] = None,
recursive: Optional[Boolean] = None,
parameter_filters: Optional[ParameterStringFilterList] = None,
with_decryption: Optional[Boolean] = None,
max_results: Optional[GetParametersByPathMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> GetParametersByPathResult
Retrieve information about one or more parameters under a specified level in a hierarchy.
Request results are returned on a best-effort basis. If you specify MaxResults in the request, the response includes information up to the limit specified. The number of items returned, however, can be between zero and the value of MaxResults. If the service reaches an internal limit while processing the results, it stops the operation and returns the matching values up to that point and a NextToken. You can specify the NextToken in a subsequent call to get the next set of results.
Parameter names can't contain spaces. The service removes any spaces specified for the beginning or end of a parameter name. If the specified name for a parameter contains spaces between characters, the request fails with a ValidationException error.
Parameters:
-
path(PSParameterName) –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(Optional[Boolean], default:None) –Retrieve all parameters within a hierarchy.
If a user has access to a path, then the user can access all levels of that path. For example, if a user has permission to access path
/a, then the user can also access/a/b. Even if a user has explicitly been denied access in IAM for parameter/a/b, they can still call the GetParametersByPath API operation recursively for/aand view/a/b. -
parameter_filters(Optional[ParameterStringFilterList], default:None) –Filters to limit the request results.
The following
Keyvalues are supported forGetParametersByPath:Type,KeyId, andLabel.The following
Keyvalues aren't supported forGetParametersByPath:tag,DataType,Name,Path, andTier. -
with_decryption(Optional[Boolean], default:None) –Retrieve all parameters in a hierarchy with their value decrypted.
-
max_results(Optional[GetParametersByPathMaxResults], default:None) –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(Optional[NextToken], default:None) –A token to start the list. Use this token to get the next set of results.
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidFilterKey–The specified key isn't valid.
-
InvalidFilterOption–The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid options are Recursive and OneLevel.
-
InvalidFilterValue–The filter value isn't valid. Verify the value and try again.
-
InvalidKeyId–The query key ID isn't valid.
-
InvalidNextToken–The specified token isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 | |