

def _build_waiter_state_cmd(self, waiter_name):
    waiter_config = self._model.get_waiter(waiter_name)
    waiter_cli_name = xform_name(waiter_name, '-')
    operation_name = waiter_config.operation
    operation_model = self._service_model.operation_model(operation_name)
    waiter_state_command = WaiterStateCommand(name=waiter_cli_name, parent_name='wait', operation_caller=WaiterCaller(self._session, waiter_name), session=self._session, operation_model=operation_model)
    waiter_state_doc_builder = WaiterStateDocBuilder(waiter_config)
    description = waiter_state_doc_builder.build_waiter_state_description()
    waiter_state_command.DESCRIPTION = description
    return waiter_state_command

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/waiters.py WaiterStateCommandBuilder._build_waiter_state_cmd/original