Skip to content

list_stack_refactors async

list_stack_refactors(
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    execution_status_filter: Optional[StackRefactorExecutionStatusFilter] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListStackRefactorsOutput

Lists all account stack refactor operations and their statuses.

Parameters:

  • execution_status_filter (Optional[StackRefactorExecutionStatusFilter], default: None ) –

    Execution status to use as a filter. Specify one or more execution status codes to list only stack refactors with the specified execution status codes.

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

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

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

    The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

Raises:

Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
async def list_stack_refactors(
    self,
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    execution_status_filter: Optional[
        "capo_cloudformation.types.stack_refactor_execution_status_filter.StackRefactorExecutionStatusFilter"
    ] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_cloudformation.types.max_results.MaxResults"
    ] = None,
) -> (
    "capo_cloudformation.types.list_stack_refactors_output.ListStackRefactorsOutput"
):
    """<p>Lists all account stack refactor operations and their statuses.</p>

    Args:
        execution_status_filter: <p>Execution status to use as a filter. Specify one or more execution status codes to list only stack refactors with the specified execution status codes.</p>
        next_token: <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
        max_results: <p>The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a <code>NextToken</code> value that you can assign to the <code>NextToken</code> request parameter to get the next set of results.</p>

    Raises:
        capo_cloudformation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudformation.types.list_stack_refactors_input.ListStackRefactorsInput]",
    ) -> AsyncOperationResponse[
        "capo_cloudformation.types.list_stack_refactors_output.ListStackRefactorsOutput"
    ]:
        import capo_cloudformation._operations.cloud_formation.list_stack_refactors

        (
            output,
            http_response,
        ) = await capo_cloudformation._operations.cloud_formation.list_stack_refactors.async_list_stack_refactors(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListStackRefactors")
    )
    input_: capo_cloudformation.types.list_stack_refactors_input.ListStackRefactorsInput = {}
    if execution_status_filter is not None:
        input_["execution_status_filter"] = execution_status_filter
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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