Executes the stack refactor operation.
Parameters:
Raises:
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
| def execute_stack_refactor(
self,
*,
config_overrides: Optional[CloudFormationClientConfig] = None,
stack_refactor_id: Optional[
"capo_cloudformation.types.stack_refactor_id.StackRefactorId"
] = None,
) -> None:
"""<p>Executes the stack refactor operation.</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.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cloudformation.types.execute_stack_refactor_input.ExecuteStackRefactorInput]",
) -> OperationResponse[None]:
import capo_cloudformation._operations.cloud_formation.execute_stack_refactor
output, http_response = (
capo_cloudformation._operations.cloud_formation.execute_stack_refactor.execute_stack_refactor(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ExecuteStackRefactor")
)
input_: capo_cloudformation.types.execute_stack_refactor_input.ExecuteStackRefactorInput = {}
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
|