get_deployable_patch_snapshot_for_instance
async
¶
get_deployable_patch_snapshot_for_instance(
instance_id: InstanceId,
snapshot_id: SnapshotId,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
baseline_override: Optional[BaselineOverride] = None,
use_s3_dual_stack_endpoint: Optional[Boolean] = None,
) -> GetDeployablePatchSnapshotForInstanceResult
Retrieves the current snapshot for the patch baseline the managed node uses. This API is primarily used by the AWS-RunPatchBaseline Systems Manager document (SSM document).
If you run the command locally, such as with the Command Line Interface (CLI), the system attempts to use your local Amazon Web Services credentials and the operation fails. To avoid this, you can run the command in the Amazon Web Services Systems Manager console. Use Run Command, a tool in Amazon Web Services Systems Manager, with an SSM document that enables you to target a managed node with a script or command. For example, run the command using the AWS-RunShellScript document or the AWS-RunPowerShellScript document.
Parameters:
-
instance_id(InstanceId) –The ID of the managed node for which the appropriate patch snapshot should be retrieved.
-
snapshot_id(SnapshotId) –The snapshot ID provided by the user when running
AWS-RunPatchBaseline. -
baseline_override(Optional[BaselineOverride], default:None) –Defines the basic information about a patch baseline override.
-
use_s3_dual_stack_endpoint(Optional[Boolean], default:None) –Specifies whether to use S3 dualstack endpoints for the patch snapshot download URL. Set to
trueto receive a presigned URL that supports both IPv4 and IPv6 connectivity. Set tofalseto use standard IPv4-only endpoints. Default isfalse. This parameter is required for managed nodes in IPv6-only environments.
Raises:
-
InternalServerError–An error occurred on the server side.
-
UnsupportedFeatureRequiredException–Patching for applications released by Microsoft is only available on EC2 instances and advanced instances. To patch applications released by Microsoft on on-premises servers and VMs, you must enable advanced instances. For more information, see Turning on the advanced-instances tier in the Amazon Web Services Systems Manager User Guide.
-
UnsupportedOperatingSystem–The operating systems you specified isn't supported, or the operation isn't supported for the operating system.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
6310 6311 6312 6313 6314 6315 6316 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 6380 6381 | |