Skip to content

describe_automation_executions async

describe_automation_executions(
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
    filters: Optional[AutomationExecutionFilterList] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> DescribeAutomationExecutionsResult

Provides details about all active and terminated Automation executions.

Parameters:

  • filters (Optional[AutomationExecutionFilterList], default: None ) –

    Filters used to limit the scope of executions that are requested.

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

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

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

    The token for the next set of items to return. (You received this token from a previous call.)

Raises:

Source code in docs_src/capo_ssm/_services/async_ssm.py
async def describe_automation_executions(
    self,
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
    filters: Optional[
        "capo_ssm.types.automation_execution_filter_list.AutomationExecutionFilterList"
    ] = None,
    max_results: Optional["capo_ssm.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
) -> "capo_ssm.types.describe_automation_executions_result.DescribeAutomationExecutionsResult":
    """<p>Provides details about all active and terminated Automation executions.</p>

    Args:
        filters: <p>Filters used to limit the scope of executions that are requested.</p>
        max_results: <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
        next_token: <p>The token for the next set of items to return. (You received this token from a previous call.)</p>

    Raises:
        capo_ssm.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
        capo_ssm.errors.invalid_filter_key.InvalidFilterKey: <p>The specified key isn't valid.</p>
        capo_ssm.errors.invalid_filter_value.InvalidFilterValue: <p>The filter value isn't valid. Verify the value and try again.</p>
        capo_ssm.errors.invalid_next_token.InvalidNextToken: <p>The specified token isn't valid.</p>
        capo_ssm.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ssm.types.describe_automation_executions_request.DescribeAutomationExecutionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_ssm.types.describe_automation_executions_result.DescribeAutomationExecutionsResult"
    ]:
        import capo_ssm._operations.amazon_ssm.describe_automation_executions

        (
            output,
            http_response,
        ) = await capo_ssm._operations.amazon_ssm.describe_automation_executions.async_describe_automation_executions(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAutomationExecutions")
    )
    input_: capo_ssm.types.describe_automation_executions_request.DescribeAutomationExecutionsRequest = {}
    if filters is not None:
        input_["filters"] = filters
    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