Describes the stack refactor status.
Parameters:
Raises:
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
| def describe_stack_refactor(
self,
*,
config_overrides: Optional[CloudFormationClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_cloudformation.types.describe_stack_refactor_input.DescribeStackRefactorInput]",
) -> OperationResponse[
"capo_cloudformation.types.describe_stack_refactor_output.DescribeStackRefactorOutput"
]:
import capo_cloudformation._operations.cloud_formation.describe_stack_refactor
output, http_response = (
capo_cloudformation._operations.cloud_formation.describe_stack_refactor.describe_stack_refactor(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|