Skip to content

list_sub_check_rule_results async

list_sub_check_rule_results(
    sub_check_result_id: SubCheckResultId,
    *,
    config_overrides: Optional[AsyncSsmSapClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListSubCheckRuleResultsOutput

Lists the rules of a specified sub-check belonging to a configuration check operation.

Parameters:

  • sub_check_result_id (SubCheckResultId) –

    The ID of the sub check result.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • next_token (Optional[NextToken], default: None ) –

    The token for the next page of results.

Raises:

Source code in docs_src/capo_ssm_sap/_services/async_ssm_sap.py
async def list_sub_check_rule_results(
    self,
    sub_check_result_id: "capo_ssm_sap.types.sub_check_result_id.SubCheckResultId",
    *,
    config_overrides: Optional[AsyncSsmSapClientConfig] = None,
    max_results: Optional["capo_ssm_sap.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_ssm_sap.types.next_token.NextToken"] = None,
) -> "capo_ssm_sap.types.list_sub_check_rule_results_output.ListSubCheckRuleResultsOutput":
    """<p>Lists the rules of a specified sub-check belonging to a configuration check operation.</p>

    Args:
        sub_check_result_id: <p>The ID of the sub check result.</p>
        max_results: <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.</p>
        next_token: <p>The token for the next page of results.</p>

    Raises:
        capo_ssm_sap.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
        capo_ssm_sap.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service. </p>
        capo_ssm_sap.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ssm_sap.types.list_sub_check_rule_results_input.ListSubCheckRuleResultsInput]",
    ) -> AsyncOperationResponse[
        "capo_ssm_sap.types.list_sub_check_rule_results_output.ListSubCheckRuleResultsOutput"
    ]:
        import capo_ssm_sap._operations.ssm_sap.list_sub_check_rule_results

        (
            output,
            http_response,
        ) = await capo_ssm_sap._operations.ssm_sap.list_sub_check_rule_results.async_list_sub_check_rule_results(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSubCheckRuleResults")
    )
    input_: capo_ssm_sap.types.list_sub_check_rule_results_input.ListSubCheckRuleResultsInput = {
        "sub_check_result_id": sub_check_result_id
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output