Skip to content

get_default_patch_baseline async

get_default_patch_baseline(
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
    operating_system: Optional[OperatingSystem] = None,
) -> GetDefaultPatchBaselineResult

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/async_ssm.py
async def get_default_patch_baseline(
    self,
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ssm.types.get_default_patch_baseline_request.GetDefaultPatchBaselineRequest]",
    ) -> AsyncOperationResponse[
        "capo_ssm.types.get_default_patch_baseline_result.GetDefaultPatchBaselineResult"
    ]:
        import capo_ssm._operations.amazon_ssm.get_default_patch_baseline

        (
            output,
            http_response,
        ) = await capo_ssm._operations.amazon_ssm.get_default_patch_baseline.async_get_default_patch_baseline(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output