Skip to content

describe_stack_refactor async

describe_stack_refactor(
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    stack_refactor_id: Optional[StackRefactorId] = None,
) -> DescribeStackRefactorOutput

Describes the stack refactor status.

Parameters:

Raises:

Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
async def describe_stack_refactor(
    self,
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    stack_refactor_id: Optional[
        "capo_cloudformation.types.stack_refactor_id.StackRefactorId"
    ] = None,
) -> "capo_cloudformation.types.describe_stack_refactor_output.DescribeStackRefactorOutput":
    """<p>Describes the stack refactor status.</p>

    Args:
        stack_refactor_id: <p>The ID associated with the stack refactor created from the <a>CreateStackRefactor</a> action.</p>

    Raises:
        capo_cloudformation.errors.stack_refactor_not_found_exception.StackRefactorNotFoundException: <p>The specified stack refactor can't be found.</p>
        capo_cloudformation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudformation.types.describe_stack_refactor_input.DescribeStackRefactorInput]",
    ) -> AsyncOperationResponse[
        "capo_cloudformation.types.describe_stack_refactor_output.DescribeStackRefactorOutput"
    ]:
        import capo_cloudformation._operations.cloud_formation.describe_stack_refactor

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeStackRefactor")
    )
    input_: capo_cloudformation.types.describe_stack_refactor_input.DescribeStackRefactorInput = {}
    if stack_refactor_id is not None:
        input_["stack_refactor_id"] = stack_refactor_id

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