Executes the stack refactor operation.
Parameters:
Raises:
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
| async def execute_stack_refactor(
self,
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudformation.types.execute_stack_refactor_input.ExecuteStackRefactorInput]",
) -> AsyncOperationResponse[None]:
import capo_cloudformation._operations.cloud_formation.execute_stack_refactor
(
output,
http_response,
) = await capo_cloudformation._operations.cloud_formation.execute_stack_refactor.async_execute_stack_refactor(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|