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
6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 | |