Retrieves the default patch baseline. Amazon Web Services Systems Manager supports creating multiple default patch baselines. For example, you can create a default patch baseline for each operating system.
If you don't specify an operating system value, the default patch baseline for Windows is returned.
Parameters:
-
operating_system
(Optional[OperatingSystem], default:
None
)
–
Returns the default patch baseline for the specified operating system.
Raises:
Source code in docs_src/capo_ssm/_services/ssm.py
| def get_default_patch_baseline(
self,
*,
config_overrides: Optional[SSMClientConfig] = None,
operating_system: Optional[
"capo_ssm.types.operating_system.OperatingSystem"
] = None,
) -> (
"capo_ssm.types.get_default_patch_baseline_result.GetDefaultPatchBaselineResult"
):
"""<p>Retrieves the default patch baseline. Amazon Web Services Systems Manager supports creating multiple default patch baselines. For example, you can create a default patch baseline for each operating system.</p> <p>If you don't specify an operating system value, the default patch baseline for Windows is returned.</p>
Args:
operating_system: <p>Returns the default patch baseline for the specified operating system.</p>
Raises:
capo_ssm.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
capo_ssm.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ssm.types.get_default_patch_baseline_request.GetDefaultPatchBaselineRequest]",
) -> OperationResponse[
"capo_ssm.types.get_default_patch_baseline_result.GetDefaultPatchBaselineResult"
]:
import capo_ssm._operations.amazon_ssm.get_default_patch_baseline
output, http_response = (
capo_ssm._operations.amazon_ssm.get_default_patch_baseline.get_default_patch_baseline(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDefaultPatchBaseline")
)
input_: capo_ssm.types.get_default_patch_baseline_request.GetDefaultPatchBaselineRequest = {}
if operating_system is not None:
input_["operating_system"] = operating_system
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|