get_deployable_patch_snapshot_for_instance
¶
get_deployable_patch_snapshot_for_instance(
instance_id: InstanceId,
snapshot_id: SnapshotId,
*,
config_overrides: Optional[SSMClientConfig] = 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/ssm.py
6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 | |