Skip to content

list_stack_refactor_actions async

list_stack_refactor_actions(
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    stack_refactor_id: Optional[StackRefactorId] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListStackRefactorActionsOutput

Lists the stack refactor actions that will be taken after calling the ExecuteStackRefactor action.

Parameters:

  • stack_refactor_id (Optional[StackRefactorId], default: None ) –

    The ID associated with the stack refactor created from the CreateStackRefactor action.

  • 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_refactor_actions(
    self,
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    stack_refactor_id: Optional[
        "capo_cloudformation.types.stack_refactor_id.StackRefactorId"
    ] = 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_refactor_actions_output.ListStackRefactorActionsOutput":
    """<p>Lists the stack refactor actions that will be taken after calling the <a>ExecuteStackRefactor</a> action.</p>

    Args:
        stack_refactor_id: <p>The ID associated with the stack refactor created from the <a>CreateStackRefactor</a> action.</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_refactor_actions_input.ListStackRefactorActionsInput]",
    ) -> AsyncOperationResponse[
        "capo_cloudformation.types.list_stack_refactor_actions_output.ListStackRefactorActionsOutput"
    ]:
        import capo_cloudformation._operations.cloud_formation.list_stack_refactor_actions

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListStackRefactorActions")
    )
    input_: capo_cloudformation.types.list_stack_refactor_actions_input.ListStackRefactorActionsInput = {}
    if stack_refactor_id is not None:
        input_["stack_refactor_id"] = stack_refactor_id
    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