get_document
async
¶
get_document(
name: DocumentARN,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
version_name: Optional[DocumentVersionName] = None,
document_version: Optional[DocumentVersion] = None,
document_format: Optional[DocumentFormat] = None,
) -> GetDocumentResult
Gets the contents of the specified Amazon Web Services Systems Manager document (SSM document).
Parameters:
-
name(DocumentARN) –The name of the SSM document.
-
version_name(Optional[DocumentVersionName], default:None) –An optional field specifying the version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document and can't be changed.
-
document_version(Optional[DocumentVersion], default:None) –The document version for which you want information.
-
document_format(Optional[DocumentFormat], default:None) –Returns the document in the specified format. The document format can be either JSON or YAML. JSON is the default format.
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidDocument–The specified SSM document doesn't exist.
-
InvalidDocumentVersion–The document version isn't valid or doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 | |