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
6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 | |